inline_forms 1.3.20 → 1.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/inline_forms +12 -4
- data/lib/generators/templates/deploy.rb +14 -8
- data/lib/inline_forms/version.rb +1 -1
- metadata +2 -2
data/bin/inline_forms
CHANGED
@@ -178,9 +178,17 @@ end
|
|
178
178
|
File.open( 'app/helpers/application_helper.rb', 'w') {|f| f.write(app_helper) }
|
179
179
|
|
180
180
|
|
181
|
-
|
182
|
-
|
183
|
-
|
181
|
+
puts "Injecting precompile assets stuff in production.rb...\n"
|
182
|
+
precomp = "
|
183
|
+
\n
|
184
|
+
\n
|
185
|
+
#
|
186
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)\n
|
187
|
+
#{app_name}::Application.configure do\n
|
188
|
+
config.assets.precompile += %w( inline_forms_application.js inline_forms_application.css devise.css )\n
|
189
|
+
end\n
|
190
|
+
\n"
|
191
|
+
File.open( 'app/config/environments/production.rb', 'w') {|f| f.write(precomp) }
|
184
192
|
|
185
193
|
puts "Capify...\n"
|
186
194
|
system('capify .')
|
@@ -199,7 +207,7 @@ system('git add .')
|
|
199
207
|
system('git commit -a -m " * Initial"')
|
200
208
|
|
201
209
|
puts "\n\nDone! Now make your tables with 'rails g inline_forms ...\n"
|
202
|
-
puts "\nDon't forget: edit config/{routes.rb, deploy.rb}, .git/config, delete public/index.html\n\n"
|
210
|
+
puts "\nDon't forget: edit .rvmrc, config/{routes.rb, deploy.rb}, .git/config, delete public/index.html\n\n"
|
203
211
|
|
204
212
|
|
205
213
|
|
@@ -37,13 +37,23 @@ before 'deploy:setup', 'rvm:install_ruby'
|
|
37
37
|
after "deploy:update_code", "deploy:fix_stuff"
|
38
38
|
after "deploy:update_code", "deploy:precompile_assets"
|
39
39
|
|
40
|
+
|
41
|
+
|
40
42
|
namespace :deploy do
|
41
|
-
|
42
|
-
|
43
|
+
desc "Zero-downtime restart of Unicorn"
|
44
|
+
task :restart, :except => { :no_release => true } do
|
45
|
+
run "kill -s USR2 `cat #{shared_path}/pids/unicorn.pid`"
|
43
46
|
end
|
44
47
|
|
45
|
-
|
46
|
-
|
48
|
+
desc "Start unicorn"
|
49
|
+
task :start, :except => { :no_release => true } do
|
50
|
+
run "rvm rvmrc trust #{current_release}"
|
51
|
+
run "cd #{current_path} ; r193_unicorn -c config/unicorn.rb -D -E production"
|
52
|
+
end
|
53
|
+
|
54
|
+
desc "Stop unicorn"
|
55
|
+
task :stop, :except => { :no_release => true } do
|
56
|
+
run "kill -s QUIT `cat #{shared_path}/pids/unicorn.pid`"
|
47
57
|
end
|
48
58
|
|
49
59
|
desc "Fix Stuff."
|
@@ -63,8 +73,4 @@ namespace :deploy do
|
|
63
73
|
run "cd #{release_path} && bundle exec rake #{task} RAILS_ENV=#{rails_env}"
|
64
74
|
end
|
65
75
|
|
66
|
-
desc "Restart Application"
|
67
|
-
task :restart, :roles => :app do
|
68
|
-
run "touch #{current_release}/tmp/restart.txt"
|
69
|
-
end
|
70
76
|
end
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.21
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-rails
|