petfinder 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4a9842b812f2dfe0d78832d1911c77bbb96a13575c2a539ac71f9bddab55a0f
4
- data.tar.gz: f3fa81db5471239ec8b2256f9aee94e054bfadfbe2297acc40e848f27f498f19
3
+ metadata.gz: 194b9424594d700859ccb94d133b7a594be01dba5b6aa07649b92c909a0b81a7
4
+ data.tar.gz: 2d0afad0a028a584d09c25ff5ef3707e9f4f02333507330eba9db0d4e99ec1c1
5
5
  SHA512:
6
- metadata.gz: 614b1d2afb98c21d3e7917abafeb944e336b13a0c1187d08f33ca539f15dfb74a769947844939f6867eb1bd5ab879ddec37c8a7c6e469f6c2b7ddf02f33af304
7
- data.tar.gz: 940f4c7da2924f0e39a41ce8c5c573c2a80fa6073bb4e15782b0b890814632c11d35dcbca7ce4c95e3dce51b742a0f1da58303eee443d8e3757da8af4dca864e
6
+ metadata.gz: 96cea717773b8116e6d2b76aa35ef97ad8c3fb3231ceaf4ee0ccc997492bba357a71a08a8d0cd108331f937cd9e83647532f48ba51595303e734627f78be4488
7
+ data.tar.gz: 3be76b22eac55fb37c536eaf8a720d0d4c77c3be947272ed9386127c36e7dc234488f747a0d818667f3e96accdfa21837c257fc4020df17f6cd12c7938d0134a
@@ -1,10 +1,14 @@
1
+ 2.0.1
2
+ -----
3
+ * Update gem dependencies to latest versions
4
+
1
5
  2.0.0
2
6
  -----
3
7
  * Rewrite for new petfinder API v2.0 which uses JSON and oauth2
4
8
 
5
9
  1.0.4
6
10
  -----
7
- * Update gem dependencies to latest versions
11
+
8
12
 
9
13
  1.0.3
10
14
  -----
@@ -12,39 +12,39 @@ GEM
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  crack (0.4.3)
14
14
  safe_yaml (~> 1.0.0)
15
- diff-lcs (1.3)
16
- faraday (1.0.0)
15
+ diff-lcs (1.4.4)
16
+ faraday (1.0.1)
17
17
  multipart-post (>= 1.2, < 3)
18
- hashdiff (1.0.0)
19
- hashie (4.0.0)
18
+ hashdiff (1.0.1)
19
+ hashie (4.1.0)
20
20
  jwt (2.2.1)
21
- multi_json (1.14.1)
21
+ multi_json (1.15.0)
22
22
  multi_xml (0.6.0)
23
23
  multipart-post (2.1.1)
24
- oauth2 (1.4.2)
24
+ oauth2 (1.4.4)
25
25
  faraday (>= 0.8, < 2.0)
26
26
  jwt (>= 1.0, < 3.0)
27
27
  multi_json (~> 1.3)
28
28
  multi_xml (~> 0.5)
29
29
  rack (>= 1.2, < 3)
30
- public_suffix (4.0.2)
31
- rack (2.0.8)
30
+ public_suffix (4.0.5)
31
+ rack (2.2.3)
32
32
  rake (12.3.3)
33
33
  rspec (3.9.0)
34
34
  rspec-core (~> 3.9.0)
35
35
  rspec-expectations (~> 3.9.0)
36
36
  rspec-mocks (~> 3.9.0)
37
- rspec-core (3.9.1)
38
- rspec-support (~> 3.9.1)
39
- rspec-expectations (3.9.0)
37
+ rspec-core (3.9.2)
38
+ rspec-support (~> 3.9.3)
39
+ rspec-expectations (3.9.2)
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
41
  rspec-support (~> 3.9.0)
42
42
  rspec-mocks (3.9.1)
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
44
  rspec-support (~> 3.9.0)
45
- rspec-support (3.9.2)
45
+ rspec-support (3.9.3)
46
46
  safe_yaml (1.0.5)
47
- webmock (3.7.6)
47
+ webmock (3.8.3)
48
48
  addressable (>= 2.3.6)
49
49
  crack (>= 0.3.2)
50
50
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -59,4 +59,4 @@ DEPENDENCIES
59
59
  webmock
60
60
 
61
61
  BUNDLED WITH
62
- 2.1.2
62
+ 2.1.4
data/README.md CHANGED
@@ -62,9 +62,9 @@ animals.first.photos.first.full
62
62
  animals.first.organization_id
63
63
  # => "CA2350"
64
64
 
65
- animals.pagination.count_per_page
65
+ pagination.count_per_page
66
66
  # => "20"
67
- animals.pagination.total_pages
67
+ pagination.total_pages
68
68
  # => "8853"
69
69
  ```
70
70
 
@@ -78,11 +78,11 @@ organizations, pagination = petfinder.organizations({ location: '90210', limit:
78
78
  organizations.first.name
79
79
  # => "STAR Eco Station"
80
80
 
81
- organizations.pagination.count_per_page
81
+ pagination.count_per_page
82
82
  # => "5"
83
- organizations.pagination.total_count
83
+ pagination.total_count
84
84
  # => "265"
85
- organizations.pagination.total_pages
85
+ pagination.total_pages
86
86
  # => "53"
87
87
  ```
88
88
 
@@ -11,7 +11,6 @@ module Petfinder
11
11
  end
12
12
 
13
13
  def animal(id)
14
- request("animals/#{id}")
15
14
  Mash.new(request("animals/#{id}")['animal'])
16
15
  end
17
16
 
@@ -1,3 +1,3 @@
1
1
  module Petfinder
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: petfinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hutzelman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-04 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2