rails_refactor 1.0 → 1.1

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.
data/CHANGELOG CHANGED
@@ -1 +1,2 @@
1
+ v1.1. Updating README and usage information
1
2
  v1.0. first version as a gem, thanks Andys!
data/README CHANGED
@@ -3,14 +3,17 @@ RAILS REFACTOR
3
3
  Basic renames and refactorings for rails projects.
4
4
  Although these are not perfect, they'll do a lot of the work for you
5
5
  and save you time.
6
+
6
7
  Before using, recommend that you start from a clean repository state so
7
8
  you can easily review changes.
8
9
 
9
- Put rails_refactor.rb on your PATH (it is in the lib directory).
10
- Change directory to the root of your rails project.
10
+ To install:
11
+ gem install rails_refactor
12
+
13
+ Before use, make sure you cd to the root of your rails project.
11
14
 
12
15
  To rename a controller:
13
- $ rails_refactor.rb rename OldController NewController
16
+ $ rails_refactor rename OldController NewController
14
17
 
15
18
  * renames controller file & class name in file
16
19
  * renames controller spec file & class name in file
@@ -19,21 +22,22 @@ To rename a controller:
19
22
  * updates routes
20
23
 
21
24
  To rename a controller action:
22
- $ rails_refactor.rb rename DummyController.old_action new_action
25
+ $ rails_refactor rename DummyController.old_action new_action
23
26
 
24
27
  * renames controller action in controller class file
25
28
  * renames view files for all formats
26
29
 
27
30
  To rename a model:
28
- $ rails_refactor.rb rename OldModel NewModel
31
+ $ rails_refactor rename OldModel NewModel
29
32
 
30
33
  * renames model file & class name in file
31
34
  * renames spec file & class name in file
32
35
  * renames migration & class name & table names in file
33
36
 
34
- To run tests, move to 'dummy' rails project directory:
37
+ Please note that if you want to run the tests, clone the repo from github, rather than using the gem (tests rely on git). Next cd to the 'dummy' rails project directory.
35
38
  $ ../lib/rails_refactor.rb test
36
39
 
37
40
  More refactorings coming soon... Please fork and contribute :-)
38
41
 
39
42
  Started by James Crisp & Ryan Bigg pairing at RORO hack night 24 Nov 2010.
43
+ Thanks to Andrew Snow for help with Gemification.
@@ -175,8 +175,7 @@ elsif ARGV[0] == "test"
175
175
  end
176
176
  else
177
177
  puts "Usage:"
178
- puts " rails_refactor.rb rename DummyController NewController"
179
- puts " rails_refactor.rb rename DummyController.my_action new_action"
180
- puts " rails_refactor.rb rename DummyModel NewModel"
181
- puts " rails_refactor.rb test"
178
+ puts " rails_refactor rename DummyController NewController"
179
+ puts " rails_refactor rename DummyController.my_action new_action"
180
+ puts " rails_refactor rename DummyModel NewModel"
182
181
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_refactor}
5
- s.version = "1.0"
5
+ s.version = "1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["James Crisp & Ryan Bigg"]
9
- s.date = %q{2011-05-02}
9
+ s.date = %q{2011-05-04}
10
10
  s.default_executable = %q{rails_refactor}
11
11
  s.description = %q{Simple refactoring like rename class for Rails projects}
12
12
  s.email = %q{james@crispdesign.net}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rails_refactor
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "1.0"
5
+ version: "1.1"
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Crisp & Ryan Bigg
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-02 00:00:00 +10:00
13
+ date: 2011-05-04 00:00:00 +10:00
14
14
  default_executable:
15
15
  dependencies: []
16
16