aptible-resource 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: 00d2a4af5d237bbb3f2ed2133240fa087d40fc31
4
- data.tar.gz: a2cb0cc2cb94cdb8dafc5c27123a8dce0714d4dc
3
+ metadata.gz: 39da6d96a385990401dc84fbd1d3945fa6a0304f
4
+ data.tar.gz: b079dcebb87c18ceb9275506104b8d8a840366ed
5
5
  SHA512:
6
- metadata.gz: 7d49416b1b045515b6d09de321582df201f66d9c5418e58ed1816d626635d0619c5c3ba6689e41c00f99061f09c5caf50bb3ffb5184bb8e98864c78cdb6932b7
7
- data.tar.gz: ef29aede6cd4afabdb434a7ece2bcd006391a19640838410f4afe4fc59e9449d6e17d05bc12287ac7ff262bc730f3c80464e68f00b0f2f3a24806402c103f9fb
6
+ metadata.gz: ff64a8c7d5fa668ba2c2b55d54a81105d69093e24d1027eba6725bd8dbfc94855827284fa6b290d4ca993fef331cabacf5d4b4d48e365cf269ac0c6d8384bc39
7
+ data.tar.gz: 6657a3e298f1ea7db88a2a113cc1e99fed807db98a403749f9295be0e37e43847e73616574e12d4a3c89e4e5de4dc0b1b8ad4c471e1644ba04c7e80fbd0d7ba2
@@ -5,9 +5,7 @@ module Aptible
5
5
  def get_data_type_from_object(object)
6
6
  return nil unless object
7
7
 
8
- # TODO: Only reference _type
9
- # See https://github.com/aptible/auth.aptible.com/issues/61
10
- return nil unless (type = object['_type'] || object['type'])
8
+ return nil unless (type = object['_type'])
11
9
  if type.respond_to?(:camelize)
12
10
  type.camelize
13
11
  else
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Resource
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -226,7 +226,7 @@ describe Aptible::Resource::Base do
226
226
 
227
227
  it 'should have errors present on error' do
228
228
  mainframes_link.stub(:create) { fail hyperresource_exception }
229
- expect(subject.create_mainframe.errors.any?).to be_true
229
+ expect(subject.create_mainframe.errors.any?).to be true
230
230
  end
231
231
 
232
232
  it 'should return the object in the event of successful creation' do
@@ -236,7 +236,7 @@ describe Aptible::Resource::Base do
236
236
 
237
237
  it 'should have no errors on successful creation' do
238
238
  mainframes_link.stub(:create) { mainframe }
239
- expect(subject.create_mainframe.errors.any?).to be_false
239
+ expect(subject.create_mainframe.errors.any?).to be false
240
240
  end
241
241
  end
242
242
 
@@ -258,7 +258,7 @@ describe Aptible::Resource::Base do
258
258
  context '.field' do
259
259
  it 'should define a method for the field' do
260
260
  Api.field :foo, type: String
261
- expect(subject.respond_to?(:foo)).to be_true
261
+ expect(subject.respond_to?(:foo)).to be true
262
262
  end
263
263
 
264
264
  it 'should return the raw attribute' do
@@ -282,7 +282,7 @@ describe Aptible::Resource::Base do
282
282
  it 'should add a ? helper if Boolean' do
283
283
  Api.field :awesome, type: Aptible::Resource::Boolean
284
284
  subject.stub(:attributes) { { awesome: 'true' } }
285
- expect(subject.awesome?).to be_true
285
+ expect(subject.awesome?).to be true
286
286
  end
287
287
  end
288
288
  end
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri_template
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.5.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.5.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.8.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.8.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: fridge
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: aptible-tasks
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: pry
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description: Foundation classes for Aptible resource server gems
@@ -157,10 +157,10 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - ".gitignore"
161
- - ".rspec"
162
- - ".rubocop.yml"
163
- - ".travis.yml"
160
+ - .gitignore
161
+ - .rspec
162
+ - .rubocop.yml
163
+ - .travis.yml
164
164
  - Gemfile
165
165
  - LICENSE.md
166
166
  - README.md
@@ -199,17 +199,17 @@ require_paths:
199
199
  - lib
200
200
  required_ruby_version: !ruby/object:Gem::Requirement
201
201
  requirements:
202
- - - ">="
202
+ - - '>='
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - ">="
207
+ - - '>='
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
211
  rubyforge_project:
212
- rubygems_version: 2.2.2
212
+ rubygems_version: 2.4.5
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: Foundation classes for Aptible resource server gems