crane_rails 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/generator.feature +4 -0
- data/lib/crane_rails/cli.rb +1 -0
- data/lib/crane_rails/templates/Guardfile +29 -0
- data/lib/crane_rails/templates/rails.yml +1 -1
- data/lib/crane_rails/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c31201d03c22de6e3a1e6ea9e14523a170a66c3
|
4
|
+
data.tar.gz: 10272666aa731b9ec13f71f7a437ff4fd33bf72e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e055ab4346ae331fa34f3bfd9a40d12a1482b110adc9bdf6a0814b60d7d24559caf77b98ff0f93e3ff4e56d60339e95f0e5d3c1aea90ef31aff1e9dd6031e8a
|
7
|
+
data.tar.gz: f434c1609b0eba0f4f8c12f88cdbf9969d896f2e31401876360afce7655341398bbf1f547976deea73f68fe95f66e9b304a947ad1ff4b999e2fb87a5c7c8959c
|
data/features/generator.feature
CHANGED
data/lib/crane_rails/cli.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
guard :rspec do
|
5
|
+
watch(%r{^spec/.+_spec\.rb$})
|
6
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
7
|
+
watch('spec/spec_helper.rb') { "spec" }
|
8
|
+
|
9
|
+
# Rails example
|
10
|
+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
11
|
+
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
12
|
+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
13
|
+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
14
|
+
watch('config/routes.rb') { "spec/routing" }
|
15
|
+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
16
|
+
|
17
|
+
# Capybara features specs
|
18
|
+
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
19
|
+
|
20
|
+
# Turnip features and steps
|
21
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
22
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
guard :rubocop do
|
27
|
+
watch(%r{.+\.rb$})
|
28
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
29
|
+
end
|
@@ -8,6 +8,6 @@ pre: vagrant up
|
|
8
8
|
|
9
9
|
windows:
|
10
10
|
- vim: vim .
|
11
|
-
- server: vagrant ssh --command 'docker run --name=server --link=pg:pg --volume=$HOME/rails:/rails:rw shicholas/rails-server'
|
11
|
+
- server: vagrant ssh --command 'docker run --name=server -P --link=pg:pg --volume=$HOME/rails:/rails:rw shicholas/rails-server'
|
12
12
|
- guard: vagrant ssh --command 'docker run --name=test --link=pg:pg --volume=$HOME/rails:/rails:rw shicholas/rails-guard'
|
13
13
|
- misc: vagrant rsync-auto
|
data/lib/crane_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crane_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Shook
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/crane_rails.rb
|
74
74
|
- lib/crane_rails/cli.rb
|
75
75
|
- lib/crane_rails/generators/bootstrap.rb
|
76
|
+
- lib/crane_rails/templates/Guardfile
|
76
77
|
- lib/crane_rails/templates/Vagrantfile
|
77
78
|
- lib/crane_rails/templates/crane.yml
|
78
79
|
- lib/crane_rails/templates/database.yml
|