capistrano-env 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -0
  3. data/Gemfile +0 -8
  4. data/README.md +29 -2
  5. data/capistrano-env.gemspec +10 -4
  6. data/gemfiles/cap2.gemfile +6 -0
  7. data/gemfiles/cap3.gemfile +6 -0
  8. data/lib/capistrano/env/config.rb +4 -5
  9. data/lib/capistrano/env/formatter.rb +11 -0
  10. data/lib/capistrano/env/{plugin.rb → v2/plugin.rb} +2 -0
  11. data/lib/capistrano/env/v2.rb +4 -0
  12. data/lib/capistrano/env/v3/tasks/env.rake +19 -0
  13. data/lib/capistrano/env/v3.rb +4 -0
  14. data/lib/capistrano/env/version.rb +1 -1
  15. data/lib/capistrano/env.rb +21 -11
  16. data/lib/capistrano-env.rb +1 -1
  17. data/spec/capistrano/env/config_spec.rb +7 -6
  18. data/spec/capistrano/env/formatter/dotenv_formatter_spec.rb +1 -1
  19. data/spec/capistrano/env/{plugin_spec.rb → v2/plugin_spec.rb} +5 -2
  20. data/spec/capistrano/env_spec.rb +10 -3
  21. data/spec/gem_helper.rb +3 -0
  22. metadata +94 -126
  23. data/lib/capistrano/env/formatter/ruby_formatter.rb +0 -15
  24. data/lib/capistrano/env/railtie.rb +0 -10
  25. data/spec/capistrano/env/formatter/ruby_formatter_spec.rb +0 -12
  26. data/spec/capistrano/env/railtie_spec.rb +0 -11
  27. data/spec/dummy/.gitignore +0 -16
  28. data/spec/dummy/Gemfile +0 -46
  29. data/spec/dummy/README.rdoc +0 -28
  30. data/spec/dummy/Rakefile +0 -6
  31. data/spec/dummy/app/assets/images/.keep +0 -0
  32. data/spec/dummy/app/assets/javascripts/application.js +0 -17
  33. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  34. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  35. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  36. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  37. data/spec/dummy/app/mailers/.keep +0 -0
  38. data/spec/dummy/app/models/.keep +0 -0
  39. data/spec/dummy/app/models/concerns/.keep +0 -0
  40. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  41. data/spec/dummy/bin/bundle +0 -3
  42. data/spec/dummy/bin/rails +0 -4
  43. data/spec/dummy/bin/rake +0 -4
  44. data/spec/dummy/capenv.rb +0 -3
  45. data/spec/dummy/config/application.rb +0 -21
  46. data/spec/dummy/config/boot.rb +0 -4
  47. data/spec/dummy/config/database.yml +0 -25
  48. data/spec/dummy/config/environment.rb +0 -5
  49. data/spec/dummy/config/environments/development.rb +0 -29
  50. data/spec/dummy/config/environments/production.rb +0 -80
  51. data/spec/dummy/config/environments/test.rb +0 -36
  52. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  53. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  54. data/spec/dummy/config/initializers/hoge.rb +0 -1
  55. data/spec/dummy/config/initializers/inflections.rb +0 -16
  56. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  57. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  58. data/spec/dummy/config/initializers/session_store.rb +0 -3
  59. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  60. data/spec/dummy/config/locales/en.yml +0 -23
  61. data/spec/dummy/config/routes.rb +0 -56
  62. data/spec/dummy/config.ru +0 -4
  63. data/spec/dummy/db/schema.rb +0 -16
  64. data/spec/dummy/db/seeds.rb +0 -7
  65. data/spec/dummy/lib/assets/.keep +0 -0
  66. data/spec/dummy/lib/tasks/.keep +0 -0
  67. data/spec/dummy/log/.keep +0 -0
  68. data/spec/dummy/public/404.html +0 -58
  69. data/spec/dummy/public/422.html +0 -58
  70. data/spec/dummy/public/500.html +0 -57
  71. data/spec/dummy/public/favicon.ico +0 -0
  72. data/spec/dummy/public/robots.txt +0 -5
  73. data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
  74. data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
  75. data/spec/rails_helper.rb +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 550785f8cee8eb6aa25a022631db453481d3bcee
4
- data.tar.gz: 13c5af95d7e0b000a192062eef021f1e297f01bf
3
+ metadata.gz: 4e80641440a240740aa442c7b08635229133b96e
4
+ data.tar.gz: 845db65140d86877fa247ffc14f44d18dbb74b6b
5
5
  SHA512:
6
- metadata.gz: 5a082f8b3daec5596c9a82567cc9d513524ed91b411d5e53aac5336756e743d8c6448e04b8f3f43631c52ab449b0e91b1989be54c0c82f4eeac8c13562c792f5
7
- data.tar.gz: 4a805077d5574262e75bff2b0c159065a8f0c9e7619011b96b7dc63bf63f653d00ecafdf1eba463cd39d54c2fa7834735e00553baf5535ec0e281eec23d7ca42
6
+ metadata.gz: 8f8997657b5ad98511c1b9828cd397dbb6e84321cf90883ed974a3045958ab1f45da0e89193f1c9a71844eade6d1fd65724f2053f6a2e3de9b11097ceb37c80e
7
+ data.tar.gz: 1c3b2f26217acc7cda4a1edc8644a69487ea0fec4c47c7fdab27ac08dffec50434ba3668cd9ee670699aa85f96023201e82397fe0b634265369f6450cc7d67d0
data/.travis.yml CHANGED
@@ -2,6 +2,9 @@ language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
4
  - 2.1.3
5
+ gemfile:
6
+ - gemfiles/cap3.gemfile
7
+ - gemfiles/cap2.gemfile
5
8
  script:
6
9
  - bundle exec rake spec
7
10
  - bundle exec rubocop
data/Gemfile CHANGED
@@ -2,11 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in capistrano-env.gemspec
4
4
  gemspec
5
-
6
- group :development, :test do
7
- gem 'guard'
8
- gem 'guard-rspec'
9
- gem 'guard-rubocop'
10
- gem 'pry'
11
- gem 'coveralls', require: false
12
- end
data/README.md CHANGED
@@ -27,10 +27,15 @@ Or install it yourself as:
27
27
 
28
28
  ## Usage
29
29
 
30
+ ### 1. set env names in deploy.rb
30
31
 
31
- #### 1. set env names in deploy.rb
32
+ #### Capistrano 2.x
33
+
34
+ in `deploy.rb`
32
35
 
33
36
  ```ruby
37
+ require 'capistrano/env/v2'
38
+
34
39
  capenv.use do |env|
35
40
  env.add /^MYAPP_/
36
41
  env.add /^MYAPP_/ do |key|
@@ -42,7 +47,29 @@ capenv.use do |env|
42
47
  end
43
48
  ```
44
49
 
45
- #### 2. deploy
50
+ #### Capistrano 3.x
51
+
52
+ in `Capfile`
53
+
54
+ ```ruby
55
+ require 'capistrano/env/v3'
56
+ ```
57
+
58
+ in `deploy.rb`
59
+
60
+ ```ruby
61
+ Capistrano::Env.use do |env|
62
+ env.add /^MYAPP_/
63
+ env.add /^MYAPP_/ do |key|
64
+ key.gsub /^MYAPP_/, '' # replace keyname like MYAPP_DATABASE_URL => DATABASE_URL
65
+ end
66
+ env.add 'UNICORN_PROCESSES'
67
+ env.add 'HOGE', 'hage'
68
+ env.formatter = :dotenv #=> default is :ruby, but it is deprecated now.
69
+ end
70
+ ```
71
+
72
+ ### 2. deploy
46
73
 
47
74
  ```
48
75
  bundle exec cap production deploy
@@ -17,14 +17,20 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
- spec.post_install_message = 'formatter :ruby is deprecated! use :dotenv instead of :ruby.'
21
- spec.add_dependency 'rails', '>= 3.0', '< 5.0'
20
+ spec.post_install_message = 'formatter :ruby is removed! use :dotenv instead of :ruby.'
21
+
22
+ spec.add_dependency 'capistrano'
23
+ spec.add_dependency 'sshkit'
22
24
 
23
25
  spec.add_development_dependency 'bundler', '~> 1.3'
24
26
  spec.add_development_dependency 'rake'
25
27
  spec.add_development_dependency 'rspec'
26
- spec.add_development_dependency 'rspec-rails'
27
28
  spec.add_development_dependency 'rubocop'
28
29
  spec.add_development_dependency 'sqlite3'
29
- spec.add_development_dependency 'capistrano', '~> 2'
30
+ spec.add_development_dependency 'guard'
31
+ spec.add_development_dependency 'guard-rspec'
32
+ spec.add_development_dependency 'guard-rubocop'
33
+ spec.add_development_dependency 'pry'
34
+ spec.add_development_dependency 'pry-doc'
35
+ spec.add_development_dependency 'coveralls'
30
36
  end
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-env.gemspec
4
+ gemspec path: '../'
5
+
6
+ gem 'capistrano', '< 3'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-env.gemspec
4
+ gemspec path: '../'
5
+
6
+ gem 'capistrano', ENV['CAPISTRANO_VERSION'] || '>= 3'
@@ -1,3 +1,5 @@
1
+ require 'capistrano/env/formatter'
2
+
1
3
  module Capistrano
2
4
  module Env
3
5
  class Config
@@ -9,14 +11,11 @@ module Capistrano
9
11
  end
10
12
 
11
13
  def formatter
12
- self.formatter = :ruby unless @formatter
14
+ self.formatter = :dotenv unless @formatter
13
15
  @formatter
14
16
  end
15
17
 
16
- def formatter=(value)
17
- warn 'formatter :ruby is deprecated! use :dotenv with dotenv(-rails).gem' if value == :ruby
18
- @formatter = value
19
- end
18
+ attr_writer :formatter
20
19
 
21
20
  def add(name_or_regexp, val = nil, &block)
22
21
  if val && name_or_regexp.is_a?(String)
@@ -0,0 +1,11 @@
1
+ module Capistrano
2
+ module Env
3
+ module Formatter
4
+ class Base
5
+ def self.filename
6
+ "capenv.#{extname}"
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,5 @@
1
+ require 'capistrano'
2
+
1
3
  module Capistrano
2
4
  module Env
3
5
  module Plugin
@@ -0,0 +1,4 @@
1
+ require 'capistrano/env/version'
2
+
3
+ require 'capistrano/env/config'
4
+ require 'capistrano/env/v2/plugin'
@@ -0,0 +1,19 @@
1
+ namespace :capenv do
2
+ desc 'copy .env to release_path'
3
+ task :copy do
4
+ on roles(:all) do
5
+ upload! StringIO.new(Capistrano::Env.to_s), "#{release_path}/#{Capistrano::Env.filename}"
6
+ end
7
+ end
8
+
9
+ task :set_envs do
10
+ set :default_environment, Capistrano::Env.envs
11
+ end
12
+ end
13
+
14
+ stages.each do |stage|
15
+ after stage, 'capenv:set_envs'
16
+ end
17
+
18
+ after 'deploy:updating', 'capenv:copy'
19
+ before 'deploy:restart', 'capenv:copy'
@@ -0,0 +1,4 @@
1
+ require 'capistrano/env/version'
2
+ require 'capistrano/env'
3
+
4
+ load File.expand_path('../v3/tasks/env.rake', __FILE__)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Env
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
@@ -1,17 +1,27 @@
1
- require 'capistrano/env/version'
1
+ require 'capistrano/env/config'
2
2
 
3
3
  module Capistrano
4
4
  module Env
5
- module Formatter
6
- class Base
7
- def self.filename
8
- "capenv.#{extname}"
9
- end
10
- end
5
+ def self.use(&block)
6
+ block.call(config)
7
+ end
8
+
9
+ def self.envs
10
+ config.envs
11
+ end
12
+
13
+ def self.to_s
14
+ config.capenv_content
15
+ end
16
+
17
+ def self.filename
18
+ config.capenv_file
19
+ end
20
+
21
+ private
22
+
23
+ def self.config
24
+ @config ||= Capistrano::Env::Config.new
11
25
  end
12
26
  end
13
27
  end
14
-
15
- require 'capistrano/env/plugin'
16
- require 'capistrano/env/config'
17
- require 'capistrano/env/railtie' if defined? Rails
@@ -1 +1 @@
1
- require 'capistrano/env'
1
+ require 'capistrano/env/v2' if defined?(Capistrano) && Capistrano.respond_to?(:plugin) # capistrano-2.x
@@ -1,24 +1,25 @@
1
- require 'rails_helper'
1
+ require 'gem_helper'
2
+ require 'capistrano/env/config'
2
3
 
3
4
  describe Capistrano::Env::Config do
4
5
  let(:config) { described_class.new }
5
6
  describe '#formatter' do
6
- it { expect(config.formatter).to eq :ruby }
7
+ it { expect(config.formatter).to eq :dotenv }
7
8
  end
8
9
 
9
10
  describe '#formatter class' do
10
- it { expect(config.formatter_class).to eq Capistrano::Env::Formatter::RubyFormatter }
11
+ it { expect(config.formatter_class).to eq Capistrano::Env::Formatter::DotenvFormatter }
11
12
  end
12
13
 
13
14
  describe '#capenv_file' do
14
- it { expect(config.capenv_file).to eq 'capenv.rb' }
15
+ it { expect(config.capenv_file).to eq '.env' }
15
16
  end
16
17
 
17
18
  describe '#capenv_content' do
18
19
  it do
19
- require 'capistrano/env/formatter/ruby_formatter'
20
+ require 'capistrano/env/formatter/dotenv_formatter'
20
21
  allow(config).to receive(:envs).and_return('a' => 'b')
21
- expect(Capistrano::Env::Formatter::RubyFormatter).to receive(:format).with('a' => 'b').and_return 'hello'
22
+ expect(Capistrano::Env::Formatter::DotenvFormatter).to receive(:format).with('a' => 'b').and_return 'hello'
22
23
  expect(config.capenv_content).to eq 'hello'
23
24
  end
24
25
  end
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'gem_helper'
2
2
  require 'capistrano/env/formatter/dotenv_formatter'
3
3
 
4
4
  describe Capistrano::Env::Formatter::DotenvFormatter do
@@ -1,7 +1,10 @@
1
- require 'spec_helper'
2
- require 'capistrano'
1
+ require 'gem_helper'
2
+ require 'capistrano/env/v2'
3
3
 
4
4
  describe Capistrano::Env::Plugin do
5
+ before do
6
+ skip 'capistrano-3.x not support it' unless Capistrano.respond_to?(:plugin)
7
+ end
5
8
  let(:capistrano) { Capistrano::Configuration.new }
6
9
 
7
10
  describe '#capenv' do
@@ -1,7 +1,14 @@
1
- require 'rails_helper'
1
+ require 'gem_helper'
2
+ require 'capistrano/env'
2
3
 
3
4
  describe Capistrano::Env do
4
- it 'should have a version number' do
5
- expect(Capistrano::Env::VERSION).not_to be_nil
5
+ before do
6
+ Capistrano::Env.use do |env|
7
+ env.add 'HELLO', 'WORLD'
8
+ end
6
9
  end
10
+
11
+ it { expect(Capistrano::Env.to_s.chomp).to eq 'HELLO="WORLD"' }
12
+ it { expect(Capistrano::Env.envs).to eq 'HELLO' => 'WORLD' }
13
+ it { expect(Capistrano::Env.filename).to eq '.env' }
7
14
  end
@@ -0,0 +1,3 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'coveralls'
3
+ Coveralls.wear!
metadata CHANGED
@@ -1,35 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - masarakki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-23 00:00:00.000000000 Z
11
+ date: 2014-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5.0'
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '3.0'
30
- - - "<"
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sshkit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
31
39
  - !ruby/object:Gem::Version
32
- version: '5.0'
40
+ version: '0'
33
41
  - !ruby/object:Gem::Dependency
34
42
  name: bundler
35
43
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +81,7 @@ dependencies:
73
81
  - !ruby/object:Gem::Version
74
82
  version: '0'
75
83
  - !ruby/object:Gem::Dependency
76
- name: rspec-rails
84
+ name: rubocop
77
85
  requirement: !ruby/object:Gem::Requirement
78
86
  requirements:
79
87
  - - ">="
@@ -87,7 +95,7 @@ dependencies:
87
95
  - !ruby/object:Gem::Version
88
96
  version: '0'
89
97
  - !ruby/object:Gem::Dependency
90
- name: rubocop
98
+ name: sqlite3
91
99
  requirement: !ruby/object:Gem::Requirement
92
100
  requirements:
93
101
  - - ">="
@@ -101,7 +109,7 @@ dependencies:
101
109
  - !ruby/object:Gem::Version
102
110
  version: '0'
103
111
  - !ruby/object:Gem::Dependency
104
- name: sqlite3
112
+ name: guard
105
113
  requirement: !ruby/object:Gem::Requirement
106
114
  requirements:
107
115
  - - ">="
@@ -115,19 +123,75 @@ dependencies:
115
123
  - !ruby/object:Gem::Version
116
124
  version: '0'
117
125
  - !ruby/object:Gem::Dependency
118
- name: capistrano
126
+ name: guard-rspec
119
127
  requirement: !ruby/object:Gem::Requirement
120
128
  requirements:
121
- - - "~>"
129
+ - - ">="
122
130
  - !ruby/object:Gem::Version
123
- version: '2'
131
+ version: '0'
124
132
  type: :development
125
133
  prerelease: false
126
134
  version_requirements: !ruby/object:Gem::Requirement
127
135
  requirements:
128
- - - "~>"
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: guard-rubocop
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
129
151
  - !ruby/object:Gem::Version
130
- version: '2'
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry-doc
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: coveralls
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
131
195
  description: capistrano with environments
132
196
  email:
133
197
  - masaki@hisme.net
@@ -145,75 +209,29 @@ files:
145
209
  - README.md
146
210
  - Rakefile
147
211
  - capistrano-env.gemspec
212
+ - gemfiles/cap2.gemfile
213
+ - gemfiles/cap3.gemfile
148
214
  - lib/capistrano-env.rb
149
215
  - lib/capistrano/env.rb
150
216
  - lib/capistrano/env/config.rb
217
+ - lib/capistrano/env/formatter.rb
151
218
  - lib/capistrano/env/formatter/dotenv_formatter.rb
152
- - lib/capistrano/env/formatter/ruby_formatter.rb
153
- - lib/capistrano/env/plugin.rb
154
- - lib/capistrano/env/railtie.rb
219
+ - lib/capistrano/env/v2.rb
220
+ - lib/capistrano/env/v2/plugin.rb
221
+ - lib/capistrano/env/v3.rb
222
+ - lib/capistrano/env/v3/tasks/env.rake
155
223
  - lib/capistrano/env/version.rb
156
224
  - spec/capistrano/env/config_spec.rb
157
225
  - spec/capistrano/env/formatter/dotenv_formatter_spec.rb
158
- - spec/capistrano/env/formatter/ruby_formatter_spec.rb
159
- - spec/capistrano/env/plugin_spec.rb
160
- - spec/capistrano/env/railtie_spec.rb
226
+ - spec/capistrano/env/v2/plugin_spec.rb
161
227
  - spec/capistrano/env_spec.rb
162
- - spec/dummy/.gitignore
163
- - spec/dummy/Gemfile
164
- - spec/dummy/README.rdoc
165
- - spec/dummy/Rakefile
166
- - spec/dummy/app/assets/images/.keep
167
- - spec/dummy/app/assets/javascripts/application.js
168
- - spec/dummy/app/assets/stylesheets/application.css
169
- - spec/dummy/app/controllers/application_controller.rb
170
- - spec/dummy/app/controllers/concerns/.keep
171
- - spec/dummy/app/helpers/application_helper.rb
172
- - spec/dummy/app/mailers/.keep
173
- - spec/dummy/app/models/.keep
174
- - spec/dummy/app/models/concerns/.keep
175
- - spec/dummy/app/views/layouts/application.html.erb
176
- - spec/dummy/bin/bundle
177
- - spec/dummy/bin/rails
178
- - spec/dummy/bin/rake
179
- - spec/dummy/capenv.rb
180
- - spec/dummy/config.ru
181
- - spec/dummy/config/application.rb
182
- - spec/dummy/config/boot.rb
183
- - spec/dummy/config/database.yml
184
- - spec/dummy/config/environment.rb
185
- - spec/dummy/config/environments/development.rb
186
- - spec/dummy/config/environments/production.rb
187
- - spec/dummy/config/environments/test.rb
188
- - spec/dummy/config/initializers/backtrace_silencers.rb
189
- - spec/dummy/config/initializers/filter_parameter_logging.rb
190
- - spec/dummy/config/initializers/hoge.rb
191
- - spec/dummy/config/initializers/inflections.rb
192
- - spec/dummy/config/initializers/mime_types.rb
193
- - spec/dummy/config/initializers/secret_token.rb
194
- - spec/dummy/config/initializers/session_store.rb
195
- - spec/dummy/config/initializers/wrap_parameters.rb
196
- - spec/dummy/config/locales/en.yml
197
- - spec/dummy/config/routes.rb
198
- - spec/dummy/db/schema.rb
199
- - spec/dummy/db/seeds.rb
200
- - spec/dummy/lib/assets/.keep
201
- - spec/dummy/lib/tasks/.keep
202
- - spec/dummy/log/.keep
203
- - spec/dummy/public/404.html
204
- - spec/dummy/public/422.html
205
- - spec/dummy/public/500.html
206
- - spec/dummy/public/favicon.ico
207
- - spec/dummy/public/robots.txt
208
- - spec/dummy/vendor/assets/javascripts/.keep
209
- - spec/dummy/vendor/assets/stylesheets/.keep
210
- - spec/rails_helper.rb
228
+ - spec/gem_helper.rb
211
229
  - spec/spec_helper.rb
212
230
  homepage: https://github.com/masarakki/capistrano-env
213
231
  licenses:
214
232
  - MIT
215
233
  metadata: {}
216
- post_install_message: formatter :ruby is deprecated! use :dotenv instead of :ruby.
234
+ post_install_message: formatter :ruby is removed! use :dotenv instead of :ruby.
217
235
  rdoc_options: []
218
236
  require_paths:
219
237
  - lib
@@ -236,57 +254,7 @@ summary: capistrano with environments
236
254
  test_files:
237
255
  - spec/capistrano/env/config_spec.rb
238
256
  - spec/capistrano/env/formatter/dotenv_formatter_spec.rb
239
- - spec/capistrano/env/formatter/ruby_formatter_spec.rb
240
- - spec/capistrano/env/plugin_spec.rb
241
- - spec/capistrano/env/railtie_spec.rb
257
+ - spec/capistrano/env/v2/plugin_spec.rb
242
258
  - spec/capistrano/env_spec.rb
243
- - spec/dummy/.gitignore
244
- - spec/dummy/Gemfile
245
- - spec/dummy/README.rdoc
246
- - spec/dummy/Rakefile
247
- - spec/dummy/app/assets/images/.keep
248
- - spec/dummy/app/assets/javascripts/application.js
249
- - spec/dummy/app/assets/stylesheets/application.css
250
- - spec/dummy/app/controllers/application_controller.rb
251
- - spec/dummy/app/controllers/concerns/.keep
252
- - spec/dummy/app/helpers/application_helper.rb
253
- - spec/dummy/app/mailers/.keep
254
- - spec/dummy/app/models/.keep
255
- - spec/dummy/app/models/concerns/.keep
256
- - spec/dummy/app/views/layouts/application.html.erb
257
- - spec/dummy/bin/bundle
258
- - spec/dummy/bin/rails
259
- - spec/dummy/bin/rake
260
- - spec/dummy/capenv.rb
261
- - spec/dummy/config.ru
262
- - spec/dummy/config/application.rb
263
- - spec/dummy/config/boot.rb
264
- - spec/dummy/config/database.yml
265
- - spec/dummy/config/environment.rb
266
- - spec/dummy/config/environments/development.rb
267
- - spec/dummy/config/environments/production.rb
268
- - spec/dummy/config/environments/test.rb
269
- - spec/dummy/config/initializers/backtrace_silencers.rb
270
- - spec/dummy/config/initializers/filter_parameter_logging.rb
271
- - spec/dummy/config/initializers/hoge.rb
272
- - spec/dummy/config/initializers/inflections.rb
273
- - spec/dummy/config/initializers/mime_types.rb
274
- - spec/dummy/config/initializers/secret_token.rb
275
- - spec/dummy/config/initializers/session_store.rb
276
- - spec/dummy/config/initializers/wrap_parameters.rb
277
- - spec/dummy/config/locales/en.yml
278
- - spec/dummy/config/routes.rb
279
- - spec/dummy/db/schema.rb
280
- - spec/dummy/db/seeds.rb
281
- - spec/dummy/lib/assets/.keep
282
- - spec/dummy/lib/tasks/.keep
283
- - spec/dummy/log/.keep
284
- - spec/dummy/public/404.html
285
- - spec/dummy/public/422.html
286
- - spec/dummy/public/500.html
287
- - spec/dummy/public/favicon.ico
288
- - spec/dummy/public/robots.txt
289
- - spec/dummy/vendor/assets/javascripts/.keep
290
- - spec/dummy/vendor/assets/stylesheets/.keep
291
- - spec/rails_helper.rb
259
+ - spec/gem_helper.rb
292
260
  - spec/spec_helper.rb