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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b272176ada27acb05cdb1d0ac0d082d9c8f1a34e
4
- data.tar.gz: 734c10128815708c11b9af83466b76f100332aa6
3
+ metadata.gz: 830912788f7a6e7329fc7198ef61a8d0f1194094
4
+ data.tar.gz: ed1696e366a6bb2e1044076457a62514923e2d66
5
5
  SHA512:
6
- metadata.gz: 2aec4368ea1f2a047625a1a92183d03001f3112a2b9fc13d1efb5f9276beb15bb0f26d25d3daf66553c6d6262f1c72ad9871f2626975996426ddc5fccea7d6a9
7
- data.tar.gz: 26e8f71dbb6b979ba246e13846283d024a19bf5c23346bafa5879cef6b270cdc7d0a260729ee3328f9e121dd3e23704e7e358c20c4e5707b81c72fb3ec8c3098
6
+ metadata.gz: e7f174b52aff033de678e0ce153ca332918754528a0c6301ee7dafc8f319e2b3b3aecc68f7ee44f451517390b5d60fd12a6168f253ae1b7ca565a4aac34d00b1
7
+ data.tar.gz: 06bb804941b48d19842488e165a0f8427df08c9b976bed82b47447eaa628f18e0183efd8146a4eae9404394cb9e962e6969158d739393f3db61b9ef78ac92417
data/.travis.yml CHANGED
@@ -2,5 +2,6 @@ language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
4
  - 2.2.3
5
+ sudo: false
5
6
  notifications:
6
7
  email: true
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.1 - Navy Silver (Released on 2015-08-21)
5
+ ## V1.2 - Black Copper - 2015-10-31
6
6
 
7
7
  ### Added
8
- - Rubocop was added with a default config
9
- - Bootstrap is now our default templating 'framework'
8
+ - Added NProgress-rails gem
9
+ - Added letter_opener in development
10
10
 
11
11
  ### Changed
12
- - Updated the ruby version to 2.2.3
13
- - Make rails version follow all patch versions (Added ~> to the version)
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
- - Bourbon, Bitters and Neat has been removed
17
- - Rollbar
18
- - Normalize-rails
16
+ - We no longer send mails to mailcatcher in dev
19
17
 
20
18
  ### Fixed
21
- - Nothing
19
+ - Place the JS file in the correct folder
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ group :test do
6
+ gem 'rake'
7
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- startblock (1.0)
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.3)
13
- actionpack (= 4.2.3)
14
- actionview (= 4.2.3)
15
- activejob (= 4.2.3)
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.3)
19
- actionview (= 4.2.3)
20
- activesupport (= 4.2.3)
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.3)
26
- activesupport (= 4.2.3)
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.3)
32
- activesupport (= 4.2.3)
31
+ activejob (4.2.4)
32
+ activesupport (= 4.2.4)
33
33
  globalid (>= 0.3.0)
34
- activemodel (4.2.3)
35
- activesupport (= 4.2.3)
34
+ activemodel (4.2.4)
35
+ activesupport (= 4.2.4)
36
36
  builder (~> 3.1)
37
- activerecord (4.2.3)
38
- activemodel (= 4.2.3)
39
- activesupport (= 4.2.3)
37
+ activerecord (4.2.4)
38
+ activemodel (= 4.2.4)
39
+ activesupport (= 4.2.4)
40
40
  arel (~> 6.0)
41
- activesupport (4.2.3)
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.1)
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.3)
67
- actionmailer (= 4.2.3)
68
- actionpack (= 4.2.3)
69
- actionview (= 4.2.3)
70
- activejob (= 4.2.3)
71
- activemodel (= 4.2.3)
72
- activerecord (= 4.2.3)
73
- activesupport (= 4.2.3)
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.3)
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.3)
86
- actionpack (= 4.2.3)
87
- activesupport (= 4.2.3)
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.3.2)
92
- rack (~> 1.0)
93
- sprockets-rails (2.3.2)
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
1
+ V1.2
@@ -90,7 +90,8 @@ end
90
90
  end
91
91
 
92
92
  def configure_action_mailer
93
- action_mailer_host "development", %{"localhost:1205"}
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.css.scss',
105
- 'app/assets/stylesheets/application.css.scss'
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/javascript/application.js"
110
- copy_file "application.js", "app/assets/javascript/application.js"
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
@@ -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.1"
4
+ VERSION = "1.2"
5
5
  end
@@ -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
@@ -3,6 +3,8 @@
3
3
  //= require jquery_ujs
4
4
  //= require bootstrap-sprockets
5
5
  //= require fastclick
6
+ //= require nprogress
7
+ //= require nprogress-turbolinks
6
8
  //= require turbolinks
7
9
 
8
10
  $(function() {
@@ -2,3 +2,5 @@
2
2
 
3
3
  @import "bootstrap-sprockets";
4
4
  @import "bootstrap";
5
+ @import "nprogress";
6
+ @import "nprogress-bootstrap";
@@ -12,3 +12,4 @@
12
12
  /public/assets
13
13
  /tags
14
14
  /tmp/*
15
+ passenger.*
@@ -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 test_application_js_should_be_created
34
- app_js_file = IO.read("#{project_path}/app/assets/javascript/application.js")
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.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-08-21 00:00:00.000000000 Z
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: