awrence 2.0.1 → 4.0.0

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +5 -3
  4. data/Rakefile +4 -24
  5. data/VERSION +1 -1
  6. metadata +4 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9ad31efa3716cc6e0c4c10654a506a549e6e707adf5f7849cc237878c726dd7
4
- data.tar.gz: e37015d0e7a72a7588c8acc405bf89f1906cbc6372da64d27d991f312722e1c2
3
+ metadata.gz: 2d1fd4166ac0bb50cbba9c1319e88b2f2b7e28ad5acc351eca8adfe7b34bcd72
4
+ data.tar.gz: fb014548d5c08e6d0ee4b48c8aa2f25a924c2154289dfe3f86ff5d3ace2ab7a0
5
5
  SHA512:
6
- metadata.gz: 7bc7dbc91cdc47d7fcc49fea9a91033916628f9f93993742e83ff06eb71afa290bd8a029525cf1e87e8c21b4667e5a38166ba89894e264de3fadd24664b95184
7
- data.tar.gz: f103746aef4c264b6e38e034a9e20e6f88660c10c26a3a03661f221431fbca3c8082838f0b21c4befa44f58c3dc04ffffcd3d9e56f616fafa4e7616678712ae1
6
+ metadata.gz: a5f5553efd15838991f078bdd1660a11268b7a1b3d1bed13c7b11ef1dd104cf4c4a887f5c69b2e6a33dc2498678445ed2da996a416dc9ee12def49b2e60754f2
7
+ data.tar.gz: 21daa9a1e8941244f7687178bc2e340748ee615d5b7699289b1e41eb8c2b43134bf0befc3214fbfb5cac76ebdfe1d967c23a263e272edc2082a2356127283613
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021 Technical Panda Ltd
1
+ Copyright (c) 2023 Technical Panda Ltd
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/awrence.svg)](https://badge.fury.io/rb/awrence)
4
4
  ![CI](https://github.com/technicalpanda/awrence/workflows/CI/badge.svg)
5
5
 
6
- Have you ever needed to automatically convert Rubyish `snake_case` to JSON-style `camelBack` or `CamelCase` hash keys?
6
+ Have you ever needed to automatically convert Rubyish `snake_case` to JSON-style `camelBack` or `CamelCase` hash keys?
7
7
 
8
8
  Awrence to the rescue!
9
9
 
@@ -11,7 +11,9 @@ This gem recursively converts all snake_case keys in a hash structure to camelBa
11
11
 
12
12
  ## Requirements
13
13
 
14
- * Ruby >= 2.7
14
+ * Ruby >= 3.0
15
+
16
+ For Ruby < 3.0 use version 2.0.1
15
17
 
16
18
  ## Installation
17
19
 
@@ -77,7 +79,7 @@ camel_hash = my_hash.to_camelback_keys
77
79
  # Going the other way
78
80
 
79
81
  If you've already got `CamelCase` and need to `snake_case` it, you are encouraged to try
80
- the [Plissken](http://github.com/futurechimp/plissken) gem.
82
+ the [Plissken](http://github.com/technicalpanda/plissken) gem.
81
83
 
82
84
  ## Contributing
83
85
 
data/Rakefile CHANGED
@@ -1,30 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- begin
4
- require "bundler/setup"
5
- rescue LoadError
6
- puts "You must `gem install bundler` and `bundle install` to run rake tasks"
7
- end
8
-
9
- require "rdoc/task"
10
-
11
- RDoc::Task.new(:rdoc) do |rdoc|
12
- rdoc.rdoc_dir = "rdoc"
13
- rdoc.title = "Awrence"
14
- rdoc.options << "--line-numbers"
15
- rdoc.rdoc_files.include("README.md")
16
- rdoc.rdoc_files.include("lib/**/*.rb")
17
- end
18
-
19
3
  require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
20
5
 
21
- require "rake/testtask"
22
-
23
- Rake::TestTask.new(:test) do |t|
24
- t.libs << "lib"
25
- t.libs << "test"
26
- t.pattern = "test/**/*_test.rb"
27
- t.verbose = false
6
+ RSpec::Core::RakeTask.new(:spec) do |t|
7
+ t.pattern = Dir.glob("spec/**/*_spec.rb")
28
8
  end
29
9
 
30
- task default: :test
10
+ task default: :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 4.0.0
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awrence
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Hrycyszyn
8
8
  - Stuart Chinery
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2022-01-23 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: |-
15
14
  Have you ever needed to automatically convert Ruby-style snake_case to CamelCase or camelBack hash keys?
@@ -38,7 +37,6 @@ licenses:
38
37
  - MIT
39
38
  metadata:
40
39
  rubygems_mfa_required: 'true'
41
- post_install_message:
42
40
  rdoc_options: []
43
41
  require_paths:
44
42
  - lib
@@ -46,15 +44,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
46
44
  requirements:
47
45
  - - ">="
48
46
  - !ruby/object:Gem::Version
49
- version: '2.7'
47
+ version: '3.2'
50
48
  required_rubygems_version: !ruby/object:Gem::Requirement
51
49
  requirements:
52
50
  - - ">="
53
51
  - !ruby/object:Gem::Version
54
52
  version: '0'
55
53
  requirements: []
56
- rubygems_version: 3.2.33
57
- signing_key:
54
+ rubygems_version: 3.6.9
58
55
  specification_version: 4
59
56
  summary: Camelize your snake keys when working with JSON APIs
60
57
  test_files: []