phl-opa 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 302a66b3a6f0431602db8a3c835f641205173952
4
- data.tar.gz: db7ee91c1eab40d715cc8fa224d26ce8a26c6eca
3
+ metadata.gz: 866e25a874205e076282bedc07bc151ee18cdf2b
4
+ data.tar.gz: 5ecb3c3f910fa9f2b8ad68c1218f688835a8eb0a
5
5
  SHA512:
6
- metadata.gz: d4241aad37b90711fbecc1360bcf3cacb02ed370c82aa9bdd139a7f50b675008b3eed6c3ba82dc34e1bdb16bd13c50a7c6ed6c33dfae2aa5b5daf9dfecc9ed67
7
- data.tar.gz: 54a207d6ac96f3364a4c7f56060ff25ea05b12db45eb2db489395760ea7fd31b3993675056fe95495f37ba29e182bb795b8f366a134ce86e9518306b68c10c65
6
+ metadata.gz: 34d99021761fdb7e80b6ab0a26ad4240675b4fe24b19458ff621ef62b1053e3ca51621eb9201bd5455937b8c02faab671dd389c9818017f91a3266c652207a52
7
+ data.tar.gz: c0e326f94f4ba6558a65c248b7e47b15ac80291bebcf8df57c98a8d126af60cbb11ea2ea1ebf8ebe6abf2d8a8ca35907629a3eeb54f0506db3d95d926be6bf88
@@ -4,7 +4,7 @@ require "net/http"
4
4
 
5
5
  module PHLopa
6
6
 
7
- API_BASE = "http://api.phila.gov/opa/v1.0/"
7
+ API_BASE = "http://api.phila.gov/opa/v1.1/"
8
8
  DEFAULT_QUERY_STRING = "?format=json"
9
9
 
10
10
  class << self
@@ -1,3 +1,3 @@
1
1
  module PHLopa
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -4,7 +4,7 @@ describe PHLopa do
4
4
 
5
5
  describe "#get_by_account" do
6
6
  it "returns the property details for the OPA account that is passed" do
7
- PHLopa.get_by_account('883309000')['data']['property']['full_address'] = '1234 MARKET ST'
7
+ PHLopa.get_by_account('883309000')['data']['property']['full_address'] == '1234 MARKET ST'
8
8
  end
9
9
 
10
10
  it "raises an error if the account argument is not a string" do
@@ -25,7 +25,7 @@ describe PHLopa do
25
25
 
26
26
  describe "#search_by_address" do
27
27
  it "returns the property details for the adress that is passed" do
28
- PHLopa.search_by_address('1234 Market St')['data']['properties'][0]['account_number'] = '883309000'
28
+ PHLopa.search_by_address('1234 Market St')['data']['properties'][0]['account_number'] == '883309000'
29
29
  end
30
30
 
31
31
  it "raises an error if the address argument is not a string" do
@@ -36,7 +36,7 @@ describe PHLopa do
36
36
 
37
37
  describe "#search_by_block" do
38
38
  it "returns the property details for all the properties on the searched block" do
39
- PHLopa.search_by_block('1200 Market St')['total'] = 3
39
+ PHLopa.search_by_block('1200 Market St')['total'] == 3
40
40
  end
41
41
 
42
42
  it "raises an error if the address argument is not a string" do
@@ -47,7 +47,7 @@ describe PHLopa do
47
47
 
48
48
  describe "#search_by_intersection" do
49
49
  it "returns the property details for all the properties near the provided intersection" do
50
- PHLopa.search_by_intersection('12th', 'Market')['total'] = 5
50
+ PHLopa.search_by_intersection('12th', 'Market')['total'] == 5
51
51
  end
52
52
 
53
53
  it "raises an error if the address argument is not a string" do
@@ -63,11 +63,11 @@ describe PHLopa do
63
63
 
64
64
  describe "#search_nearby" do
65
65
  it "returns the property details for all the properties near the provided point and within the provided radius" do
66
- PHLopa.search_nearby(39.95166, -75.16097, 400)['total'] = 25
66
+ PHLopa.search_nearby(39.95166, -75.16097, 400)['total'] == 25
67
67
  end
68
68
 
69
69
  it "does not require that the user sets the radius argument" do
70
- PHLopa.search_nearby(39.95166, -75.16097)['total'] = 4
70
+ PHLopa.search_nearby(39.95166, -75.16097)['total'] == 4
71
71
  end
72
72
 
73
73
  it "raises an error if the radius argument is not a positive number" do
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phl-opa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Casey Thomas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-18 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.3'
41
41
  description: A thin wrapper for the Philadelphia Office of Property Assessment API
@@ -45,8 +45,8 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
49
- - ".travis.yml"
48
+ - .gitignore
49
+ - .travis.yml
50
50
  - Gemfile
51
51
  - LICENSE.txt
52
52
  - README.md
@@ -67,17 +67,17 @@ require_paths:
67
67
  - lib
68
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ">="
70
+ - - '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.2.0
80
+ rubygems_version: 2.0.14.1
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Get information about properties in Philadelphia