blueberry_rails 0.3.6 → 0.3.7
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 +4 -4
- data/.travis.yml +1 -2
- data/lib/blueberry_rails/generators/app_generator.rb +9 -8
- data/lib/blueberry_rails/version.rb +2 -2
- data/spec/blueberry_rails_spec.rb +17 -0
- data/templates/Gemfile_custom.erb +3 -1
- data/templates/gitignore_custom.erb +2 -2
- data/templates/root_controller_spec.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94728753f0b19949d2b6f003de3e94a4451af30c
|
4
|
+
data.tar.gz: a3d0ad6310e09ab70601f65ed839c5d4c613f8e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee59d3e3411747d1a69dd4c8a6c691727f66c25c187fcb4e0a9494369684ce306048a3d353cebac5668598328ab98f4798b81cfe6683e4b7806ced8addf52a5
|
7
|
+
data.tar.gz: 296e9a9ce33695cf6f5580eac1b371629655f15dc62f9cb50a2cb6b3635c0309e8d945e2a8489c30cb28a6dcf3223fd3fb3fab61a4b18909e6478eeee6d5a249
|
data/.travis.yml
CHANGED
@@ -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
|
@@ -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',
|
63
|
+
gem 'simplecov', require: false
|
62
64
|
gem 'webmock'
|
63
65
|
end
|
64
66
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe RootController, :
|
3
|
+
describe RootController, type: :controller do
|
4
4
|
|
5
|
-
describe
|
6
|
-
it
|
7
|
-
get
|
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.
|
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-
|
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.
|
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.
|
40
|
+
version: 4.2.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|