zamboni 0.0.0 → 0.1.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: 37a12e4c505c7c1a600a3596169012f1b26f98eecec4a1ef0c5e73f33ad66394
4
- data.tar.gz: 831ace34ad90f877de0eebaf9112475ffd1a7a6b16b8e2e5dde24990220d1f42
3
+ metadata.gz: 798c3f1d5c141a8007c3f0a9d85a8e48e916595f421f7557cdd0767a9af8dd35
4
+ data.tar.gz: f7bb46a8eeca60ae1cf76254b8f5eefc07ab2e0d814e4ee850ad27100d6bfdb8
5
5
  SHA512:
6
- metadata.gz: 241f321f023d15323232d09116e25e158fa12d28a40f4b58a16b42e86df750eabe3f97ca1950a04c5274a78252f39a407f01c56be5604448a2798cc83eb6b5f8
7
- data.tar.gz: 73fd60dcd30e01b20d0a772c33e07863179990d50aa30ca8b1c6040444e85e5c2e0c48a5a3b7759778a9acba2291a9a39a27e7a41ef6e712c29a59048de783e2
6
+ metadata.gz: bba13d8174494c8bad0db5ad5b9d6a49a62a4207aff22b132849430a85cd0d38051c6d310f514d792607cafa1ebdcc012f12a689f7026f08b5a317e521210bb0
7
+ data.tar.gz: fa558c2526c8c618bb00a7596e03d89721d563ad1b67debe2623a5f9fe29b89fce039b2dcde9f482c3534c9a4202900957359e82ca8771274f045de9d7e6d383
@@ -0,0 +1,10 @@
1
+ # Code of Conduct
2
+
3
+ "zamboni" follows [The Ruby Community Conduct Guideline](https://www.ruby-lang.org/en/conduct) in all "collaborative space", which is defined as community communications channels (such as mailing lists, submitted patches, commit comments, etc.):
4
+
5
+ * Participants will be tolerant of opposing views.
6
+ * Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks.
7
+ * When interpreting the words and actions of others, participants should always assume good intentions.
8
+ * Behaviour which can be reasonably considered harassment will not be tolerated.
9
+
10
+ If you have any concerns about behaviour within this project, please contact us at ["john@hawthorn.email"](mailto:"john@hawthorn.email").
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 John Hawthorn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Zamboni
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/zamboni`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jhawthorn/zamboni. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/jhawthorn/zamboni/blob/main/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Zamboni project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jhawthorn/zamboni/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+
6
+ Minitest::TestTask.create
7
+
8
+ task default: :test
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zamboni
4
+ VERSION = "0.1.0"
5
+ end
data/lib/zamboni.rb ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "set"
4
+
5
+ require_relative "zamboni/version"
6
+
7
+ class Object
8
+ alias_method :deep_freeze, :freeze
9
+ end
10
+
11
+ class Array
12
+ def deep_freeze
13
+ return self if frozen?
14
+ freeze
15
+ each(&:deep_freeze)
16
+ self
17
+ end
18
+ end
19
+
20
+ class Hash
21
+ def deep_freeze
22
+ return self if frozen?
23
+ freeze
24
+ each do |k, v|
25
+ k.deep_freeze
26
+ v.deep_freeze
27
+ end
28
+ self
29
+ end
30
+ end
31
+
32
+ class Set
33
+ def deep_freeze
34
+ return self if frozen?
35
+ freeze
36
+ each(&:deep_freeze)
37
+ self
38
+ end
39
+ end
metadata CHANGED
@@ -1,30 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zamboni
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
8
- autorequire:
9
- bindir: bin
8
+ bindir: exe
10
9
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description: placeholder
12
+ description: 'Zamboni adds #deep_freeze to Ruby''s built-in collections (Array, Hash,
13
+ Set). Object#deep_freeze is an alias for #freeze; collections recursively freeze
14
+ their contents.'
14
15
  email:
15
16
  - john@hawthorn.email
16
17
  executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
- files: []
20
- homepage: https://jhawthorn.com
20
+ files:
21
+ - CODE_OF_CONDUCT.md
22
+ - LICENSE.txt
23
+ - README.md
24
+ - Rakefile
25
+ - lib/zamboni.rb
26
+ - lib/zamboni/version.rb
27
+ homepage: https://github.com/jhawthorn/zamboni
21
28
  licenses:
22
29
  - MIT
23
30
  metadata:
24
- homepage_uri: https://jhawthorn.com
25
- source_code_uri: https://jhawthorn.com
26
- changelog_uri: https://jhawthorn.com
27
- post_install_message:
31
+ homepage_uri: https://github.com/jhawthorn/zamboni
32
+ source_code_uri: https://github.com/jhawthorn/zamboni
33
+ changelog_uri: https://github.com/jhawthorn/zamboni/blob/main/CHANGELOG.md
28
34
  rdoc_options: []
29
35
  require_paths:
30
36
  - lib
@@ -32,15 +38,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
32
38
  requirements:
33
39
  - - ">="
34
40
  - !ruby/object:Gem::Version
35
- version: 3.0.0
41
+ version: 3.2.0
36
42
  required_rubygems_version: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
46
  version: '0'
41
47
  requirements: []
42
- rubygems_version: 3.5.16
43
- signing_key:
48
+ rubygems_version: 3.6.9
44
49
  specification_version: 4
45
- summary: placeholder
50
+ summary: A simple deep_freeze for Ruby collections.
46
51
  test_files: []