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:
parent
628d515799
commit
8780eca301
@ -6,8 +6,9 @@ website: http://agile.coop/
|
|||||||
email: info@agile.coop
|
email: info@agile.coop
|
||||||
twitter: AgileCollective
|
twitter: AgileCollective
|
||||||
github: agilecollective
|
github: agilecollective
|
||||||
telephone: 01865 403 120
|
telephone: '01865 403 120'
|
||||||
address: Room 301,The Old Music Hall,106-108 Cowley Road,Oxford,United Kingdom,OX4 1JE
|
address: Room 301,The Old Music Hall,106-108 Cowley Road,Oxford,United Kingdom,OX4
|
||||||
|
1JE
|
||||||
latitude: 51.7483161
|
latitude: 51.7483161
|
||||||
longitude: -1.2390645000000404
|
longitude: -1.2390645000000404
|
||||||
clients:
|
clients:
|
||||||
|
@ -6,7 +6,7 @@ website: http://alpha.coop/
|
|||||||
email: info@alpha.coop
|
email: info@alpha.coop
|
||||||
twitter: alpha.coop
|
twitter: alpha.coop
|
||||||
github: AlphaCo_op
|
github: AlphaCo_op
|
||||||
telephone: +441912111938
|
telephone: '+441912111938'
|
||||||
address: 6 Charlotte Square,Newcastle upon Tyne,United Kingdom,NE1 4XF
|
address: 6 Charlotte Square,Newcastle upon Tyne,United Kingdom,NE1 4XF
|
||||||
latitude: 54.97101
|
latitude: 54.97101
|
||||||
longitude: -1.61974
|
longitude: -1.61974
|
||||||
|
@ -6,7 +6,7 @@ website: http://aptivate.org/
|
|||||||
email: outreach@aptivate.org
|
email: outreach@aptivate.org
|
||||||
twitter: aptivateuk
|
twitter: aptivateuk
|
||||||
github: aptivate
|
github: aptivate
|
||||||
telephone: +44 (0)1223 967838
|
telephone: "+44 (0)1223 967838"
|
||||||
address: 25 Signet Court, Swann's Road, Cambridge,United Kingdom,CB5 8LA
|
address: 25 Signet Court, Swann's Road, Cambridge,United Kingdom,CB5 8LA
|
||||||
latitude: 52.21427610000001
|
latitude: 52.21427610000001
|
||||||
longitude: 0.15076890000000276
|
longitude: 0.15076890000000276
|
||||||
|
@ -6,7 +6,7 @@ website: https://blake.house/
|
|||||||
email: hello@blake.house
|
email: hello@blake.house
|
||||||
twitter: blake_house
|
twitter: blake_house
|
||||||
github: hello%40blake.html
|
github: hello%40blake.html
|
||||||
telephone: +447779 404510
|
telephone: "+447779 404510"
|
||||||
address: Unit 1H Clapham North Arts Centre,26-32 Voltaire Rd,London,SW4 6DH
|
address: Unit 1H Clapham North Arts Centre,26-32 Voltaire Rd,London,SW4 6DH
|
||||||
latitude: 51.46268029999999
|
latitude: 51.46268029999999
|
||||||
longitude: -0.14825569999993604
|
longitude: -0.14825569999993604
|
||||||
|
@ -6,7 +6,7 @@ website: http://www.calverts.coop/
|
|||||||
email: info@calverts.coop
|
email: info@calverts.coop
|
||||||
twitter: calverts_print_london
|
twitter: calverts_print_london
|
||||||
github: calverts
|
github: calverts
|
||||||
telephone: +44 (0) 20 7739 1474
|
telephone: "+44 (0) 20 7739 1474"
|
||||||
address: 9-10 The Oval,London,UK,E2 9DT
|
address: 9-10 The Oval,London,UK,E2 9DT
|
||||||
latitude: 51.53326029999999
|
latitude: 51.53326029999999
|
||||||
longitude: -0.05884240000000318
|
longitude: -0.05884240000000318
|
||||||
|
@ -7,7 +7,8 @@ email: info@broadband.coop
|
|||||||
twitter: cbn_team
|
twitter: cbn_team
|
||||||
github:
|
github:
|
||||||
telephone: 0161 283 2675
|
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
|
latitude: 53.4067704
|
||||||
longitude: -2.202668899999935
|
longitude: -2.202668899999935
|
||||||
clients:
|
clients:
|
||||||
|
@ -6,7 +6,7 @@ website: http://www.cetis.org.uk/
|
|||||||
email: info@cetis.org.uk
|
email: info@cetis.org.uk
|
||||||
twitter: cetisllp
|
twitter: cetisllp
|
||||||
github:
|
github:
|
||||||
telephone: 07366025747
|
telephone: '07366025747'
|
||||||
address: Halton Mill,Mill Lane,Halton,Lancaster,England,LA2 6ND
|
address: Halton Mill,Mill Lane,Halton,Lancaster,England,LA2 6ND
|
||||||
latitude: 54.075809445607604
|
latitude: 54.075809445607604
|
||||||
longitude: -2.7540137502212474
|
longitude: -2.7540137502212474
|
||||||
|
@ -7,7 +7,8 @@ email: info@chapelstreetstudio.coop
|
|||||||
twitter: chapelststudio
|
twitter: chapelststudio
|
||||||
github:
|
github:
|
||||||
telephone: 07743 426 846 (Martyn Johnston | Secretary)
|
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
|
latitude: 53.795903
|
||||||
longitude: -1.7554270000000542
|
longitude: -1.7554270000000542
|
||||||
clients:
|
clients:
|
||||||
|
@ -6,7 +6,7 @@ website: https://www.dev.ngo/
|
|||||||
email: studio@dev.ngo
|
email: studio@dev.ngo
|
||||||
twitter: devsociety_
|
twitter: devsociety_
|
||||||
github:
|
github:
|
||||||
telephone: +44 333 344 7800
|
telephone: "+44 333 344 7800"
|
||||||
address: 191 Fazeley Street,Digbeth,Birmingham, ,B5 5SE
|
address: 191 Fazeley Street,Digbeth,Birmingham, ,B5 5SE
|
||||||
latitude: 52.47784126596389
|
latitude: 52.47784126596389
|
||||||
longitude: -1.881633996963501
|
longitude: -1.881633996963501
|
||||||
|
@ -6,7 +6,7 @@ website: https://digital-liberties.coop
|
|||||||
email:
|
email:
|
||||||
twitter:
|
twitter:
|
||||||
github:
|
github:
|
||||||
telephone: 07908 592 835
|
telephone: '07908 592 835'
|
||||||
address: 44 Arkwright Road,London,NW3 6BH
|
address: 44 Arkwright Road,London,NW3 6BH
|
||||||
latitude:
|
latitude:
|
||||||
longitude:
|
longitude:
|
||||||
|
@ -6,7 +6,7 @@ website: https://dtc-innovation.org/
|
|||||||
email: contact@dtc-innovation.org
|
email: contact@dtc-innovation.org
|
||||||
twitter: dtc-innovation
|
twitter: dtc-innovation
|
||||||
github:
|
github:
|
||||||
telephone: +447455921569
|
telephone: 447455921569
|
||||||
address: London,United Kingdom
|
address: London,United Kingdom
|
||||||
latitude:
|
latitude:
|
||||||
longitude:
|
longitude:
|
||||||
|
@ -6,7 +6,7 @@ website: https://fairmondo.uk/
|
|||||||
email: admin@fairmondo.uk
|
email: admin@fairmondo.uk
|
||||||
twitter: Fairmondouk
|
twitter: Fairmondouk
|
||||||
github: Fairmondouk
|
github: Fairmondouk
|
||||||
telephone: 07578708442
|
telephone: '07578708442'
|
||||||
address: AES Orchard, Sunderland Street, Worth Way,Keighley,United Kingdom,BD21 5LE
|
address: AES Orchard, Sunderland Street, Worth Way,Keighley,United Kingdom,BD21 5LE
|
||||||
latitude: 53.8612875
|
latitude: 53.8612875
|
||||||
longitude: -1.91083900000001
|
longitude: -1.91083900000001
|
||||||
|
@ -6,7 +6,7 @@ website: http://gildedsplinters.coop/
|
|||||||
email: andrew@gildedsplinters.coop
|
email: andrew@gildedsplinters.coop
|
||||||
twitter: index.html
|
twitter: index.html
|
||||||
github:
|
github:
|
||||||
telephone: +44 7793650013
|
telephone: "+44 7793650013"
|
||||||
address: Virtual
|
address: Virtual
|
||||||
latitude:
|
latitude:
|
||||||
longitude:
|
longitude:
|
||||||
|
@ -32,4 +32,3 @@ technologies:
|
|||||||
- photoshop
|
- photoshop
|
||||||
- wordpress
|
- wordpress
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ website: https://graphics.coop/
|
|||||||
email: info@graphics.coop
|
email: info@graphics.coop
|
||||||
twitter: graphicscoop
|
twitter: graphicscoop
|
||||||
github:
|
github:
|
||||||
telephone: 01315249779
|
telephone: '01315249779'
|
||||||
address: 32 Annandale Street Lane,Edinburgh,Scotland,EH7 4LS
|
address: 32 Annandale Street Lane,Edinburgh,Scotland,EH7 4LS
|
||||||
latitude: 55.9607296
|
latitude: 55.9607296
|
||||||
longitude: -3.182652400000052
|
longitude: -3.182652400000052
|
||||||
|
@ -6,7 +6,7 @@ website: http://mc3.coop
|
|||||||
email: contact@mc3.coop
|
email: contact@mc3.coop
|
||||||
twitter:
|
twitter:
|
||||||
github:
|
github:
|
||||||
telephone: +44 1484 846231
|
telephone: "+44 1484 846231"
|
||||||
address: Huddersfield
|
address: Huddersfield
|
||||||
latitude:
|
latitude:
|
||||||
longitude:
|
longitude:
|
||||||
|
@ -6,7 +6,7 @@ website: https://netuxo.coop
|
|||||||
email: office@netuxo.coop
|
email: office@netuxo.coop
|
||||||
twitter: netuxoltd
|
twitter: netuxoltd
|
||||||
github:
|
github:
|
||||||
telephone: 02089856843
|
telephone: '02089856843'
|
||||||
address: CAN Mezzanine,49-51 East Road,London,United Kingdom,N1 6AH
|
address: CAN Mezzanine,49-51 East Road,London,United Kingdom,N1 6AH
|
||||||
latitude: 51.5284201
|
latitude: 51.5284201
|
||||||
longitude: -0.08787919999997484
|
longitude: -0.08787919999997484
|
||||||
|
@ -6,7 +6,7 @@ website: http://www.opendataservices.coop
|
|||||||
email: contact@opendataservices.coop
|
email: contact@opendataservices.coop
|
||||||
twitter: opendatacoop
|
twitter: opendatacoop
|
||||||
github:
|
github:
|
||||||
telephone: + 44 (0)161 298 1213
|
telephone: "+ 44 (0)161 298 1213"
|
||||||
address: Remote working team, across the UK,United Kingdom
|
address: Remote working team, across the UK,United Kingdom
|
||||||
latitude: 52.47695163340273
|
latitude: 52.47695163340273
|
||||||
longitude: -1.8878889083862305
|
longitude: -1.8878889083862305
|
||||||
|
@ -6,7 +6,7 @@ website: http://open-ecommerce.org/
|
|||||||
email: info@open-ecommerce.org
|
email: info@open-ecommerce.org
|
||||||
twitter: timeline
|
twitter: timeline
|
||||||
github: open-ecommerce
|
github: open-ecommerce
|
||||||
telephone: +44 020 3731 9073
|
telephone: "+44 020 3731 9073"
|
||||||
address: Unit 23A Iliffe Yard,,London,UK,SE17 3QD
|
address: Unit 23A Iliffe Yard,,London,UK,SE17 3QD
|
||||||
latitude: 51.48941875721223
|
latitude: 51.48941875721223
|
||||||
longitude: -0.10058949123231287
|
longitude: -0.10058949123231287
|
||||||
|
@ -6,7 +6,7 @@ website: http://www.outlandish.com
|
|||||||
email: hello@outlandish.com
|
email: hello@outlandish.com
|
||||||
twitter: outlandish
|
twitter: outlandish
|
||||||
github: outlandishideas
|
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
|
address: 3rd Floor,149 Fonthill Road,Finsbury Park,London,United Kingdom,N4 3HF
|
||||||
latitude: 51.56372160000001
|
latitude: 51.56372160000001
|
||||||
longitude: -0.1077572000000373
|
longitude: -0.1077572000000373
|
||||||
|
@ -6,7 +6,7 @@ website: http://www.thedotproject.co/
|
|||||||
email: annie@thedotproject.co
|
email: annie@thedotproject.co
|
||||||
twitter: dotprojectco
|
twitter: dotprojectco
|
||||||
github: techforgoodbath
|
github: techforgoodbath
|
||||||
telephone: 07496276003
|
telephone: '07496276003'
|
||||||
address: Bath,United Kingdom,BA1
|
address: Bath,United Kingdom,BA1
|
||||||
latitude: 51.375801
|
latitude: 51.375801
|
||||||
longitude: -2.359903900000063
|
longitude: -2.359903900000063
|
||||||
|
@ -6,7 +6,7 @@ website: https://wave.coop/
|
|||||||
email: info@wave.coop
|
email: info@wave.coop
|
||||||
twitter: wavedesigncoop
|
twitter: wavedesigncoop
|
||||||
github: wavedesign
|
github: wavedesign
|
||||||
telephone: 01424235000
|
telephone: '01424235000'
|
||||||
address: Rock House,49 - 51 Cambridge Road,Hastings,United Kingdom,TN34 1DT
|
address: Rock House,49 - 51 Cambridge Road,Hastings,United Kingdom,TN34 1DT
|
||||||
latitude: 50.86501959934043
|
latitude: 50.86501959934043
|
||||||
longitude: 0.5873715877532959
|
longitude: 0.5873715877532959
|
||||||
|
@ -6,8 +6,9 @@ website: https://www.webarchitects.coop/
|
|||||||
email: info@webarch.net
|
email: info@webarch.net
|
||||||
twitter: webarchcoop
|
twitter: webarchcoop
|
||||||
github: info%40webarch.html
|
github: info%40webarch.html
|
||||||
telephone: +44 114 276 9709
|
telephone: "+44 114 276 9709"
|
||||||
address: Webarch Co-operative Limited,Harland Works,68a John Street,Sheffield,United Kingdom,S2 4QU
|
address: Webarch Co-operative Limited,Harland Works,68a John Street,Sheffield,United
|
||||||
|
Kingdom,S2 4QU
|
||||||
latitude: 53.3704644
|
latitude: 53.3704644
|
||||||
longitude: -1.4748352999999952
|
longitude: -1.4748352999999952
|
||||||
clients:
|
clients:
|
||||||
|
12
scripts/normalize_coops_frontmatter.rb
Normal file
12
scripts/normalize_coops_frontmatter.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user