Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Vélib' #6

Open
wants to merge 2 commits into from

1 participant

@dolmen

Add the SPORE spec for the Vélib' service.
Also fixes Makefile to correctly handle UTF-8 in SPORE specs when generating PNG output.

@dolmen

Bon, c'est un peu mort ici...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 17, 2011
  1. @dolmen

    Fix Unicode in PNG generation

    dolmen authored
  2. @dolmen
This page is out of date. Refresh to see the latest.
Showing with 28 additions and 4 deletions.
  1. +2 −2 apps/Makefile
  2. +4 −2 services/Makefile
  3. +22 −0 services/velib.json
View
4 apps/Makefile
@@ -1,6 +1,6 @@
VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description
-SPORE2DOT := perl ../utils/spore2dot.pl
+SPORE2DOT := perl -CO ../utils/spore2dot.pl
check: spore_validation.rx
@make -C couchdb check
@@ -18,7 +18,7 @@ png: \
@make -C couchdb png
%.png : %.dot
- dot -T png -o $@ $<
+ dot -T png -Gutf8 -o $@ $<
%.dot: %.json
$(SPORE2DOT) $< > $@
View
6 services/Makefile
@@ -1,5 +1,5 @@
VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description
-SPORE2DOT := perl ../utils/spore2dot.pl
+SPORE2DOT := perl -CO ../utils/spore2dot.pl
check: spore_validation.rx
@make -C github check
@@ -18,6 +18,7 @@ check: spore_validation.rx
@$(VALIDATOR) ohloh.json
@$(VALIDATOR) twitter.json
@$(VALIDATOR) intervals.json
+ @$(VALIDATOR) velib.json
test: check
@@ -38,13 +39,14 @@ png: \
ohloh.png \
intervals.png \
indextank.png \
+ velib.png \
twitter.png
@make -C github png
@make -C googlemaps png
@make -C linkedin png
%.png : %.dot
- dot -T png -o $@ $<
+ dot -T png -Gutf8 -o $@ $<
%.dot: %.json
$(SPORE2DOT) $< > $@
View
22 services/velib.json
@@ -0,0 +1,22 @@
+{
+ "name": "Vélib'",
+ "authority": "GITHUB:dolmen",
+ "base_url": "http://www.velib.paris.fr/",
+ "version": "1.0",
+ "methods": {
+ "list": {
+ "path": "/service/carto",
+ "method": "GET",
+ "expected_status": [200]
+ },
+ "details": {
+ "path": "/service/stationdetails/:station",
+ "method": "GET",
+ "required_params": [
+ "station"
+ ],
+ "expected_status": [200]
+ }
+ },
+ "formats": [ "xml" ]
+}
Something went wrong with that request. Please try again.