gibbler 0.8.10 → 0.10.0.pre.RC1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/main.yml +27 -0
- data/.github/workflows/ruby-rake.yaml +38 -0
- data/.gitignore +16 -0
- data/.pre-commit-config.yaml +60 -0
- data/.rubocop.yml +27 -0
- data/{CHANGES.txt → CHANGELOG.md} +75 -81
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +16 -0
- data/LICENSE.txt +4 -2
- data/README.md +250 -0
- data/VERSION.yml +2 -2
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/img/whoababy.gif +0 -0
- data/lib/gibbler/aliases.rb +2 -2
- data/lib/gibbler/history.rb +40 -42
- data/lib/gibbler/mixins.rb +31 -7
- data/lib/gibbler/version.rb +17 -0
- data/lib/gibbler.rb +272 -299
- data/sig/gibbler.rbs +4 -0
- data/try/{01_mixins_try.rb → 01_core_ext_try.rb} +1 -1
- data/try/02_compat_try.rb +1 -1
- data/try/05_gibbler_digest_try.rb +1 -1
- data/try/10_standalone_try.rb +49 -0
- data/try/{10_basic_try.rb → 11_basic_try.rb} +13 -14
- data/try/{11_basic_sha256_try.rb → 12_basic_sha256_try.rb} +1 -1
- data/try/14_extended_try.rb +1 -1
- data/try/15_file_try.rb +1 -1
- data/try/16_uri_try.rb +1 -1
- data/try/17_complex_object_try.rb +5 -2
- data/try/18_proc_try.rb +1 -1
- data/try/20_time_try.rb +1 -1
- data/try/30_secret_try.rb +1 -1
- data/try/50_history_try.rb +1 -1
- data/try/51_hash_history_try.rb +1 -1
- data/try/52_array_history_try.rb +1 -1
- data/try/53_string_history_try.rb +1 -1
- data/try/57_arbitrary_history_try.rb +1 -1
- data/try/59_history_exceptions_try.rb +1 -1
- metadata +88 -57
- data/README.rdoc +0 -228
- data/Rakefile +0 -64
- data/gibbler.gemspec +0 -69
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: efaadbe4388e45b7918af879e718cbfea8162fdbe4fb52cd32fdf395b35ae3eb
|
4
|
+
data.tar.gz: 426cdcba4014abd8623a1c637b8f8619c612f353f5dec6e91ef742ca2217f37f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a75c385122082b53265fc24ea474ea9cf8b960cf9b83611a19095255e28431824c7260b638cbc5c47f965b5cd35bcc1fdb019716a1e07638c6e0fb29397901b3
|
7
|
+
data.tar.gz: 349b7bf8f8591e89f3ce715628aa2c164c03477f99543a2512d4b3ed3dc858a8ba802f1b54d064e6d752546ab8c3ec497bfbb7f52b32abb7811951bd0cb1ef44
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
pull_request:
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
build:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
name: Ruby ${{ matrix.ruby }}
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby:
|
17
|
+
- '2.6.10'
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v3
|
21
|
+
- name: Set up Ruby
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
25
|
+
bundler-cache: true
|
26
|
+
- name: Run the default task
|
27
|
+
run: bundle exec rake
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ "main", "rel/*" ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ "main", "rel/*" ]
|
15
|
+
|
16
|
+
permissions:
|
17
|
+
contents: read
|
18
|
+
|
19
|
+
jobs:
|
20
|
+
test:
|
21
|
+
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
strategy:
|
24
|
+
matrix:
|
25
|
+
ruby-version: ['2.6', '2.7', '3.0']
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v3
|
29
|
+
- name: Set up Ruby
|
30
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
31
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
32
|
+
# uses: ruby/setup-ruby@v1
|
33
|
+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
34
|
+
with:
|
35
|
+
ruby-version: ${{ matrix.ruby-version }}
|
36
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
37
|
+
- name: Run tests
|
38
|
+
run: bundle exec rake
|
data/.gitignore
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
#
|
2
|
+
# Pre-Commit Configruatioon
|
3
|
+
#
|
4
|
+
# Initial setup:
|
5
|
+
#
|
6
|
+
# 0. Install the pre-commit framework (if it isn't already on your system):
|
7
|
+
#
|
8
|
+
# pip install pre-commit
|
9
|
+
#
|
10
|
+
# 1. Install the git hook:
|
11
|
+
#
|
12
|
+
# pre-commit install
|
13
|
+
#
|
14
|
+
#
|
15
|
+
# Other commands:
|
16
|
+
#
|
17
|
+
# Run it on all the files in this repo:
|
18
|
+
# pre-commit run --all-files
|
19
|
+
#
|
20
|
+
# Updating plugin repositories:
|
21
|
+
# pre-commit autoupdate
|
22
|
+
#
|
23
|
+
# See also:
|
24
|
+
# - https://pre-commit.com for more information
|
25
|
+
# - https://pre-commit.com/hooks.html for more hooks
|
26
|
+
#
|
27
|
+
|
28
|
+
repos:
|
29
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
30
|
+
rev: v4.5.0
|
31
|
+
hooks:
|
32
|
+
- id: trailing-whitespace
|
33
|
+
- id: end-of-file-fixer
|
34
|
+
- id: check-yaml
|
35
|
+
- id: detect-private-key
|
36
|
+
- id: mixed-line-ending
|
37
|
+
- id: check-added-large-files
|
38
|
+
args: ["--maxkb=1000"]
|
39
|
+
- id: no-commit-to-branch
|
40
|
+
args: ["--branch", "develop", "--branch", "rel/.*"]
|
41
|
+
- id: check-merge-conflict
|
42
|
+
- id: forbid-submodules
|
43
|
+
|
44
|
+
# - repo: https://github.com/rubocop/rubocop
|
45
|
+
# rev: v1.62.1 # Use the ref you want to point at
|
46
|
+
# hooks:
|
47
|
+
# - id: rubocop
|
48
|
+
# language_version: 3.1.4
|
49
|
+
|
50
|
+
- repo: https://github.com/avilaton/add-msg-issue-prefix-hook
|
51
|
+
rev: v0.0.11
|
52
|
+
hooks:
|
53
|
+
- id: add-msg-issue-prefix
|
54
|
+
name: Link commit to Github issue
|
55
|
+
args:
|
56
|
+
- "--default=[NOJIRA]"
|
57
|
+
- "--pattern=[a-zA-Z0-9]{0,10}-?[0-9]{1,5}"
|
58
|
+
- "--template=[#{}]"
|
59
|
+
- "--insert-after"
|
60
|
+
- "^feat.?:|^fix.?:"
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
TargetRubyVersion: 3.1
|
4
|
+
|
5
|
+
Style/StringLiterals:
|
6
|
+
Enabled: true
|
7
|
+
EnforcedStyle: double_quotes
|
8
|
+
|
9
|
+
Style/StringLiteralsInInterpolation:
|
10
|
+
Enabled: true
|
11
|
+
EnforcedStyle: double_quotes
|
12
|
+
|
13
|
+
Layout/LineLength:
|
14
|
+
Enabled: true
|
15
|
+
Max: 120
|
16
|
+
|
17
|
+
Metrics/CyclomaticComplexity:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Layout/HashAlignment:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Lint/Void:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Metrics/MethodLength:
|
27
|
+
Enabled: false
|
@@ -1,183 +1,180 @@
|
|
1
|
-
GIBBLER, CHANGES
|
1
|
+
# GIBBLER, CHANGES
|
2
2
|
|
3
|
-
|
3
|
+
## Releases
|
4
|
+
|
5
|
+
### 0.9.0 (2012-04-20)
|
6
|
+
|
7
|
+
* FIXED: Gibbler::Complex now checks has_method? and will use that before instance variables.
|
8
|
+
* CHANGE: Gibbler is now a class which supplies the default standalone usage
|
9
|
+
* CHANGE: Ruby object mixins must now be explicitly loaded via "require 'gibbler/mixins'"
|
10
|
+
* CHANGE: Removed Gibbler.enable_debug/disable_debug
|
11
|
+
* CHANGE: Gibbler.digest now returns nil for an empty Array
|
12
|
+
* ADDED: Gibbler.delimiter
|
13
|
+
|
14
|
+
### 0.8.10 (2011-10-23)
|
4
15
|
|
5
16
|
* CHANGE: Gibbler::Hash and Gibbler::Array now skip values that have no __gibbler method
|
6
17
|
|
7
|
-
|
18
|
+
### 0.8.9 (2011-02-11)
|
8
19
|
|
9
20
|
* FIXED: Remove debug output.
|
10
21
|
|
11
|
-
|
22
|
+
### 0.8.8 (2011-02-11)
|
12
23
|
|
13
24
|
* FIXED: Bundler calls freeze on an instance of Gem::Platform
|
14
25
|
|
15
|
-
|
26
|
+
### 0.8.7 (2011-02-07)
|
16
27
|
|
17
28
|
* CHANGE: Only call gibbler_debug when in debug mode
|
18
29
|
|
19
|
-
|
30
|
+
### 0.8.6 (2010-12-24)
|
20
31
|
|
21
32
|
* FIXED: Gibber::VERSION (File error)
|
22
33
|
|
23
|
-
|
34
|
+
### 0.8.5 (2010-12-23)
|
24
35
|
|
25
36
|
* CHANGE: Gibbler::Complex will skip fields with no __gibbler method
|
26
37
|
* ADDED: Gibbler.debug=
|
27
38
|
|
39
|
+
### 0.8.4 (2010-06-19)
|
28
40
|
|
29
|
-
|
41
|
+
ADDED: Support for Gibbler.default_base which affects all generated digests.
|
30
42
|
|
31
|
-
|
32
|
-
|
33
|
-
#### 0.8.3 (2010-05-04) ###############################
|
43
|
+
### 0.8.3 (2010-05-04)
|
34
44
|
|
35
45
|
* ADDED: Support for global secret (Gibbler.secret) which is prepended to all digests.
|
36
46
|
|
37
|
-
|
38
|
-
|
39
|
-
* FIXED: test exception for "String has list of attic vars" tryouts when bundled with my other libraries.
|
40
|
-
* CHANGE: Gibbler::Complex.gibbler will now append fields when called multiple times.
|
47
|
+
### 0.8.2 (2010-04-29)
|
41
48
|
|
49
|
+
* FIXED: test exception for "String has list of attic vars" tryouts when bundled with my other libraries.
|
50
|
+
* CHANGE: Gibbler::Complex.gibbler will now append fields when called multiple times.
|
42
51
|
|
43
|
-
|
52
|
+
### 0.8.1 (2010-04-11)
|
44
53
|
|
45
|
-
NOTE: Digest calculation for Range objects has changed.
|
46
|
-
Ranges or objects containing Ranges will have different
|
54
|
+
NOTE: Digest calculation for Range objects has changed.
|
55
|
+
Ranges or objects containing Ranges will have different
|
47
56
|
digests than those created in previous releases.
|
48
57
|
|
49
58
|
* FIXED: "can't iterate from Float" error for Ranges containing a Float
|
50
59
|
* CHANGE: Range digests are now based on the format "CLASS:FIRST:LAST:VALUE"
|
51
60
|
|
52
|
-
|
53
|
-
#### 0.8.0 (2010-04-08) ###############################
|
61
|
+
### 0.8.0 (2010-04-08)
|
54
62
|
|
55
63
|
* CHANGE: Gibber::Object#__gibbler now accepts only 1 optional argument: digest_type
|
56
64
|
* ADDED: Gibbler::Digest#to_i which assumes base 16
|
57
65
|
* ADDED: Gibbler::Object#gibbler now accepts a digest type
|
58
66
|
* ADDED: Gibbler::Digest#to_s and #base can take a base argument
|
59
67
|
|
60
|
-
|
61
|
-
#### 0.7.7 (2010-03-29) ###############################
|
68
|
+
### 0.7.7 (2010-03-29)
|
62
69
|
|
63
70
|
* ADDED: Gibbler::Digest#shorten
|
64
71
|
|
65
|
-
|
72
|
+
### 0.7.6 (2010-03-18)
|
66
73
|
|
67
74
|
* FIXED: The previous fix missed the case where gibbler_fields was null
|
68
75
|
|
69
|
-
|
76
|
+
### 0.7.5 (2010-03-18)
|
70
77
|
|
71
|
-
* FIXED: :undefined method `each' for :fieldname:Symbol when only one element in gibbler_fields
|
78
|
+
* FIXED: :undefined method `each' for :fieldname:Symbol when only one element in gibbler_fields
|
72
79
|
|
73
|
-
|
80
|
+
### 0.7.4 (2010-02-12)
|
74
81
|
|
75
82
|
* CHANGE: Remove hanna dependency [Diego Elio 'Flameeyes' Pettenò]
|
76
83
|
|
77
|
-
|
84
|
+
### 0.7.3 (2010-01-15)
|
78
85
|
|
79
86
|
* ADDED: Support for base36 representations of digests
|
80
87
|
|
81
|
-
|
88
|
+
### 0.7.2 (2009-12-08)
|
82
89
|
|
83
90
|
* FIXED: Gibbler::Complex no longer includes the '@' for instance
|
84
|
-
variable names used in digest calculation.
|
91
|
+
variable names used in digest calculation.
|
85
92
|
* ADDED: Gibbler::Complex support for specifying which fields
|
86
|
-
to use in digest calculation.
|
87
|
-
|
93
|
+
to use in digest calculation.
|
88
94
|
|
89
|
-
|
95
|
+
### 0.7.1 (2009-10-09)
|
90
96
|
|
91
|
-
* FIXED: Gibbler::Complex now sorts instance variables before processing.
|
92
|
-
This resolves the issue of digest compatibility between 1.8, 1.9, and JRuby.
|
97
|
+
* FIXED: Gibbler::Complex now sorts instance variables before processing.
|
98
|
+
This resolves the issue of digest compatibility between 1.8, 1.9, and JRuby.
|
93
99
|
|
94
|
-
|
100
|
+
### 0.7.0 (2009-10-07)
|
95
101
|
|
96
102
|
NOTE: Digest calculation for Proc objects has changed. Procs
|
97
103
|
or objects containing Procs will have different digests than
|
98
104
|
those created in previous releases.
|
99
105
|
|
100
|
-
* CHANGE: Proc digests are now based on the values of obj.class
|
106
|
+
* CHANGE: Proc digests are now based on the values of obj.class
|
101
107
|
and obj.name (if available).
|
102
|
-
|
103
108
|
|
104
|
-
|
109
|
+
### 0.6.4 (2009-10-07)
|
105
110
|
|
106
111
|
* FIXED: Now using correct superclass for DateTime (Date)
|
107
|
-
* CHANGE: aliases.rb will now require gibbler so you don't need to specify both.
|
112
|
+
* CHANGE: aliases.rb will now require gibbler so you don't need to specify both.
|
108
113
|
i.e. require 'gibbler'
|
109
114
|
require 'gibbler/aliases'
|
110
115
|
* CHANGE: Gibbler::Object#gibbler returns the value of gibbler_cache when
|
111
|
-
the object is frozen, without calculation.
|
116
|
+
the object is frozen, without calculation.
|
112
117
|
* ADDED: Gibbler::Object#freeze to create digest before freezing.
|
113
118
|
* ADDED: Out of the box support for Regexp (Gibbler::String)
|
114
119
|
* ADDED: Gibbler::Object#digest_cache alias for gibbler_cache
|
115
120
|
|
116
|
-
|
117
|
-
#### 0.6.3 (2009-09-30) #################################
|
121
|
+
### 0.6.3 (2009-09-30)
|
118
122
|
|
119
123
|
* FIXED: Won't save digest to cache if the object is frozen
|
120
124
|
* CHANGE: Renamed __gibbler_cache to gibbler_cache (with backwards compatability)
|
121
125
|
* CHANGE: Gibbler::Digest#== now returns true only for exact matches
|
122
126
|
* ADDED: Gibbler::Digest#shorter, Gibbler::Digest#tiny, Gibbler::Digest#===
|
123
127
|
|
124
|
-
|
125
|
-
#### 0.6.2 (2009-09-15) #################################
|
128
|
+
### 0.6.2 (2009-09-15)
|
126
129
|
|
127
130
|
* FIXED: Enforce specific string format for Time objects. Fixes
|
128
131
|
an issue with Ruby 1.8.7 which formats the to_s value differently
|
129
132
|
than 1.8.6 and 1.9.1.
|
130
133
|
* ADDED: Support for NilClass, File, and URI
|
131
134
|
|
135
|
+
### 0.6.1 (2009-08-25)
|
132
136
|
|
133
|
-
|
137
|
+
* ADDED: Support for Date, Time, and DateTime. Time and DateTime
|
138
|
+
refers to times in UTC.
|
139
|
+
* ADDED: Support for Range.
|
134
140
|
|
135
|
-
|
136
|
-
refers to times in UTC.
|
137
|
-
* ADDED: Support for Range.
|
138
|
-
|
139
|
-
|
140
|
-
#### 0.6.0 (2009-07-20) #################################
|
141
|
+
### 0.6.0 (2009-07-20)
|
141
142
|
|
142
143
|
NOTE: Digest calculation for Proc and Class objects have changed.
|
143
|
-
Digests created for these types will not match previous releases.
|
144
|
+
Digests created for these types will not match previous releases.
|
144
145
|
|
145
146
|
* FIXED: Proc digests no longer refer to Proc#binding
|
146
147
|
* CHANGE: The Gibbler module now raises an exception if it's included
|
147
148
|
* CHANGE: Module and Class now use the default Gibbler::Object digest
|
148
149
|
* ADDED: Gibbler::Object now contains a default digest method
|
149
150
|
|
150
|
-
|
151
|
-
#### 0.5.4 (2009-07-17) #################################
|
151
|
+
### 0.5.4 (2009-07-17)
|
152
152
|
|
153
153
|
* FIXED: Improved support for Symbol and Fixnum objects with Attic 0.4
|
154
|
-
|
155
|
-
|
154
|
+
|
155
|
+
### 0.5.3 (2009-07-12)
|
156
156
|
|
157
157
|
* FIXED: Updated gemspec to fix missing files (aliases)
|
158
|
-
* CHANGE: conversion to attic instead of weirdo instance
|
158
|
+
* CHANGE: conversion to attic instead of weirdo instance
|
159
159
|
variables (@__gibbler__ and @__gibbler_history)
|
160
160
|
* NEW DEPENDENCY: attic
|
161
161
|
|
162
|
-
|
163
|
-
#### 0.5.2 (2009-07-07) #################################
|
162
|
+
### 0.5.2 (2009-07-07)
|
164
163
|
|
165
164
|
* CHANGE: Moved Gibbler instance methods to Gibbler::Object
|
166
165
|
* ADDED: Proc.gibbler which is included by default
|
167
166
|
* ADDED: gibbler aliases to allow shorter methods by request.
|
168
167
|
|
169
|
-
|
170
|
-
#### 0.5.1 (2009-07-06) #################################
|
168
|
+
### 0.5.1 (2009-07-06)
|
171
169
|
|
172
170
|
* CHANGE: Renamed gibbler_revert to gibbler_revert! (Thanks ivey)
|
173
171
|
|
172
|
+
### 0.5 (2009-07-01)
|
174
173
|
|
175
|
-
|
176
|
-
|
177
|
-
NOTE: This is a significant change from 0.4. Many method names
|
178
|
-
have been modified so this release is not backwards compatible.
|
174
|
+
NOTE: This is a significant change from 0.4. Many method names
|
175
|
+
have been modified so this release is not backwards compatible.
|
179
176
|
|
180
|
-
* CHANGE: Now refer to "gibble" as "digest" in all docs and methods.
|
177
|
+
* CHANGE: Now refer to "gibble" as "digest" in all docs and methods.
|
181
178
|
* CHANGE: Gibbler#gibble -> Gibbler#gibbler
|
182
179
|
* CHANGE: Gibble is now Gibbler::Digest
|
183
180
|
* ADDED: Gibbler::History, supporting gibbler_snapshots and gibbler_revert
|
@@ -185,33 +182,30 @@ have been modified so this release is not backwards compatible.
|
|
185
182
|
* ADDED: Support for short, 8-character digests
|
186
183
|
* ADDED: Expanded test coverage
|
187
184
|
|
185
|
+
### 0.4 (2009-06-30)
|
188
186
|
|
189
|
-
|
190
|
-
|
191
|
-
NOTE: Calculated digests have changed since 0.3. Most digests created with
|
187
|
+
NOTE: Calculated digests have changed since 0.3. Most digests created with
|
192
188
|
0.3 and earlier will not match those created in 0.4 for the same object
|
193
189
|
|
194
190
|
* FIXED: Hash and Array now use the class of the value for hashing
|
195
191
|
rather than Hash or Array (respectively).
|
196
|
-
* FIXED: __gibbler methods now return a digest based on their own class.
|
192
|
+
* FIXED: __gibbler methods now return a digest based on their own class.
|
197
193
|
Previously, all digests were created by String.__gibbler so the class
|
198
|
-
name from the original object got lost.
|
194
|
+
name from the original object got lost.
|
199
195
|
* CHANGE: Gibbler methods are no longer available to all Ruby classes
|
200
|
-
by default. The default list is now: String, Hash, Array, Symbol,
|
201
|
-
Class, Fixnum, Bignum.
|
202
|
-
* CHANGE: Renamed Gibbler.
|
196
|
+
by default. The default list is now: String, Hash, Array, Symbol,
|
197
|
+
Class, Fixnum, Bignum.
|
198
|
+
* CHANGE: Renamed Gibbler.digest_type to Gibbler.digest_type
|
203
199
|
* ADDED: Custom objects can now "include Gibbler::Complex"
|
204
200
|
|
205
|
-
|
206
|
-
#### 0.3 (2009-06-29) #################################
|
201
|
+
### 0.3 (2009-06-29)
|
207
202
|
|
208
203
|
* CHANGE: Renamed to_gibble -> gibble
|
209
|
-
* CHANGE: Renamed __default_gibbler
|
210
|
-
* CHANGE: Created Gibbler module, all other modules can
|
211
|
-
include its junk into their namespace.
|
204
|
+
* CHANGE: Renamed __default_gibbler to__gibbler
|
205
|
+
* CHANGE: Created Gibbler module, all other modules can
|
206
|
+
include its junk into their namespace.
|
212
207
|
* ADDED: Object#hash and performance tryouts
|
213
208
|
|
214
|
-
|
215
|
-
#### 0.2 (2009-06-25) #################################
|
209
|
+
### 0.2 (2009-06-25)
|
216
210
|
|
217
211
|
NOTE: Initial release
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at delano@cpan.org. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
ruby '>= 3.1.4'
|
6
|
+
|
7
|
+
# Specify your gem's dependencies in gibbler.gemspec
|
8
|
+
# gemspec
|
9
|
+
|
10
|
+
gem "rake"
|
11
|
+
|
12
|
+
group :development do
|
13
|
+
# RuboCop version should be updated to the latest to ensure compatibility with Ruby 3.1
|
14
|
+
gem "rubocop", require: false
|
15
|
+
gem "tryouts", '2.2.0.pre.RC1', require: false
|
16
|
+
end
|
data/LICENSE.txt
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2008-2024 delano
|
2
4
|
|
3
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -16,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
-
THE SOFTWARE.
|
21
|
+
THE SOFTWARE.
|