stager 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Stager is a Rails 3.1 gem to create scaffolds, controllers and models. The files created are specific to 45north's needs. This is a webdevelopment agency in Amsterdam, The Netherlands.
4
4
 
5
- version 0.2.0
5
+ version 0.2.1
6
6
  Robin Brouwer
7
7
  45north
8
8
 
@@ -18,65 +18,65 @@ Now just run `bundle install` and you're ready.
18
18
 
19
19
  Usage:
20
20
 
21
- # Use the User Model to create all actions.
22
- rails g stager:scaffold User
21
+ # Use the User Model to create all actions.
22
+ rails g stager:scaffold User
23
23
 
24
- # Use the User Model to create two actions.
25
- rails g stager:scaffold User index show
24
+ # Use the User Model to create two actions.
25
+ rails g stager:scaffold User index show
26
26
 
27
- # Use the User Model to create all actions, except one action.
28
- rails g stager:scaffold User ! show
27
+ # Use the User Model to create all actions, except one action.
28
+ rails g stager:scaffold User ! show
29
29
 
30
- # Create a new User Model with all actions.
31
- rails g stager:scaffold User name:string email:string
30
+ # Create a new User Model with all actions.
31
+ rails g stager:scaffold User name:string email:string
32
32
 
33
- # Create a new User Model and three actions.
34
- rails g stager:scaffold User name:string email:string index new create
33
+ # Create a new User Model and three actions.
34
+ rails g stager:scaffold User name:string email:string index new create
35
35
 
36
36
  Options:
37
37
 
38
- --namespaced_model # Create a namespaced Model.
39
- --skip_migration # Skip the migration file.
40
- --skip_timestamps # Skip the timestamps.
41
- --skip_presenter # Skip the presenter.
42
- --skip_helper # Skip the helper.
43
- --skip_views # Skip the views.
38
+ --namespaced_model # Create a namespaced Model.
39
+ --skip_migration # Skip the migration file.
40
+ --skip_timestamps # Skip the timestamps.
41
+ --skip_presenter # Skip the presenter.
42
+ --skip_helper # Skip the helper.
43
+ --skip_views # Skip the views.
44
44
 
45
45
 
46
46
  ## Controller generator
47
47
 
48
48
  Usage:
49
49
 
50
- # Create UsersController and use the User Model to create all actions.
51
- rails g stager:controller Users
50
+ # Create UsersController and use the User Model to create all actions.
51
+ rails g stager:controller Users
52
52
 
53
- # Create UsersController and use the User Model to create two actions.
54
- rails g stager:controller Users index show
53
+ # Create UsersController and use the User Model to create two actions.
54
+ rails g stager:controller Users index show
55
55
 
56
- # Create UsersController and use the User Model to create all actions, except one action.
57
- rails g stager:controller Users ! show
56
+ # Create UsersController and use the User Model to create all actions, except one action.
57
+ rails g stager:controller Users ! show
58
58
 
59
- # Create UsersController with all actions and use these two columns inside the views.
60
- rails g stager:controller User name:string email:string
59
+ # Create UsersController with all actions and use these two columns inside the views.
60
+ rails g stager:controller User name:string email:string
61
61
 
62
62
  Options:
63
63
 
64
- --namespaced_model # The Model is namespaced inside the Controller.
65
- --skip_helper # Skip the helper.
66
- --skip_views # Skip the views.
64
+ --namespaced_model # The Model is namespaced inside the Controller.
65
+ --skip_helper # Skip the helper.
66
+ --skip_views # Skip the views.
67
67
 
68
68
 
69
69
  ## Model generator
70
70
 
71
71
  Usage:
72
72
 
73
- # Create a new Model.
74
- rails g stager:model User
73
+ # Create a new Model.
74
+ rails g stager:model User
75
75
 
76
- # Create a new Model with columns.
77
- rails g stager:model User name:string email:string
76
+ # Create a new Model with columns.
77
+ rails g stager:model User name:string email:string
78
78
 
79
79
  Options:
80
80
 
81
- --skip_migration # Skip the migration file.
82
- --skip_timestamps # Skip the timestamps.
81
+ --skip_migration # Skip the migration file.
82
+ --skip_timestamps # Skip the timestamps.
@@ -48,7 +48,7 @@ module Stager
48
48
  private
49
49
 
50
50
  def namespaced_scaffold_name?
51
- if option[:namespaced_model]
51
+ if options[:namespaced_model]
52
52
  scaffold_name
53
53
  else
54
54
  scaffold_name.underscore.split("/").last
@@ -1,3 +1,3 @@
1
1
  module Stager
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stager
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robin Brouwer
@@ -46,7 +46,7 @@ dependencies:
46
46
  type: :development
47
47
  name: sqlite3
48
48
  prerelease: false
49
- description: Stager is a Rails 3.1 gem to create scaffolds. Scaffolds created are specific to 45north's needs. This is a webdevelopment agency in Amsterdam, The Netherlands.
49
+ description: Stager is a Rails 3.1 gem to create scaffolds, controllers and models. The files created are specific to 45north's needs. This is a webdevelopment agency in Amsterdam, The Netherlands.
50
50
  email:
51
51
  - robin@45north.nl
52
52
  executables: []
@@ -127,6 +127,6 @@ rubyforge_project:
127
127
  rubygems_version: 1.3.7
128
128
  signing_key:
129
129
  specification_version: 3
130
- summary: Rails 3.1 gem to create scaffolds.
130
+ summary: Rails 3.1 gem to create scaffolds, controllers and models.
131
131
  test_files: []
132
132