hash_with_dot_access 2.1.0 → 2.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be6e40c79e1f2c6148e84b6ef6b3521d9c07500bac9603f793a39dac7b3278ce
4
- data.tar.gz: ace5ebdd3d951858e6dda87a96cfb9301b4ce7dc9802184cdee1cbd69e664538
3
+ metadata.gz: a28d2b6f1395cb66ef053c49a3785d1f3941bb66f4ddb5738e5e3310ce6e4d1f
4
+ data.tar.gz: dd8a6b304bed2cff754c1660bc360da1f0f9ae1438f39cb578e5aa572e9e54cd
5
5
  SHA512:
6
- metadata.gz: 8763ae8a9cd9aec38d1cf2c4e0d659824633295576dfc3132968b82d848f92e354e5fb417f182b5b9be32ba8e2276996e3f36a2e3b8ce71de404c817cd599f1f
7
- data.tar.gz: 8ee6d9ba1bdbc2322c40c1a4c79136d43c94376ec167f334123e17844cde1e9364a6a8bee75573827704a12152f328a55bf86980ab249c4170fac9482caa043e
6
+ metadata.gz: b9aa97b62309ff2b5276ddb6775aee32c6f2b3a88ca95eebc8b9cb91c56565d8eb84b94497c4234671bc6b70498b95308f7488b0fb7bbbf21f0047cadcdc5445
7
+ data.tar.gz: 0eaaed5949dd21d00c7b18d2d98c7932cfdf4d00677574f69b86786c1a546b67c9eabac00a2911ae98791f9a9fe29dada80d1dea48d31c6028328e9584c4a8ce
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.4
1
+ 3.2.6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.2.0] - 2025-08-25
4
+
5
+ - Migrate project to Codeberg
6
+ - Add basic test suite
7
+
8
+ ## [2.1.1] - 2024-04-20
9
+
10
+ - Fix issue where `to_h` was incorrectly mutating arrays containing hashes
11
+
3
12
  ## [2.1.0] - 2024-04-20
4
13
 
5
14
  - Adds conversion back to a hash with `to_h` and `to_dot_h` for enumeration.
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
3
  # Specify your gem's dependencies in hash_with_dot_access.gemspec
6
4
  gemspec
5
+
6
+ gem "rake", "~> 13.0"
7
+
8
+ gem "minitest", "~> 5.0"
data/Gemfile.lock CHANGED
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hash_with_dot_access (2.1.0)
4
+ hash_with_dot_access (2.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ minitest (5.25.5)
9
10
  rake (13.2.1)
10
11
 
11
12
  PLATFORMS
@@ -14,6 +15,7 @@ PLATFORMS
14
15
  DEPENDENCIES
15
16
  bundler
16
17
  hash_with_dot_access!
18
+ minitest (~> 5.0)
17
19
  rake (~> 13.0)
18
20
 
19
21
  BUNDLED WITH
data/README.md CHANGED
@@ -108,7 +108,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
108
108
 
109
109
  ## Contributing
110
110
 
111
- Bug reports and pull requests are welcome on GitHub at https://github.com/bridgetownrb/hash_with_dot_access.
111
+ Bug reports and pull requests are welcome on Codeberg at https://codeberg.org/jaredwhite/hash_with_dot_access.
112
112
 
113
113
  ## License
114
114
 
@@ -116,4 +116,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
116
116
 
117
117
  ## Code of Conduct
118
118
 
119
- Everyone interacting in the Hash with Dot Access project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/bridgetownrb/hash_with_dot_access/blob/main/CODE_OF_CONDUCT.md).
119
+ Everyone interacting in the Hash with Dot Access project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://codeberg.org/jaredwhite/hash_with_dot_access/src/branch/main/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,2 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
- task :default => :spec
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ task default: :test
data/bin/rake ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("rake", "rake")
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.email = "maintainers@bridgetownrb.com"
8
8
 
9
9
  spec.summary = %q{Performance-oriented subclass of Hash which provides symbolized keys and method access}
10
- spec.homepage = "https://github.com/bridgetownrb/hash_with_dot_access"
10
+ spec.homepage = "https://codeberg.org/jaredwhite/hash_with_dot_access"
11
11
  spec.license = "MIT"
12
12
 
13
13
  spec.required_ruby_version = ">= 3.1.0"
@@ -1,3 +1,3 @@
1
1
  module HashWithDotAccess
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.0"
3
3
  end
@@ -19,8 +19,7 @@ module HashWithDotAccess
19
19
  when ::Hash
20
20
  value.to_h
21
21
  when Array
22
- value = value.dup if value.frozen?
23
- value.map! { primitive_value(_1) }
22
+ value.map { primitive_value(_1) }
24
23
  else
25
24
  value
26
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_with_dot_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-21 00:00:00.000000000 Z
11
+ date: 2025-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,10 +53,11 @@ files:
53
53
  - LICENSE.txt
54
54
  - README.md
55
55
  - Rakefile
56
+ - bin/rake
56
57
  - hash_with_dot_access.gemspec
57
58
  - lib/hash_with_dot_access.rb
58
59
  - lib/hash_with_dot_access/version.rb
59
- homepage: https://github.com/bridgetownrb/hash_with_dot_access
60
+ homepage: https://codeberg.org/jaredwhite/hash_with_dot_access
60
61
  licenses:
61
62
  - MIT
62
63
  metadata: {}
@@ -75,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
76
  - !ruby/object:Gem::Version
76
77
  version: '0'
77
78
  requirements: []
78
- rubygems_version: 3.3.26
79
+ rubygems_version: 3.4.19
79
80
  signing_key:
80
81
  specification_version: 4
81
82
  summary: Performance-oriented subclass of Hash which provides symbolized keys and