newgistics 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71568ff5b6f4a81cfe913095bc14707e6e76867e
4
- data.tar.gz: 003a16e6b4cbc982e1bf366db97590237c0f0448
3
+ metadata.gz: b8ab73882de4020ebd57fbc2250e106fa2d1bd6b
4
+ data.tar.gz: 126362028aa37f405cfb09fb20b2db3726e68f24
5
5
  SHA512:
6
- metadata.gz: 45ff8b1f9cf39885b897d198bedd54a526ca81f960ef7ee4ebe7dbfab527c71f68dbbcee36510a2ba325dc3eeadb742a30db9b9c10c908cc0f263e1fa93a1ab4
7
- data.tar.gz: 90c502e5be3d5458dc1687752c84085f46ece2a4f729535bbc6ef85386debae1b4707986729fff9a871424d800e422983739cfcccc77b5936308ed1bcccc91dd
6
+ metadata.gz: 7f76f6c594c07fed343a5f3f55a5b9494cce548bfa75149509d61a494bb2b21014bdbbbd3d92e4af4eda07189a28155f5e452bf5d33439f5cdd389d66c1bee81
7
+ data.tar.gz: 43fcb4670ba29a96569bd475c78c1b59bd8c518c871aca04ab0722ea53e366bae0267104ec2761e59567cff0fb01cfa0a25d678a4bad73dbc58aabaf2b79790f
@@ -5,14 +5,14 @@ module Newgistics
5
5
  CAPITALIZED_STRING_REGEX = /\A[A-Z]/
6
6
 
7
7
  def self.camelize(string, upcase_first: true)
8
- string.dup.to_s.tap do |s|
8
+ string.to_s.dup.tap do |s|
9
9
  s.gsub!(UNDERSCORED_STRING_REGEX) { $1.capitalize! || $1 }
10
10
  s.gsub!(CAPITALIZED_STRING_REGEX) { $&.downcase! } unless upcase_first
11
11
  end
12
12
  end
13
13
 
14
14
  def self.underscore(string)
15
- string.dup.to_s.tap do |s|
15
+ string.to_s.dup.tap do |s|
16
16
  s.gsub!(CAMEL_CASED_STRING_REGEX) { "#{$1}_#{$2}" }
17
17
  s.downcase!
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Newgistics
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newgistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Martinez