railroady 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION.yml +1 -1
- data/lib/railroady/app_diagram.rb +3 -3
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
data/VERSION.yml
CHANGED
@@ -8,11 +8,11 @@ require 'railroady/diagram_graph'
|
|
8
8
|
|
9
9
|
# camelize and constantize methods brought over from active_support
|
10
10
|
class String
|
11
|
-
def camelize(
|
12
|
-
if
|
11
|
+
def camelize(first_letter = :upper)
|
12
|
+
if first_letter == :upper
|
13
13
|
self.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
|
14
14
|
else
|
15
|
-
self.
|
15
|
+
self.to_s[0].chr.downcase + self.camelize[1..-1]
|
16
16
|
end
|
17
17
|
end
|
18
18
|
def constantize
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 11
|
8
|
-
-
|
9
|
-
version: 0.11.
|
8
|
+
- 3
|
9
|
+
version: 0.11.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Preston Lee
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date:
|
20
|
+
date: 2011-01-20 00:00:00 -07:00
|
21
21
|
default_executable: railroady
|
22
22
|
dependencies: []
|
23
23
|
|