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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 830912788f7a6e7329fc7198ef61a8d0f1194094
4
- data.tar.gz: ed1696e366a6bb2e1044076457a62514923e2d66
3
+ metadata.gz: 47f23987b7c61185a0d0243aa4fdc6cc76a03e15
4
+ data.tar.gz: fe0e98edfb05b0a5d85a4184f77ad24446fe9286
5
5
  SHA512:
6
- metadata.gz: e7f174b52aff033de678e0ce153ca332918754528a0c6301ee7dafc8f319e2b3b3aecc68f7ee44f451517390b5d60fd12a6168f253ae1b7ca565a4aac34d00b1
7
- data.tar.gz: 06bb804941b48d19842488e165a0f8427df08c9b976bed82b47447eaa628f18e0183efd8146a4eae9404394cb9e962e6969158d739393f3db61b9ef78ac92417
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- startblock (1.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.4)
13
- actionpack (= 4.2.4)
14
- actionview (= 4.2.4)
15
- activejob (= 4.2.4)
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.4)
19
- actionview (= 4.2.4)
20
- activesupport (= 4.2.4)
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.4)
26
- activesupport (= 4.2.4)
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.4)
32
- activesupport (= 4.2.4)
31
+ activejob (4.2.5)
32
+ activesupport (= 4.2.5)
33
33
  globalid (>= 0.3.0)
34
- activemodel (4.2.4)
35
- activesupport (= 4.2.4)
34
+ activemodel (4.2.5)
35
+ activesupport (= 4.2.5)
36
36
  builder (~> 3.1)
37
- activerecord (4.2.4)
38
- activemodel (= 4.2.4)
39
- activesupport (= 4.2.4)
37
+ activerecord (4.2.5)
38
+ activemodel (= 4.2.5)
39
+ activesupport (= 4.2.5)
40
40
  arel (~> 6.0)
41
- activesupport (4.2.4)
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.6.2)
59
- mini_portile (0.6.2)
60
- minitest (5.8.0)
61
- nokogiri (1.6.6.2)
62
- mini_portile (~> 0.6.0)
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.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)
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.4)
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.4)
86
- actionpack (= 4.2.4)
87
- activesupport (= 4.2.4)
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.4.2)
91
- sprockets (3.4.0)
91
+ rake (10.5.0)
92
+ sprockets (3.5.2)
93
+ concurrent-ruby (~> 1.0)
92
94
  rack (> 1, < 3)
93
- sprockets-rails (2.3.3)
94
- actionpack (>= 3.0)
95
- activesupport (>= 3.0)
96
- sprockets (>= 2.8, < 4.0)
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.2
1
+ V1.3
@@ -1,5 +1,5 @@
1
1
  module Startblock
2
2
  RAILS_VERSION = "~> 4.2"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "1.2"
4
+ VERSION = "1.3"
5
5
  end
@@ -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"
@@ -1,5 +1,3 @@
1
- <%= javascript_include_tag :application %>
2
-
3
1
  <%= yield :javascript %>
4
2
 
5
3
  <%= render "mixpanel" %>
@@ -4,3 +4,6 @@
4
4
  @import "bootstrap";
5
5
  @import "nprogress";
6
6
  @import "nprogress-bootstrap";
7
+ @import "font-awesome-sprockets";
8
+ @import "font-awesome-sass";
9
+ @import "rails_bootstrap_forms";
@@ -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
-
@@ -12,7 +12,7 @@ module StartblockTestHelpers
12
12
  def run_startblock(arguments = nil)
13
13
  Dir.chdir(tmp_path) do
14
14
  Bundler.with_clean_env do
15
- %x(#{startblock_bin} #{APP_NAME} #{arguments})
15
+ %x(bundle exec #{startblock_bin} #{APP_NAME} #{arguments})
16
16
  end
17
17
  end
18
18
  end
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.2'
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: 2015-10-31 00:00:00.000000000 Z
12
+ date: 2016-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest