one9 0.1.0 → 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.rdoc +3 -0
- data/README.rdoc +13 -6
- data/features/deps.rip +1 -0
- data/lib/one9/runner.rb +1 -1
- data/lib/one9/version.rb +1 -1
- metadata +5 -4
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -22,7 +22,7 @@ Run your tests using ruby 1.8 in the root directory of a gem or Rails app:
|
|
22
22
|
# Only run model specs
|
23
23
|
$ one9 test rspec spec/models
|
24
24
|
|
25
|
-
After your tests, you'll see a report. Here's what it looks like when run on {boson}[http://github.com/cldwalker/boson]:
|
25
|
+
After your tests, you'll see a report. Here's what it all looks like when run on {boson}[http://github.com/cldwalker/boson]:
|
26
26
|
|
27
27
|
$ one9 test
|
28
28
|
............................................................................................................................................................................................................................................................................................................
|
@@ -70,8 +70,8 @@ If your editor isn't supported, you can still view the possible changes:
|
|
70
70
|
|
71
71
|
== Configure
|
72
72
|
|
73
|
-
one9 comes with a decent list of 1.9 changes and descriptions.
|
74
|
-
own changes,
|
73
|
+
one9 comes with a decent list of 1.9 changes and descriptions. If you'd like to add your
|
74
|
+
own changes, add them to your ~/.one9rc. For example:
|
75
75
|
|
76
76
|
# For methods that have changed in 1.9
|
77
77
|
change 'Class#instance_method', 'Some description'
|
@@ -91,15 +91,22 @@ tool. Some ideas for future commands:
|
|
91
91
|
|
92
92
|
* grep command to grep code for changed methods. Basically for porting test-deprived code.
|
93
93
|
* info command to explain a method's change in detail with examples and possible solutions
|
94
|
-
* rails command to
|
94
|
+
* rails command to ease porting a rails app and all its dependencies.
|
95
|
+
* automating code changes like "python's 2to3":http://docs.python.org/py3k/library/2to3.html
|
95
96
|
|
96
97
|
If you're interested in implementing these or other such commands, please do contribute.
|
97
98
|
|
98
99
|
== Limitations
|
99
|
-
The following methods can't be spied on: Object#=~, String#[], String#to_a, String#each. For more,
|
100
|
-
see the {defaults file}[[https://github.com/cldwalker/one9/blob/master/lib/one9/defaults.rb].
|
100
|
+
* The following methods can't be spied on: Object#=~, String#[], String#to_a, String#each. For more,
|
101
|
+
see the {defaults file}[[https://github.com/cldwalker/one9/blob/master/lib/one9/defaults.rb].
|
102
|
+
* Only one set of changes is saved at a time. This means running `one9 test` will overwrite your
|
103
|
+
previous saved changes.
|
101
104
|
|
102
105
|
== 1.9 Links
|
103
106
|
* http://eigenclass.org/hiki/Changes+in+Ruby+1.9
|
104
107
|
* http://svn.ruby-lang.org/repos/ruby/tags/v1_9_1_0/NEWS
|
105
108
|
* http://blog.grayproductions.net/articles/understanding_m17n
|
109
|
+
* http://dablog.rubypal.com/2009/1/14/10-things-to-be-aware-of-in-moving-to-ruby-1-9
|
110
|
+
|
111
|
+
== Links
|
112
|
+
* http://tagaholic.me/2011/03/05/one9-upgrade-to-ruby-19-now.html
|
data/features/deps.rip
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
aruba ~>0.3.2
|
data/lib/one9/runner.rb
CHANGED
@@ -28,7 +28,7 @@ module One9
|
|
28
28
|
One9.config.merge! parse_options(argv)
|
29
29
|
if One9.config[:help] || argv.empty?
|
30
30
|
help
|
31
|
-
elsif public_methods.include? argv[0]
|
31
|
+
elsif public_methods.map {|e| e.to_s }.include? argv[0]
|
32
32
|
send(*argv)
|
33
33
|
else
|
34
34
|
abort "one9: Invalid command `#{argv[0]}'"
|
data/lib/one9/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: one9
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gabriel Horner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-06 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- CHANGELOG.rdoc
|
76
76
|
- README.rdoc
|
77
77
|
- deps.rip
|
78
|
+
- features/deps.rip
|
78
79
|
- Rakefile
|
79
80
|
- .gemspec
|
80
81
|
- features/step_definitions/one9_steps.rb
|