startblock 1.2 → 1.3
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/CHANGELOG +10 -0
- data/Gemfile.lock +43 -41
- data/VERSION +1 -1
- data/lib/startblock/version.rb +1 -1
- data/templates/Gemfile.erb +3 -0
- data/templates/_javascript.html.erb +0 -2
- data/templates/application.scss +3 -0
- data/templates/rubocop.yml +4 -1
- data/templates/startblock_layout.html.erb.erb +3 -1
- data/test/features/new_project_test.rb +9 -1
- data/test/support/startblock.rb +1 -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: 47f23987b7c61185a0d0243aa4fdc6cc76a03e15
|
4
|
+
data.tar.gz: fe0e98edfb05b0a5d85a4184f77ad24446fe9286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52ddc325d76ea0e1166dc9191891045a28e090d170b8a0214626fe9d252cd330371564f7bf3e920f40b0c36cb78409ebc3fae14ace9aced5f1f238020a7e7632
|
7
|
+
data.tar.gz: ec18d4f3f1f4140042ad0e4edb7dccdc0e31703f97b2bc47694bfe4c598d8f627b11283a9dcbec09a99b509b7f8d0fbaa12a8893c7155e973de9e802b8bf1961
|
data/CHANGELOG
CHANGED
@@ -2,6 +2,16 @@
|
|
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.3 - Purple Mercury - 2016-01-26
|
6
|
+
|
7
|
+
### Added
|
8
|
+
- Added font-awesome-sass gem for including FontAwesome icons
|
9
|
+
- Added bootstrap_form gem that includes a bootstrap form builder
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Add Ruby version to Gemfile
|
13
|
+
- Moved JavaScript partial from inside <body> to inside <head> in application.html.erb
|
14
|
+
|
5
15
|
## V1.2 - Black Copper - 2015-10-31
|
6
16
|
|
7
17
|
### Added
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
startblock (1.
|
4
|
+
startblock (1.2)
|
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.5)
|
13
|
+
actionpack (= 4.2.5)
|
14
|
+
actionview (= 4.2.5)
|
15
|
+
activejob (= 4.2.5)
|
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.5)
|
19
|
+
actionview (= 4.2.5)
|
20
|
+
activesupport (= 4.2.5)
|
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.5)
|
26
|
+
activesupport (= 4.2.5)
|
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.5)
|
32
|
+
activesupport (= 4.2.5)
|
33
33
|
globalid (>= 0.3.0)
|
34
|
-
activemodel (4.2.
|
35
|
-
activesupport (= 4.2.
|
34
|
+
activemodel (4.2.5)
|
35
|
+
activesupport (= 4.2.5)
|
36
36
|
builder (~> 3.1)
|
37
|
-
activerecord (4.2.
|
38
|
-
activemodel (= 4.2.
|
39
|
-
activesupport (= 4.2.
|
37
|
+
activerecord (4.2.5)
|
38
|
+
activemodel (= 4.2.5)
|
39
|
+
activesupport (= 4.2.5)
|
40
40
|
arel (~> 6.0)
|
41
|
-
activesupport (4.2.
|
41
|
+
activesupport (4.2.5)
|
42
42
|
i18n (~> 0.7)
|
43
43
|
json (~> 1.7, >= 1.7.7)
|
44
44
|
minitest (~> 5.1)
|
@@ -46,6 +46,7 @@ GEM
|
|
46
46
|
tzinfo (~> 1.1)
|
47
47
|
arel (6.0.3)
|
48
48
|
builder (3.2.2)
|
49
|
+
concurrent-ruby (1.0.0)
|
49
50
|
erubis (2.7.0)
|
50
51
|
globalid (0.3.6)
|
51
52
|
activesupport (>= 4.1.0)
|
@@ -55,24 +56,24 @@ GEM
|
|
55
56
|
nokogiri (>= 1.5.9)
|
56
57
|
mail (2.6.3)
|
57
58
|
mime-types (>= 1.16, < 3)
|
58
|
-
mime-types (2.
|
59
|
-
|
60
|
-
minitest (5.8.
|
61
|
-
nokogiri (1.6.
|
62
|
-
|
59
|
+
mime-types (2.99)
|
60
|
+
mini_portile2 (2.0.0)
|
61
|
+
minitest (5.8.3)
|
62
|
+
nokogiri (1.6.7.1)
|
63
|
+
mini_portile2 (~> 2.0.0.rc2)
|
63
64
|
rack (1.6.4)
|
64
65
|
rack-test (0.6.3)
|
65
66
|
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.
|
67
|
+
rails (4.2.5)
|
68
|
+
actionmailer (= 4.2.5)
|
69
|
+
actionpack (= 4.2.5)
|
70
|
+
actionview (= 4.2.5)
|
71
|
+
activejob (= 4.2.5)
|
72
|
+
activemodel (= 4.2.5)
|
73
|
+
activerecord (= 4.2.5)
|
74
|
+
activesupport (= 4.2.5)
|
74
75
|
bundler (>= 1.3.0, < 2.0)
|
75
|
-
railties (= 4.2.
|
76
|
+
railties (= 4.2.5)
|
76
77
|
sprockets-rails
|
77
78
|
rails-deprecated_sanitizer (1.0.3)
|
78
79
|
activesupport (>= 4.2.0.alpha)
|
@@ -82,18 +83,19 @@ GEM
|
|
82
83
|
rails-deprecated_sanitizer (>= 1.0.1)
|
83
84
|
rails-html-sanitizer (1.0.2)
|
84
85
|
loofah (~> 2.0)
|
85
|
-
railties (4.2.
|
86
|
-
actionpack (= 4.2.
|
87
|
-
activesupport (= 4.2.
|
86
|
+
railties (4.2.5)
|
87
|
+
actionpack (= 4.2.5)
|
88
|
+
activesupport (= 4.2.5)
|
88
89
|
rake (>= 0.8.7)
|
89
90
|
thor (>= 0.18.1, < 2.0)
|
90
|
-
rake (10.
|
91
|
-
sprockets (3.
|
91
|
+
rake (10.5.0)
|
92
|
+
sprockets (3.5.2)
|
93
|
+
concurrent-ruby (~> 1.0)
|
92
94
|
rack (> 1, < 3)
|
93
|
-
sprockets-rails (
|
94
|
-
actionpack (>=
|
95
|
-
activesupport (>=
|
96
|
-
sprockets (>=
|
95
|
+
sprockets-rails (3.0.0)
|
96
|
+
actionpack (>= 4.0)
|
97
|
+
activesupport (>= 4.0)
|
98
|
+
sprockets (>= 3.0.0)
|
97
99
|
thor (0.19.1)
|
98
100
|
thread_safe (0.3.5)
|
99
101
|
tzinfo (1.2.2)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
V1.
|
1
|
+
V1.3
|
data/lib/startblock/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
|
+
ruby "<%= Startblock::RUBY_VERSION %>"
|
2
3
|
|
3
4
|
gem "rails", "<%= Startblock::RAILS_VERSION %>"
|
4
5
|
gem "pg"
|
@@ -13,6 +14,8 @@ gem "sidekiq", "~> 3.2.5"
|
|
13
14
|
gem "redis", "~> 3.1.0"
|
14
15
|
gem "redis-namespace", "~> 1.5.1"
|
15
16
|
gem "nprogress-rails", "~> 0.1.6"
|
17
|
+
gem "font-awesome-sass", "~> 4.5.0"
|
18
|
+
gem "bootstrap_form", "~> 2.3.0"
|
16
19
|
|
17
20
|
group :development do
|
18
21
|
gem "spring"
|
data/templates/application.scss
CHANGED
data/templates/rubocop.yml
CHANGED
@@ -10,9 +10,10 @@ AllCops:
|
|
10
10
|
- "bin/**/*"
|
11
11
|
- "**/Rakefile"
|
12
12
|
- "**/config.ru"
|
13
|
-
RunRailsCops: true
|
14
13
|
DisplayCopNames: true
|
15
14
|
StyleGuideCopsOnly: false
|
15
|
+
Rails:
|
16
|
+
Enabled: true
|
16
17
|
Style/AndOr:
|
17
18
|
EnforcedStyle: always
|
18
19
|
Enabled: true
|
@@ -67,5 +68,7 @@ Style/ClassAndModuleChildren:
|
|
67
68
|
Enabled: false
|
68
69
|
Rails/TimeZone:
|
69
70
|
Enabled: false
|
71
|
+
Rails:
|
72
|
+
Enabled: true
|
70
73
|
Style/IfUnlessModifier:
|
71
74
|
Enabled: true
|
@@ -6,11 +6,13 @@
|
|
6
6
|
<meta name="viewport" content="initial-scale=1" />
|
7
7
|
<title>appname</title>
|
8
8
|
<%%= stylesheet_link_tag :application, media: "all" %>
|
9
|
+
<%%= javascript_include_tag :application %>
|
10
|
+
|
11
|
+
<%%= render "javascript" %>
|
9
12
|
<%%= csrf_meta_tags %>
|
10
13
|
</head>
|
11
14
|
<body>
|
12
15
|
<%%= render "flashes" -%>
|
13
16
|
<%%= yield %>
|
14
|
-
<%%= render "javascript" %>
|
15
17
|
</body>
|
16
18
|
</html>
|
@@ -29,6 +29,13 @@ class NewProjectTest < Minitest::Test
|
|
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
31
|
assert gemfile.match(/nprogress-rails/), "Gemfile should contain NProgress-rails"
|
32
|
+
assert gemfile.match(/font-awesome-sass/), "Gemfile should contain font-awesome-sass"
|
33
|
+
assert gemfile.match(/bootstrap_form/), "Gemfile should contain bootstrap_form"
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_gemfile_should_contain_ruby_version
|
37
|
+
gemfile = IO.read("#{project_path}/Gemfile")
|
38
|
+
assert gemfile.match(/^ruby \".+\"$/), "Gemfile should contain a Ruby version"
|
32
39
|
end
|
33
40
|
|
34
41
|
def test_application_js_should_b_created
|
@@ -52,6 +59,8 @@ class NewProjectTest < Minitest::Test
|
|
52
59
|
|
53
60
|
assert app_css_file.match(/bootstrap/), "Bootstrap should be present"
|
54
61
|
assert app_css_file.match(/nprogress/), "Nprogress should be present"
|
62
|
+
assert app_css_file.match(/font-awesome/), "FontAwesome should be present"
|
63
|
+
assert app_css_file.match(/rails_bootstrap_forms/), "Bootstrap Forms should be present"
|
55
64
|
end
|
56
65
|
|
57
66
|
def test_develoment_rb_content
|
@@ -60,4 +69,3 @@ class NewProjectTest < Minitest::Test
|
|
60
69
|
assert development_rb_file.match(/letter_opener/), "Should have the letter opener"
|
61
70
|
end
|
62
71
|
end
|
63
|
-
|
data/test/support/startblock.rb
CHANGED
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.3'
|
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:
|
12
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|