awis-wrapper 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa7fa51138ac98104572a0f48024b646f85ce66c
4
- data.tar.gz: 6a5303106e93984a2b0be73fd035d79e16a06a90
3
+ metadata.gz: 2879eb2d53ab4f73f2145aa4a1a59f31b335085e
4
+ data.tar.gz: 7cbfc434f705c32ce87d40d645191aeb44a91243
5
5
  SHA512:
6
- metadata.gz: 79f14db0305fc3868af6adcbc188b6b4de8a7c578e7af063018596e0903753f23e8bcfa48cb5fe887ff2a157ae3e1afff560a69165b927d224386005ca9dc358
7
- data.tar.gz: 2ca4e9889112afccf703169f366524a8c0cccbe308cd2a3532b37e56a0e95ae9e86a4960dc4efc75d6709a014d15b724a9764f1460f2e581e870eb94018f42c5
6
+ metadata.gz: 87ff09209d5cb36d434447f7573b548b868dc3ae256ebb456f96fdeffed23688a1841236699c4e3f069c74792d7c68682e9ee46da7f7c3854953926dad96b973
7
+ data.tar.gz: b523b670480751fb48d795619e5fb3e4a115a4adb06bdcdc81e3aea511d0d29ce1da494c4311a9fbadf402ef48c89f169ed4bdd3f87ea5a4137a637559294a17
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
data/awis-wrapper.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: awis-wrapper 0.2.4 ruby lib
5
+ # stub: awis-wrapper 0.2.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "awis-wrapper"
9
- s.version = "0.2.4"
9
+ s.version = "0.2.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
data/lib/awis-wrapper.rb CHANGED
@@ -68,7 +68,9 @@ module Amazon
68
68
  end
69
69
 
70
70
  def self.camel_case(str)
71
- str.split('_').each_with_index.map { |v,i| v.capitalize }.join
71
+ return str if str !~ /_/ && str =~ /[A-Z]+.*/
72
+ str.split('_').map{|e| e.capitalize}.join
73
+ # str.split('_').each_with_index.map { |v,i| v.capitalize }.join
72
74
  end
73
75
 
74
76
  def self.configure(&proc)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awis-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent.Z