dm-metamapper 0.2.4 → 0.2.5

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.
@@ -37,8 +37,8 @@ module DataMapper
37
37
  @setup_model_blk = blk
38
38
  end
39
39
 
40
- def snake_case
41
- self.gsub(/::/, '/').
40
+ def snake_case(s)
41
+ s.gsub(/::/, '/').
42
42
  gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
43
43
  gsub(/([a-z\d])([A-Z])/,'\1_\2').
44
44
  tr("-", "_").
@@ -1,6 +1,6 @@
1
1
  module DataMapper
2
2
  module MetaMapper
3
- VERSION = "0.2.4" unless defined?(::DataMapper::MetaMapper::VERSION)
3
+ VERSION = "0.2.5" unless defined?(::DataMapper::MetaMapper::VERSION)
4
4
  end
5
5
 
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-metamapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonah Honeyman