aptible-api 0.7.9 → 0.7.10

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: 3cef645732aeb0dde581d0887dc6440eda22733b
4
- data.tar.gz: 12cb439ba3dab69735179a5145880dded4355631
3
+ metadata.gz: 4f1c30fe24da91c40fc2c36f9aa68442f9b3ab63
4
+ data.tar.gz: 153edfa0ce62a77cf3bb44a6488d4212e8730d26
5
5
  SHA512:
6
- metadata.gz: a48c1f060f4e22545f24eb1b204be4ae6663d74f346924e3915b901a9a9d8b8e5fd253735d68ccaccb4fc28ac191f85aa1de4a5430a795c073421de5f07f144a
7
- data.tar.gz: 0ed237976aa8e2ffed732d854c0599f01ea7d2f50aa953a1b9f20c100a7d5ad6956a73b92ce169d7aa92d574bf6ef23813aed8fe3fea59d3af0876731a141b03
6
+ metadata.gz: 0b6d22ff5a5c4c204dbc1793fd971485dc083e9f15fb8f05b6d1fefd5ee3e23fed07b796344c5404c5774db6be156c9a1760570caa2ac78ec740a3a36a4521c0
7
+ data.tar.gz: 8cbbb29912f7b7ba8bf97f8f6b05f6c913d0645d0932e675b1860a556ad847b42bd504c907fddc6d30c2ce6b3305f4e8e98fb9a57c40d494553fe17434d2f8dd
@@ -47,10 +47,14 @@ module Aptible
47
47
  45022
48
48
  end
49
49
 
50
+ def organization_url
51
+ links['organization'].href
52
+ end
53
+
50
54
  def organization
51
55
  return @organization if @organization
52
56
  auth = Aptible::Auth::Organization.new(token: token, headers: headers)
53
- @organization = auth.find_by_url(links['organization'].href)
57
+ @organization = auth.find_by_url(organization_url)
54
58
  end
55
59
 
56
60
  def self.generate_handle(organization_name, plan_id)
@@ -16,6 +16,10 @@ module Aptible
16
16
  field :created_at, type: Time
17
17
  field :updated_at, type: Time
18
18
  field :status
19
+
20
+ def provisioned?
21
+ status == 'provisioned'
22
+ end
19
23
  end
20
24
  end
21
25
  end
@@ -12,7 +12,6 @@ module Aptible
12
12
  field :type
13
13
  field :passphrase
14
14
  field :connection_url
15
- field :provisioned, type: Aptible::Resource::Boolean
16
15
  field :created_at, type: Time
17
16
  field :updated_at, type: Time
18
17
  field :status
@@ -21,6 +20,10 @@ module Aptible
21
20
  # TODO: Add failed status at API level
22
21
  operations.select { |o| o.type == 'provision' }.all?(&:failed?)
23
22
  end
23
+
24
+ def provisioned?
25
+ status == 'provisioned'
26
+ end
24
27
  end
25
28
  end
26
29
  end
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '0.7.9'
3
+ VERSION = '0.7.10'
4
4
  end
5
5
  end
@@ -9,7 +9,6 @@ module Aptible
9
9
  field :certificate
10
10
  field :private_key
11
11
  field :type
12
- field :provisioned, type: Aptible::Resource::Boolean
13
12
  field :elastic_load_balancer_name
14
13
  field :external_host
15
14
  field :external_http_port
@@ -28,7 +27,7 @@ module Aptible
28
27
  end
29
28
 
30
29
  def provisioned?
31
- provisioned
30
+ status == 'provisioned'
32
31
  end
33
32
  end
34
33
  end
metadata CHANGED
@@ -1,181 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-resource
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.2.9
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.2.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aptible-auth
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.5.0
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.5.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: aptible-billforward
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: stripe
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.13.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: 1.13.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: gem_config
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.2.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.2.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: activesupport
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: rake
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '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: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: '2.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: '2.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: foreman
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: pry
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  description: Ruby client for api.aptible.com
@@ -185,9 +185,9 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
- - .gitignore
189
- - .rspec
190
- - .travis.yml
188
+ - ".gitignore"
189
+ - ".rspec"
190
+ - ".travis.yml"
191
191
  - Gemfile
192
192
  - LICENSE.md
193
193
  - Procfile
@@ -226,12 +226,12 @@ require_paths:
226
226
  - lib
227
227
  required_ruby_version: !ruby/object:Gem::Requirement
228
228
  requirements:
229
- - - '>='
229
+ - - ">="
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - '>='
234
+ - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []