make_it_so 0.0.6 → 0.0.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/lib/make_it_so/rails/app_builder.rb +2 -1
- data/lib/make_it_so/version.rb +1 -1
- data/spec/features/user_generates_rails_spec.rb +13 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecc353cb742607b9a6bdce825f69dddb0b417f17
|
4
|
+
data.tar.gz: 611e0994bddd88370147c325aaa3eba1bb82d264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f962f5cb9da4852c3fd43524a5d0ede46b528bd965689060481d493ea4fde8cb23be03ed5ae8b0d1dda6ba483f36d23c689e0251a9e02d80054b415ae0ea6baf
|
7
|
+
data.tar.gz: b2a787a25c46347cc95034f577237f86c84847446c43bcdb27837910f64d7f6cc62f5bd09a93ab151f707a3b5bf4e2ebaea46ef1ed07cdeab53267bdb8dd85a9
|
data/lib/make_it_so/version.rb
CHANGED
@@ -36,6 +36,16 @@ feature 'user generates rails app' do
|
|
36
36
|
expect(File.read(app_layout)).to include('flash')
|
37
37
|
end
|
38
38
|
|
39
|
+
scenario 'creates a valid gemfile' do
|
40
|
+
words = ['source', '#', 'gem', 'group', 'end']
|
41
|
+
|
42
|
+
File.readlines('Gemfile').each do |line|
|
43
|
+
unless line.strip.empty?
|
44
|
+
expect(line.strip.start_with?(*words)).to eq(true)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
39
49
|
context 'pry-rails' do
|
40
50
|
it 'is added as a dependency' do
|
41
51
|
expect(File.read(gemfile_path)).to match(/gem(.*)pry-rails/)
|
@@ -51,11 +61,13 @@ feature 'user generates rails app' do
|
|
51
61
|
spec_helper = join_paths(app_path, 'spec/spec_helper.rb')
|
52
62
|
expect(FileTest.exists?(spec_helper)).to eq(true)
|
53
63
|
end
|
64
|
+
|
54
65
|
context 'byebug' do
|
55
|
-
it '
|
66
|
+
it 'removes the byebug dependency' do
|
56
67
|
expect(File.read(gemfile_path)).to_not match(/gem(.*)byebug/)
|
57
68
|
end
|
58
69
|
end
|
70
|
+
|
59
71
|
context 'capybara' do
|
60
72
|
it 'includes capybara as a Gemfile dependency' do
|
61
73
|
expect(File.read(gemfile_path)).to include('capybara')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: make_it_so
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Pickett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|