elastic-beanstalk 1.1.2 → 1.1.3

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: bd92161e1d28fa74d1477f25722ab46ef7a317a3
4
- data.tar.gz: a420656cf0377105535dcb2fe85c0fe9e5cdc2f3
3
+ metadata.gz: 40a2e39a971bfd3c7c3de3c571af41a762dadbe6
4
+ data.tar.gz: 5656483a2442d9c46754e9e2a43d6970dab9e6b4
5
5
  SHA512:
6
- metadata.gz: b6bf08a076d200af22fffe617675a16e9a7f4c3d737b55847e632cafc7a2a37f1f6a96a5f59cccfe6d88b568f939f0bdf621cc4b102d984ec2491a09eb9d7658
7
- data.tar.gz: 40398ddde6d73fd67bbcd7e841e0b7d08497ac842f3ec0b39f9172727ecfdbbf6f1560f2437e6c9cbcf62848b6c9dee7b9070f515294cd5aa35001e512b82651
6
+ metadata.gz: b2a52b39ea276ac7cdbe221063a92d0d95d323a362d2bc9a29ccad9f2a3327ca6d9efdd66a122bdf36dc02d51158d2a949bd442390c04b047d0422a47358d1e5
7
+ data.tar.gz: f894dcbfb2890d9dd20618f4ac05e533bc50789fe95f47ca6d0f64fa4e08f65528e3e00a7063b6ab7c5c91d68b479a4c8f496e9eaa93ca7498dd2f76eb819f80
data/.gitignore CHANGED
@@ -19,3 +19,5 @@ tmp
19
19
 
20
20
  .idea
21
21
  bin/eb.yml
22
+
23
+ test-reports
data/.rspec ADDED
@@ -0,0 +1,4 @@
1
+ --color
2
+ --require spec_helper
3
+ --format RspecJunitFormatter
4
+ --out test-reports/rspec.xml
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use ruby-2.1.2@elastic_beanstalk --create
1
+ rvm use ruby-2.2.0@elastic_beanstalk --create
@@ -25,9 +25,10 @@ Gem::Specification.new do |s|
25
25
  s.require_paths = ['lib']
26
26
 
27
27
  # development
28
- s.add_development_dependency 'bundler', '~> 1.3'
28
+ s.add_development_dependency 'bundler'
29
29
  s.add_development_dependency 'rake'
30
- s.add_development_dependency 'rspec', '>= 2.14.1'
30
+ s.add_development_dependency 'rspec'
31
+ s.add_development_dependency 'rspec_junit_formatter'
31
32
 
32
33
  # runtime
33
34
  s.add_runtime_dependency 'railties', '>= 3.2'
@@ -124,8 +124,7 @@ namespace :eb do
124
124
  #
125
125
  #
126
126
  desc 'Setup AWS.config and merge/override environments into one resolved configuration'
127
- task :config do |t, args|
128
-
127
+ task :config, [:environment, :version] do |t, args|
129
128
 
130
129
  #-------------------------------------------------------------------------------
131
130
  # Resolve arguments in a backwards compatibile way (see https://github.com/alienfast/elastic-beanstalk/issues/12)
@@ -281,7 +280,7 @@ namespace :eb do
281
280
  # Since we allow variable use of arguments, it is easiest just to quickly re-enable and re-run the eb:config task since all the resolution
282
281
  # of values is contained there.
283
282
  Rake::Task['eb:config'].reenable
284
- Rake::Task['eb:config'].invoke
283
+ Rake::Task['eb:config'].invoke(*args)
285
284
 
286
285
 
287
286
  # Leave off the dependency of :package, we need to package this in the build phase and save
@@ -1,5 +1,5 @@
1
1
  module Elastic
2
2
  module Beanstalk
3
- VERSION = '1.1.2'
3
+ VERSION = '1.1.3'
4
4
  end
5
5
  end
@@ -49,14 +49,14 @@ describe EbConfig do
49
49
  EbConfig.load!(:development, config_file_path)
50
50
  assert_option 'InstanceType', 't1.micro'
51
51
  expect(EbConfig.strategy).to eql 'inplace-update'
52
- expect(EbConfig.environment).to eql 'development'
52
+ expect(EbConfig.environment).to eql :development
53
53
  end
54
54
 
55
55
  it 'should read file and override with production environment' do
56
56
  EbConfig.clear
57
57
  EbConfig.load!(:production, config_file_path)
58
58
  assert_option 'InstanceType', 't1.small'
59
- expect(EbConfig.environment).to eql 'production'
59
+ expect(EbConfig.environment).to eql :production
60
60
  end
61
61
 
62
62
  private
@@ -73,7 +73,7 @@ describe EbConfig do
73
73
  expect(EbConfig.disallow_environments).to eql %w(cucumber test)
74
74
 
75
75
  expect(EbConfig.package[:dir]).to eql 'pkg'
