tripod 0.10.11 → 0.10.12
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 +4 -4
- data/lib/tripod/resource.rb +1 -1
- data/lib/tripod/version.rb +1 -1
- data/spec/tripod/resource_spec.rb +41 -0
- data/tripod.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9566499135930792bfe25a0ff05af6a4cf8f2dc2
|
|
4
|
+
data.tar.gz: 3f8f7e3ab314f6d0dcc3ea2fdd914e2f0f05de2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25efd029784318c71f547eecfcce2217a1223a74fa42e8ae2f2d45aa17c817e58314d78df7a6de9221bf1dc138b132e300f1372137a2f8d49f91def0278b8ca8
|
|
7
|
+
data.tar.gz: 160760d6ac66d06f41de25de2836fb47ace3405881ca0e32a9b70bc01295f235aa6d7dbb0f1ac060b67b02c55fbbcacc396ceb54cc13183374e43b38cd87172a
|
data/lib/tripod/resource.rb
CHANGED
data/lib/tripod/version.rb
CHANGED
|
@@ -52,4 +52,45 @@ describe Tripod::Resource do
|
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
|
+
|
|
56
|
+
describe "#<=>" do
|
|
57
|
+
|
|
58
|
+
let(:person) do
|
|
59
|
+
Person.new('http://example.com/foobar', :graph_uri => 'http://example.com/foobar/graph')
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
let(:person_two) do
|
|
63
|
+
Person.new('http://example.com/foobay', :graph_uri => 'http://example.com/foobar/graph')
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
let(:person_three) do
|
|
67
|
+
Person.new('http://example.com/foobaz', :graph_uri => 'http://example.com/foobar/graph')
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
it "should sort the resources" do
|
|
71
|
+
[person_two, person_three, person].sort { |a,b| a <=> b }.should eq [person, person_two, person_three]
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe "#==" do
|
|
77
|
+
|
|
78
|
+
let(:person) do
|
|
79
|
+
Person.new('http://example.com/foobar', :graph_uri => 'http://example.com/foobar/graph')
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
let(:person_two) do
|
|
83
|
+
Person.new('http://example.com/foobay', :graph_uri => 'http://example.com/foobar/graph')
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
it "correctly identifies the same resource" do
|
|
87
|
+
(person == person).should be true
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
it "identifies two instances of the same class" do
|
|
91
|
+
person.class.name.should == person_two.class.name
|
|
92
|
+
(person == person_two).should be false
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
end
|
|
55
96
|
end
|
data/tripod.gemspec
CHANGED
|
@@ -19,8 +19,8 @@ Gem::Specification.new do |gem|
|
|
|
19
19
|
gem.rubyforge_project = "tripod"
|
|
20
20
|
|
|
21
21
|
gem.add_dependency "rest-client"
|
|
22
|
-
gem.add_dependency "activemodel", ">= 3.2", "< 4.
|
|
23
|
-
gem.add_dependency "activesupport", ">= 3.2", "< 4.
|
|
22
|
+
gem.add_dependency "activemodel", ">= 3.2", "< 4.3.0"
|
|
23
|
+
gem.add_dependency "activesupport", ">= 3.2", "< 4.3.0"
|
|
24
24
|
gem.add_dependency "equivalent-xml"
|
|
25
25
|
gem.add_dependency "rdf", "~> 1.1"
|
|
26
26
|
gem.add_dependency "rdf-rdfxml"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tripod
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ric Roberts
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-
|
|
13
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rest-client
|
|
@@ -35,7 +35,7 @@ dependencies:
|
|
|
35
35
|
version: '3.2'
|
|
36
36
|
- - "<"
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 4.
|
|
38
|
+
version: 4.3.0
|
|
39
39
|
type: :runtime
|
|
40
40
|
prerelease: false
|
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -45,7 +45,7 @@ dependencies:
|
|
|
45
45
|
version: '3.2'
|
|
46
46
|
- - "<"
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: 4.
|
|
48
|
+
version: 4.3.0
|
|
49
49
|
- !ruby/object:Gem::Dependency
|
|
50
50
|
name: activesupport
|
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -55,7 +55,7 @@ dependencies:
|
|
|
55
55
|
version: '3.2'
|
|
56
56
|
- - "<"
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: 4.
|
|
58
|
+
version: 4.3.0
|
|
59
59
|
type: :runtime
|
|
60
60
|
prerelease: false
|
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -65,7 +65,7 @@ dependencies:
|
|
|
65
65
|
version: '3.2'
|
|
66
66
|
- - "<"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 4.
|
|
68
|
+
version: 4.3.0
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: equivalent-xml
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|