peachy 0.4.0 → 0.4.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/History.txt +8 -0
- data/README.rdoc +2 -2
- data/lib/peachy/string_styler.rb +4 -0
- data/lib/peachy/version.rb +1 -1
- data/spec/method_name_spec.rb +3 -1
- metadata +3 -3
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -33,8 +33,8 @@ example above.
|
|
33
33
|
|
34
34
|
Peachy expects method names to be called in the Ruby convention of lowercase with
|
35
35
|
underscores. It will do its best to match method names to elements and attributes
|
36
|
-
following different conventions
|
37
|
-
|
36
|
+
following different conventions. Currently, this is camelCaseNames, PascalCaseNames,
|
37
|
+
hyphen-separated-names and period.separated.names.
|
38
38
|
|
39
39
|
More detailed usage examples can be found in the .rb files in the /test directory.
|
40
40
|
|
data/lib/peachy/string_styler.rb
CHANGED
data/lib/peachy/version.rb
CHANGED
data/spec/method_name_spec.rb
CHANGED
@@ -14,13 +14,14 @@ describe "Peachy::MethodName" do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it "should return the expected number of variations in format" do
|
17
|
-
@method_name.variations.size.should ==
|
17
|
+
@method_name.variations.size.should == 5
|
18
18
|
end
|
19
19
|
|
20
20
|
it "should return the expected variation formats" do
|
21
21
|
variations = @method_name.variations
|
22
22
|
|
23
23
|
variations.should include('method_name')
|
24
|
+
variations.should include('method.name')
|
24
25
|
variations.should include('methodName')
|
25
26
|
variations.should include('method-name')
|
26
27
|
variations.should include('MethodName')
|
@@ -34,6 +35,7 @@ describe "Peachy::MethodName" do
|
|
34
35
|
@method_name.to_sym.should == :this_method
|
35
36
|
|
36
37
|
variations.should include('this_method')
|
38
|
+
variations.should include('this.method')
|
37
39
|
variations.should include('thisMethod')
|
38
40
|
variations.should include('this-method')
|
39
41
|
variations.should include('ThisMethod')
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 1
|
9
|
+
version: 0.4.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- NJ Pearman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-20 00:00:00 +00:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|