negroku 2.7.0 → 2.7.1

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: 8738821ec803495342cde41c9cb5d3e5fff9047b
4
- data.tar.gz: 2e4fb61d9e781ad7d91610c358790dfd65c01e99
3
+ metadata.gz: f1d9ecc22e781dfa34d98eda35a0152c45f6560d
4
+ data.tar.gz: d1c714e5c32e0731b4e217f2455e6684914f1405
5
5
  SHA512:
6
- metadata.gz: ace8c571d9f2b4ee36552cea518dbf238e72bf0b68461bc2006fef26e6bada16583064ae19e405bb11edb0b9ccf76a8fb1048570491e43310fd365c2eddb4c75
7
- data.tar.gz: d251e00951daae7c24a600597f8080fdaef8971f575d2998d489c9ba897b5028cc78412a3fe70f16c7daabc7925eed3eb5aa9a32a32a6b11a2610782a4ae6b99
6
+ metadata.gz: 0639ddb5da43a59ca1b85174a14b47464cb7832ba904b053b7a150246cc6b836d323c754429b32241a4eb7eacc42db050be47b5af909e55e772c98ecca0fa1ce
7
+ data.tar.gz: eb4f53de5848c4a18fed608894791df5ef85b3c796b5c9897286b667bfd9c5586ae5702aa2c03b3eea6d1fa16c0d16bd0e2e8e9451cc6b9346f4c03dbf36d284
data/CHANGELOG.md CHANGED
@@ -4,7 +4,14 @@ Reverse Chronological Order:
4
4
 
5
5
  ## Unreleased
6
6
 
7
- https://github.com/platanus/negroku/compare/v2.7.0...HEAD
7
+ https://github.com/platanus/negroku/compare/v2.7.1...HEAD
8
+
9
+ ## `2.7.1`
10
+
11
+ https://github.com/platanus/negroku/compare/v2.7.0...v2.7.1
12
+
13
+ FIX:
14
+ - Puma was being loaded because the puma gem was being loaded by `capistrano-puma`
8
15
 
9
16
  ## `2.7.0`
10
17
 
@@ -13,56 +13,56 @@ end
13
13
  class Negroku::ConfigFactory
14
14
  include Virtus.model
15
15
 
16
- def self.loaded_in_bundler(name)
17
- Bundler.locked_gems.specs.any? {|a| a.name == name}
16
+ def self.loaded_in_bundler(*names)
17
+ Bundler.locked_gems.dependencies.any? { |a| names.include?(a.name) }
18
18
  end
19
19
 
20
20
  attribute :bower, Negroku::Feature, default: {
21
- name: "bower", enabled: File.exists?('bower.json')
21
+ name: 'bower', enabled: File.exist?('bower.json')
22
22
  }
23
23
 
24
24
  attribute :bundler, Negroku::Feature, default: {
25
- name: "bundler", enabled: File.exists?('Gemfile')
25
+ name: 'bundler', enabled: File.exist?('Gemfile')
26
26
  }
27
27
 
28
28
  attribute :delayed_job, Negroku::Feature, default: {
29
- name: "delayed_job", enabled: loaded_in_bundler('delayed_job')
29
+ name: 'delayed_job',
30
+ enabled: loaded_in_bundler('delayed_job', 'delayed_job_active_record')
30
31
  }
31
32
 
32
33
  attribute :nginx, Negroku::Feature, default: {
33
- name: "nginx", enabled: true, required: true
34
+ name: 'nginx', enabled: true, required: true
34
35
  }
35
36
 
36
37
  attribute :nodenv, Negroku::Feature, default: {
37
- name: "nodenv", enabled: true, required: true
38
+ name: 'nodenv', enabled: true, required: true
38
39
  }
39
40
 
40
41
  attribute :rails, Negroku::Feature, default: {
41
- name: "rails", enabled: loaded_in_bundler('rails')
42
+ name: 'rails', enabled: loaded_in_bundler('rails')
42
43
  }
43
44
 
44
45
  attribute :rbenv, Negroku::Feature, default: {
45
- name: "rbenv", enabled: true, required: true
46
+ name: 'rbenv', enabled: true, required: true
46
47
  }
47
48
 
48
49
  attribute :sphinx, Negroku::Feature, default: {
49
- name: "sphinx", enabled: loaded_in_bundler('thinking-sphinx')
50
+ name: 'sphinx', enabled: loaded_in_bundler('thinking-sphinx')
50
51
  }
51
52
 
52
53
  attribute :unicorn, Negroku::Feature, default: {
53
- name: "unicorn", enabled: loaded_in_bundler('unicorn')
54
+ name: 'unicorn', enabled: loaded_in_bundler('unicorn')
54
55
  }
55
56
 
56
57
  attribute :puma, Negroku::Feature, default: {
57
- name: "puma", enabled: loaded_in_bundler('puma')
58
+ name: 'puma', enabled: loaded_in_bundler('puma')
58
59
  }
59
60
 
60
61
  attribute :whenever, Negroku::Feature, default: {
61
- name: "whenever", enabled: File.exists?('config/schedule.rb')
62
+ name: 'whenever', enabled: File.exist?('config/schedule.rb')
62
63
  }
63
64
 
64
65
  # private
65
-
66
66
  end
67
67
 
68
68
  Negroku::Config = Negroku::ConfigFactory.new
@@ -1,3 +1,3 @@
1
1
  module Negroku
2
- VERSION = '2.7.0'
2
+ VERSION = '2.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: negroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Ignacio Donoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc