kensa 2.0.1 → 2.0.2

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: a58f1cabc7b3edfeb5d6678ee603f6b8fd2319e1
4
- data.tar.gz: 9a922a37d8eee20fd5f57c0910da49b6a6dfd6aa
3
+ metadata.gz: 11e936aaef3666eb40fede025c4b034e801714d4
4
+ data.tar.gz: 7077629288cc0dd71359a9f933a774f10fdf0be3
5
5
  SHA512:
6
- metadata.gz: 2d1f67d6226e96fe3770c783d1ffef0f9ea9dc79f8e49c3c5d8ef2f6fee6bae49ead63f721c93eccb1ee3e5c45f3bc4e52c8d7ec0ad05f2285aa16519276fb5a
7
- data.tar.gz: ed24badf43e50fa220da723470f9608d3dfb98f24ddb9aaf0ba61d15cf0be079a4f657abe65bd59858db6fff723a37ab124bc49d75792506db4ad2167884db70
6
+ metadata.gz: 4ca3b324cd0d6741fc989b270d4c49971c64ff68daef94fb791a395a8dbb02952c61402b147e27d6aa0fca32d601b2e5f805cb17dd0d61eaa9263994060eabde
7
+ data.tar.gz: a61d8e77ec3356fe9dfeba11e2fd8d8836551d857ac0642dbeaa3bd7b10b8fed4229db554d11d425c769f6c14f2da5c778c54aa6bb0e7b06c094e85cd424df7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kensa (2.0.1)
4
+ kensa (2.0.2)
5
5
  launchy (~> 2.2.0)
6
6
  mechanize (~> 2.6.0)
7
7
  rest-client (~> 1.4, < 1.7.0)
@@ -289,7 +289,7 @@ module Heroku
289
289
  reader, writer = IO.pipe
290
290
  end
291
291
 
292
- test "POST /heroku/resources"
292
+ test "POST #{base_path}"
293
293
  check "response" do
294
294
  if data[:async]
295
295
  child = fork do
@@ -27,12 +27,13 @@ module Heroku
27
27
 
28
28
  begin
29
29
  args = [
30
- (OkJson.encode(payload) if payload),
31
- {
32
- :accept => "application/json",
33
- :content_type => "application/json"
34
- }
35
- ].compact
30
+ { :accept => "application/json" }
31
+ ]
32
+
33
+ if payload
34
+ args.first[:content_type] = "application/json"
35
+ args.unshift OkJson.encode(payload)
36
+ end
36
37
 
37
38
  user, pass = credentials
38
39
  body = RestClient::Resource.new(url, user, pass)[path].send(
@@ -1,5 +1,5 @@
1
1
  module Heroku
2
2
  module Kensa
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kensa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany
@@ -13,180 +13,180 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-04-16 00:00:00.000000000 Z
16
+ date: 2014-04-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: launchy
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - "~>"
22
+ - - ~>
23
23
  - !ruby/object:Gem::Version
24
24
  version: 2.2.0
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - "~>"
29
+ - - ~>
30
30
  - !ruby/object:Gem::Version
31
31
  version: 2.2.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: mechanize
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - "~>"
36
+ - - ~>
37
37
  - !ruby/object:Gem::Version
38
38
  version: 2.6.0
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - "~>"
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: 2.6.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rest-client
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - "<"
50
+ - - <
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.7.0
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1.4'
56
56
  type: :runtime
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "<"
60
+ - - <
61
61
  - !ruby/object:Gem::Version
62
62
  version: 1.7.0
63
- - - "~>"
63
+ - - ~>
64
64
  - !ruby/object:Gem::Version
65
65
  version: '1.4'
66
66
  - !ruby/object:Gem::Dependency
67
67
  name: term-ansicolor
68
68
  requirement: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - "~>"
70
+ - - ~>
71
71
  - !ruby/object:Gem::Version
72
72
  version: '1.3'
73
73
  type: :runtime
74
74
  prerelease: false
75
75
  version_requirements: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - "~>"
77
+ - - ~>
78
78
  - !ruby/object:Gem::Version
79
79
  version: '1.3'
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: artifice
82
82
  requirement: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - "~>"
84
+ - - ~>
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0.6'
87
87
  type: :development
88
88
  prerelease: false
89
89
  version_requirements: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - "~>"
91
+ - - ~>
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0.6'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: contest
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - "~>"
98
+ - - ~>
99
99
  - !ruby/object:Gem::Version
100
100
  version: 0.1.3
101
101
  type: :development
102
102
  prerelease: false
103
103
  version_requirements: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - "~>"
105
+ - - ~>
106
106
  - !ruby/object:Gem::Version
107
107
  version: 0.1.3
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: fakefs
110
110
  requirement: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - "~>"
112
+ - - ~>
113
113
  - !ruby/object:Gem::Version
114
114
  version: 0.4.2
115
115
  type: :development
116
116
  prerelease: false
117
117
  version_requirements: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - "~>"
119
+ - - ~>
120
120
  - !ruby/object:Gem::Version
121
121
  version: 0.4.2
122
122
  - !ruby/object:Gem::Dependency
123
123
  name: rake
124
124
  requirement: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ">="
126
+ - - '>='
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  type: :development
130
130
  prerelease: false
131
131
  version_requirements: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ">="
133
+ - - '>='
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: rr
138
138
  requirement: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - "~>"
140
+ - - ~>
141
141
  - !ruby/object:Gem::Version
142
142
  version: 1.0.4
143
143
  type: :development
144
144
  prerelease: false
145
145
  version_requirements: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - "~>"
147
+ - - ~>
148
148
  - !ruby/object:Gem::Version
149
149
  version: 1.0.4
150
150
  - !ruby/object:Gem::Dependency
151
151
  name: sinatra
152
152
  requirement: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - "~>"
154
+ - - ~>
155
155
  - !ruby/object:Gem::Version
156
156
  version: 1.4.2
157
157
  type: :development
158
158
  prerelease: false
159
159
  version_requirements: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - "~>"
161
+ - - ~>
162
162
  - !ruby/object:Gem::Version
163
163
  version: 1.4.2
164
164
  - !ruby/object:Gem::Dependency
165
165
  name: timecop
166
166
  requirement: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - "~>"
168
+ - - ~>
169
169
  - !ruby/object:Gem::Version
170
170
  version: 0.6.1
171
171
  type: :development
172
172
  prerelease: false
173
173
  version_requirements: !ruby/object:Gem::Requirement
174
174
  requirements:
175
- - - "~>"
175
+ - - ~>
176
176
  - !ruby/object:Gem::Version
177
177
  version: 0.6.1
178
178
  - !ruby/object:Gem::Dependency
179
179
  name: pry
180
180
  requirement: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - ">="
182
+ - - '>='
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  type: :development
186
186
  prerelease: false
187
187
  version_requirements: !ruby/object:Gem::Requirement
188
188
  requirements:
189
- - - ">="
189
+ - - '>='
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  description: Kensa is a command-line tool to help add-on providers integrating their
@@ -198,8 +198,8 @@ executables:
198
198
  extensions: []
199
199
  extra_rdoc_files: []
200
200
  files:
201
- - ".gitignore"
202
- - ".travis.yml"
201
+ - .gitignore
202
+ - .travis.yml
203
203
  - Gemfile
204
204
  - Gemfile.lock
205
205
  - LICENSE
@@ -244,17 +244,17 @@ require_paths:
244
244
  - lib
245
245
  required_ruby_version: !ruby/object:Gem::Requirement
246
246
  requirements:
247
- - - ">="
247
+ - - '>='
248
248
  - !ruby/object:Gem::Version
249
249
  version: 1.9.0
250
250
  required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  requirements:
252
- - - ">="
252
+ - - '>='
253
253
  - !ruby/object:Gem::Version
254
254
  version: '0'
255
255
  requirements: []
256
256
  rubyforge_project:
257
- rubygems_version: 2.2.2
257
+ rubygems_version: 2.0.14
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: Tool to help Heroku add-on providers integrating their services