dcentralized 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ rvm:
2
+ - 1.9.3
3
+ script: rspec spec
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/nicka/dcentralized.png?branch=develop)](https://travis-ci.org/nicka/dcentralized)
2
+
1
3
  # Dcentralized
2
4
 
3
5
  API wrapper for Pro6PP zipcode database(d-centralize.nl).
data/lib/dcentralized.rb CHANGED
@@ -27,7 +27,7 @@ module Dcentralized
27
27
  def self.format_zipcode(zipcode = nil)
28
28
  if zipcode.nil? || zipcode == ""
29
29
  raise Exception.new("No zipcode provided")
30
- elsif (zipcode =~ /^[1-9]{4}$|[1-9]{4}[\ ]{1}[a-zA-Z]{2}$|[1-9]{4}[a-zA-Z]{2}$/).nil?
30
+ elsif (zipcode =~ /^[0-9]{4}$|[0-9]{4}[\ ]{1}[a-zA-Z]{2}$|[0-9]{4}[a-zA-Z]{2}$/).nil?
31
31
  raise Exception.new("Wrong zipcode format (1234AB format expected)")
32
32
  else
33
33
  zipcode.gsub(" ", "").upcase
@@ -1,3 +1,3 @@
1
1
  module Dcentralized
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ&format=xml&nl_sixpp=2564AZ&pretty=True
5
+ uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=tflVGfhmU1IGzlsw&format=xml&nl_sixpp=2564AZ&pretty=True
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -25,9 +25,11 @@ http_interactions:
25
25
  Vary:
26
26
  - Accept-Encoding
27
27
  Date:
28
- - Wed, 17 Apr 2013 19:21:03 GMT
28
+ - Fri, 13 Sep 2013 15:02:48 GMT
29
29
  Server:
30
30
  - Google Frontend
31
+ Alternate-Protocol:
32
+ - 80:quic,80:quic
31
33
  Transfer-Encoding:
32
34
  - chunked
33
35
  body:
@@ -39,10 +41,10 @@ http_interactions:
39
41
  \ <lat>52.06751</lat>\n <lng>4.24733</lng>\n <areacode>070</areacode>\n
40
42
  \ </result>\n </results>\n</response>\n"
41
43
  http_version:
42
- recorded_at: Wed, 17 Apr 2013 19:21:03 GMT
44
+ recorded_at: Fri, 13 Sep 2013 15:02:48 GMT
43
45
  - request:
44
46
  method: get
45
- uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ&format=xml&nl_sixpp=2564AZ&pretty=True
47
+ uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=tflVGfhmU1IGzlsw&format=xml&nl_sixpp=2564AZ&pretty=True
46
48
  body:
47
49
  encoding: US-ASCII
48
50
  string: ''
@@ -65,9 +67,11 @@ http_interactions:
65
67
  Vary:
66
68
  - Accept-Encoding
67
69
  Date:
68
- - Wed, 17 Apr 2013 19:21:04 GMT
70
+ - Fri, 13 Sep 2013 15:02:48 GMT
69
71
  Server:
70
72
  - Google Frontend
73
+ Alternate-Protocol:
74
+ - 80:quic,80:quic
71
75
  Transfer-Encoding:
72
76
  - chunked
73
77
  body:
@@ -79,5 +83,5 @@ http_interactions:
79
83
  \ <lat>52.06751</lat>\n <lng>4.24733</lng>\n <areacode>070</areacode>\n
80
84
  \ </result>\n </results>\n</response>\n"
81
85
  http_version:
82
- recorded_at: Wed, 17 Apr 2013 19:21:04 GMT
86
+ recorded_at: Fri, 13 Sep 2013 15:02:49 GMT
83
87
  recorded_with: VCR 2.4.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ&format=xml&nl_fourpp=2564&pretty=True
5
+ uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=tflVGfhmU1IGzlsw&format=xml&nl_fourpp=2564&pretty=True
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -25,9 +25,11 @@ http_interactions:
25
25
  Vary:
26
26
  - Accept-Encoding
27
27
  Date:
28
- - Wed, 17 Apr 2013 19:21:04 GMT
28
+ - Fri, 13 Sep 2013 15:02:49 GMT
29
29
  Server:
30
30
  - Google Frontend
31
+ Alternate-Protocol:
32
+ - 80:quic,80:quic
31
33
  Transfer-Encoding:
32
34
  - chunked
33
35
  body:
@@ -38,10 +40,10 @@ http_interactions:
38
40
  \ <areacode>070</areacode>\n <lat>52.068</lat>\n <lng>4.25724</lng>\n
39
41
  \ </result>\n </results>\n</response>\n"
40
42
  http_version:
41
- recorded_at: Wed, 17 Apr 2013 19:21:04 GMT
43
+ recorded_at: Fri, 13 Sep 2013 15:02:49 GMT
42
44
  - request:
43
45
  method: get
44
- uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ&format=xml&nl_fourpp=2564&pretty=True
46
+ uri: http://api.pro6pp.nl/v1/autocomplete?auth_key=tflVGfhmU1IGzlsw&format=xml&nl_fourpp=2564&pretty=True
45
47
  body:
46
48
  encoding: US-ASCII
47
49
  string: ''
@@ -64,9 +66,11 @@ http_interactions:
64
66
  Vary:
65
67
  - Accept-Encoding
66
68
  Date:
67
- - Wed, 17 Apr 2013 19:21:04 GMT
69
+ - Fri, 13 Sep 2013 15:02:49 GMT
68
70
  Server:
69
71
  - Google Frontend
72
+ Alternate-Protocol:
73
+ - 80:quic,80:quic
70
74
  Transfer-Encoding:
71
75
  - chunked
72
76
  body:
@@ -77,5 +81,5 @@ http_interactions:
77
81
  \ <areacode>070</areacode>\n <lat>52.068</lat>\n <lng>4.25724</lng>\n
78
82
  \ </result>\n </results>\n</response>\n"
79
83
  http_version:
80
- recorded_at: Wed, 17 Apr 2013 19:21:04 GMT
84
+ recorded_at: Fri, 13 Sep 2013 15:02:49 GMT
81
85
  recorded_with: VCR 2.4.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcentralized
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-25 00:00:00.000000000 Z
12
+ date: 2013-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -147,6 +147,7 @@ extensions: []
147
147
  extra_rdoc_files: []
148
148
  files:
149
149
  - .gitignore
150
+ - .travis.yml
150
151
  - Gemfile
151
152
  - LICENSE.txt
152
153
  - README.md
@@ -170,18 +171,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
171
  - - ! '>='
171
172
  - !ruby/object:Gem::Version
172
173
  version: '0'
173
- segments:
174
- - 0
175
- hash: -1491342071412150727
176
174
  required_rubygems_version: !ruby/object:Gem::Requirement
177
175
  none: false
178
176
  requirements:
179
177
  - - ! '>='
180
178
  - !ruby/object:Gem::Version
181
179
  version: '0'
182
- segments:
183
- - 0
184
- hash: -1491342071412150727
185
180
  requirements: []
186
181
  rubyforge_project:
187
182
  rubygems_version: 1.8.25