negroku 2.5.1 → 2.5.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: 6dc5dd63e8d9925a128b800cfe17a86d5c5d006b
4
- data.tar.gz: 9f14187bce74d00feaf4a08539eb4fcb0b3291a5
3
+ metadata.gz: 57cff38323c936dbe0e309fb0541970c33115beb
4
+ data.tar.gz: 88290a98bea6dfc96cfc9a2d8439ec1584fe1f11
5
5
  SHA512:
6
- metadata.gz: 76609f1f056cc6ea9963907a99ec65f8867ea37dd549bcd312edf06eb3dad825aa3e54993e59075c391885a613ee17e44816704476540576c15b13bc6fdf5602
7
- data.tar.gz: 2427d7c4dcef375ebaf3549274e8622ad8a609f1914d71a61f41f7f70def2f51183f669cbb76a4c4de104395924ad2ae9f0977120ce501fb630821846ca7c4a0
6
+ metadata.gz: 0e6f402fd74fc9e7283b92c3a450a9e3242df5737f30fd3caf4154dcdcd5aa0bec015b56f57fd7adc75163c4f8efe2ad0763f28df9fbb4040a5171c9ab559c23
7
+ data.tar.gz: 80076fbe6ca33b224d7692804aa50a1d5ce979cc09d7cccd3f7efea61cccbd25c1c1449161e322bd709aa25881dea7786fd68a8f17bcec4601bb3a9fa4bac10f
data/CHANGELOG.md ADDED
@@ -0,0 +1,111 @@
1
+ # Negroku 2.x Changelog
2
+
3
+ Reverse Chronological Order:
4
+
5
+ ## Unreleased
6
+
7
+ https://github.com/platanus/negroku/compare/v2.5.2...HEAD
8
+
9
+ ## `2.5.2`
10
+
11
+ https://github.com/platanus/negroku/compare/v2.5.1...v2.5.2
12
+
13
+ FIX:
14
+ - Remote rails console.
15
+ - Delayed job detection from gemfile
16
+ - Gem detection now use locked specs to detect subdependencies
17
+
18
+ ## `2.5.1`
19
+
20
+ https://github.com/platanus/negroku/compare/v2.5.0...v2.5.1
21
+
22
+ FEATURE:
23
+ - Runs `bundle binstubs negroku capistrano` on app creation.
24
+
25
+ ## `2.5.0`
26
+
27
+ https://github.com/platanus/negroku/compare/v2.4.2...v2.5.0
28
+
29
+ FEATURES:
30
+ - Capfile requires are inferred from the project and asked on the cli ui
31
+ - Adds update command `negroku app update` to update the Capfile with the latest features
32
+ - Adds gem version checking from rubygems
33
+ - Adds Capfile version checking based on current gem version
34
+
35
+ FIX:
36
+ - nginx default value for ssl certificate key
37
+
38
+ BREAKING CHANGES:
39
+ - Multiple requires from the Capfile changed, so yo need to update the capfile using the `negroku app update` command
40
+
41
+ ## `2.4.2`
42
+
43
+ https://github.com/platanus/negroku/compare/v2.4.1...v2.4.2
44
+
45
+ FIX:
46
+ - sphinx failed on first time deploys
47
+ - change eye default timeouts for delayed jobs and process template
48
+
49
+ ## `2.4.1`
50
+
51
+ https://github.com/platanus/negroku/compare/v2.4.0...v2.4.1
52
+
53
+ FIX:
54
+ - Fix unicorn restart bug, thanks to @nicolasmery and @amosrivera
55
+
56
+ ## `2.4.0`
57
+
58
+ https://github.com/platanus/negroku/compare/v2.3.5...v2.4.0
59
+
60
+ FEATURE
61
+ - Unicorn: adds a way to change cpu and memory eye check for unicorn
62
+
63
+ FIXES
64
+ - Rbenv:
65
+ - `rbenv:vars:show` will work even before the firts deploy, close #96
66
+ - Bulk environmental variables on stage creation, close #99
67
+
68
+ BREAKING CHANGES
69
+ - By default negroku will load capistrano task with the `.rake` extension intead of `.cap` This will change only if you udpdate the `Capfile`
70
+
71
+ ## `2.3.5`
72
+
73
+ https://github.com/platanus/negroku/compare/v2.3.1...v2.3.5
74
+
75
+ - improve sphinx support. Now it rebuild the index whenever the configuration changed
76
+ - updates capistrano-nodenv. Now it logs successful instead of fail when the correct node version is found
77
+ - logs cab be terminated gracefully with ctrl+c
78
+
79
+ ## `2.3.1`
80
+
81
+ https://github.com/platanus/negroku/compare/v2.3.0...v2.3.1
82
+
83
+ - eye roles not being set (capistrano 3.4.0 now really honor the roles)
84
+
85
+ ## `2.3.0`
86
+
87
+ https://github.com/platanus/negroku/compare/v2.2.0...v2.3.0
88
+
89
+ - disable delayed-jobs and whenever by default on the capfile template
90
+ - adds support for sphinx and thinkinx sphinx processes and tasks
91
+ - update capistrano dependency to `3.4.0`
92
+ - adds github deployment api support
93
+
94
+ ## `2.2.0`
95
+
96
+ https://github.com/platanus/negroku/compare/v2.1.0...v2.2.0
97
+
98
+ FIXES:
99
+ - fixed delayed job require on capfile
100
+
101
+ BREAKING CHANGES:
102
+ - change default location of rbenv. Now the default are global installation on `/urs/local/rbenv`
103
+ - change default location of nodenv. Now the default are global installation on `/urs/local/nodenv`
104
+ - eye action are forced to the global ruby version instead of the project ruby version
105
+
106
+ ## `2.1.0`
107
+
108
+ - Application is reloaded when environment change
109
+
110
+ BRAKING CHANGES:
111
+ - `rbnev:vars` tasks `add` and `remove` where changed to `set` and `unset`
data/README.md CHANGED
@@ -153,6 +153,10 @@ To deploy your application you just need to run capistrano task to do so.
153
153
  $ cap staging deploy # to deploy to the staging stage
