welaika-suspenders 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb3780cfd0708c7e34ea7a07d6b1fce2f1148719
4
- data.tar.gz: 99e3b0c912ef4fef1746660d0ada086ad26edca8
3
+ metadata.gz: 90559583e7bf7e1fdfc62d9da8d74cfbfc23a2ff
4
+ data.tar.gz: 6dc410658454597c4557bd7bb26bd1d48fd39808
5
5
  SHA512:
6
- metadata.gz: 641f805787cef5616fb0d768ed67e957dd5434851a120e96b0cefffe669e30c0551b504e99b223c3a4c720690d38e809a9d61227a1dacfbfe2b5b68e7db0604e
7
- data.tar.gz: c178e02a73ab36ce40ec1d6c0fa45a848e85433000eda480603c062423f3ff1448a942a18657214ced681492c8956b842c5d48660b03ccad373f0747ed020053
6
+ metadata.gz: 71f0c4c172777e51e5f5d28bd15d8bd652f2a40bd78ffeb0be7c7a1eee8f459b17cac4701fcd34f2850e1cc2d235848879edf7b640543063a77625085693f9d0
7
+ data.tar.gz: 40739074cff5da6af853eb339772bba0d4fe40b2f5d1c9d560f647c3b561cfc5d371ad82e47d4301df9b5692b8fa1fc0dc3476736ab17d16cbc3d8d708c37108
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.4
1
+ 2.1.5
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.4
3
+ - 2.1.5
4
4
  before_install:
5
5
  - "echo '--colour' > ~/.rspec"
6
6
  - git config --global user.name 'Travis CI'
data/Gemfile.lock CHANGED
@@ -1,35 +1,35 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- welaika-suspenders (2.0.0)
4
+ welaika-suspenders (2.1.0)
5
5
  bitters (~> 0.10.0)
6
6
  bundler (~> 1.3)
7
- rails (= 4.1.7)
7
+ rails (= 4.1.8)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.1.7)
13
- actionpack (= 4.1.7)
14
- actionview (= 4.1.7)
12
+ actionmailer (4.1.8)
13
+ actionpack (= 4.1.8)
14
+ actionview (= 4.1.8)
15
15
  mail (~> 2.5, >= 2.5.4)
16
- actionpack (4.1.7)
17
- actionview (= 4.1.7)
18
- activesupport (= 4.1.7)
16
+ actionpack (4.1.8)
17
+ actionview (= 4.1.8)
18
+ activesupport (= 4.1.8)
19
19
  rack (~> 1.5.2)
20
20
  rack-test (~> 0.6.2)
21
- actionview (4.1.7)
22
- activesupport (= 4.1.7)
21
+ actionview (4.1.8)
22
+ activesupport (= 4.1.8)
23
23
  builder (~> 3.1)
24
24
  erubis (~> 2.7.0)
25
- activemodel (4.1.7)
26
- activesupport (= 4.1.7)
25
+ activemodel (4.1.8)
26
+ activesupport (= 4.1.8)
27
27
  builder (~> 3.1)
28
- activerecord (4.1.7)
29
- activemodel (= 4.1.7)
30
- activesupport (= 4.1.7)
28
+ activerecord (4.1.8)
29
+ activemodel (= 4.1.8)
30
+ activesupport (= 4.1.8)
31
31
  arel (~> 5.0.0)
32
- activesupport (4.1.7)
32
+ activesupport (4.1.8)
33
33
  i18n (~> 0.6, >= 0.6.9)
34
34
  json (~> 1.7, >= 1.7.7)
35
35
  minitest (~> 5.1)
@@ -82,22 +82,22 @@ GEM
82
82
  rack (1.5.2)
83
83
  rack-test (0.6.2)
84
84
  rack (>= 1.0)
85
- rails (4.1.7)
86
- actionmailer (= 4.1.7)
87
- actionpack (= 4.1.7)
88
- actionview (= 4.1.7)
89
- activemodel (= 4.1.7)
90
- activerecord (= 4.1.7)
91
- activesupport (= 4.1.7)
85
+ rails (4.1.8)
86
+ actionmailer (= 4.1.8)
87
+ actionpack (= 4.1.8)
88
+ actionview (= 4.1.8)
89
+ activemodel (= 4.1.8)
90
+ activerecord (= 4.1.8)
91
+ activesupport (= 4.1.8)
92
92
  bundler (>= 1.3.0, < 2.0)
93
- railties (= 4.1.7)
93
+ railties (= 4.1.8)
94
94
  sprockets-rails (~> 2.0)
95
- railties (4.1.7)
96
- actionpack (= 4.1.7)
97
- activesupport (= 4.1.7)
95
+ railties (4.1.8)
96
+ actionpack (= 4.1.8)
97
+ activesupport (= 4.1.8)
98
98
  rake (>= 0.8.7)
99
99
  thor (>= 0.18.1, < 2.0)
100
- rake (10.3.2)
100
+ rake (10.4.0)
101
101
  rspec (2.99.0)
102
102
  rspec-core (~> 2.99.0)
103
103
  rspec-expectations (~> 2.99.0)
@@ -106,13 +106,13 @@ GEM
106
106
  rspec-expectations (2.99.0)
107
107
  diff-lcs (>= 1.1.3, < 2.0)
108
108
  rspec-mocks (2.99.0)
109
- sass (3.4.6)
109
+ sass (3.4.9)
110
110
  sprockets (2.12.3)
111
111
  hike (~> 1.2)
112
112
  multi_json (~> 1.0)
113
113
  rack (~> 1.0)
114
114
  tilt (~> 1.1, != 1.3.0)
115
- sprockets-rails (2.2.0)
115
+ sprockets-rails (2.2.1)
116
116
  actionpack (>= 3.0)
117
117
  activesupport (>= 3.0)
118
118
  sprockets (>= 2.8, < 4.0)
data/NEWS.md CHANGED
@@ -1,3 +1,22 @@
1
+ 1.20.0 (November 25, 2014)
2
+
3
+ * Use Ruby 2.1.5.
4
+ * Use bin/setup from TravisCI to test executable documentation.
5
+ * Default JSON time format to use ISO8601 to match Heroku API Design Guide.
6
+ * Add Bundler Audit to scan Gemfile for insecure dependencies per CVEs.
7
+
8
+ 1.19.0 (November 23, 2014)
9
+
10
+ * Use Ruby 2.1.4.
11
+ * Use Rails 4.1.8.
12
+ * Add Bundler Audit gem for scanning the Gemfile
13
+ for insecure dependencies based on published CVEs.
14
+ * Use Heroku-recommended timeout numbers.
15
+ * [Improve memory] of app on Heroku with New Relic.
16
+ * Turn off RSpec verbose mode by default.
17
+
18
+ [Improve memory]: http://forum.upcase.com/t/how-to-free-up-swap-space-heroku/3017/13?u=croaky
19
+
1
20
  1.18.0 (October 23, 2014)
2
21
 
3
22
  * Use Ruby 2.1.3.
data/README.md CHANGED
@@ -18,6 +18,13 @@ Then run:
18
18
  This will create a rails app in `projectname`. This script creates a
19
19
  new git repository. It is not meant to be used against an existing repo.
20
20
 
21
+ If you want to add an existing repo, run
22
+
23
+ git remote add origin git@github.com:welaika/projectname.git
24
+
25
+ Then run:
26
+
27
+ cd projectname && bin/setup
21
28
 
22
29
  Version number
23
30
  --------------
@@ -346,8 +346,14 @@ fi
346
346
  run "#{path_addition} hub create #{repo_name}"
347
347
  end
348
348
 
349
+ def setup_bundler_audit
350
+ copy_file "bundler_audit.rake", "lib/tasks/bundler_audit.rake"
351
+ append_file "Rakefile", %{\ntask default: "bundler:audit"\n}
352
+ end
353
+
349
354
  def copy_miscellaneous_files
350
- copy_file 'errors.rb', 'config/initializers/errors.rb'
355
+ copy_file "errors.rb", "config/initializers/errors.rb"
356
+ copy_file "json_encoding.rb", "config/initializers/json_encoding.rb"
351
357
  end
352
358
 
353
359
  def customize_error_pages
@@ -39,6 +39,7 @@ module Suspenders
39
39
  invoke :setup_database
40
40
  invoke :create_heroku_apps
41
41
  invoke :create_github_repo
42
+ invoke :setup_bundler_audit
42
43
  invoke :outro
43
44
  end
44
45
 
@@ -172,6 +173,11 @@ module Suspenders
172
173
  build :gitignore_files
173
174
  end
174
175
 
176
+ def setup_bundler_audit
177
+ say "Setting up bundler-audit"
178
+ build :setup_bundler_audit
179
+ end
180
+
175
181
  def init_git
176
182
  build :init_git
177
183
  end
@@ -1,5 +1,5 @@
1
1
  module Suspenders
2
- RAILS_VERSION = "4.1.7"
2
+ RAILS_VERSION = "4.1.8"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "2.0.0"
4
+ VERSION = "2.1.0"
5
5
  end
@@ -28,6 +28,7 @@ gem "unicorn"
28
28
 
29
29
  group :development do
30
30
  gem "letter_opener"
31
+ gem "bundler-audit"
31
32
  gem "spring"
32
33
  gem "spring-commands-rspec"
33
34
  end
@@ -7,7 +7,7 @@
7
7
  set -e
8
8
 
9
9
  # Set up Ruby dependencies via Bundler
10
- bundle --version &> /dev/null || gem install bundler --no-document
10
+ gem list bundler --installed > /dev/null || gem install bundler
11
11
  bundle install
12
12
 
13
13
  # Set up configurable environment variables
@@ -16,19 +16,21 @@ if [ ! -f .env ]; then
16
16
  fi
17
17
 
18
18
  # Set up database and add any development seed data
19
- bundle exec rake dev:prime
19
+ bundle exec rake db:setup dev:prime
20
20
 
21
21
  # Add binstubs to PATH via export PATH=".git/safe/../../bin:$PATH" in ~/.zshenv
22
22
  mkdir -p .git/safe
23
23
 
24
24
  # Pick a port for Foreman
25
- if ! grep -qs 'port' .foreman; then
25
+ if ! grep --quiet --no-messages --fixed-strings 'port' .foreman; then
26
26
  printf 'port: <%= config[:port_number] %>\n' >> .foreman
27
27
  fi
28
28
 
29
- # Error out if Foreman is not installed
30
29
  if ! command -v foreman > /dev/null; then
31
30
  printf 'Foreman is not installed.\n'
32
31
  printf 'See https://github.com/ddollar/foreman for install instructions.\n'
33
- exit 1
34
32
  fi
33
+
34
+ # Only if this isn't CI
35
+ # if [ -z "$CI" ]; then
36
+ # fi
@@ -0,0 +1,12 @@
1
+ if Rails.env.development? || Rails.env.test?
2
+ require "bundler/audit/cli"
3
+
4
+ namespace :bundler do
5
+ desc "Updates the ruby-advisory-db and runs audit"
6
+ task :audit do
7
+ %w(update check).each do |command|
8
+ Bundler::Audit::CLI.start [command]
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1 @@
1
+ ActiveSupport::JSON::Encoding.time_precision = 0
@@ -3,11 +3,8 @@ before_install:
3
3
  - "echo 'gem: --no-document' > ~/.gemrc"
4
4
  - export DISPLAY=:99.0
5
5
  - sh -e /etc/init.d/xvfb start
6
- before_script:
7
- - cp .sample.env .env
8
- <% if options[:database] == "postgresql" %>
9
- - psql -c 'create database "<%= app_name %>_test";' -U postgres
10
- <% end %>
6
+ install:
7
+ - bin/setup
11
8
  branches:
12
9
  only:
13
10
  - master
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: welaika-suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-20 00:00:00.000000000 Z
12
+ date: 2014-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bitters
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 4.1.7
48
+ version: 4.1.8
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 4.1.7
55
+ version: 4.1.8
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: aruba
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -163,6 +163,7 @@ files:
163
163
  - templates/application.css.scss
164
164
  - templates/background_jobs_rspec.rb
165
165
  - templates/bin_setup.erb
166
+ - templates/bundler_audit.rake
166
167
  - templates/config_i18n_tasks.yml
167
168
  - templates/config_locales_en.yml.erb
168
169
  - templates/database_cleaner_rspec.rb
@@ -171,6 +172,7 @@ files:
171
172
  - templates/errors.rb
172
173
  - templates/factory_girl_rspec.rb
173
174
  - templates/i18n.rb
175
+ - templates/json_encoding.rb
174
176
  - templates/newrelic.yml.erb
175
177
  - templates/postgresql_database.yml.erb
176
178
  - templates/rack_timeout.rb
@@ -197,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
199
  requirements:
198
200
  - - ">="
199
201
  - !ruby/object:Gem::Version
200
- version: 2.1.4
202
+ version: 2.1.5
201
203
  required_rubygems_version: !ruby/object:Gem::Requirement
202
204
  requirements:
203
205
  - - ">="
@@ -205,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
207
  version: '0'
206
208
  requirements: []
207
209
  rubyforge_project:
208
- rubygems_version: 2.4.2
210
+ rubygems_version: 2.4.4
209
211
  signing_key:
210
212
  specification_version: 4
211
213
  summary: Generate a Rails app using thoughtbot's best practices.