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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50125915d4b6f0f116a759e359e74a493c30e8ae
4
- data.tar.gz: 4d6a17a7fc23617142c4c743d9c3800a205aebe4
3
+ metadata.gz: 8c31201d03c22de6e3a1e6ea9e14523a170a66c3
4
+ data.tar.gz: 10272666aa731b9ec13f71f7a437ff4fd33bf72e
5
5
  SHA512:
6
- metadata.gz: 55150c900517ebee6e8a9580784de762f3c42adff01d113c2f3139c5c84362d986021626a7ca096e7c35a06e05485e4dd6e97f633b33adb26af8d202988d810a
7
- data.tar.gz: 5f71557e16aaef7e451a7abacee1cdb24afcb33cb4d0a460639fe588adb32e87460fd54a670577fbdda5b73e57957ad5cd5ea7f549297953789c07fd53fa4473
6
+ metadata.gz: 4e055ab4346ae331fa34f3bfd9a40d12a1482b110adc9bdf6a0814b60d7d24559caf77b98ff0f93e3ff4e56d60339e95f0e5d3c1aea90ef31aff1e9dd6031e8a
7
+ data.tar.gz: f434c1609b0eba0f4f8c12f88cdbf9969d896f2e31401876360afce7655341398bbf1f547976deea73f68fe95f66e9b304a947ad1ff4b999e2fb87a5c7c8959c
@@ -29,3 +29,7 @@ Feature: Generating Config Files
29
29
  """
30
30
  # ~/.tmuxinator/rails.yml
31
31
  """
32
+ Then the file "Guardfile" should contain:
33
+ """
34
+ guard :rspec
35
+ """
@@ -18,6 +18,7 @@ module CraneRails
18
18
  copy_file '../templates/database.yml', 'config/database.yml'
19
19
 
20
20
  template 'rails.yml', 'tmuxinator-sample.yml'
21
+ template 'Guardfile', 'Guardfile'
21
22
  end
22
23
 
23
24
  default_task :bootstrap
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CraneRails
2
- VERSION = '0.1.9'
2
+ VERSION = '0.2.0'
3
3
  end
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.1.9
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