harpy 0.1.14 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile.lock
4
3
  pkg/*
5
4
  *.rbc
@@ -5,5 +5,6 @@ rvm:
5
5
  - ree
6
6
  - 1.9.2
7
7
  - ruby-head
8
+ - jruby
8
9
  notifications:
9
10
  disabled: true
@@ -0,0 +1,55 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ harpy (0.2.0)
5
+ activemodel (>= 3.1.0)
6
+ activesupport (>= 3.1.0)
7
+ hash-deep-merge (~> 0.1.1)
8
+ typhoeus (~> 0.2.4)
9
+ yajl-ruby (~> 0.8.2)
10
+
11
+ GEM
12
+ remote: http://rubygems.org/
13
+ specs:
14
+ activemodel (3.1.0)
15
+ activesupport (= 3.1.0)
16
+ bcrypt-ruby (~> 3.0.0)
17
+ builder (~> 3.0.0)
18
+ i18n (~> 0.6)
19
+ activesupport (3.1.0)
20
+ multi_json (~> 1.0)
21
+ bcrypt-ruby (3.0.1)
22
+ builder (3.0.0)
23
+ diff-lcs (1.1.3)
24
+ hash-deep-merge (0.1.1)
25
+ i18n (0.6.0)
26
+ mime-types (1.16)
27
+ multi_json (1.0.3)
28
+ mustache (0.99.4)
29
+ rake (0.8.7)
30
+ redcarpet (1.17.2)
31
+ rocco (0.8.2)
32
+ mustache
33
+ redcarpet
34
+ rspec (2.6.0)
35
+ rspec-core (~> 2.6.0)
36
+ rspec-expectations (~> 2.6.0)
37
+ rspec-mocks (~> 2.6.0)
38
+ rspec-core (2.6.4)
39
+ rspec-expectations (2.6.0)
40
+ diff-lcs (~> 1.1.2)
41
+ rspec-mocks (2.6.0)
42
+ typhoeus (0.2.4)
43
+ mime-types
44
+ mime-types
45
+ yajl-ruby (0.8.3)
46
+
47
+ PLATFORMS
48
+ java
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ harpy!
53
+ rake (~> 0.8.7)
54
+ rocco (~> 0.7)
55
+ rspec (~> 2.6.0)
data/README.md CHANGED
@@ -8,8 +8,8 @@ Dependencies
8
8
 
9
9
  * Ruby 1.8.7 or 1.9.2
10
10
  * gem "typhoeus", "~> 0.2.4"
11
- * gem "activesupport", ">= 3.0.0"
12
- * gem "activemodel", ">= 3.0.0"
11
+ * gem "activesupport", ">= 3.1.0"
12
+ * gem "activemodel", ">= 3.1.0"
13
13
  * gem "hash-deep-merge", "~> 0.1.1"
14
14
  * gem "yajl-ruby", "~> 0.8.2"
15
15
 
@@ -18,8 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_runtime_dependency("typhoeus", ["~> 0.2.4"])
21
- s.add_runtime_dependency("activesupport", [">= 3.0.0"])
22
- s.add_runtime_dependency("activemodel", [">= 3.0.0"])
21
+ s.add_runtime_dependency("activesupport", [">= 3.1.0"])
22
+ s.add_runtime_dependency("activemodel", [">= 3.1.0"])
23
23
  s.add_runtime_dependency("hash-deep-merge", ["~> 0.1.1"])
24
24
  s.add_runtime_dependency("yajl-ruby", ["~> 0.8.2"])
25
25
 
@@ -1,3 +1,3 @@
1
1
  module Harpy
2
- VERSION = "0.1.14"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -336,7 +336,7 @@ describe "class including Harpy::Resource" do
336
336
  companies.each do |company|
337
337
  company.firstname.should == "Anthony"
338
338
  end.should be_kind_of Harpy::Collection
339
- companies.each.should be_kind_of Enumerator
339
+ companies.each.should be_kind_of(defined?(Enumerator) ? Enumerator : Enumerable::Enumerator)
340
340
  companies.to_a.should == [companies.first]
341
341
  companies.detect{ true }.should be companies.first
342
342
  companies.should be_present
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-09-13 00:00:00.000000000Z
13
+ date: 2011-09-13 00:00:00.000000000 +02:00
14
+ default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: typhoeus
17
- requirement: &2161129340 !ruby/object:Gem::Requirement
18
+ requirement: &2154158000 !ruby/object:Gem::Requirement
18
19
  none: false
19
20
  requirements:
20
21
  - - ~>
@@ -22,32 +23,32 @@ dependencies:
22
23
  version: 0.2.4
23
24
  type: :runtime
24
25
  prerelease: false
25
- version_requirements: *2161129340
26
+ version_requirements: *2154158000
26
27
  - !ruby/object:Gem::Dependency
27
28
  name: activesupport
28
- requirement: &2161124580 !ruby/object:Gem::Requirement
29
+ requirement: &2154157480 !ruby/object:Gem::Requirement
29
30
  none: false
30
31
  requirements:
31
32
  - - ! '>='
32
33
  - !ruby/object:Gem::Version
33
- version: 3.0.0
34
+ version: 3.1.0
34
35
  type: :runtime
35
36
  prerelease: false
36
- version_requirements: *2161124580
37
+ version_requirements: *2154157480
37
38
  - !ruby/object:Gem::Dependency
38
39
  name: activemodel
39
- requirement: &2161123920 !ruby/object:Gem::Requirement
40
+ requirement: &2154157000 !ruby/object:Gem::Requirement
40
41
  none: false
41
42
  requirements:
42
43
  - - ! '>='
43
44
  - !ruby/object:Gem::Version
44
- version: 3.0.0
45
+ version: 3.1.0
45
46
  type: :runtime
46
47
  prerelease: false
47
- version_requirements: *2161123920
48
+ version_requirements: *2154157000
48
49
  - !ruby/object:Gem::Dependency
49
50
  name: hash-deep-merge
50
- requirement: &2161123340 !ruby/object:Gem::Requirement
51
+ requirement: &2154156520 !ruby/object:Gem::Requirement
51
52
  none: false
52
53
  requirements:
53
54
  - - ~>
@@ -55,10 +56,10 @@ dependencies:
55
56
  version: 0.1.1
56
57
  type: :runtime
57
58
  prerelease: false
58
- version_requirements: *2161123340
59
+ version_requirements: *2154156520
59
60
  - !ruby/object:Gem::Dependency
60
61
  name: yajl-ruby
61
- requirement: &2161122720 !ruby/object:Gem::Requirement
62
+ requirement: &2154156040 !ruby/object:Gem::Requirement
62
63
  none: false
63
64
  requirements:
64
65
  - - ~>
@@ -66,10 +67,10 @@ dependencies:
66
67
  version: 0.8.2
67
68
  type: :runtime
68
69
  prerelease: false
69
- version_requirements: *2161122720
70
+ version_requirements: *2154156040
70
71
  - !ruby/object:Gem::Dependency
71
72
  name: rake
72
- requirement: &2161121880 !ruby/object:Gem::Requirement
73
+ requirement: &2154155560 !ruby/object:Gem::Requirement
73
74
  none: false
74
75
  requirements:
75
76
  - - ~>
@@ -77,10 +78,10 @@ dependencies:
77
78
  version: 0.8.7
78
79
  type: :development
79
80
  prerelease: false
80
- version_requirements: *2161121880
81
+ version_requirements: *2154155560
81
82
  - !ruby/object:Gem::Dependency
82
83
  name: rspec
83
- requirement: &2161121160 !ruby/object:Gem::Requirement
84
+ requirement: &2156182600 !ruby/object:Gem::Requirement
84
85
  none: false
85
86
  requirements:
86
87
  - - ~>
@@ -88,10 +89,10 @@ dependencies:
88
89
  version: 2.6.0
89
90
  type: :development
90
91
  prerelease: false
91
- version_requirements: *2161121160
92
+ version_requirements: *2156182600
92
93
  - !ruby/object:Gem::Dependency
93
94
  name: rocco
94
- requirement: &2161120540 !ruby/object:Gem::Requirement
95
+ requirement: &2156182120 !ruby/object:Gem::Requirement
95
96
  none: false
96
97
  requirements:
97
98
  - - ~>
@@ -99,7 +100,7 @@ dependencies:
99
100
  version: '0.7'
100
101
  type: :development
101
102
  prerelease: false
102
- version_requirements: *2161120540
103
+ version_requirements: *2156182120
103
104
  description: Client for REST API with HATEOAS
104
105
  email:
105
106
  - joseph.halter@thetalentbox.com
@@ -112,6 +113,7 @@ files:
112
113
  - .rspec
113
114
  - .travis.yml
114
115
  - Gemfile
116
+ - Gemfile.lock
115
117
  - LICENSE
116
118
  - README.md
117
119
  - Rakefile
@@ -127,6 +129,7 @@ files:
127
129
  - spec/harpy/resource_spec.rb
128
130
  - spec/harpy_spec.rb
129
131
  - spec/spec_helper.rb
132
+ has_rdoc: true
130
133
  homepage: https://github.com/TalentBox/harpy
131
134
  licenses: []
132
135
  post_install_message:
@@ -147,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
150
  version: '0'
148
151
  requirements: []
149
152
  rubyforge_project:
150
- rubygems_version: 1.8.6
153
+ rubygems_version: 1.6.2
151
154
  signing_key:
152
155
  specification_version: 3
153
156
  summary: Client for REST API