154
154
  ```
155
155
 
156
+ ## Tasks
157
+
158
+ 1. [Rails](docs/TASKS.md#rails)
159
+
156
160
  ## Contributing
157
161
 
158
162
  1. Fork it
data/docs/TASKS.md ADDED
@@ -0,0 +1,17 @@
1
+ # Tasks
2
+
3
+ * [Rails](#rails)
4
+ * [Remote Console](#remote-console)
5
+
6
+ ### Rails
7
+
8
+ ##### Remote Console
9
+
10
+ Negroku adds support to remotelly connect to the rails console integrating de [capistrano-rails-console][1] gem.
11
+
12
+ ```shell
13
+ cap <stage> rails:console
14
+ cap <stage> rails:console sandbox=1
15
+ ```
16
+
17
+ [1]: https://github.com/ydkn/capistrano-rails-console
@@ -9,28 +9,6 @@ namespace :load do
9
9
  end
10
10
  end
11
11
 
12
- namespace :rails do
13
- desc "Open the rails console on the primary remote app server"
14
- task :console do
15
- on roles(:app), :primary => true do |host|
16
- execute_interactively host, "console #{fetch(:rails_env)}"
17
- end
18
- end
19
-
20
- desc "Open the rails dbconsole on the primary remote app server"
21
- task :dbconsole do
22
- on roles(:app), :primary => true do |host|
23
- execute_interactively host, "dbconsole #{fetch(:rails_env)}"
24
- end
25
- end
26
-
27
- def execute_interactively(host, command)
28
- command = "cd #{fetch(:deploy_to)}/current && #{SSHKit.config.command_map[:bundle]} exec rails #{command}"
29
- puts command if fetch(:log_level) == :debug
30
- exec "ssh -l #{host.user} #{host.hostname} -p #{host.port || 22} -t '#{command}'"
31
- end
32
- end
33
-
34
12
  namespace :negroku do
35
13
 
36
14
  namespace :rails do
@@ -14,7 +14,7 @@ class Negroku::ConfigFactory
14
14
  include Virtus.model
15
15
 
16
16
  def self.loaded_in_bundler(name)
17
- Bundler.load.dependencies.any? {|a| a.name == name}
17
+ Bundler.locked_gems.specs.any? {|a| a.name == name}
18
18
  end
19
19
 
20
20
  attribute :bower, Negroku::Feature, default: {
@@ -26,7 +26,7 @@ class Negroku::ConfigFactory
26
26
  }
27
27
 
28
28
  attribute :delayed_job, Negroku::Feature, default: {
29
- name: "delayed_job", enabled: loaded_in_bundler('delayed_jobs')
29
+ name: "delayed_job", enabled: loaded_in_bundler('delayed_job')
30
30
  }
31
31
 
32
32
  attribute :nginx, Negroku::Feature, default: {
@@ -18,6 +18,7 @@ require 'capistrano/github'
18
18
  <%= "#" unless config.bundler.enabled? %>require 'capistrano/bundler'
19
19
  <%= "#" unless config.rails.enabled? %>require 'capistrano/rails/assets'
20
20
  <%= "#" unless config.rails.enabled? %>require 'capistrano/rails/migrations'
21
+ <%= "#" unless config.rails.enabled? %>require 'capistrano/rails/console'
21
22
 
22
23
  # Node
23
24
  <%= "#" unless config.nodenv.enabled? %>require 'capistrano/nodenv'
@@ -1,3 +1,3 @@
1
1
  module Negroku
2
- VERSION = '2.5.1'
2
+ VERSION = '2.5.2'
3
3
  end
data/negroku.gemspec CHANGED
@@ -29,6 +29,7 @@ spec = Gem::Specification.new do |s|
29
29
  s.add_runtime_dependency('capistrano-npm', '~> 1.0.1')
30
30
  s.add_runtime_dependency('capistrano-nc', '~> 0.1.4')
31
31
  s.add_runtime_dependency('capistrano-github', '~> 0.1.1')
32
+ s.add_runtime_dependency('capistrano-rails-console', '~> 0.5.2')
32
33
 
33
34
  s.add_runtime_dependency('capistrano-nodenv', '~> 1.0.1')
34
35
  s.add_runtime_dependency('capistrano-bower', '~> 1.1.0')
@@ -4,7 +4,12 @@ describe "app cli" do
4
4
 
5
5
  describe "install cmd" do
6
6
 
7
+ let(:test_version){ "2.4.2" }
8
+
7
9
  before(:each) do
10
+
11
+ allow(Gems).to receive(:versions).and_return([{"number" => test_version}])
12
+
8
13
  FakeFS::FileSystem.clear
9
14
  FakeFS::FileSystem.clone(File.join('lib','negroku','templates'))
10
15
  FakeFS::FileSystem.clone(File.join('lib','negroku','locales'))
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.5.1
4
+ version: 2.5.2
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-06-24 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - ~>
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.1.1
181
+ - !ruby/object:Gem::Dependency
182
+ name: capistrano-rails-console
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: 0.5.2
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ~>
193
+ - !ruby/object:Gem::Version
194
+ version: 0.5.2
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: capistrano-nodenv
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -357,11 +371,13 @@ files:
357
371
  - .gitignore
358
372
  - .rspec
359
373
  - .travis.yml
374
+ - CHANGELOG.md
360
375
  - Gemfile
361
376
  - LICENSE.txt
362
377
  - README.md
363
378
  - Rakefile
364
379
  - bin/negroku
380
+ - docs/TASKS.md
365
381
  - lib/negroku.rb
366
382
  - lib/negroku/capistrano/deploy.rb
367
383
  - lib/negroku/capistrano/eye.rb