cloud_shaped 0.1.1 → 0.1.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: c3fa1fc7dd45edb67881cf1c19fc51d33adfc831
4
- data.tar.gz: 866098ba4dffa5d6f634733bbd9bebb364f4753b
3
+ metadata.gz: b21a359b972abb22fad3f55b1be73a5bf6f77659
4
+ data.tar.gz: 69029374c81f2afe26925332398a5c1bddbc0490
5
5
  SHA512:
6
- metadata.gz: d0543b9ed2f0a360bfd50b9623c3b67ca48514a51119bd6391b6483a948cd012aae7e2a99d69d4b97c9e44ef0f77dd42f5304b4e72080e886727c56b887bfd34
7
- data.tar.gz: 1f593cd5d5ca481dc40f884c550e42210477d0e6ced5d12c3237dd6c78d93487d30c9e25d198d8573f4a9ab7b7c756ac6d52b9891d8d8bf6215d74e1be9bea8a
6
+ metadata.gz: ac6dbf62ac5e9c3b939fc920b9fd125792ea9e7e54be79496bc94886de35c0cbb292fcb16f57bd7820633aa8d63957c2644187caece0a4ef731a3ecad1e7e95a
7
+ data.tar.gz: 2deb1051579c6ca6fa00809c72156c75ea48a2a3fa3bd27c385b7bc6b5a6472685a6138017599e2fcd712d731a8f7d3af669a7eac2881458daf3d2fdf0e3c63d
@@ -1,31 +1,23 @@
1
- module CloudShaped
1
+ class Symbol
2
2
 
3
- module Camelate
4
-
5
- refine Symbol do
6
-
7
- def camelate
8
- to_s.split('_').map(&:capitalize).join
9
- end
10
-
11
- end
12
-
13
- refine String do
3
+ def camelate
4
+ to_s.split('_').map(&:capitalize).join
5
+ end
14
6
 
15
- def camelate
16
- self
17
- end
7
+ end
18
8
 
19
- end
9
+ class String
20
10
 
21
- refine Hash do
11
+ def camelate
12
+ self
13
+ end
22
14
 
23
- def camelate_keys
24
- Hash[map { |key, value| [key.camelate, value] }]
25
- end
15
+ end
26
16
 
27
- end
17
+ class Hash
28
18
 
19
+ def camelate_keys
20
+ Hash[map { |key, value| [key.camelate, value] }]
29
21
  end
30
22
 
31
23
  end
@@ -1,7 +1,5 @@
1
1
  require "cloud_shaped/camelate"
2
2
 
3
- using CloudShaped::Camelate
4
-
5
3
  module CloudShaped
6
4
 
7
5
  module CoreMethods
@@ -1,3 +1,3 @@
1
1
  module CloudShaped
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -2,8 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  require 'cloud_shaped/camelate'
4
4
 
5
- using CloudShaped::Camelate
6
-
7
5
  describe String, "#camelate" do
8
6
  it "is a no-op" do
9
7
  expect("foobar".camelate).to eq("foobar")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_shaped
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-26 00:00:00.000000000 Z
11
+ date: 2014-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler