Fix & normalize Coop frontmatter YAML

Also ensure newline at EOF.

This was achieved by running the new normalize_coop_frontmatter.rb
script which basically reads in the frontmatter, parses it and dumps it
back out.

I had to manually fix some telephone numbers which had been incorrectly
parsed as some kind of number rather than as strings.
This commit is contained in:
James Mead 2018-11-30 16:54:12 +00:00
parent 628d515799
commit 8780eca301
36 changed files with 131 additions and 116 deletions

View File

@ -6,8 +6,9 @@ website: http://agile.coop/
email: info@agile.coop
twitter: AgileCollective
github: agilecollective
telephone: 01865 403 120
address: Room 301,The Old Music Hall,106-108 Cowley Road,Oxford,United Kingdom,OX4 1JE
telephone: '01865 403 120'
address: Room 301,The Old Music Hall,106-108 Cowley Road,Oxford,United Kingdom,OX4
1JE
latitude: 51.7483161
longitude: -1.2390645000000404
clients:

View File

@ -6,7 +6,7 @@ website: http://alpha.coop/
email: info@alpha.coop
twitter: alpha.coop
github: AlphaCo_op
telephone: +441912111938
telephone: '+441912111938'
address: 6 Charlotte Square,Newcastle upon Tyne,United Kingdom,NE1 4XF
latitude: 54.97101
longitude: -1.61974

View File

@ -6,7 +6,7 @@ website: http://aptivate.org/
email: outreach@aptivate.org
twitter: aptivateuk
github: aptivate
telephone: +44 (0)1223 967838
telephone: "+44 (0)1223 967838"
address: 25 Signet Court, Swann's Road, Cambridge,United Kingdom,CB5 8LA
latitude: 52.21427610000001
longitude: 0.15076890000000276

View File

@ -6,7 +6,7 @@ website: https://blake.house/
email: hello@blake.house
twitter: blake_house
github: hello%40blake.html
telephone: +447779 404510
telephone: "+447779 404510"
address: Unit 1H Clapham North Arts Centre,26-32 Voltaire Rd,London,SW4 6DH
latitude: 51.46268029999999
longitude: -0.14825569999993604

View File

@ -6,7 +6,7 @@ website: http://www.calverts.coop/
email: info@calverts.coop
twitter: calverts_print_london
github: calverts
telephone: +44 (0) 20 7739 1474
telephone: "+44 (0) 20 7739 1474"
address: 9-10 The Oval,London,UK,E2 9DT
latitude: 51.53326029999999
longitude: -0.05884240000000318

View File

@ -7,7 +7,8 @@ email: info@broadband.coop
twitter: cbn_team
github:
telephone: 0161 283 2675
address: c/o McKellans,11 Riverview, The Embankment Business Park,Vale Road, Heaton Mersey,Stockport,UK,SK4 3GN
address: c/o McKellans,11 Riverview, The Embankment Business Park,Vale Road, Heaton
Mersey,Stockport,UK,SK4 3GN
latitude: 53.4067704
longitude: -2.202668899999935
clients:

View File

@ -6,7 +6,7 @@ website: http://www.cetis.org.uk/
email: info@cetis.org.uk
twitter: cetisllp
github:
telephone: 07366025747
telephone: '07366025747'
address: Halton Mill,Mill Lane,Halton,Lancaster,England,LA2 6ND
latitude: 54.075809445607604
longitude: -2.7540137502212474

View File

@ -7,7 +7,8 @@ email: info@chapelstreetstudio.coop
twitter: chapelststudio
github:
telephone: 07743 426 846 (Martyn Johnston | Secretary)
address: Chapel Street Studio,Assembly Bradford, Market Pavilion, Rawson Place,Bradford,West Yorkshire,BD1 3QQ
address: Chapel Street Studio,Assembly Bradford, Market Pavilion, Rawson Place,Bradford,West
Yorkshire,BD1 3QQ
latitude: 53.795903
longitude: -1.7554270000000542
clients:

View File

@ -6,7 +6,7 @@ website: https://www.dev.ngo/
email: studio@dev.ngo
twitter: devsociety_
github:
telephone: +44 333 344 7800
telephone: "+44 333 344 7800"
address: 191 Fazeley Street,Digbeth,Birmingham, ,B5 5SE
latitude: 52.47784126596389
longitude: -1.881633996963501

View File

@ -6,7 +6,7 @@ website: https://digital-liberties.coop
email:
twitter:
github:
telephone: 07908 592 835
telephone: '07908 592 835'
address: 44 Arkwright Road,London,NW3 6BH
latitude:
longitude:

View File

@ -6,7 +6,7 @@ website: https://dtc-innovation.org/
email: contact@dtc-innovation.org
twitter: dtc-innovation
github:
telephone: +447455921569
telephone: 447455921569
address: London,United Kingdom
latitude:
longitude:

View File

@ -6,7 +6,7 @@ website: https://fairmondo.uk/
email: admin@fairmondo.uk
twitter: Fairmondouk
github: Fairmondouk
telephone: 07578708442
telephone: '07578708442'
address: AES Orchard, Sunderland Street, Worth Way,Keighley,United Kingdom,BD21 5LE
latitude: 53.8612875
longitude: -1.91083900000001

View File

@ -6,7 +6,7 @@ website: http://gildedsplinters.coop/
email: andrew@gildedsplinters.coop
twitter: index.html
github:
telephone: +44 7793650013
telephone: "+44 7793650013"
address: Virtual
latitude:
longitude:

View File

@ -32,4 +32,3 @@ technologies:
- photoshop
- wordpress
---

View File

@ -6,7 +6,7 @@ website: https://graphics.coop/
email: info@graphics.coop
twitter: graphicscoop
github:
telephone: 01315249779
telephone: '01315249779'
address: 32 Annandale Street Lane,Edinburgh,Scotland,EH7 4LS
latitude: 55.9607296
longitude: -3.182652400000052

View File

@ -6,7 +6,7 @@ website: http://mc3.coop
email: contact@mc3.coop
twitter:
github:
telephone: +44 1484 846231
telephone: "+44 1484 846231"
address: Huddersfield
latitude:
longitude:

View File

@ -6,7 +6,7 @@ website: https://netuxo.coop
email: office@netuxo.coop
twitter: netuxoltd
github:
telephone: 02089856843
telephone: '02089856843'
address: CAN Mezzanine,49-51 East Road,London,United Kingdom,N1 6AH
latitude: 51.5284201
longitude: -0.08787919999997484

View File

@ -6,7 +6,7 @@ website: http://www.opendataservices.coop
email: contact@opendataservices.coop
twitter: opendatacoop
github:
telephone: + 44 (0)161 298 1213
telephone: "+ 44 (0)161 298 1213"
address: Remote working team, across the UK,United Kingdom
latitude: 52.47695163340273
longitude: -1.8878889083862305

View File

@ -6,7 +6,7 @@ website: http://open-ecommerce.org/
email: info@open-ecommerce.org
twitter: timeline
github: open-ecommerce
telephone: +44 020 3731 9073
telephone: "+44 020 3731 9073"
address: Unit 23A Iliffe Yard,,London,UK,SE17 3QD
latitude: 51.48941875721223
longitude: -0.10058949123231287

View File

@ -6,7 +6,7 @@ website: http://www.outlandish.com
email: hello@outlandish.com
twitter: outlandish
github: outlandishideas
telephone: +44 (0) 207 561 9968
telephone: "+44 (0) 207 561 9968"
address: 3rd Floor,149 Fonthill Road,Finsbury Park,London,United Kingdom,N4 3HF
latitude: 51.56372160000001
longitude: -0.1077572000000373

View File

@ -6,7 +6,7 @@ website: http://www.thedotproject.co/
email: annie@thedotproject.co
twitter: dotprojectco
github: techforgoodbath
telephone: 07496276003
telephone: '07496276003'
address: Bath,United Kingdom,BA1
latitude: 51.375801
longitude: -2.359903900000063

View File

@ -6,7 +6,7 @@ website: https://wave.coop/
email: info@wave.coop
twitter: wavedesigncoop
github: wavedesign
telephone: 01424235000
telephone: '01424235000'
address: Rock House,49 - 51 Cambridge Road,Hastings,United Kingdom,TN34 1DT
latitude: 50.86501959934043
longitude: 0.5873715877532959

View File

@ -6,8 +6,9 @@ website: https://www.webarchitects.coop/
email: info@webarch.net
twitter: webarchcoop
github: info%40webarch.html
telephone: +44 114 276 9709
address: Webarch Co-operative Limited,Harland Works,68a John Street,Sheffield,United Kingdom,S2 4QU
telephone: "+44 114 276 9709"
address: Webarch Co-operative Limited,Harland Works,68a John Street,Sheffield,United
Kingdom,S2 4QU
latitude: 53.3704644
longitude: -1.4748352999999952
clients:

View File

@ -0,0 +1,12 @@
require 'bundler/setup'
require 'yaml'
root_path = Pathname.new(__dir__).join('..')
Dir[root_path.join('_coops/*.md')].each do |path|
content = File.read(path)
body = content.split("\n").reverse.take_while { |l| l != "---" }.reverse.join("\n")
metadata = YAML.safe_load(content)
frontmatter = YAML.dump(metadata)
File.write(path, frontmatter + "---" + "\n" + body)
end