petfinder 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +38 -28
- data/lib/petfinder/version.rb +1 -1
- data/spec/pet_spec.rb +1 -1
- data/spec/shelter_spec.rb +1 -1
- data/spec/spec_helper.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b28e75a76d5020eee7da565a46a5fed8474fa20e143264d0052dc53964556cd5
|
4
|
+
data.tar.gz: 49cf181c6c288f43fca0fcff463ced1f28e3a830d0b56957fd8a994669df693b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eef74086d9f3ab7e342be2736d08c62559745b465efc01972165036f8fa34f0a8bfddf2ac24dbfae6353361689a07da6e9923a1b9705aab64d5c5793369ce16
|
7
|
+
data.tar.gz: 7b1de5fd3613965e76e3676ca4f013faa3cec4068adf2488ad8aaae8e7a77f21b3b32348f238b8c3666b694c188682ecba611b10414d4978e72248a7667667ea
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,41 +1,48 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
petfinder (1.0.
|
4
|
+
petfinder (1.0.4)
|
5
5
|
excon (~> 0.26)
|
6
6
|
nokogiri (~> 1.6)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
rspec-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
11
|
+
addressable (2.5.2)
|
12
|
+
public_suffix (>= 2.0.2, < 4.0)
|
13
|
+
coderay (1.1.2)
|
14
|
+
crack (0.4.3)
|
15
|
+
safe_yaml (~> 1.0.0)
|
16
|
+
diff-lcs (1.3)
|
17
|
+
excon (0.59.0)
|
18
|
+
hashdiff (0.3.7)
|
19
|
+
method_source (0.9.0)
|
20
|
+
mini_portile2 (2.3.0)
|
21
|
+
nokogiri (1.8.1)
|
22
|
+
mini_portile2 (~> 2.3.0)
|
23
|
+
pry (0.11.2)
|
24
|
+
coderay (~> 1.1.0)
|
25
|
+
method_source (~> 0.9.0)
|
26
|
+
public_suffix (3.0.1)
|
27
|
+
rake (12.2.1)
|
28
|
+
rspec (3.7.0)
|
29
|
+
rspec-core (~> 3.7.0)
|
30
|
+
rspec-expectations (~> 3.7.0)
|
31
|
+
rspec-mocks (~> 3.7.0)
|
32
|
+
rspec-core (3.7.0)
|
33
|
+
rspec-support (~> 3.7.0)
|
34
|
+
rspec-expectations (3.7.0)
|
35
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
+
rspec-support (~> 3.7.0)
|
37
|
+
rspec-mocks (3.7.0)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.7.0)
|
40
|
+
rspec-support (3.7.0)
|
41
|
+
safe_yaml (1.0.4)
|
42
|
+
webmock (3.1.0)
|
43
|
+
addressable (>= 2.3.6)
|
38
44
|
crack (>= 0.3.2)
|
45
|
+
hashdiff
|
39
46
|
|
40
47
|
PLATFORMS
|
41
48
|
ruby
|
@@ -47,3 +54,6 @@ DEPENDENCIES
|
|
47
54
|
rake
|
48
55
|
rspec (>= 2.14)
|
49
56
|
webmock
|
57
|
+
|
58
|
+
BUNDLED WITH
|
59
|
+
1.16.0
|
data/lib/petfinder/version.rb
CHANGED
data/spec/pet_spec.rb
CHANGED
@@ -32,7 +32,7 @@ describe Petfinder::Pet do
|
|
32
32
|
|
33
33
|
it "should populate multiple pet objects" do
|
34
34
|
pets = Petfinder::Pet.multiple(Nokogiri::XML(fixture_file('pet_list.xml')))
|
35
|
-
pets.should
|
35
|
+
pets.count.should eq(25)
|
36
36
|
end
|
37
37
|
|
38
38
|
it "should return a friendly inspect" do
|
data/spec/shelter_spec.rb
CHANGED
@@ -13,7 +13,7 @@ describe Petfinder::Pet do
|
|
13
13
|
|
14
14
|
it "should populate multiple shelter objects" do
|
15
15
|
shelters = Petfinder::Shelter.multiple(Nokogiri::XML(fixture_file('shelter_list.xml')))
|
16
|
-
shelters.should
|
16
|
+
shelters.count.should eq(25)
|
17
17
|
end
|
18
18
|
|
19
19
|
it "should return a friendly inspect" do
|
data/spec/spec_helper.rb
CHANGED
@@ -2,6 +2,12 @@ require 'petfinder'
|
|
2
2
|
require 'rspec'
|
3
3
|
require 'webmock/rspec'
|
4
4
|
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.expect_with :rspec do |expectations|
|
7
|
+
expectations.syntax = :should
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
5
11
|
def fixture_file(filename)
|
6
12
|
File.read(File.dirname(__FILE__) + "/fixtures/#{filename}")
|
7
13
|
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: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hutzelman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.7.2
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Ruby gem wrapper for the Petfinder API.
|