kalibro_gem 0.0.1.rc8 → 0.0.1.rc9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/lib/kalibro_gem/entities/reading.rb +12 -1
- data/lib/kalibro_gem/version.rb +1 -1
- data/spec/entities/reading_spec.rb +19 -1
- metadata +29 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98324243147f112a11c973aff84d4379d6223207
|
4
|
+
data.tar.gz: a1246a5e641e80c207e1d7df671f18a5e8b03946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f907be250a925f385eb5ed28e5abd9ea178f347c250245df5ee8e695f168ff3b20099cab403565ccdd8b69c703546045a07af8b888e29eaf076b3cfb26e33bf
|
7
|
+
data.tar.gz: 5686b1aa2beff3402d7c9d6e1c49ba2cdd2db7d04f96a2f2e4cd068c4473f747bd3756cd3dfa3f6bf32cbb531f36f7e6ca6ec67596a0c47518043840c835a70a
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.1.0
|
data/.travis.yml
CHANGED
@@ -40,6 +40,17 @@ module KalibroGem
|
|
40
40
|
create_objects_array_from_hash request(:readings_of, {:group_id => group_id})[:reading]
|
41
41
|
end
|
42
42
|
|
43
|
+
def self.all
|
44
|
+
reading_groups = ReadingGroup.all
|
45
|
+
readings = []
|
46
|
+
|
47
|
+
reading_groups.each do |reading_group|
|
48
|
+
readings.concat(readings_of(reading_group.id))
|
49
|
+
end
|
50
|
+
|
51
|
+
return readings
|
52
|
+
end
|
53
|
+
|
43
54
|
private
|
44
55
|
|
45
56
|
def save_params
|
@@ -48,4 +59,4 @@ module KalibroGem
|
|
48
59
|
|
49
60
|
end
|
50
61
|
end
|
51
|
-
end
|
62
|
+
end
|
data/lib/kalibro_gem/version.rb
CHANGED
@@ -83,6 +83,24 @@ describe KalibroGem::Entities::Reading do
|
|
83
83
|
response.last.label.should eq(reading.label)
|
84
84
|
end
|
85
85
|
end
|
86
|
+
|
87
|
+
describe 'all' do
|
88
|
+
let(:reading_group) { FactoryGirl.build(:reading_group) }
|
89
|
+
|
90
|
+
before :each do
|
91
|
+
KalibroGem::Entities::ReadingGroup.
|
92
|
+
expects(:all).
|
93
|
+
returns([reading_group])
|
94
|
+
KalibroGem::Entities::Reading.
|
95
|
+
expects(:readings_of).
|
96
|
+
with(reading_group.id).
|
97
|
+
returns([subject])
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'should list all the readings' do
|
101
|
+
KalibroGem::Entities::Reading.all.should include(subject)
|
102
|
+
end
|
103
|
+
end
|
86
104
|
end
|
87
105
|
|
88
106
|
# The only purpose of this test is to cover the overrided save_params method
|
@@ -103,4 +121,4 @@ describe KalibroGem::Entities::Reading do
|
|
103
121
|
reading.kalibro_errors.should be_empty
|
104
122
|
end
|
105
123
|
end
|
106
|
-
end
|
124
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kalibro_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.rc9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Morais
|
@@ -15,146 +15,146 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date:
|
18
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
type: :development
|
28
28
|
prerelease: false
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rake
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
type: :development
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rspec
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.14'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '2.14'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: cucumber
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.3.10
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.3.10
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: mocha
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.14.0
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.14.0
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: simplecov
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: factory_girl
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 4.3.0
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 4.3.0
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: coveralls
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: savon
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.3.2
|
139
139
|
type: :runtime
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 2.3.2
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: activesupport
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 4.0.1
|
153
153
|
type: :runtime
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 4.0.1
|
160
160
|
description: KalibroGem is a Ruby gem intended to be an interface for Ruby applications
|
@@ -172,10 +172,10 @@ executables: []
|
|
172
172
|
extensions: []
|
173
173
|
extra_rdoc_files: []
|
174
174
|
files:
|
175
|
-
- .gitignore
|
176
|
-
- .ruby-gemset
|
177
|
-
- .ruby-version
|
178
|
-
- .travis.yml
|
175
|
+
- ".gitignore"
|
176
|
+
- ".ruby-gemset"
|
177
|
+
- ".ruby-version"
|
178
|
+
- ".travis.yml"
|
179
179
|
- AUTHORS
|
180
180
|
- COPYING
|
181
181
|
- COPYING.LESSER
|
@@ -340,17 +340,17 @@ require_paths:
|
|
340
340
|
- lib
|
341
341
|
required_ruby_version: !ruby/object:Gem::Requirement
|
342
342
|
requirements:
|
343
|
-
- -
|
343
|
+
- - ">="
|
344
344
|
- !ruby/object:Gem::Version
|
345
345
|
version: '0'
|
346
346
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
347
347
|
requirements:
|
348
|
-
- -
|
348
|
+
- - ">"
|
349
349
|
- !ruby/object:Gem::Version
|
350
350
|
version: 1.3.1
|
351
351
|
requirements: []
|
352
352
|
rubyforge_project:
|
353
|
-
rubygems_version: 2.
|
353
|
+
rubygems_version: 2.2.0
|
354
354
|
signing_key:
|
355
355
|
specification_version: 4
|
356
356
|
summary: KalibroEntites is a communication interface with the Kalibro service.
|