suspenders 1.25.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +42 -42
- data/NEWS.md +10 -1
- data/README.md +27 -8
- data/lib/suspenders/app_builder.rb +1 -7
- data/lib/suspenders/generators/app_generator.rb +4 -5
- data/lib/suspenders/version.rb +2 -2
- data/spec/features/new_project_spec.rb +3 -3
- data/suspenders.gemspec +1 -1
- data/templates/Gemfile.erb +1 -1
- data/templates/_analytics.html.erb +3 -3
- data/templates/spec_helper.rb +1 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faf9343cce26abf5827b653b3f5c095948a13860
|
4
|
+
data.tar.gz: ce9093d0859282d3a7f41c208962643a8302a5e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19cc1bdfbe79281953659148b64d236faeb7fa3dfdb336119810880a89e38c20d4eb159cc7332c63a9a8ec244c96ae0908302ecda0572b84ee93aa819fdd11a7
|
7
|
+
data.tar.gz: 9f128dc4af4f46dbaeb6a3bd2f7849c8fcee19145caeac8ed8f5799f27ab4a6f4ed5c7eb8faf9da8610e22eb090c09c990f87a83cae5b9ec545ef41377e2bab6
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.1
|
data/Gemfile.lock
CHANGED
@@ -1,56 +1,56 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
suspenders (1.
|
5
|
-
bitters (~> 0.
|
4
|
+
suspenders (1.25.0)
|
5
|
+
bitters (~> 1.0.0)
|
6
6
|
bundler (~> 1.3)
|
7
|
-
rails (= 4.2.
|
7
|
+
rails (= 4.2.1)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actionmailer (4.2.
|
13
|
-
actionpack (= 4.2.
|
14
|
-
actionview (= 4.2.
|
15
|
-
activejob (= 4.2.
|
12
|
+
actionmailer (4.2.1)
|
13
|
+
actionpack (= 4.2.1)
|
14
|
+
actionview (= 4.2.1)
|
15
|
+
activejob (= 4.2.1)
|
16
16
|
mail (~> 2.5, >= 2.5.4)
|
17
17
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
18
|
-
actionpack (4.2.
|
19
|
-
actionview (= 4.2.
|
20
|
-
activesupport (= 4.2.
|
21
|
-
rack (~> 1.6
|
18
|
+
actionpack (4.2.1)
|
19
|
+
actionview (= 4.2.1)
|
20
|
+
activesupport (= 4.2.1)
|
21
|
+
rack (~> 1.6)
|
22
22
|
rack-test (~> 0.6.2)
|
23
23
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
24
24
|
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
25
|
-
actionview (4.2.
|
26
|
-
activesupport (= 4.2.
|
25
|
+
actionview (4.2.1)
|
26
|
+
activesupport (= 4.2.1)
|
27
27
|
builder (~> 3.1)
|
28
28
|
erubis (~> 2.7.0)
|
29
29
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
30
30
|
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
31
|
-
activejob (4.2.
|
32
|
-
activesupport (= 4.2.
|
31
|
+
activejob (4.2.1)
|
32
|
+
activesupport (= 4.2.1)
|
33
33
|
globalid (>= 0.3.0)
|
34
|
-
activemodel (4.2.
|
35
|
-
activesupport (= 4.2.
|
34
|
+
activemodel (4.2.1)
|
35
|
+
activesupport (= 4.2.1)
|
36
36
|
builder (~> 3.1)
|
37
|
-
activerecord (4.2.
|
38
|
-
activemodel (= 4.2.
|
39
|
-
activesupport (= 4.2.
|
37
|
+
activerecord (4.2.1)
|
38
|
+
activemodel (= 4.2.1)
|
39
|
+
activesupport (= 4.2.1)
|
40
40
|
arel (~> 6.0)
|
41
|
-
activesupport (4.2.
|
41
|
+
activesupport (4.2.1)
|
42
42
|
i18n (~> 0.7)
|
43
43
|
json (~> 1.7, >= 1.7.7)
|
44
44
|
minitest (~> 5.1)
|
45
45
|
thread_safe (~> 0.3, >= 0.3.4)
|
46
46
|
tzinfo (~> 1.1)
|
47
47
|
arel (6.0.0)
|
48
|
-
bitters (0.
|
48
|
+
bitters (1.0.0)
|
49
49
|
bourbon (>= 3.2)
|
50
50
|
sass (>= 3.2)
|
51
51
|
thor
|
52
|
-
bourbon (4.
|
53
|
-
sass (~> 3.
|
52
|
+
bourbon (4.2.1)
|
53
|
+
sass (~> 3.4)
|
54
54
|
thor
|
55
55
|
builder (3.2.2)
|
56
56
|
capybara (2.3.0)
|
@@ -61,7 +61,7 @@ GEM
|
|
61
61
|
xpath (~> 2.0)
|
62
62
|
diff-lcs (1.2.5)
|
63
63
|
erubis (2.7.0)
|
64
|
-
globalid (0.3.
|
64
|
+
globalid (0.3.3)
|
65
65
|
activesupport (>= 4.1.0)
|
66
66
|
hike (1.2.3)
|
67
67
|
i18n (0.7.0)
|
@@ -73,34 +73,34 @@ GEM
|
|
73
73
|
mime-types (2.4.3)
|
74
74
|
mini_portile (0.6.0)
|
75
75
|
minitest (5.5.1)
|
76
|
-
multi_json (1.
|
76
|
+
multi_json (1.11.0)
|
77
77
|
nokogiri (1.6.2.1)
|
78
78
|
mini_portile (= 0.6.0)
|
79
79
|
rack (1.6.0)
|
80
80
|
rack-test (0.6.2)
|
81
81
|
rack (>= 1.0)
|
82
|
-
rails (4.2.
|
83
|
-
actionmailer (= 4.2.
|
84
|
-
actionpack (= 4.2.
|
85
|
-
actionview (= 4.2.
|
86
|
-
activejob (= 4.2.
|
87
|
-
activemodel (= 4.2.
|
88
|
-
activerecord (= 4.2.
|
89
|
-
activesupport (= 4.2.
|
82
|
+
rails (4.2.1)
|
83
|
+
actionmailer (= 4.2.1)
|
84
|
+
actionpack (= 4.2.1)
|
85
|
+
actionview (= 4.2.1)
|
86
|
+
activejob (= 4.2.1)
|
87
|
+
activemodel (= 4.2.1)
|
88
|
+
activerecord (= 4.2.1)
|
89
|
+
activesupport (= 4.2.1)
|
90
90
|
bundler (>= 1.3.0, < 2.0)
|
91
|
-
railties (= 4.2.
|
91
|
+
railties (= 4.2.1)
|
92
92
|
sprockets-rails
|
93
93
|
rails-deprecated_sanitizer (1.0.3)
|
94
94
|
activesupport (>= 4.2.0.alpha)
|
95
|
-
rails-dom-testing (1.0.
|
95
|
+
rails-dom-testing (1.0.6)
|
96
96
|
activesupport (>= 4.2.0.beta, < 5.0)
|
97
97
|
nokogiri (~> 1.6.0)
|
98
98
|
rails-deprecated_sanitizer (>= 1.0.1)
|
99
|
-
rails-html-sanitizer (1.0.
|
99
|
+
rails-html-sanitizer (1.0.2)
|
100
100
|
loofah (~> 2.0)
|
101
|
-
railties (4.2.
|
102
|
-
actionpack (= 4.2.
|
103
|
-
activesupport (= 4.2.
|
101
|
+
railties (4.2.1)
|
102
|
+
actionpack (= 4.2.1)
|
103
|
+
activesupport (= 4.2.1)
|
104
104
|
rake (>= 0.8.7)
|
105
105
|
thor (>= 0.18.1, < 2.0)
|
106
106
|
rake (10.4.2)
|
@@ -112,7 +112,7 @@ GEM
|
|
112
112
|
rspec-expectations (2.99.0)
|
113
113
|
diff-lcs (>= 1.1.3, < 2.0)
|
114
114
|
rspec-mocks (2.99.0)
|
115
|
-
sass (3.4.
|
115
|
+
sass (3.4.13)
|
116
116
|
sprockets (2.12.3)
|
117
117
|
hike (~> 1.2)
|
118
118
|
multi_json (~> 1.0)
|
@@ -123,7 +123,7 @@ GEM
|
|
123
123
|
activesupport (>= 3.0)
|
124
124
|
sprockets (>= 2.8, < 4.0)
|
125
125
|
thor (0.19.1)
|
126
|
-
thread_safe (0.3.
|
126
|
+
thread_safe (0.3.5)
|
127
127
|
tilt (1.4.1)
|
128
128
|
tzinfo (1.2.2)
|
129
129
|
thread_safe (~> 0.1)
|
data/NEWS.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
+
1.26.0 (March 23, 2015)
|
2
|
+
|
3
|
+
* Update Rails to 4.2.1
|
4
|
+
* Update Bitters to 1.0
|
5
|
+
* Fix .ruby-version (should have been 2.1.1)
|
6
|
+
* Enable `verify_partial_doubles`
|
7
|
+
* Renames Segment.io to Segment
|
8
|
+
* Removes New Relic unnecessary configuration setting
|
9
|
+
|
1
10
|
1.25.0 (March 7, 2015)
|
2
11
|
|
3
12
|
* Configure Active Job queue adapter for test env
|
4
|
-
* Use Ruby 2.2.1
|
13
|
+
* Use Ruby 2.2.1 (bug: `.ruby-version` wasn’t updated in the package)
|
5
14
|
* Dasherize heroku app names
|
6
15
|
* Update Bourbon to 4.2.0
|
7
16
|
* Add ASSET_HOST to sample.env (defaults to HOST)
|
data/README.md
CHANGED
@@ -104,7 +104,7 @@ Suspenders also comes with:
|
|
104
104
|
[binstub]: https://github.com/thoughtbot/suspenders/pull/282
|
105
105
|
[i18n]: https://github.com/thoughtbot/suspenders/pull/304
|
106
106
|
[travis]: http://docs.travis-ci.com/user/travis-pro/
|
107
|
-
[segment]: https://segment.
|
107
|
+
[segment]: https://segment.com
|
108
108
|
|
109
109
|
## Heroku
|
110
110
|
|
@@ -183,16 +183,35 @@ If you have problems, please create a
|
|
183
183
|
|
184
184
|
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
185
185
|
|
186
|
-
|
186
|
+
Thank you, [contributors]!
|
187
187
|
|
188
|
-
|
188
|
+
[contributors]: https://github.com/thoughtbot/suspenders/graphs/contributors
|
189
189
|
|
190
|
-
|
191
|
-
[thoughtbot, inc](http://thoughtbot.com/community).
|
190
|
+
## Need Help?
|
192
191
|
|
193
|
-
|
192
|
+
We offer 1-on-1 coaching. We can help you set up a new Rails application, write
|
193
|
+
your first feature, and get up and running on Heroku. [Get in touch].
|
194
|
+
|
195
|
+
[Get in touch]: http://coaching.thoughtbot.com/rails/?utm_source=github
|
194
196
|
|
195
197
|
## License
|
196
198
|
|
197
|
-
Suspenders is Copyright © 2008-
|
198
|
-
|
199
|
+
Suspenders is Copyright © 2008-2015 thoughtbot.
|
200
|
+
It is free software,
|
201
|
+
and may be redistributed under the terms specified in the [LICENSE] file.
|
202
|
+
|
203
|
+
[LICENSE]: LICENSE
|
204
|
+
|
205
|
+
## About thoughtbot
|
206
|
+
|
207
|
+
![thoughtbot](https://thoughtbot.com/logo.png)
|
208
|
+
|
209
|
+
Suspenders is maintained and funded by thoughtbot, inc.
|
210
|
+
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
211
|
+
|
212
|
+
We love open source software!
|
213
|
+
See [our other projects][community].
|
214
|
+
We are [available for hire][hire].
|
215
|
+
|
216
|
+
[community]: https://thoughtbot.com/community?utm_source=github
|
217
|
+
[hire]: https://thoughtbot.com?utm_source=github
|
@@ -347,12 +347,6 @@ fi
|
|
347
347
|
end
|
348
348
|
end
|
349
349
|
|
350
|
-
def set_heroku_memory_management_variable
|
351
|
-
%w(staging production).each do |environment|
|
352
|
-
run_heroku "config:add NEW_RELIC_AGGRESSIVE_KEEPALIVE=1", environment
|
353
|
-
end
|
354
|
-
end
|
355
|
-
|
356
350
|
def set_heroku_serve_static_files
|
357
351
|
%w(staging production).each do |environment|
|
358
352
|
run_heroku "config:add RAILS_SERVE_STATIC_FILES=true", environment
|
@@ -382,7 +376,7 @@ you can deploy to staging and production with:
|
|
382
376
|
run "#{path_addition} hub create #{repo_name}"
|
383
377
|
end
|
384
378
|
|
385
|
-
def
|
379
|
+
def setup_segment
|
386
380
|
copy_file '_analytics.html.erb',
|
387
381
|
'app/views/application/_analytics.html.erb'
|
388
382
|
end
|
@@ -48,7 +48,7 @@ module Suspenders
|
|
48
48
|
invoke :setup_database
|
49
49
|
invoke :create_heroku_apps
|
50
50
|
invoke :create_github_repo
|
51
|
-
invoke :
|
51
|
+
invoke :setup_segment
|
52
52
|
invoke :setup_bundler_audit
|
53
53
|
invoke :outro
|
54
54
|
end
|
@@ -169,7 +169,6 @@ module Suspenders
|
|
169
169
|
build :set_heroku_serve_static_files
|
170
170
|
build :set_heroku_remotes
|
171
171
|
build :set_heroku_rails_secrets
|
172
|
-
build :set_heroku_memory_management_variable
|
173
172
|
build :provide_deploy_script
|
174
173
|
end
|
175
174
|
end
|
@@ -181,9 +180,9 @@ module Suspenders
|
|
181
180
|
end
|
182
181
|
end
|
183
182
|
|
184
|
-
def
|
185
|
-
say 'Setting up Segment
|
186
|
-
build :
|
183
|
+
def setup_segment
|
184
|
+
say 'Setting up Segment'
|
185
|
+
build :setup_segment
|
187
186
|
end
|
188
187
|
|
189
188
|
def setup_gitignore
|
data/lib/suspenders/version.rb
CHANGED
@@ -59,13 +59,13 @@ feature 'Suspend a new project with default configuration' do
|
|
59
59
|
)
|
60
60
|
end
|
61
61
|
|
62
|
-
scenario 'records pageviews through Segment
|
62
|
+
scenario 'records pageviews through Segment if ENV variable set' do
|
63
63
|
run_suspenders
|
64
64
|
|
65
65
|
expect(analytics_partial).
|
66
|
-
to include(%{<% if ENV["
|
66
|
+
to include(%{<% if ENV["SEGMENT_KEY"] %>})
|
67
67
|
expect(analytics_partial).
|
68
|
-
to include(%{window.analytics.load("<%= ENV["
|
68
|
+
to include(%{window.analytics.load("<%= ENV["SEGMENT_KEY"] %>");})
|
69
69
|
end
|
70
70
|
|
71
71
|
scenario "raises on unpermitted parameters in all environments" do
|
data/suspenders.gemspec
CHANGED
@@ -27,7 +27,7 @@ rush to build something amazing; don't use it if you like missing deadlines.
|
|
27
27
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
28
28
|
s.version = Suspenders::VERSION
|
29
29
|
|
30
|
-
s.add_dependency 'bitters', '~> 0.
|
30
|
+
s.add_dependency 'bitters', '~> 1.0.0'
|
31
31
|
s.add_dependency 'bundler', '~> 1.3'
|
32
32
|
s.add_dependency 'rails', Suspenders::RAILS_VERSION
|
33
33
|
|
data/templates/Gemfile.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
<% if ENV["
|
1
|
+
<% if ENV["SEGMENT_KEY"] %>
|
2
2
|
<script type="text/javascript">
|
3
|
-
window.analytics=window.analytics||[],window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),window.analytics.push(a),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var key=window.analytics.methods[i];window.analytics[key]=window.analytics.factory(key)}window.analytics.load=function(t){if(!document.getElementById("analytics-js")){var a=document.createElement("script");a.type="text/javascript",a.id="analytics-js",a.async=!0,a.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.
|
4
|
-
window.analytics.load("<%= ENV["
|
3
|
+
window.analytics=window.analytics||[],window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),window.analytics.push(a),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var key=window.analytics.methods[i];window.analytics[key]=window.analytics.factory(key)}window.analytics.load=function(t){if(!document.getElementById("analytics-js")){var a=document.createElement("script");a.type="text/javascript",a.id="analytics-js",a.async=!0,a.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n)}},window.analytics.SNIPPET_VERSION="2.0.9",
|
4
|
+
window.analytics.load("<%= ENV["SEGMENT_KEY"] %>");
|
5
5
|
window.analytics.page();
|
6
6
|
</script>
|
7
7
|
<% end %>
|
data/templates/spec_helper.rb
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.
|
4
|
+
version: 1.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoughtbot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitters
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.2.
|
47
|
+
version: 4.2.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.2.
|
54
|
+
version: 4.2.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
173
|
requirements:
|
174
174
|
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version: 2.2.
|
176
|
+
version: 2.2.1
|
177
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
179
|
- - ">="
|
@@ -195,4 +195,3 @@ test_files:
|
|
195
195
|
- spec/support/fake_github.rb
|
196
196
|
- spec/support/fake_heroku.rb
|
197
197
|
- spec/support/suspenders.rb
|
198
|
-
has_rdoc:
|