startblock 1.3 → 1.4

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: 47f23987b7c61185a0d0243aa4fdc6cc76a03e15
4
- data.tar.gz: fe0e98edfb05b0a5d85a4184f77ad24446fe9286
3
+ metadata.gz: d4cbd0cf6a715971b53dbfcce768380b9a8d4123
4
+ data.tar.gz: a0447a54c7c475e68a8088b549f25a1e3018e8f2
5
5
  SHA512:
6
- metadata.gz: 52ddc325d76ea0e1166dc9191891045a28e090d170b8a0214626fe9d252cd330371564f7bf3e920f40b0c36cb78409ebc3fae14ace9aced5f1f238020a7e7632
7
- data.tar.gz: ec18d4f3f1f4140042ad0e4edb7dccdc0e31703f97b2bc47694bfe4c598d8f627b11283a9dcbec09a99b509b7f8d0fbaa12a8893c7155e973de9e802b8bf1961
6
+ metadata.gz: 393010437012ddcc932f26bfd3807ee32234857d0431daba0fc844dcbdffc504d65f844c45e13c36ce1ba30164c78fccafc8ab9b974911b06a48ffde9a3118c0
7
+ data.tar.gz: 350e810d96d0727d7d4c9cee0b2d664501a9f13ea818206ce72f5212339847731b9e24374acd459854a1df333358cd321ff8b58454444b0ae78b124102eb11b5
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.3.0
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.2.3
4
+ - 2.3.0
5
5
  sudo: false
6
6
  notifications:
7
7
  email: true
data/CHANGELOG CHANGED
@@ -2,6 +2,28 @@
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 - Unreleased
6
+
7
+ ### Changed
8
+ ### Added
9
+ ### Removed
10
+ ### Fixed
11
+
12
+ ## V1.4 - Maroon Lead - 2016-01-29
13
+
14
+ ### Changed
15
+ - Updated Ruby to 2.3.0
16
+ - Defaults to Intercity-Next configuration
17
+
18
+ ### Added
19
+ - Puma as app server
20
+
21
+ ### Removed
22
+ - All capistrano related stuff
23
+
24
+ ### Fixed
25
+ - Make sure we import the correct bootstrap-sass scss file
26
+
5
27
  ## V1.3 - Purple Mercury - 2016-01-26
6
28
 
7
29
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- startblock (1.2)
4
+ startblock (1.4)
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.5)
13
- actionpack (= 4.2.5)
14
- actionview (= 4.2.5)
15
- activejob (= 4.2.5)
12
+ actionmailer (4.2.5.1)
13
+ actionpack (= 4.2.5.1)
14
+ actionview (= 4.2.5.1)
15
+ activejob (= 4.2.5.1)
16
16
  mail (~> 2.5, >= 2.5.4)
17
17
  rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.5)
19
- actionview (= 4.2.5)
20
- activesupport (= 4.2.5)
18
+ actionpack (4.2.5.1)
19
+ actionview (= 4.2.5.1)
20
+ activesupport (= 4.2.5.1)
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.5)
26
- activesupport (= 4.2.5)
25
+ actionview (4.2.5.1)
26
+ activesupport (= 4.2.5.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.2)
31
- activejob (4.2.5)
32
- activesupport (= 4.2.5)
31
+ activejob (4.2.5.1)
32
+ activesupport (= 4.2.5.1)
33
33
  globalid (>= 0.3.0)
34
- activemodel (4.2.5)
35
- activesupport (= 4.2.5)
34
+ activemodel (4.2.5.1)
35
+ activesupport (= 4.2.5.1)
36
36
  builder (~> 3.1)
37
- activerecord (4.2.5)
38
- activemodel (= 4.2.5)
39
- activesupport (= 4.2.5)
37
+ activerecord (4.2.5.1)
38
+ activemodel (= 4.2.5.1)
39
+ activesupport (= 4.2.5.1)
40
40
  arel (~> 6.0)
41
- activesupport (4.2.5)
41
+ activesupport (4.2.5.1)
42
42
  i18n (~> 0.7)
43
43
  json (~> 1.7, >= 1.7.7)
44
44
  minitest (~> 5.1)
@@ -59,21 +59,21 @@ GEM
59
59
  mime-types (2.99)
60
60
  mini_portile2 (2.0.0)
61
61
  minitest (5.8.3)
62
- nokogiri (1.6.7.1)
62
+ nokogiri (1.6.7.2)
63
63
  mini_portile2 (~> 2.0.0.rc2)
64
64
  rack (1.6.4)
65
65
  rack-test (0.6.3)
66
66
  rack (>= 1.0)
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)
67
+ rails (4.2.5.1)
68
+ actionmailer (= 4.2.5.1)
69
+ actionpack (= 4.2.5.1)
70
+ actionview (= 4.2.5.1)
71
+ activejob (= 4.2.5.1)
72
+ activemodel (= 4.2.5.1)
73
+ activerecord (= 4.2.5.1)
74
+ activesupport (= 4.2.5.1)
75
75
  bundler (>= 1.3.0, < 2.0)
76
- railties (= 4.2.5)
76
+ railties (= 4.2.5.1)
77
77
  sprockets-rails
78
78
  rails-deprecated_sanitizer (1.0.3)
79
79
  activesupport (>= 4.2.0.alpha)
@@ -81,18 +81,18 @@ GEM
81
81
  activesupport (>= 4.2.0.beta, < 5.0)
82
82
  nokogiri (~> 1.6.0)
83
83
  rails-deprecated_sanitizer (>= 1.0.1)
84
- rails-html-sanitizer (1.0.2)
84
+ rails-html-sanitizer (1.0.3)
85
85
  loofah (~> 2.0)
86
- railties (4.2.5)
87
- actionpack (= 4.2.5)
88
- activesupport (= 4.2.5)
86
+ railties (4.2.5.1)
87
+ actionpack (= 4.2.5.1)
88
+ activesupport (= 4.2.5.1)
89
89
  rake (>= 0.8.7)
90
90
  thor (>= 0.18.1, < 2.0)
91
91
  rake (10.5.0)
92
92
  sprockets (3.5.2)
93
93
  concurrent-ruby (~> 1.0)
94
94
  rack (> 1, < 3)
95
- sprockets-rails (3.0.0)
95
+ sprockets-rails (3.0.1)
96
96
  actionpack (>= 4.0)
97
97
  activesupport (>= 4.0)
98
98
  sprockets (>= 3.0.0)
@@ -110,4 +110,4 @@ DEPENDENCIES
110
110
  startblock!
111
111
 
112
112
  BUNDLED WITH
113
- 1.10.6
113
+ 1.11.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- V1.3
1
+ V1.4
@@ -122,6 +122,10 @@ end
122
122
  copy_file 'startblock_gitignore', '.gitignore'
123
123
  end
124
124
 
125
+ def copy_puma_config
126
+ copy_file 'puma.rb', 'config/puma.rb'
127
+ end
128
+
125
129
  def init_git
126
130
  run 'git init'
127
131
  end
@@ -28,6 +28,7 @@ module Startblock
28
28
  invoke :setup_stylesheets
29
29
  invoke :setup_javascripts
30
30
  invoke :remove_routes_comment_lines
31
+ invoke :setup_puma
31
32
  invoke :setup_git
32
33
  invoke :setup_database
33
34
  invoke :setup_mixpanel
@@ -93,6 +94,11 @@ module Startblock
93
94
  build :remove_routes_comment_lines
94
95
  end
95
96
 
97
+ def setup_puma
98
+ say 'Setting up puma'
99
+ build :copy_puma_config
100
+ end
101
+
96
102
  def setup_git
97
103
  say 'Initializing git'
98
104
  build :gitignore_files
@@ -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.3"
4
+ VERSION = "1.4"
5
5
  end
@@ -16,15 +16,11 @@ gem "redis-namespace", "~> 1.5.1"
16
16
  gem "nprogress-rails", "~> 0.1.6"
17
17
  gem "font-awesome-sass", "~> 4.5.0"
18
18
  gem "bootstrap_form", "~> 2.3.0"
19
+ gem "puma", "~> 2.16"
19
20
 
20
21
  group :development do
21
22
  gem "spring"
22
23
  gem "web-console"
23
- gem "capistrano"
24
- gem "capistrano-rails"
25
- gem "capistrano-rails-console"
26
- gem "daemon_controller"
27
- gem "passenger"
28
24
  gem "quiet_assets"
29
25
  gem "letter_opener"
30
26
  end
@@ -44,6 +40,7 @@ group :test do
44
40
  end
45
41
 
46
42
  group :staging, :production do
43
+ gem "rails_12factor"
47
44
  end
48
45
 
49
46
  source "https://rails-assets.org" do
@@ -1,2 +1,2 @@
1
- web: passenger start
1
+ web: bundle exec puma -C config/puma.rb
2
2
  sidekiq: bundle exec sidekiq
@@ -5,5 +5,5 @@
5
5
  @import "nprogress";
6
6
  @import "nprogress-bootstrap";
7
7
  @import "font-awesome-sprockets";
8
- @import "font-awesome-sass";
8
+ @import "font-awesome";
9
9
  @import "rails_bootstrap_forms";
@@ -10,3 +10,11 @@ development: &default
10
10
  test:
11
11
  <<: *default
12
12
  database: <%= app_name %>_test
13
+
14
+ staging:
15
+ <<: *default
16
+ url: <%= ENV["DATABASE_URL"] %>
17
+
18
+ production:
19
+ <<: *default
20
+ url: <%= ENV["DATABASE_URL"] %>
@@ -0,0 +1,15 @@
1
+ workers Integer(ENV['WEB_CONCURRENCY'] || 2)
2
+ threads_count = Integer(ENV['MAX_THREADS'] || 5)
3
+ threads threads_count, threads_count
4
+
5
+ preload_app!
6
+
7
+ rackup DefaultRackup
8
+ port ENV['PORT'] || 3000
9
+ environment ENV['RACK_ENV'] || 'development'
10
+
11
+ on_worker_boot do
12
+ # Worker specific setup for Rails 4.1+
13
+ # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
14
+ ActiveRecord::Base.establish_connection
15
+ end
@@ -23,6 +23,10 @@ class NewProjectTest < Minitest::Test
23
23
  end
24
24
  end
25
25
 
26
+ def test_puma_config_should_exist
27
+ assert File.exists?("#{project_path}/config/puma.rb"), "config/puma.rb should exist"
28
+ end
29
+
26
30
  def test_gemfile_should_contain_certain_gems
27
31
  gemfile = IO.read("#{project_path}/Gemfile")
28
32
 
@@ -31,6 +35,8 @@ class NewProjectTest < Minitest::Test
31
35
  assert gemfile.match(/nprogress-rails/), "Gemfile should contain NProgress-rails"
32
36
  assert gemfile.match(/font-awesome-sass/), "Gemfile should contain font-awesome-sass"
33
37
  assert gemfile.match(/bootstrap_form/), "Gemfile should contain bootstrap_form"
38
+ assert gemfile.match(/puma/), "Gemfile should contain puma"
39
+ assert gemfile.match(/rails_12factor/), "Gemfile should contain rails_12factor"
34
40
  end
35
41
 
36
42
  def test_gemfile_should_contain_ruby_version
@@ -38,6 +44,12 @@ class NewProjectTest < Minitest::Test
38
44
  assert gemfile.match(/^ruby \".+\"$/), "Gemfile should contain a Ruby version"
39
45
  end
40
46
 
47
+ def test_database_yml_should_containt_staging_and_production
48
+ database_yml = IO.read("#{project_path}/config/database.yml")
49
+ assert database_yml.match(/staging/), "Database.yml should contain staging"
50
+ assert database_yml.match(/production/), "Database.yml should contain production"
51
+ end
52
+
41
53
  def test_application_js_should_b_created
42
54
  app_js_file = IO.read("#{project_path}/app/assets/javascripts/application.js")
43
55
 
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.3'
4
+ version: '1.4'
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: 2016-01-26 00:00:00.000000000 Z
12
+ date: 2016-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -107,6 +107,7 @@ files:
107
107
  - templates/application.scss
108
108
  - templates/bin_setup.erb
109
109
  - templates/postgresql_database.yml.erb
110
+ - templates/puma.rb
110
111
  - templates/rubocop.yml
111
112
  - templates/sample.env
112
113
  - templates/secrets.yml
@@ -130,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
131
  requirements:
131
132
  - - ">="
132
133
  - !ruby/object:Gem::Version
133
- version: 2.2.3
134
+ version: 2.3.0
134
135
  required_rubygems_version: !ruby/object:Gem::Requirement
135
136
  requirements:
136
137
  - - ">="
@@ -138,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  version: '0'
139
140
  requirements: []
140
141
  rubyforge_project:
141
- rubygems_version: 2.4.5.1
142
+ rubygems_version: 2.5.1
142
143
  signing_key:
143
144
  specification_version: 4
144
145
  summary: Generate a Rails app using Firmhouse's best practices.
@@ -146,4 +147,3 @@ test_files:
146
147
  - test/features/new_project_test.rb
147
148
  - test/support/startblock.rb
148
149
  - test/test_helper.rb
149
- has_rdoc: