blueberry_rails 0.3.6 → 0.3.7

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: 124c3ff88080e1cce33ee42793b9d72ee9d4f494
4
- data.tar.gz: 308737a8df6b9f9d6f79d7717454195349a91a82
3
+ metadata.gz: 94728753f0b19949d2b6f003de3e94a4451af30c
4
+ data.tar.gz: a3d0ad6310e09ab70601f65ed839c5d4c613f8e7
5
5
  SHA512:
6
- metadata.gz: 0fad380c4c1a2e7ca96acc77b5cf21589f09956c0423100dcdcbaa450cd0de0dcd4fc86750b54f2922b02397d21ce23a18152685685124f39988487b25204bcf
7
- data.tar.gz: a2b14a49d908d358c448be61ea87ff24307af4ad9086a687e651b6d7ec779377d08cdb2a4cc4300dda9a5127c1529efd2060456fa9d38f576817cd0fc5e8cd2d
6
+ metadata.gz: dee59d3e3411747d1a69dd4c8a6c691727f66c25c187fcb4e0a9494369684ce306048a3d353cebac5668598328ab98f4798b81cfe6683e4b7806ced8addf52a5
7
+ data.tar.gz: 296e9a9ce33695cf6f5580eac1b371629655f15dc62f9cb50a2cb6b3635c0309e8d945e2a8489c30cb28a6dcf3223fd3fb3fab61a4b18909e6478eeee6d5a249
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  script: 'bundle exec rake'
3
3
  rvm:
4
- - 2.2.1
4
+ - 2.2.2
5
5
  before_install:
6
6
  - gem update --system
7
-
@@ -32,6 +32,9 @@ module BlueberryRails
32
32
  class_option :gulp, type: :boolean, aliases: '-g', default: false,
33
33
  desc: 'Include Gulp asset pipeline'
34
34
 
35
+ class_option :capistrano, type: :boolean, aliases: '-c', default: false,
36
+ desc: 'Include Capistrano'
37
+
35
38
  def finish_template
36
39
  invoke :blueberry_customization
37
40
  super
@@ -47,7 +50,6 @@ module BlueberryRails
47
50
  invoke :configure_app
48
51
  invoke :remove_routes_comment_lines
49
52
  invoke :setup_gems
50
- invoke :fix_specs
51
53
  invoke :setup_git
52
54
  invoke :setup_gulp
53
55
  end
@@ -114,14 +116,13 @@ module BlueberryRails
114
116
  if options[:devise]
115
117
  say 'Setting up devise'
116
118
  build :install_devise
119
+ build :replace_users_factory
120
+ build :replace_root_controller_spec
121
+ end
122
+ if options[:capistrano]
123
+ say 'Setting up Capistrano'
124
+ build :setup_capistrano
117
125
  end
118
- say 'Setting up Capistrano'
119
- build :setup_capistrano
120
- end
121
-
122
- def fix_specs
123
- build :replace_users_factory
124
- build :replace_root_controller_spec
125
126
  end
126
127
 
127
128
  def setup_git
@@ -1,7 +1,7 @@
1
1
  module BlueberryRails
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
3
3
 
4
4
  RUBY_VERSION = '2.2.2'
5
5
 
6
- RAILS_VERSION = '4.2.1'
6
+ RAILS_VERSION = '4.2.3'
7
7
  end
@@ -27,6 +27,23 @@ class BlueberryRailsTest < Minitest::Test
27
27
  assert run_rake
28
28
  end
29
29
 
30
+ def test_rake_runs_with_capistrano_option
31
+ create_project '--capistrano'
32
+
33
+ assert_file_have_content 'Gemfile', 'capistrano'
34
+
35
+ assert_exist_file 'Capfile'
36
+ assert_exist_file 'config/deploy.rb'
37
+ assert_exist_file 'config/deploy/production.rb'
38
+ assert_exist_file 'config/deploy/staging.rb'
39
+ end
40
+
41
+ def test_rake_runs_with_capistrano_option
42
+ create_project '--no-devise'
43
+
44
+ assert run_rake
45
+ end
46
+
30
47
  def test_rake_runs_with_bootstrap_option
31
48
  create_project '--bootstrap'
32
49
 
@@ -28,10 +28,12 @@ group :development do
28
28
  gem 'awesome_print'
29
29
  gem 'better_errors'
30
30
  gem 'binding_of_caller'
31
+ <% if options[:capistrano] -%>
31
32
  gem 'capistrano', '~> 3.0.0'
32
33
  gem 'capistrano-bundler'
33
34
  gem 'capistrano-rails'
34
35
  gem 'capistrano-rbenv'
36
+ <% end -%>
35
37
  gem 'guard-rspec'
36
38
  gem 'mailcatcher'
37
39
  gem 'pry-rails'
@@ -58,7 +60,7 @@ group :test do
58
60
  gem 'database_cleaner'
59
61
  gem 'launchy'
60
62
  gem 'poltergeist', '>= 1.5.0'
61
- gem 'simplecov', '~> 0.9.1', require: false
63
+ gem 'simplecov', require: false
62
64
  gem 'webmock'
63
65
  end
64
66
 
@@ -3,12 +3,12 @@
3
3
  *.swo
4
4
  *.swp
5
5
  .bundle
6
- .sass-cache/
6
+ .env
7
7
  .pry_history
8
+ .sass-cache/
8
9
  coverage/*
9
10
  config/database.yml
10
11
  db/*.sqlite3
11
- db/schema.rb
12
12
  log/*
13
13
  public/system
14
14
  rerun.txt
@@ -1,10 +1,10 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe RootController, :type => :controller do
3
+ describe RootController, type: :controller do
4
4
 
5
- describe "GET 'index'" do
6
- it "returns http success" do
7
- get 'index'
5
+ describe 'GET index' do
6
+ it 'returns http success' do
7
+ get :index
8
8
  expect(response).to be_success
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueberry_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlueberryApps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-01 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.2.1
33
+ version: 4.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.2.1
40
+ version: 4.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement