kensa 2.4.4 → 3.0.0

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: 8bc6d54841d8a4bf272c91c77a289d939c3745a3
4
- data.tar.gz: 51df484283286d91f7fc26136b6547828040dfab
3
+ metadata.gz: ab53ea418db83c68ddeaace3c5eff4bd5a452f95
4
+ data.tar.gz: 63da9ea90a75f001c3d312ae602674f689df5bd4
5
5
  SHA512:
6
- metadata.gz: d62cc77073a87120b976241664a2dcd3961313fc3a4d4db38843523537f9908aa33bd7a22d640a590adb2d6265ff5fad376d7f880043e3b6661561f8fae3c615
7
- data.tar.gz: dbd4aa68273cecefc04b2184d2ec74ba046da3d06e59aab1711c241dafd027d9585fd8c8e3880f8d2df5638e3480ac832d43901aa1a9c8c197b06ff639a0d1ca
6
+ metadata.gz: 853adbd781f0ee17a629ad85be193592be3519d07e3e310a6c902e90782752f0de87563df5502345c4c171788cfdb809e4b6956835e8a6695484744a0c178c69
7
+ data.tar.gz: b5619435f4e30e33d91b1f073f5c7dc83852ee26c88141d3866a2fa899b88e3d273ea877dea78f9ebe802445a67291eb007fb763af53cced5adb29ce35b03645
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kensa (2.4.3)
4
+ kensa (3.0.0)
5
5
  colored (~> 1.2)
6
6
  launchy (~> 2.2.0)
7
7
  mechanize (~> 2.6.0)
@@ -34,12 +34,12 @@ GEM
34
34
  webrobots (>= 0.0.9, < 0.2)
35
35
  method_source (0.8.1)
36
36
  mime-types (1.25.1)
37
- mini_portile (0.6.2)
37
+ mini_portile2 (2.0.0)
38
38
  net-http-digest_auth (1.4)
39
39
  net-http-persistent (2.9.4)
40
40
  netrc (0.10.3)
41
- nokogiri (1.6.6.4)
42
- mini_portile (~> 0.6.0)
41
+ nokogiri (1.6.7)
42
+ mini_portile2 (~> 2.0.0.rc2)
43
43
  ntlm-http (0.1.1)
44
44
  power_assert (0.2.2)
45
45
  pry (0.9.11.4)
@@ -85,6 +85,3 @@ DEPENDENCIES
85
85
  sinatra (~> 1.4.2)
86
86
  test-unit
87
87
  timecop (~> 0.6.1)
88
-
89
- BUNDLED WITH
90
- 1.10.6
data/bin/kensa CHANGED
@@ -54,8 +54,6 @@ COMMANDS
54
54
 
55
55
  init Creates a skeleton manifest
56
56
 
57
- create <app> Clone a git repo that contains a template add-on
58
-
59
57
  test <type> Simulate call from Heroku (provision or deprovision)
60
58
 
61
59
  run <command> Provisions a resource and runs command in returned ENV
@@ -5,6 +5,5 @@ require 'heroku/kensa/check'
5
5
  require 'heroku/kensa/sso'
6
6
  require 'heroku/kensa/post_proxy'
7
7
  require 'heroku/kensa/screen'
8
- require 'heroku/kensa/git'
9
8
  require 'heroku/kensa/okjson'
10
9
  require 'heroku/kensa/okjson-support'
@@ -32,21 +32,6 @@ module Heroku
32
32
  end
33
33
  end
34
34
 
35
- def create
36
- app_name = @args.shift
37
- template = @options[:template]
38
- raise CommandInvalid.new("Need to supply an application name") unless app_name
39
- raise CommandInvalid.new("Need to supply a template") unless template
40
- begin
41
- Git.clone(app_name, template) and screen.message "Created #{app_name} from #{template} template\n"
42
- Dir.chdir(app_name)
43
- @options[:foreman] = true
44
- init
45
- rescue Exception => e
46
- raise CommandInvalid.new("error cloning #{Git.clone_url(template)} into #{app_name}")
47
- end
48
- end
49
-
50
35
  def test
51
36
  case check = @args.shift
52
37
  when "manifest"
@@ -3,7 +3,7 @@ require 'securerandom'
3
3
  module Heroku
4
4
  module Kensa
5
5
  class Manifest
6
- REGIONS = %w(us eu *)
6
+ REGIONS = %w(us eu frankfurt oregon tokyo virginia *)
7
7
 
8
8
  def initialize(options = {})
9
9
  @method = options.fetch(:method, 'post').to_sym
@@ -1,5 +1,5 @@
1
1
  module Heroku
2
2
  module Kensa
3
- VERSION = '2.4.4'
3
+ VERSION = '3.0.0'
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.4.4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany
@@ -13,202 +13,202 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2015-12-02 00:00:00.000000000 Z
16
+ date: 2016-01-05 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: netrc
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - "~>"
50
+ - - ~>
51
51
  - !ruby/object:Gem::Version
52
52
  version: 0.10.3
53
53
  type: :runtime
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ~>
58
58
  - !ruby/object:Gem::Version
59
59
  version: 0.10.3
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rest-client
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - "~>"
64
+ - - ~>
65
65
  - !ruby/object:Gem::Version
66
66
  version: '1.8'
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
71
+ - - ~>
72
72
  - !ruby/object:Gem::Version
73
73
  version: '1.8'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: colored
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - "~>"
78
+ - - ~>
79
79
  - !ruby/object:Gem::Version
80
80
  version: '1.2'
81
81
  type: :runtime
82
82
  prerelease: false
83
83
  version_requirements: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - "~>"
85
+ - - ~>
86
86
  - !ruby/object:Gem::Version
87
87
  version: '1.2'
88
88
  - !ruby/object:Gem::Dependency
89
89
  name: artifice
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - "~>"
92
+ - - ~>
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0.6'
95
95
  type: :development
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - "~>"
99
+ - - ~>
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0.6'
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: contest
104
104
  requirement: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - "~>"
106
+ - - ~>
107
107
  - !ruby/object:Gem::Version
108
108
  version: 0.1.3
109
109
  type: :development
110
110
  prerelease: false
111
111
  version_requirements: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - "~>"
113
+ - - ~>
114
114
  - !ruby/object:Gem::Version
115
115
  version: 0.1.3
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: fakefs
118
118
  requirement: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - "~>"
120
+ - - ~>
121
121
  - !ruby/object:Gem::Version
122
122
  version: 0.4.2
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - "~>"
127
+ - - ~>
128
128
  - !ruby/object:Gem::Version
129
129
  version: 0.4.2
130
130
  - !ruby/object:Gem::Dependency
131
131
  name: rake
132
132
  requirement: !ruby/object:Gem::Requirement
133
133
  requirements:
134
- - - ">="
134
+ - - '>='
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  type: :development
138
138
  prerelease: false
139
139
  version_requirements: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - ">="
141
+ - - '>='
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  - !ruby/object:Gem::Dependency
145
145
  name: rr
146
146
  requirement: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - "~>"
148
+ - - ~>
149
149
  - !ruby/object:Gem::Version
150
150
  version: 1.0.4
151
151
  type: :development
152
152
  prerelease: false
153
153
  version_requirements: !ruby/object:Gem::Requirement
154
154
  requirements:
155
- - - "~>"
155
+ - - ~>
156
156
  - !ruby/object:Gem::Version
157
157
  version: 1.0.4
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: sinatra
160
160
  requirement: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - "~>"
162
+ - - ~>
163
163
  - !ruby/object:Gem::Version
164
164
  version: 1.4.2
165
165
  type: :development
166
166
  prerelease: false
167
167
  version_requirements: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - "~>"
169
+ - - ~>
170
170
  - !ruby/object:Gem::Version
171
171
  version: 1.4.2
172
172
  - !ruby/object:Gem::Dependency
173
173
  name: timecop
174
174
  requirement: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - "~>"
176
+ - - ~>
177
177
  - !ruby/object:Gem::Version
178
178
  version: 0.6.1
179
179
  type: :development
180
180
  prerelease: false
181
181
  version_requirements: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - "~>"
183
+ - - ~>
184
184
  - !ruby/object:Gem::Version
185
185
  version: 0.6.1
186
186
  - !ruby/object:Gem::Dependency
187
187
  name: pry
188
188
  requirement: !ruby/object:Gem::Requirement
189
189
  requirements:
190
- - - ">="
190
+ - - '>='
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  type: :development
194
194
  prerelease: false
195
195
  version_requirements: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ">="
197
+ - - '>='
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
200
  - !ruby/object:Gem::Dependency
201
201
  name: test-unit
202
202
  requirement: !ruby/object:Gem::Requirement
203
203
  requirements:
204
- - - ">="
204
+ - - '>='
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  type: :development
208
208
  prerelease: false
209
209
  version_requirements: !ruby/object:Gem::Requirement
210
210
  requirements:
211
- - - ">="
211
+ - - '>='
212
212
  - !ruby/object:Gem::Version
213
213
  version: '0'
214
214
  description: Kensa is a command-line tool to help add-on providers integrating their
@@ -220,8 +220,8 @@ executables:
220
220
  extensions: []
221
221
  extra_rdoc_files: []
222
222
  files:
223
- - ".gitignore"
224
- - ".travis.yml"
223
+ - .gitignore
224
+ - .travis.yml
225
225
  - Gemfile
226
226
  - Gemfile.lock
227
227
  - LICENSE
@@ -232,7 +232,6 @@ files:
232
232
  - lib/heroku/kensa.rb
233
233
  - lib/heroku/kensa/check.rb
234
234
  - lib/heroku/kensa/client.rb
235
- - lib/heroku/kensa/git.rb
236
235
  - lib/heroku/kensa/http.rb
237
236
  - lib/heroku/kensa/manifest.rb
238
237
  - lib/heroku/kensa/okjson-support.rb
@@ -242,7 +241,6 @@ files:
242
241
  - lib/heroku/kensa/sso.rb
243
242
  - lib/heroku/kensa/version.rb
244
243
  - test/all_check_test.rb
245
- - test/create_test.rb
246
244
  - test/deprovision_check_test.rb
247
245
  - test/duplicate_provision_check_test.rb
248
246
  - test/helper.rb
@@ -267,23 +265,22 @@ require_paths:
267
265
  - lib
268
266
  required_ruby_version: !ruby/object:Gem::Requirement
269
267
  requirements:
270
- - - ">="
268
+ - - '>='
271
269
  - !ruby/object:Gem::Version
272
270
  version: 1.9.0
273
271
  required_rubygems_version: !ruby/object:Gem::Requirement
274
272
  requirements:
275
- - - ">="
273
+ - - '>='
276
274
  - !ruby/object:Gem::Version
277
275
  version: '0'
278
276
  requirements: []
279
277
  rubyforge_project:
280
- rubygems_version: 2.4.3
278
+ rubygems_version: 2.0.14
281
279
  signing_key:
282
280
  specification_version: 4
283
281
  summary: Tool to help Heroku add-on providers integrating their services
284
282
  test_files:
285
283
  - test/all_check_test.rb
286
- - test/create_test.rb
287
284
  - test/deprovision_check_test.rb
288
285
  - test/duplicate_provision_check_test.rb
289
286
  - test/helper.rb
@@ -1,39 +0,0 @@
1
- module Heroku
2
- module Kensa
3
- class Git
4
- class << self
5
- def verify_create(app_name, template)
6
- raise CommandInvalid.new("Need git to clone repository") unless git_installed?
7
- end
8
-
9
- def git_installed?
10
- `git` rescue false
11
- end
12
-
13
- def clone(app_name, template)
14
- verify_create(app_name, template)
15
- run("git clone #{clone_url(template)} #{app_name}")
16
- end
17
-
18
- def run(cmd)
19
- puts cmd
20
- system(cmd)
21
- end
22
-
23
- def heroku_prefix
24
- ENV["REPO_PREFIX"] || "heroku/kensa-create-"
25
- end
26
-
27
- def clone_url(name)
28
- if name.include? "://" #its a full url not on github
29
- return name
30
- elsif !name.include? "/" #its one of ours
31
- name = heroku_prefix + name
32
- end
33
-
34
- "https://github.com/#{name}"
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,46 +0,0 @@
1
- require 'test/helper'
2
-
3
- class CreateTest < Test::Unit::TestCase
4
- include Heroku::Kensa
5
-
6
- def setup
7
- stub(Git).run
8
- any_instance_of Client do |client|
9
- stub(client).init
10
- end
11
- stub(Dir).chdir
12
- end
13
-
14
- def test_requires_app_name
15
- assert_raise Client::CommandInvalid do
16
- kensa "create my_addon"
17
- end
18
- end
19
-
20
- def test_requires_template
21
- assert_raise Client::CommandInvalid do
22
- kensa "create --template foo"
23
- end
24
- end
25
-
26
- def test_assumes_heroku_template
27
- kensa "create my_addon --template sinatra"
28
- assert_received Git do |git|
29
- git.run("git clone https://github.com/heroku/kensa-create-sinatra my_addon")
30
- end
31
- end
32
-
33
- def test_assumes_github
34
- kensa "create my_addon --template heroku/sinatra"
35
- assert_received Git do |git|
36
- git.run("git clone https://github.com/heroku/sinatra my_addon")
37
- end
38
- end
39
-
40
- def test_allows_full_url
41
- kensa "create my_addon --template git://heroku.com/sinatra.git"
42
- assert_received Git do |git|
43
- git.run("git clone git://heroku.com/sinatra.git my_addon")
44
- end
45
- end
46
- end