brassbound-dci 0.5.3 → 0.5.4

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.
@@ -1,7 +1,7 @@
1
1
  module Util
2
2
  # Convert a CamelCaseString to an underscore_string.
3
3
  def self.underscore(str)
4
- str.gsub(/::/, '/').
4
+ str.split(/::/).last.
5
5
  gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
6
6
  gsub(/([a-z\d])([A-Z])/,'\1_\2').
7
7
  tr("-", "_").
@@ -1,3 +1,3 @@
1
1
  module Brassbound
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brassbound-dci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70258690829500 !ruby/object:Gem::Requirement
16
+ requirement: &70295222957960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.10.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70258690829500
24
+ version_requirements: *70295222957960
25
25
  description: Brassbound is a simple but strict implementation of the Data, Context,
26
26
  and Interaction (DCI) paradigm for Ruby.
27
27
  email: