gyoku 1.2.0 → 1.2.2

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: 5907f34dc0f3b33599c65e59b4fdaa4ccf1878c0
4
- data.tar.gz: 3929d2f06c095e3375b37b88822afef27cfee219
3
+ metadata.gz: 5e3d735bc992848923596d14a5a8538857a2d60f
4
+ data.tar.gz: 57e7d9bae3d6782dc24a4bbb60e5b8d7f73dc089
5
5
  SHA512:
6
- metadata.gz: 8aa20c9179c8283096c66a64c10ca3b2802ac6e316de1118c0ef77c6b5f331622592fc4ba6d69d5e7e16b89d4d1eb03666140f4d32e8c0b1d68328bf743cdc3c
7
- data.tar.gz: a0e9cdb56e8d91767e697b199185041928441f832c17c350dbcd523216c7e22a3f835f2cd4474e1a7bef8ee18957d57cdb69688fb29e1d106847e25c181e73e1
6
+ metadata.gz: a76520a35722177de93142da9b2f8ab286cfa872ceff5973dd840c3ba4e88763b2aed87c5e752f9b9b88f09a6ef5c57bf8eda75727d0153518e775ff29121643
7
+ data.tar.gz: 34ca8dc2c753034119387014ccdd2ce4e7fccf50818154c3e43b6da656bc697c6b1c9f1f6c68f2336e0bb2d2e6966419ba081df0bf1b22813d5c66cb07d6d576
@@ -1,3 +1,11 @@
1
+ ## 1.2.2 (2014-09-22)
2
+
3
+ * Fixed a bug introduced by making Gyoku threadsafe. Who knew that `$1` and the block variable that `#gsub` provides are not the same?
4
+
5
+ ## 1.2.1 (2014-09-22)
6
+
7
+ * Fix : [#46](https://github.com/savonrb/gyoku/pull/46) Fixed an issue where Gyoku was not threadsafe. Gyoku should now be relatively more threadsafe due to less usage of global variables.
8
+
1
9
  ## 1.2.0 (2014-09-18)
2
10
 
3
11
  * Feature: [#44](https://github.com/savonrb/gyoku/pull/44) support for sorting via :order! with a string key
@@ -1,5 +1,3 @@
1
1
  module Gyoku
2
-
3
- VERSION = "1.2.0"
4
-
2
+ VERSION = '1.2.2'
5
3
  end
@@ -2,7 +2,7 @@ module Gyoku
2
2
  module XMLKey
3
3
  class << self
4
4
 
5
- CAMELCASE = lambda { |key| key.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase } }
5
+ CAMELCASE = lambda { |key| key.gsub(/\/(.?)/) { |m| "::#{m.split('').last.upcase}" }.gsub(/(?:^|_)(.)/) { |m| m.split('').last.upcase } }
6
6
  LOWER_CAMELCASE = lambda { |key| key[0].chr.downcase + CAMELCASE.call(key)[1..-1] }
7
7
  UPCASE = lambda { |key| key.upcase }
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gyoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Harrington
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder