welaika-suspenders 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/suspenders/app_builder.rb +16 -0
- data/lib/suspenders/generators/app_generator.rb +1 -0
- data/lib/suspenders/version.rb +1 -1
- data/spec/features/heroku_spec.rb +9 -0
- data/templates/_flashes.html.slim +1 -1
- data/templates/bin_deploy +12 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66121832b2bc90f1678cb690a3cb874061ce855
|
4
|
+
data.tar.gz: 9614ebc4b4edfb78e225a1a439cd969740c07acb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ffb5827952cd06b2d0a80d8b8a64e0c4c18dba5ff4a652526a71418c58d7d4e92952508c82451b05894802bf2049e01db4b9adbc4c0383b6b8be391ae046387
|
7
|
+
data.tar.gz: 8e6aa55c73af4c65135406ac728fd6422f276ba1f70f117eaf91d26b9574ade5b51bcfb98eaa09b8c554d5396840fe26e33d5a3e2c2e6e55e1dcad5ba3fc32e1
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
welaika-suspenders (2.
|
4
|
+
welaika-suspenders (2.2.0)
|
5
5
|
bitters (~> 0.10.0)
|
6
6
|
bundler (~> 1.3)
|
7
7
|
rails (= 4.1.8)
|
@@ -97,7 +97,7 @@ GEM
|
|
97
97
|
activesupport (= 4.1.8)
|
98
98
|
rake (>= 0.8.7)
|
99
99
|
thor (>= 0.18.1, < 2.0)
|
100
|
-
rake (10.4.
|
100
|
+
rake (10.4.2)
|
101
101
|
rspec (2.99.0)
|
102
102
|
rspec-core (~> 2.99.0)
|
103
103
|
rspec-expectations (~> 2.99.0)
|
@@ -112,7 +112,7 @@ GEM
|
|
112
112
|
multi_json (~> 1.0)
|
113
113
|
rack (~> 1.0)
|
114
114
|
tilt (~> 1.1, != 1.3.0)
|
115
|
-
sprockets-rails (2.2.
|
115
|
+
sprockets-rails (2.2.2)
|
116
116
|
actionpack (>= 3.0)
|
117
117
|
activesupport (>= 3.0)
|
118
118
|
sprockets (>= 2.8, < 4.0)
|
@@ -341,6 +341,22 @@ fi
|
|
341
341
|
end
|
342
342
|
end
|
343
343
|
|
344
|
+
def provide_deploy_script
|
345
|
+
copy_file "bin_deploy", "bin/deploy"
|
346
|
+
|
347
|
+
instructions = <<-MARKDOWN
|
348
|
+
## Deploying
|
349
|
+
|
350
|
+
If you have previously run the `./bin/setup` script,
|
351
|
+
you can deploy to staging and production with:
|
352
|
+
|
353
|
+
$ ./bin/deploy staging
|
354
|
+
$ ./bin/deploy production
|
355
|
+
MARKDOWN
|
356
|
+
|
357
|
+
append_file "README.md", instructions
|
358
|
+
end
|
359
|
+
|
344
360
|
def create_github_repo(repo_name)
|
345
361
|
path_addition = override_path_for_tests
|
346
362
|
run "#{path_addition} hub create #{repo_name}"
|
data/lib/suspenders/version.rb
CHANGED
@@ -15,5 +15,14 @@ feature 'Heroku' do
|
|
15
15
|
|
16
16
|
expect(bin_setup).to include("heroku join --app #{app_name}-staging")
|
17
17
|
expect(bin_setup).to include("heroku join --app #{app_name}-production")
|
18
|
+
|
19
|
+
bin_deploy = IO.read("#{project_path}/bin/deploy")
|
20
|
+
|
21
|
+
expect(bin_deploy).to include("heroku run rake db:migrate")
|
22
|
+
|
23
|
+
readme = IO.read("#{project_path}/README.md")
|
24
|
+
|
25
|
+
expect(readme).to include("./bin/deploy staging")
|
26
|
+
expect(readme).to include("./bin/deploy production")
|
18
27
|
end
|
19
28
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
# Run this script to deploy the app to Heroku.
|
4
|
+
|
5
|
+
set -e
|
6
|
+
|
7
|
+
branch="$(git symbolic-ref HEAD --short)"
|
8
|
+
target="${1:-staging}"
|
9
|
+
|
10
|
+
git push "$target" "$branch:master"
|
11
|
+
heroku run rake db:migrate --remote "$target"
|
12
|
+
heroku restart --remote "$target"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: welaika-suspenders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoughtbot
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bitters
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- templates/action_mailer.rb
|
163
163
|
- templates/application.css.scss
|
164
164
|
- templates/background_jobs_rspec.rb
|
165
|
+
- templates/bin_deploy
|
165
166
|
- templates/bin_setup.erb
|
166
167
|
- templates/bundler_audit.rake
|
167
168
|
- templates/config_i18n_tasks.yml
|