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 +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/negroku/config.rb +14 -14
- data/lib/negroku/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1d9ecc22e781dfa34d98eda35a0152c45f6560d
|
4
|
+
data.tar.gz: d1c714e5c32e0731b4e217f2455e6684914f1405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
|
data/lib/negroku/config.rb
CHANGED
@@ -13,56 +13,56 @@ end
|
|
13
13
|
class Negroku::ConfigFactory
|
14
14
|
include Virtus.model
|
15
15
|
|
16
|
-
def self.loaded_in_bundler(
|
17
|
-
Bundler.locked_gems.
|
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:
|
21
|
+
name: 'bower', enabled: File.exist?('bower.json')
|
22
22
|
}
|
23
23
|
|
24
24
|
attribute :bundler, Negroku::Feature, default: {
|
25
|
-
name:
|
25
|
+
name: 'bundler', enabled: File.exist?('Gemfile')
|
26
26
|
}
|
27
27
|
|
28
28
|
attribute :delayed_job, Negroku::Feature, default: {
|
29
|
-
name:
|
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:
|
34
|
+
name: 'nginx', enabled: true, required: true
|
34
35
|
}
|
35
36
|
|
36
37
|
attribute :nodenv, Negroku::Feature, default: {
|
37
|
-
name:
|
38
|
+
name: 'nodenv', enabled: true, required: true
|
38
39
|
}
|
39
40
|
|
40
41
|
attribute :rails, Negroku::Feature, default: {
|
41
|
-
name:
|
42
|
+
name: 'rails', enabled: loaded_in_bundler('rails')
|
42
43
|
}
|
43
44
|
|
44
45
|
attribute :rbenv, Negroku::Feature, default: {
|
45
|
-
name:
|
46
|
+
name: 'rbenv', enabled: true, required: true
|
46
47
|
}
|
47
48
|
|
48
49
|
attribute :sphinx, Negroku::Feature, default: {
|
49
|
-
name:
|
50
|
+
name: 'sphinx', enabled: loaded_in_bundler('thinking-sphinx')
|
50
51
|
}
|
51
52
|
|
52
53
|
attribute :unicorn, Negroku::Feature, default: {
|
53
|
-
name:
|
54
|
+
name: 'unicorn', enabled: loaded_in_bundler('unicorn')
|
54
55
|
}
|
55
56
|
|
56
57
|
attribute :puma, Negroku::Feature, default: {
|
57
|
-
name:
|
58
|
+
name: 'puma', enabled: loaded_in_bundler('puma')
|
58
59
|
}
|
59
60
|
|
60
61
|
attribute :whenever, Negroku::Feature, default: {
|
61
|
-
name:
|
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
|
data/lib/negroku/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|