class_dependencies 0.4.2 → 0.4.3

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/inflector.rb +7 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/lib/inflector.rb CHANGED
@@ -22,9 +22,14 @@ if !defined? Inflector
22
22
  end
23
23
 
24
24
  class String
25
- def camelize
26
- Inflector::camelize(self)
25
+ def camelize(first_letter = :upper)
26
+ case first_letter
27
+ when :upper then Inflector.camelize(self, true)
28
+ when :lower then Inflector.camelize(self, false)
29
+ end
27
30
  end
31
+ alias_method :camelcase, :camelize
32
+
28
33
  def underscore
29
34
  Inflector::underscore(self)
30
35
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 2
9
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - mccraig mccraig of the clan mccraig
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-25 00:00:00 +00:00
17
+ date: 2010-03-26 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency