startblock 1.1 → 1.2
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/.travis.yml +1 -0
- data/CHANGELOG +7 -9
- data/Gemfile +4 -0
- data/Gemfile.lock +35 -34
- data/VERSION +1 -1
- data/lib/startblock/app_builder.rb +6 -5
- data/lib/startblock/version.rb +1 -1
- data/templates/Gemfile.erb +2 -0
- data/templates/application.js +2 -0
- data/templates/{application.css.scss → application.scss} +2 -0
- data/templates/startblock_gitignore +1 -0
- data/test/features/new_project_test.rb +24 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 830912788f7a6e7329fc7198ef61a8d0f1194094
|
4
|
+
data.tar.gz: ed1696e366a6bb2e1044076457a62514923e2d66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f174b52aff033de678e0ce153ca332918754528a0c6301ee7dafc8f319e2b3b3aecc68f7ee44f451517390b5d60fd12a6168f253ae1b7ca565a4aac34d00b1
|
7
|
+
data.tar.gz: 06bb804941b48d19842488e165a0f8427df08c9b976bed82b47447eaa628f18e0183efd8146a4eae9404394cb9e962e6969158d739393f3db61b9ef78ac92417
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -2,20 +2,18 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
-
## V1.
|
5
|
+
## V1.2 - Black Copper - 2015-10-31
|
6
6
|
|
7
7
|
### Added
|
8
|
-
-
|
9
|
-
-
|
8
|
+
- Added NProgress-rails gem
|
9
|
+
- Added letter_opener in development
|
10
10
|
|
11
11
|
### Changed
|
12
|
-
-
|
13
|
-
-
|
12
|
+
- Passenger files are now added to .gitignore
|
13
|
+
- We now generate an application.scss instead of application.css.scss file
|
14
14
|
|
15
15
|
### Removed
|
16
|
-
-
|
17
|
-
- Rollbar
|
18
|
-
- Normalize-rails
|
16
|
+
- We no longer send mails to mailcatcher in dev
|
19
17
|
|
20
18
|
### Fixed
|
21
|
-
-
|
19
|
+
- Place the JS file in the correct folder
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
startblock (1.
|
4
|
+
startblock (1.1)
|
5
5
|
bundler (~> 1.3)
|
6
6
|
rails (~> 4.2)
|
7
7
|
thor (~> 0.19)
|
@@ -9,36 +9,36 @@ PATH
|
|
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.4)
|
13
|
+
actionpack (= 4.2.4)
|
14
|
+
actionview (= 4.2.4)
|
15
|
+
activejob (= 4.2.4)
|
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.
|
18
|
+
actionpack (4.2.4)
|
19
|
+
actionview (= 4.2.4)
|
20
|
+
activesupport (= 4.2.4)
|
21
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.2)
|
25
|
-
actionview (4.2.
|
26
|
-
activesupport (= 4.2.
|
25
|
+
actionview (4.2.4)
|
26
|
+
activesupport (= 4.2.4)
|
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.2)
|
31
|
-
activejob (4.2.
|
32
|
-
activesupport (= 4.2.
|
31
|
+
activejob (4.2.4)
|
32
|
+
activesupport (= 4.2.4)
|
33
33
|
globalid (>= 0.3.0)
|
34
|
-
activemodel (4.2.
|
35
|
-
activesupport (= 4.2.
|
34
|
+
activemodel (4.2.4)
|
35
|
+
activesupport (= 4.2.4)
|
36
36
|
builder (~> 3.1)
|
37
|
-
activerecord (4.2.
|
38
|
-
activemodel (= 4.2.
|
39
|
-
activesupport (= 4.2.
|
37
|
+
activerecord (4.2.4)
|
38
|
+
activemodel (= 4.2.4)
|
39
|
+
activesupport (= 4.2.4)
|
40
40
|
arel (~> 6.0)
|
41
|
-
activesupport (4.2.
|
41
|
+
activesupport (4.2.4)
|
42
42
|
i18n (~> 0.7)
|
43
43
|
json (~> 1.7, >= 1.7.7)
|
44
44
|
minitest (~> 5.1)
|
@@ -55,7 +55,7 @@ GEM
|
|
55
55
|
nokogiri (>= 1.5.9)
|
56
56
|
mail (2.6.3)
|
57
57
|
mime-types (>= 1.16, < 3)
|
58
|
-
mime-types (2.6.
|
58
|
+
mime-types (2.6.2)
|
59
59
|
mini_portile (0.6.2)
|
60
60
|
minitest (5.8.0)
|
61
61
|
nokogiri (1.6.6.2)
|
@@ -63,16 +63,16 @@ GEM
|
|
63
63
|
rack (1.6.4)
|
64
64
|
rack-test (0.6.3)
|
65
65
|
rack (>= 1.0)
|
66
|
-
rails (4.2.
|
67
|
-
actionmailer (= 4.2.
|
68
|
-
actionpack (= 4.2.
|
69
|
-
actionview (= 4.2.
|
70
|
-
activejob (= 4.2.
|
71
|
-
activemodel (= 4.2.
|
72
|
-
activerecord (= 4.2.
|
73
|
-
activesupport (= 4.2.
|
66
|
+
rails (4.2.4)
|
67
|
+
actionmailer (= 4.2.4)
|
68
|
+
actionpack (= 4.2.4)
|
69
|
+
actionview (= 4.2.4)
|
70
|
+
activejob (= 4.2.4)
|
71
|
+
activemodel (= 4.2.4)
|
72
|
+
activerecord (= 4.2.4)
|
73
|
+
activesupport (= 4.2.4)
|
74
74
|
bundler (>= 1.3.0, < 2.0)
|
75
|
-
railties (= 4.2.
|
75
|
+
railties (= 4.2.4)
|
76
76
|
sprockets-rails
|
77
77
|
rails-deprecated_sanitizer (1.0.3)
|
78
78
|
activesupport (>= 4.2.0.alpha)
|
@@ -82,15 +82,15 @@ GEM
|
|
82
82
|
rails-deprecated_sanitizer (>= 1.0.1)
|
83
83
|
rails-html-sanitizer (1.0.2)
|
84
84
|
loofah (~> 2.0)
|
85
|
-
railties (4.2.
|
86
|
-
actionpack (= 4.2.
|
87
|
-
activesupport (= 4.2.
|
85
|
+
railties (4.2.4)
|
86
|
+
actionpack (= 4.2.4)
|
87
|
+
activesupport (= 4.2.4)
|
88
88
|
rake (>= 0.8.7)
|
89
89
|
thor (>= 0.18.1, < 2.0)
|
90
90
|
rake (10.4.2)
|
91
|
-
sprockets (3.
|
92
|
-
rack (
|
93
|
-
sprockets-rails (2.3.
|
91
|
+
sprockets (3.4.0)
|
92
|
+
rack (> 1, < 3)
|
93
|
+
sprockets-rails (2.3.3)
|
94
94
|
actionpack (>= 3.0)
|
95
95
|
activesupport (>= 3.0)
|
96
96
|
sprockets (>= 2.8, < 4.0)
|
@@ -104,6 +104,7 @@ PLATFORMS
|
|
104
104
|
|
105
105
|
DEPENDENCIES
|
106
106
|
minitest (~> 5.8)
|
107
|
+
rake
|
107
108
|
startblock!
|
108
109
|
|
109
110
|
BUNDLED WITH
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
V1.
|
1
|
+
V1.2
|
@@ -90,7 +90,8 @@ end
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def configure_action_mailer
|
93
|
-
|
93
|
+
config = "config.action_mailer.delivery_method = :letter_opener"
|
94
|
+
configure_environment("development", config)
|
94
95
|
action_mailer_host "test", %{"www.example.com"}
|
95
96
|
end
|
96
97
|
|
@@ -101,13 +102,13 @@ end
|
|
101
102
|
|
102
103
|
def setup_stylesheets
|
103
104
|
remove_file 'app/assets/stylesheets/application.css'
|
104
|
-
copy_file 'application.
|
105
|
-
'app/assets/stylesheets/application.
|
105
|
+
copy_file 'application.scss',
|
106
|
+
'app/assets/stylesheets/application.scss'
|
106
107
|
end
|
107
108
|
|
108
109
|
def setup_javascripts
|
109
|
-
remove_file "app/assets/
|
110
|
-
copy_file "application.js", "app/assets/
|
110
|
+
remove_file "app/assets/javascripts/application.js"
|
111
|
+
copy_file "application.js", "app/assets/javascripts/application.js"
|
111
112
|
end
|
112
113
|
|
113
114
|
def remove_routes_comment_lines
|
data/lib/startblock/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -12,6 +12,7 @@ gem "uglifier"
|
|
12
12
|
gem "sidekiq", "~> 3.2.5"
|
13
13
|
gem "redis", "~> 3.1.0"
|
14
14
|
gem "redis-namespace", "~> 1.5.1"
|
15
|
+
gem "nprogress-rails", "~> 0.1.6"
|
15
16
|
|
16
17
|
group :development do
|
17
18
|
gem "spring"
|
@@ -22,6 +23,7 @@ group :development do
|
|
22
23
|
gem "daemon_controller"
|
23
24
|
gem "passenger"
|
24
25
|
gem "quiet_assets"
|
26
|
+
gem "letter_opener"
|
25
27
|
end
|
26
28
|
|
27
29
|
group :development, :test do
|
data/templates/application.js
CHANGED
@@ -28,14 +28,36 @@ class NewProjectTest < Minitest::Test
|
|
28
28
|
|
29
29
|
assert gemfile.match(/bootstrap-sass/), "Gemfile should contain bootstrap-sass gem"
|
30
30
|
assert gemfile.match(/quiet_assets/), "Gemfile should contain quiet assets gem"
|
31
|
+
assert gemfile.match(/nprogress-rails/), "Gemfile should contain NProgress-rails"
|
31
32
|
end
|
32
33
|
|
33
|
-
def
|
34
|
-
app_js_file = IO.read("#{project_path}/app/assets/
|
34
|
+
def test_application_js_should_b_created
|
35
|
+
app_js_file = IO.read("#{project_path}/app/assets/javascripts/application.js")
|
35
36
|
|
36
37
|
assert app_js_file.match(/= require jquery.turbolinks/), "Jquery.turbolinks should be present"
|
37
38
|
assert app_js_file.match(/= require bootstrap-sprockets/), "Bootstrap should be present"
|
39
|
+
assert app_js_file.match(/= require nprogress/), "Nprogress should be present"
|
38
40
|
assert app_js_file.match(/FastClick.attach/), "Fastclick should be initialized"
|
39
41
|
end
|
42
|
+
|
43
|
+
def test_gitignore_should_be_created
|
44
|
+
app_ignore_file = IO.read("#{project_path}/.gitignore")
|
45
|
+
|
46
|
+
assert app_ignore_file.match(/passenger/), "Passenger ignore should be present"
|
47
|
+
assert app_ignore_file.match(/env/), ".env ignore should be present"
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_application_css_should_be_created
|
51
|
+
app_css_file = IO.read("#{project_path}/app/assets/stylesheets/application.scss")
|
52
|
+
|
53
|
+
assert app_css_file.match(/bootstrap/), "Bootstrap should be present"
|
54
|
+
assert app_css_file.match(/nprogress/), "Nprogress should be present"
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_develoment_rb_content
|
58
|
+
development_rb_file = IO.read("#{project_path}/config/environments/development.rb")
|
59
|
+
|
60
|
+
assert development_rb_file.match(/letter_opener/), "Should have the letter opener"
|
61
|
+
end
|
40
62
|
end
|
41
63
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: startblock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeroen van Baarsen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -103,8 +103,8 @@ files:
|
|
103
103
|
- templates/_flashes.html.erb
|
104
104
|
- templates/_javascript.html.erb
|
105
105
|
- templates/_mixpanel.html.erb
|
106
|
-
- templates/application.css.scss
|
107
106
|
- templates/application.js
|
107
|
+
- templates/application.scss
|
108
108
|
- templates/bin_setup.erb
|
109
109
|
- templates/postgresql_database.yml.erb
|
110
110
|
- templates/rubocop.yml
|
@@ -146,3 +146,4 @@ test_files:
|
|
146
146
|
- test/features/new_project_test.rb
|
147
147
|
- test/support/startblock.rb
|
148
148
|
- test/test_helper.rb
|
149
|
+
has_rdoc:
|