suspenders 1.5.0 → 1.5.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/NEWS.md +8 -0
- data/lib/suspenders/app_builder.rb +15 -0
- data/lib/suspenders/generators/app_generator.rb +5 -4
- data/lib/suspenders/version.rb +1 -1
- data/templates/Gemfile_clean +4 -4
- data/templates/bin_setup +16 -1
- data/templates/rspec +0 -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: 0cf8c934b629cd1178398903fbefd834490bd26e
|
|
4
|
+
data.tar.gz: 4feb8c8d3aaef6e7a701a1379c6ec56cb2b77480
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0132c92a271cc4b7cf220118479ba742299167352cf479295c720c2e702407d596241c7bfe541ed2f5bffb11afc22b675332f47e8bc24f31ce5c632f65eeeec9
|
|
7
|
+
data.tar.gz: cf235a2266d97ded4b691c47f28c025c21a9f9352d853f9e1a70767610a0eb73853f9fe7a963191af7d8244d9a85f4f8b651b5d121409d554db73f019deb4c87
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
suspenders (1.5.
|
|
4
|
+
suspenders (1.5.1)
|
|
5
5
|
bundler (~> 1.3)
|
|
6
6
|
rails (= 4.0.0)
|
|
7
7
|
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
childprocess (>= 0.3.6)
|
|
38
38
|
cucumber (>= 1.1.1)
|
|
39
39
|
rspec-expectations (>= 2.7.0)
|
|
40
|
-
atomic (1.1.
|
|
40
|
+
atomic (1.1.13)
|
|
41
41
|
builder (3.1.4)
|
|
42
42
|
childprocess (0.3.9)
|
|
43
43
|
ffi (~> 1.0, >= 1.0.11)
|
|
@@ -56,11 +56,11 @@ GEM
|
|
|
56
56
|
gherkin (2.12.0-x86-mingw32)
|
|
57
57
|
multi_json (~> 1.3)
|
|
58
58
|
hike (1.2.3)
|
|
59
|
-
i18n (0.6.
|
|
59
|
+
i18n (0.6.5)
|
|
60
60
|
mail (2.5.4)
|
|
61
61
|
mime-types (~> 1.16)
|
|
62
62
|
treetop (~> 1.4.8)
|
|
63
|
-
mime-types (1.
|
|
63
|
+
mime-types (1.25)
|
|
64
64
|
minitest (4.7.5)
|
|
65
65
|
multi_json (1.7.7)
|
|
66
66
|
multi_test (0.0.1)
|
|
@@ -94,10 +94,10 @@ GEM
|
|
|
94
94
|
activesupport (>= 3.0)
|
|
95
95
|
sprockets (~> 2.8)
|
|
96
96
|
thor (0.18.1)
|
|
97
|
-
thread_safe (0.1.
|
|
97
|
+
thread_safe (0.1.3)
|
|
98
98
|
atomic
|
|
99
99
|
tilt (1.4.1)
|
|
100
|
-
treetop (1.4.
|
|
100
|
+
treetop (1.4.15)
|
|
101
101
|
polyglot
|
|
102
102
|
polyglot (>= 0.3.1)
|
|
103
103
|
tzinfo (0.3.37)
|
data/NEWS.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
1.5.1 (September 10, 2013)
|
|
2
|
+
|
|
3
|
+
* Remove Turbolinks.
|
|
4
|
+
* Don't use Bundler's binstubs in `bin/setup`.
|
|
5
|
+
* Remove `--drb` now that we aren't using Spork.
|
|
6
|
+
* Set up DNS via Pow for development.
|
|
7
|
+
* Update gem versions.
|
|
8
|
+
|
|
1
9
|
1.5.0 (August 3, 2013)
|
|
2
10
|
|
|
3
11
|
* Add Neat.
|
|
@@ -96,6 +96,12 @@ module Suspenders
|
|
|
96
96
|
:force => true
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
def remove_turbolinks
|
|
100
|
+
replace_in_file 'app/assets/javascripts/application.js',
|
|
101
|
+
/\/\/= require turbolinks\n/,
|
|
102
|
+
''
|
|
103
|
+
end
|
|
104
|
+
|
|
99
105
|
def create_common_javascripts
|
|
100
106
|
directory 'javascripts', 'app/assets/javascripts'
|
|
101
107
|
end
|
|
@@ -210,6 +216,15 @@ module Suspenders
|
|
|
210
216
|
run "#{path_addition} heroku config:add RACK_ENV=staging RAILS_ENV=staging --remote=staging"
|
|
211
217
|
end
|
|
212
218
|
|
|
219
|
+
def set_heroku_remotes
|
|
220
|
+
concat_file(
|
|
221
|
+
'templates/bin_setup',
|
|
222
|
+
"# Set up staging and production git remotes\r
|
|
223
|
+
git remote add staging git@heroku.com: #{app_name}-staging.git\r
|
|
224
|
+
git remote add production git@heroku.com: #{app_name}-production.git"
|
|
225
|
+
)
|
|
226
|
+
end
|
|
227
|
+
|
|
213
228
|
def create_github_repo(repo_name)
|
|
214
229
|
path_addition = override_path_for_tests
|
|
215
230
|
run "#{path_addition} hub create #{repo_name}"
|
|
@@ -29,7 +29,7 @@ module Suspenders
|
|
|
29
29
|
invoke :setup_production_environment
|
|
30
30
|
invoke :setup_staging_environment
|
|
31
31
|
invoke :create_suspenders_views
|
|
32
|
-
invoke :
|
|
32
|
+
invoke :setup_coffeescript
|
|
33
33
|
invoke :configure_app
|
|
34
34
|
invoke :setup_stylesheets
|
|
35
35
|
invoke :copy_miscellaneous_files
|
|
@@ -79,7 +79,6 @@ module Suspenders
|
|
|
79
79
|
build :configure_background_jobs_for_rspec
|
|
80
80
|
build :enable_database_cleaner
|
|
81
81
|
build :configure_capybara_webkit
|
|
82
|
-
build :setup_guard_spork
|
|
83
82
|
end
|
|
84
83
|
|
|
85
84
|
def setup_production_environment
|
|
@@ -100,8 +99,9 @@ module Suspenders
|
|
|
100
99
|
build :create_application_layout
|
|
101
100
|
end
|
|
102
101
|
|
|
103
|
-
def
|
|
104
|
-
say '
|
|
102
|
+
def setup_coffeescript
|
|
103
|
+
say 'Setting up CoffeeScript defaults'
|
|
104
|
+
build :remove_turbolinks
|
|
105
105
|
build :create_common_javascripts
|
|
106
106
|
end
|
|
107
107
|
|
|
@@ -134,6 +134,7 @@ module Suspenders
|
|
|
134
134
|
if options[:heroku]
|
|
135
135
|
say 'Creating Heroku apps'
|
|
136
136
|
build :create_heroku_apps
|
|
137
|
+
build :set_heroku_remotes
|
|
137
138
|
end
|
|
138
139
|
end
|
|
139
140
|
|
data/lib/suspenders/version.rb
CHANGED
data/templates/Gemfile_clean
CHANGED
|
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
|
|
|
3
3
|
gem 'airbrake'
|
|
4
4
|
gem 'bourbon'
|
|
5
5
|
gem 'coffee-rails'
|
|
6
|
-
gem 'delayed_job_active_record', '>= 4.0.0
|
|
6
|
+
gem 'delayed_job_active_record', '>= 4.0.0'
|
|
7
7
|
gem 'email_validator'
|
|
8
8
|
gem 'flutie'
|
|
9
9
|
gem 'high_voltage'
|
|
@@ -19,9 +19,9 @@ gem 'uglifier'
|
|
|
19
19
|
gem 'unicorn'
|
|
20
20
|
|
|
21
21
|
group :development do
|
|
22
|
-
gem 'foreman'
|
|
23
22
|
gem 'better_errors'
|
|
24
23
|
gem 'binding_of_caller'
|
|
24
|
+
gem 'foreman'
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
group :development, :test do
|
|
@@ -30,7 +30,7 @@ group :development, :test do
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
group :test do
|
|
33
|
-
gem 'capybara-webkit', '>= 0.
|
|
33
|
+
gem 'capybara-webkit', '>= 1.0.0'
|
|
34
34
|
gem 'database_cleaner'
|
|
35
35
|
gem 'launchy'
|
|
36
36
|
gem 'shoulda-matchers'
|
|
@@ -40,6 +40,6 @@ group :test do
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
group :staging, :production do
|
|
43
|
-
gem 'newrelic_rpm', '>= 3.
|
|
43
|
+
gem 'newrelic_rpm', '>= 3.6.7'
|
|
44
44
|
gem 'rails_12factor'
|
|
45
45
|
end
|
data/templates/bin_setup
CHANGED
|
@@ -3,9 +3,24 @@
|
|
|
3
3
|
# Set up Rails app. Run this script immediately after cloning the codebase.
|
|
4
4
|
# https://github.com/thoughtbot/guides/tree/master/protocol
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# Set up Ruby dependencies via Bundler
|
|
7
|
+
bundle install
|
|
8
|
+
|
|
9
|
+
# Set up the database
|
|
7
10
|
bundle exec rake db:setup
|
|
8
11
|
|
|
12
|
+
# Set up configurable environment variables
|
|
9
13
|
if [ ! -f .env ]; then
|
|
10
14
|
cp .sample.env .env
|
|
11
15
|
fi
|
|
16
|
+
|
|
17
|
+
# Pick a port for Foreman
|
|
18
|
+
echo "port: 7000" > .foreman
|
|
19
|
+
|
|
20
|
+
# Set up DNS via Pow
|
|
21
|
+
if [ -d ~/.pow ]
|
|
22
|
+
then
|
|
23
|
+
echo 7000 > ~/.pow/`basename $PWD`
|
|
24
|
+
else
|
|
25
|
+
echo "Pow not set up but the team uses it for this project. Setup: http://goo.gl/RaDPO"
|
|
26
|
+
fi
|
data/templates/rspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: suspenders
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoughtbot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|