addons-client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Chris Continanza
1
+ Copyright (c) 2012 Chris Continanza, Glenn Gillen
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -3,8 +3,8 @@ $LOAD_PATH.unshift File.dirname(File.expand_path('.', __FILE__)) + '/lib'
3
3
  require "addons-client/version"
4
4
 
5
5
  Gem::Specification.new do |gem|
6
- gem.authors = ["Chris Continanza"]
7
- gem.email = ["csquared@gmail.com"]
6
+ gem.authors = ["Chris Continanza", "Glenn Gillen"]
7
+ gem.email = ["csquared@gmail.com", "me@glenngillen.com"]
8
8
  gem.description = %q{Addons Platform API client}
9
9
  gem.summary = %q{Allows platfomrs to provision, deprovision, and change plans for add-on resources.}
10
10
  gem.homepage = ""
@@ -33,6 +33,10 @@ module Addons
33
33
  end_at.utc
34
34
  payload.merge! :end_at => end_at.to_s
35
35
  end
36
+ if config = opts[:config]
37
+ config = config.to_json unless config.is_a? String
38
+ payload.merge! :config => config
39
+ end
36
40
  resource.post payload, :accept => :json
37
41
  end
38
42
  end
@@ -1,5 +1,5 @@
1
1
  module Addons
2
2
  class Client
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,74 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: addons-client
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 2
10
- version: 0.0.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Chris Continanza
9
+ - Glenn Gillen
14
10
  autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
-
18
- date: 2012-04-29 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
13
+ date: 2012-05-23 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
32
16
  name: rest-client
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- prerelease: false
36
- type: :runtime
37
- requirement: &id002 !ruby/object:Gem::Requirement
17
+ requirement: &70283802755900 !ruby/object:Gem::Requirement
38
18
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
46
- name: configliere
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- prerelease: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
50
23
  type: :runtime
51
- requirement: &id003 !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ version_requirements: *70283802755900
26
+ - !ruby/object:Gem::Dependency
27
+ name: configliere
28
+ requirement: &70283802755480 !ruby/object:Gem::Requirement
52
29
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *70283802755480
37
+ - !ruby/object:Gem::Dependency
60
38
  name: json
61
- version_requirements: *id003
39
+ requirement: &70283802755060 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *70283802755060
62
48
  description: Addons Platform API client
63
- email:
49
+ email:
64
50
  - csquared@gmail.com
65
- executables:
51
+ - me@glenngillen.com
52
+ executables:
66
53
  - addons-client
67
54
  extensions: []
68
-
69
55
  extra_rdoc_files: []
70
-
71
- files:
56
+ files:
72
57
  - .gitignore
73
58
  - .travis.yml
74
59
  - Gemfile
@@ -90,40 +75,37 @@ files:
90
75
  - test/provision_test.rb
91
76
  - test/response_test.rb
92
77
  - test/test_helper.rb
93
- homepage: ""
78
+ homepage: ''
94
79
  licenses: []
95
-
96
80
  post_install_message:
97
81
  rdoc_options: []
98
-
99
- require_paths:
82
+ require_paths:
100
83
  - lib
101
- required_ruby_version: !ruby/object:Gem::Requirement
84
+ required_ruby_version: !ruby/object:Gem::Requirement
102
85
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ segments:
108
91
  - 0
109
- version: "0"
110
- required_rubygems_version: !ruby/object:Gem::Requirement
92
+ hash: -3382691232764267139
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
94
  none: false
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ segments:
117
100
  - 0
118
- version: "0"
101
+ hash: -3382691232764267139
119
102
  requirements: []
120
-
121
103
  rubyforge_project:
122
104
  rubygems_version: 1.8.15
123
105
  signing_key:
124
106
  specification_version: 3
125
107
  summary: Allows platfomrs to provision, deprovision, and change plans for add-on resources.
126
- test_files:
108
+ test_files:
127
109
  - test/client_test.rb
128
110
  - test/deprovision_test.rb
129
111
  - test/plan_change_test.rb