quick_shoulda 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -19,7 +19,7 @@ Sample model :
19
19
 
20
20
  Just 1 simple command
21
21
 
22
- Rails generate quick_shoulda:generate app/models/user.rb
22
+ Rails generate quick_shoulda:g User
23
23
  or
24
24
  Rails generate quick_shoulda:g app/models/user.rb
25
25
 
@@ -49,12 +49,20 @@ or add to Gemfile:
49
49
  end
50
50
 
51
51
  == Usage
52
- Rails generate quick_shoulda:generate app/models/user.rb
53
- or
54
- Rails generate quick_shoulda:g app/models/user.rb
55
- or
52
+ Path to model file as parameter
53
+ Rails generate quick_shoulda:g app/models/user.rb
54
+
55
+ Model name as parameter
56
56
  Rails generate quick_shoulda:g User
57
57
 
58
+ multi model name / paths as parameter
59
+ Rails generate quick_shoulda:g User Post Comment Admin::Statistic
60
+ or
61
+ Rails generate quick_shoulda:g app/models/user.rb app/models/post.rb
62
+
63
+
64
+
65
+
58
66
  == Contributing
59
67
 
60
68
  1. Fork it
@@ -2,8 +2,7 @@ module QuickShoulda
2
2
  class GGenerator < ::Rails::Generators::Base
3
3
  argument :model_path, :type => :array
4
4
 
5
- def generate_shoulda_testcases
6
- puts model_path
5
+ def generate_shoulda_testcases
7
6
  QuickShoulda.process(model_path)
8
7
  end
9
8
  end
@@ -1,3 +1,3 @@
1
1
  module QuickShoulda
2
- VERSION = "0.0.6"
3
- end
2
+ VERSION = "0.0.7"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_shoulda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -62,7 +62,6 @@ files:
62
62
  - Rakefile
63
63
  - data/stored_strings.yml
64
64
  - lib/generators/quick_shoulda/g_generator.rb
65
- - lib/generators/quick_shoulda/generate_generator.rb
66
65
  - lib/quick_shoulda.rb
67
66
  - lib/quick_shoulda/config.rb
68
67
  - lib/quick_shoulda/errors.rb
@@ -1,9 +0,0 @@
1
- module QuickShoulda
2
- class GenerateGenerator < ::Rails::Generators::Base
3
- argument :model_path, :type => :string
4
-
5
- def generate_shoulda_testcases
6
- QuickShoulda.process(model_path)
7
- end
8
- end
9
- end