awrence 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +2 -2
  3. data/Gemfile.lock +51 -9
  4. data/README.md +11 -2
  5. data/VERSION +1 -1
  6. data/awrence.gemspec +12 -11
  7. metadata +46 -36
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 77933d65a1db2326a28049db210871984c203835
4
+ data.tar.gz: 232d33b6c13d4bc467d7992e58230698b474838f
5
+ SHA512:
6
+ metadata.gz: e8fb9b9ab4549fdc8ac59781659b42c37d831b7266b903b0535af394e01de9626552a534b8e06d8ecccbd212d61bb5fb45fcfe2d5f10e5f477ab420ce938f7ea
7
+ data.tar.gz: 7c8a1b90010da1feb2abfcdfbf0fd1115c5ff147f5e83cda3ca268814e1b0a30758b564e956a6756e7deac5cea28ecc3688c5ae6fad8bbc51578ad7116282c8e
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ source "https://rubygems.org"
8
8
  group :development do
9
9
  gem "minitest", ">= 0"
10
10
  gem "yard", "~> 0.7"
11
- gem "rdoc", "~> 3.12"
11
+ gem 'rdoc', '~> 4.2'
12
12
  gem "bundler"
13
- gem "jeweler", "~> 1.8.4"
13
+ gem 'jeweler', '~> 2.3'
14
14
  end
@@ -1,17 +1,56 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- git (1.2.5)
5
- jeweler (1.8.4)
6
- bundler (~> 1.0)
4
+ addressable (2.5.0)
5
+ public_suffix (~> 2.0, >= 2.0.2)
6
+ builder (3.2.2)
7
+ descendants_tracker (0.0.4)
8
+ thread_safe (~> 0.3, >= 0.3.1)
9
+ faraday (0.9.2)
10
+ multipart-post (>= 1.2, < 3)
11
+ git (1.3.0)
12
+ github_api (0.11.3)
13
+ addressable (~> 2.3)
14
+ descendants_tracker (~> 0.0.1)
15
+ faraday (~> 0.8, < 0.10)
16
+ hashie (>= 1.2)
17
+ multi_json (>= 1.7.5, < 2.0)
18
+ nokogiri (~> 1.6.0)
19
+ oauth2
20
+ hashie (3.4.6)
21
+ highline (1.7.8)
22
+ jeweler (2.3.2)
23
+ builder
24
+ bundler (>= 1.0)
7
25
  git (>= 1.2.5)
26
+ github_api (~> 0.11.0)
27
+ highline (>= 1.6.15)
28
+ nokogiri (>= 1.5.10)
29
+ psych (~> 2.2)
8
30
  rake
9
31
  rdoc
10
- json (1.7.7)
32
+ semver2
33
+ jwt (1.5.6)
34
+ mini_portile2 (2.1.0)
11
35
  minitest (4.7.0)
12
- rake (10.0.3)
13
- rdoc (3.12.2)
14
- json (~> 1.4)
36
+ multi_json (1.12.1)
37
+ multi_xml (0.6.0)
38
+ multipart-post (2.0.0)
39
+ nokogiri (1.6.8.1)
40
+ mini_portile2 (~> 2.1.0)
41
+ oauth2 (1.3.0)
42
+ faraday (>= 0.8, < 0.11)
43
+ jwt (~> 1.0)
44
+ multi_json (~> 1.3)
45
+ multi_xml (~> 0.5)
46
+ rack (>= 1.2, < 3)
47
+ psych (2.2.2)
48
+ public_suffix (2.0.5)
49
+ rack (2.0.1)
50
+ rake (12.0.0)
51
+ rdoc (4.3.0)
52
+ semver2 (3.4.2)
53
+ thread_safe (0.3.5)
15
54
  yard (0.8.5.2)
16
55
 
17
56
  PLATFORMS
@@ -19,7 +58,10 @@ PLATFORMS
19
58
 
20
59
  DEPENDENCIES
21
60
  bundler
22
- jeweler (~> 1.8.4)
61
+ jeweler (~> 2.3)
23
62
  minitest
24
- rdoc (~> 3.12)
63
+ rdoc (~> 4.2)
25
64
  yard (~> 0.7)
65
+
66
+ BUNDLED WITH
67
+ 1.13.6
data/README.md CHANGED
@@ -13,6 +13,11 @@ This gem recursively converts all snake_case keys in a hash structure to camelBa
13
13
  ```ruby
14
14
  my_hash = {"first_key" => 1, "foo_bars" => [{"baz_baz" => "value"}, {"blah_blah" => "value"}]}
15
15
  camel_hash = my_hash.to_camel_keys
16
+ # => {"FirstKey" => 1, "FooBars" => [{"BazBaz" => "value"}, {"BlahBlah" => "value"}]}
17
+
18
+ # OR
19
+
20
+ camel_hash = my_hash.to_camelback_keys
16
21
  # => {"firstKey" => 1, "fooBars" => [{"bazBaz" => "value"}, {"blahBlah" => "value"}]}
17
22
  ```
18
23
 
@@ -20,8 +25,12 @@ Awrence works on either string keys or symbolized keys. It has no dependencies,
20
25
 
21
26
  ## Limitations
22
27
 
23
- * Your keys must be camelBack or CamelCase. The key "Foo Bar" will output as "foo bar".
24
- * Unlike the original T.E. Lawrence, the awrence gem is non-destructive. There is no Hash#to_camel_keys! form.
28
+ * Unlike the original [T.E. Lawrence](http://en.wikipedia.org/wiki/T._E._Lawrence), the awrence gem is non-destructive to Hashes, Turks, or the nascent political aspirations of oppressed peoples. There is no `Hash#to_camel_keys!` form.
29
+
30
+ # Going the other way
31
+
32
+ If you've already got `CamelCase` and need to `snake_case` it, you are encouraged to try
33
+ the [Plissken](http://github.com/futurechimp/plissken) gem.
25
34
 
26
35
  ## Contributing to awrence
27
36
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -2,14 +2,16 @@
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: awrence 0.2.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "awrence"
8
- s.version = "0.1.0"
9
+ s.version = "0.2.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Dave Hrycyszyn"]
12
- s.date = "2013-03-19"
14
+ s.date = "2017-01-13"
13
15
  s.description = "Have you ever needed to automatically convert Ruby-style\n snake_case to CamelCase or camelBack hash keys?\n\n Awrence to the rescue.\n\n This gem recursively converts all snake_case keys in a hash\n structure to camelBack. "
14
16
  s.email = "dave.hrycyszyn@headlondon.com"
15
17
  s.extra_rdoc_files = [
@@ -33,32 +35,31 @@ Gem::Specification.new do |s|
33
35
  ]
34
36
  s.homepage = "http://github.com/futurechimp/awrence"
35
37
  s.licenses = ["MIT"]
36
- s.require_paths = ["lib"]
37
- s.rubygems_version = "1.8.17"
38
+ s.rubygems_version = "2.5.1"
38
39
  s.summary = "Camelize your snake keys when working with JSON APIs"
39
40
 
40
41
  if s.respond_to? :specification_version then
41
- s.specification_version = 3
42
+ s.specification_version = 4
42
43
 
43
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
45
  s.add_development_dependency(%q<minitest>, [">= 0"])
45
46
  s.add_development_dependency(%q<yard>, ["~> 0.7"])
46
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
47
+ s.add_development_dependency(%q<rdoc>, ["~> 4.2"])
47
48
  s.add_development_dependency(%q<bundler>, [">= 0"])
48
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
49
+ s.add_development_dependency(%q<jeweler>, ["~> 2.3"])
49
50
  else
50
51
  s.add_dependency(%q<minitest>, [">= 0"])
51
52
  s.add_dependency(%q<yard>, ["~> 0.7"])
52
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
53
+ s.add_dependency(%q<rdoc>, ["~> 4.2"])
53
54
  s.add_dependency(%q<bundler>, [">= 0"])
54
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
55
+ s.add_dependency(%q<jeweler>, ["~> 2.3"])
55
56
  end
56
57
  else
57
58
  s.add_dependency(%q<minitest>, [">= 0"])
58
59
  s.add_dependency(%q<yard>, ["~> 0.7"])
59
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
60
+ s.add_dependency(%q<rdoc>, ["~> 4.2"])
60
61
  s.add_dependency(%q<bundler>, [">= 0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
62
+ s.add_dependency(%q<jeweler>, ["~> 2.3"])
62
63
  end
63
64
  end
64
65
 
metadata CHANGED
@@ -1,72 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awrence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dave Hrycyszyn
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
11
+ date: 2017-01-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: minitest
16
- requirement: &2165004220 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *2165004220
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: yard
27
- requirement: &2165003740 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0.7'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *2165003740
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.7'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rdoc
38
- requirement: &2165003260 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ~>
45
+ - - "~>"
42
46
  - !ruby/object:Gem::Version
43
- version: '3.12'
47
+ version: '4.2'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *2165003260
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4.2'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: bundler
49
- requirement: &2165002780 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *2165002780
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: jeweler
60
- requirement: &2165002300 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ~>
73
+ - - "~>"
64
74
  - !ruby/object:Gem::Version
65
- version: 1.8.4
75
+ version: '2.3'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *2165002300
69
- description: ! "Have you ever needed to automatically convert Ruby-style\n snake_case
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.3'
83
+ description: "Have you ever needed to automatically convert Ruby-style\n snake_case
70
84
  to CamelCase or camelBack hash keys?\n\n Awrence to the rescue.\n\n This gem
71
85
  recursively converts all snake_case keys in a hash\n structure to camelBack.
72
86
  \ "
@@ -77,7 +91,7 @@ extra_rdoc_files:
77
91
  - LICENSE.txt
78
92
  - README.md
79
93
  files:
80
- - .document
94
+ - ".document"
81
95
  - Gemfile
82
96
  - Gemfile.lock
83
97
  - LICENSE.txt
@@ -93,29 +107,25 @@ files:
93
107
  homepage: http://github.com/futurechimp/awrence
94
108
  licenses:
95
109
  - MIT
110
+ metadata: {}
96
111
  post_install_message:
97
112
  rdoc_options: []
98
113
  require_paths:
99
114
  - lib
100
115
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
116
  requirements:
103
- - - ! '>='
117
+ - - ">="
104
118
  - !ruby/object:Gem::Version
105
119
  version: '0'
106
- segments:
107
- - 0
108
- hash: -4025899429127598383
109
120
  required_rubygems_version: !ruby/object:Gem::Requirement
110
- none: false
111
121
  requirements:
112
- - - ! '>='
122
+ - - ">="
113
123
  - !ruby/object:Gem::Version
114
124
  version: '0'
115
125
  requirements: []
116
126
  rubyforge_project:
117
- rubygems_version: 1.8.17
127
+ rubygems_version: 2.5.1
118
128
  signing_key:
119
- specification_version: 3
129
+ specification_version: 4
120
130
  summary: Camelize your snake keys when working with JSON APIs
121
131
  test_files: []