76
- expect(EbConfig.package[:verbose]).to be_true
76
+ expect(EbConfig.package[:verbose]).to be_truthy
77
77
  expect(EbConfig.package[:includes]).to eql %w(**/* .ebextensions/**/*)
78
78
  expect(EbConfig.package[:exclude_files]).to eql %w(resetdb.sh rspec.xml README* db/*.sqlite3)
79
79
  expect(EbConfig.package[:exclude_dirs]).to eql %w(pkg tmp log test-reports solr features)
@@ -12,13 +12,13 @@ describe EbExtensions do
12
12
 
13
13
  EbConfig.ebextensions.each_key do |filename|
14
14
  filename = EbExtensions.absolute_file_name(filename)
15
- expect(File.exists? filename).to be_true
15
+ expect(File.exists? filename).to be_truthy
16
16
  end
17
17
 
18
18
  EbExtensions.delete_extensions
19
19
  EbConfig.ebextensions.each_key do |filename|
20
20
  filename = EbExtensions.absolute_file_name(filename)
21
- expect(File.exists? filename).to be_false
21
+ expect(File.exists? filename).to be_falsey
22
22
  end
23
23
  end
24
24
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-beanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ross
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.14.1
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.14.1
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec_junit_formatter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: railties
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -174,6 +188,7 @@ extensions: []
174
188
  extra_rdoc_files: []
175
189
  files:
176
190
  - ".gitignore"
191
+ - ".rspec"
177
192
  - ".rvmrc"
178
193
  - Gemfile
179
194
  - LICENSE.txt
@@ -189,7 +204,6 @@ files:
189
204
  - lib/elastic/beanstalk/spinner.rb
190
205
  - lib/elastic/beanstalk/tasks/eb.rake
191
206
  - lib/elastic/beanstalk/version.rb
192
- - spec/lib/deep_symbolize_spec.rb
193
207
  - spec/lib/elastic/beanstalk/eb_config_spec.rb
194
208
  - spec/lib/elastic/beanstalk/eb_extensions_spec.rb
195
209
  - spec/lib/elastic/beanstalk/eb_smoke_tester_spec.rb
@@ -215,14 +229,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
229
  version: '0'
216
230
  requirements: []
217
231
  rubyforge_project:
218
- rubygems_version: 2.2.2
232
+ rubygems_version: 2.4.5
219
233
  signing_key:
220
234
  specification_version: 4
221
235
  summary: Configure and deploy a rails app to Elastic Beanstalk via rake in 60 seconds.
222
236
  Maintain multiple environment DRY configurations and .ebextensions in one easy to
223
237
  use configuration file.
224
238
  test_files:
225
- - spec/lib/deep_symbolize_spec.rb
226
239
  - spec/lib/elastic/beanstalk/eb_config_spec.rb
227
240
  - spec/lib/elastic/beanstalk/eb_extensions_spec.rb
228
241
  - spec/lib/elastic/beanstalk/eb_smoke_tester_spec.rb
@@ -1,47 +0,0 @@
1
- # https://gist.github.com/morhekil/998709
2
-
3
- require 'rspec'
4
- require 'deep_symbolize'
5
-
6
- describe 'Hash#deep_symbolize' do
7
- let(:hash) {{}}
8
- subject do
9
- #hash.extend DeepSymbolizable
10
- hash.deep_symbolize
11
- end
12
-
13
- context 'on simple hash when inverting' do
14
- let(:hash) {{ 'key1' => 'val1', 'key2' => 'val2' }}
15
- it {
16
- h2 = hash.deep_symbolize
17
- h2.should == { :key1 => 'val1', :key2 => 'val2' }
18
- h3 = h2.deep_symbolize(true)
19
- h3.should == { 'key1' => 'val1', 'key2' => 'val2' }
20
- }
21
- end
22
-
23
-
24
- context 'on simple hash' do
25
- let(:hash) {{ :key1 => 'val1', 'key2' => 'val2' }}
26
- it { should == { :key1 => 'val1', :key2 => 'val2' } }
27
- end
28
-
29
- context 'on nested hash' do
30
- let(:hash) {{ 'key1' => 'val1', 'subkey' => { 'key2' => 'val2' } }}
31
- it { should == { :key1 => 'val1', :subkey => { :key2 => 'val2' } } }
32
- end
33
-
34
- context 'on a hash with nested array' do
35
- let(:hash) {{ 'key1' => 'val1', 'subkey' => [{ 'key2' => 'val2' }] }}
36
- it { should == { :key1 => 'val1', :subkey => [{ :key2 => 'val2' }] } }
37
- end
38
-
39
- describe 'preprocessing keys' do
40
- subject do
41
- #hash.extend DeepSymbolizable
42
- hash.deep_symbolize { |k| k.upcase }
43
- end
44
- let(:hash) {{ 'key1' => 'val1', 'subkey' => [{ 'key2' => 'val2' }] }}
45
- it { should == { :KEY1 => 'val1', :SUBKEY => [{ :KEY2 => 'val2' }] } }
46
- end
47
- end