gibbler 0.9.0 → 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} +65 -82
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +16 -0
- data/LICENSE.txt +4 -2
- data/{README.rdoc → README.md} +134 -120
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/img/whoababy.gif +0 -0
- data/lib/gibbler/history.rb +39 -41
- data/lib/gibbler/mixins.rb +3 -4
- data/lib/gibbler/version.rb +17 -0
- data/lib/gibbler.rb +145 -188
- data/sig/gibbler.rbs +4 -0
- data/try/11_basic_try.rb +11 -12
- metadata +75 -27
- data/Rakefile +0 -39
- data/gibbler.gemspec +0 -71
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,7 +1,8 @@
|
|
1
|
-
GIBBLER, CHANGES
|
1
|
+
# GIBBLER, CHANGES
|
2
2
|
|
3
|
+
## Releases
|
3
4
|
|
4
|
-
|
5
|
+
### 0.9.0 (2012-04-20)
|
5
6
|
|
6
7
|
* FIXED: Gibbler::Complex now checks has_method? and will use that before instance variables.
|
7
8
|
* CHANGE: Gibbler is now a class which supplies the default standalone usage
|
@@ -10,185 +11,170 @@ GIBBLER, CHANGES
|
|
10
11
|
* CHANGE: Gibbler.digest now returns nil for an empty Array
|
11
12
|
* ADDED: Gibbler.delimiter
|
12
13
|
|
13
|
-
|
14
|
-
#### 0.8.10 (2011-10-23) ###############################
|
14
|
+
### 0.8.10 (2011-10-23)
|
15
15
|
|
16
16
|
* CHANGE: Gibbler::Hash and Gibbler::Array now skip values that have no __gibbler method
|
17
17
|
|
18
|
-
|
18
|
+
### 0.8.9 (2011-02-11)
|
19
19
|
|
20
20
|
* FIXED: Remove debug output.
|
21
21
|
|
22
|
-
|
22
|
+
### 0.8.8 (2011-02-11)
|
23
23
|
|
24
24
|
* FIXED: Bundler calls freeze on an instance of Gem::Platform
|
25
25
|
|
26
|
-
|
26
|
+
### 0.8.7 (2011-02-07)
|
27
27
|
|
28
28
|
* CHANGE: Only call gibbler_debug when in debug mode
|
29
29
|
|
30
|
-
|
30
|
+
### 0.8.6 (2010-12-24)
|
31
31
|
|
32
32
|
* FIXED: Gibber::VERSION (File error)
|
33
33
|
|
34
|
-
|
34
|
+
### 0.8.5 (2010-12-23)
|
35
35
|
|
36
36
|
* CHANGE: Gibbler::Complex will skip fields with no __gibbler method
|
37
37
|
* ADDED: Gibbler.debug=
|
38
38
|
|
39
|
+
### 0.8.4 (2010-06-19)
|
39
40
|
|
40
|
-
|
41
|
-
|
42
|
-
ADDED: Support for Gibbler.default_base which affects all generated digests.
|
41
|
+
ADDED: Support for Gibbler.default_base which affects all generated digests.
|
43
42
|
|
44
|
-
|
43
|
+
### 0.8.3 (2010-05-04)
|
45
44
|
|
46
45
|
* ADDED: Support for global secret (Gibbler.secret) which is prepended to all digests.
|
47
46
|
|
48
|
-
|
49
|
-
|
50
|
-
* FIXED: test exception for "String has list of attic vars" tryouts when bundled with my other libraries.
|
51
|
-
* CHANGE: Gibbler::Complex.gibbler will now append fields when called multiple times.
|
47
|
+
### 0.8.2 (2010-04-29)
|
52
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.
|
53
51
|
|
54
|
-
|
52
|
+
### 0.8.1 (2010-04-11)
|
55
53
|
|
56
|
-
NOTE: Digest calculation for Range objects has changed.
|
57
|
-
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
|
58
56
|
digests than those created in previous releases.
|
59
57
|
|
60
58
|
* FIXED: "can't iterate from Float" error for Ranges containing a Float
|
61
59
|
* CHANGE: Range digests are now based on the format "CLASS:FIRST:LAST:VALUE"
|
62
60
|
|
63
|
-
|
64
|
-
#### 0.8.0 (2010-04-08) ###############################
|
61
|
+
### 0.8.0 (2010-04-08)
|
65
62
|
|
66
63
|
* CHANGE: Gibber::Object#__gibbler now accepts only 1 optional argument: digest_type
|
67
64
|
* ADDED: Gibbler::Digest#to_i which assumes base 16
|
68
65
|
* ADDED: Gibbler::Object#gibbler now accepts a digest type
|
69
66
|
* ADDED: Gibbler::Digest#to_s and #base can take a base argument
|
70
67
|
|
71
|
-
|
72
|
-
#### 0.7.7 (2010-03-29) ###############################
|
68
|
+
### 0.7.7 (2010-03-29)
|
73
69
|
|
74
70
|
* ADDED: Gibbler::Digest#shorten
|
75
71
|
|
76
|
-
|
72
|
+
### 0.7.6 (2010-03-18)
|
77
73
|
|
78
74
|
* FIXED: The previous fix missed the case where gibbler_fields was null
|
79
75
|
|
80
|
-
|
76
|
+
### 0.7.5 (2010-03-18)
|
81
77
|
|
82
|
-
* 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
|
83
79
|
|
84
|
-
|
80
|
+
### 0.7.4 (2010-02-12)
|
85
81
|
|
86
82
|
* CHANGE: Remove hanna dependency [Diego Elio 'Flameeyes' Pettenò]
|
87
83
|
|
88
|
-
|
84
|
+
### 0.7.3 (2010-01-15)
|
89
85
|
|
90
86
|
* ADDED: Support for base36 representations of digests
|
91
87
|
|
92
|
-
|
88
|
+
### 0.7.2 (2009-12-08)
|
93
89
|
|
94
90
|
* FIXED: Gibbler::Complex no longer includes the '@' for instance
|
95
|
-
variable names used in digest calculation.
|
91
|
+
variable names used in digest calculation.
|
96
92
|
* ADDED: Gibbler::Complex support for specifying which fields
|
97
|
-
to use in digest calculation.
|
93
|
+
to use in digest calculation.
|
98
94
|
|
95
|
+
### 0.7.1 (2009-10-09)
|
99
96
|
|
100
|
-
|
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.
|
101
99
|
|
102
|
-
|
103
|
-
This resolves the issue of digest compatibility between 1.8, 1.9, and JRuby.
|
104
|
-
|
105
|
-
#### 0.7.0 (2009-10-07) #################################
|
100
|
+
### 0.7.0 (2009-10-07)
|
106
101
|
|
107
102
|
NOTE: Digest calculation for Proc objects has changed. Procs
|
108
103
|
or objects containing Procs will have different digests than
|
109
104
|
those created in previous releases.
|
110
105
|
|
111
|
-
* 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
|
112
107
|
and obj.name (if available).
|
113
|
-
|
114
108
|
|
115
|
-
|
109
|
+
### 0.6.4 (2009-10-07)
|
116
110
|
|
117
111
|
* FIXED: Now using correct superclass for DateTime (Date)
|
118
|
-
* 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.
|
119
113
|
i.e. require 'gibbler'
|
120
114
|
require 'gibbler/aliases'
|
121
115
|
* CHANGE: Gibbler::Object#gibbler returns the value of gibbler_cache when
|
122
|
-
the object is frozen, without calculation.
|
116
|
+
the object is frozen, without calculation.
|
123
117
|
* ADDED: Gibbler::Object#freeze to create digest before freezing.
|
124
118
|
* ADDED: Out of the box support for Regexp (Gibbler::String)
|
125
119
|
* ADDED: Gibbler::Object#digest_cache alias for gibbler_cache
|
126
120
|
|
127
|
-
|
128
|
-
#### 0.6.3 (2009-09-30) #################################
|
121
|
+
### 0.6.3 (2009-09-30)
|
129
122
|
|
130
123
|
* FIXED: Won't save digest to cache if the object is frozen
|
131
124
|
* CHANGE: Renamed __gibbler_cache to gibbler_cache (with backwards compatability)
|
132
125
|
* CHANGE: Gibbler::Digest#== now returns true only for exact matches
|
133
126
|
* ADDED: Gibbler::Digest#shorter, Gibbler::Digest#tiny, Gibbler::Digest#===
|
134
127
|
|
135
|
-
|
136
|
-
#### 0.6.2 (2009-09-15) #################################
|
128
|
+
### 0.6.2 (2009-09-15)
|
137
129
|
|
138
130
|
* FIXED: Enforce specific string format for Time objects. Fixes
|
139
131
|
an issue with Ruby 1.8.7 which formats the to_s value differently
|
140
132
|
than 1.8.6 and 1.9.1.
|
141
133
|
* ADDED: Support for NilClass, File, and URI
|
142
134
|
|
135
|
+
### 0.6.1 (2009-08-25)
|
143
136
|
|
144
|
-
|
145
|
-
|
146
|
-
* ADDED: Support for
|
147
|
-
refers to times in UTC.
|
148
|
-
* ADDED: Support for Range.
|
137
|
+
* ADDED: Support for Date, Time, and DateTime. Time and DateTime
|
138
|
+
refers to times in UTC.
|
139
|
+
* ADDED: Support for Range.
|
149
140
|
|
150
|
-
|
151
|
-
#### 0.6.0 (2009-07-20) #################################
|
141
|
+
### 0.6.0 (2009-07-20)
|
152
142
|
|
153
143
|
NOTE: Digest calculation for Proc and Class objects have changed.
|
154
|
-
Digests created for these types will not match previous releases.
|
144
|
+
Digests created for these types will not match previous releases.
|
155
145
|
|
156
146
|
* FIXED: Proc digests no longer refer to Proc#binding
|
157
147
|
* CHANGE: The Gibbler module now raises an exception if it's included
|
158
148
|
* CHANGE: Module and Class now use the default Gibbler::Object digest
|
159
149
|
* ADDED: Gibbler::Object now contains a default digest method
|
160
150
|
|
161
|
-
|
162
|
-
#### 0.5.4 (2009-07-17) #################################
|
151
|
+
### 0.5.4 (2009-07-17)
|
163
152
|
|
164
153
|
* FIXED: Improved support for Symbol and Fixnum objects with Attic 0.4
|
165
|
-
|
166
|
-
|
154
|
+
|
155
|
+
### 0.5.3 (2009-07-12)
|
167
156
|
|
168
157
|
* FIXED: Updated gemspec to fix missing files (aliases)
|
169
|
-
* CHANGE: conversion to attic instead of weirdo instance
|
158
|
+
* CHANGE: conversion to attic instead of weirdo instance
|
170
159
|
variables (@__gibbler__ and @__gibbler_history)
|
171
160
|
* NEW DEPENDENCY: attic
|
172
161
|
|
173
|
-
|
174
|
-
#### 0.5.2 (2009-07-07) #################################
|
162
|
+
### 0.5.2 (2009-07-07)
|
175
163
|
|
176
164
|
* CHANGE: Moved Gibbler instance methods to Gibbler::Object
|
177
165
|
* ADDED: Proc.gibbler which is included by default
|
178
166
|
* ADDED: gibbler aliases to allow shorter methods by request.
|
179
167
|
|
180
|
-
|
181
|
-
#### 0.5.1 (2009-07-06) #################################
|
168
|
+
### 0.5.1 (2009-07-06)
|
182
169
|
|
183
170
|
* CHANGE: Renamed gibbler_revert to gibbler_revert! (Thanks ivey)
|
184
171
|
|
172
|
+
### 0.5 (2009-07-01)
|
185
173
|
|
186
|
-
|
174
|
+
NOTE: This is a significant change from 0.4. Many method names
|
175
|
+
have been modified so this release is not backwards compatible.
|
187
176
|
|
188
|
-
|
189
|
-
have been modified so this release is not backwards compatible.
|
190
|
-
|
191
|
-
* 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.
|
192
178
|
* CHANGE: Gibbler#gibble -> Gibbler#gibbler
|
193
179
|
* CHANGE: Gibble is now Gibbler::Digest
|
194
180
|
* ADDED: Gibbler::History, supporting gibbler_snapshots and gibbler_revert
|
@@ -196,33 +182,30 @@ have been modified so this release is not backwards compatible.
|
|
196
182
|
* ADDED: Support for short, 8-character digests
|
197
183
|
* ADDED: Expanded test coverage
|
198
184
|
|
185
|
+
### 0.4 (2009-06-30)
|
199
186
|
|
200
|
-
|
201
|
-
|
202
|
-
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
|
203
188
|
0.3 and earlier will not match those created in 0.4 for the same object
|
204
189
|
|
205
190
|
* FIXED: Hash and Array now use the class of the value for hashing
|
206
191
|
rather than Hash or Array (respectively).
|
207
|
-
* 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.
|
208
193
|
Previously, all digests were created by String.__gibbler so the class
|
209
|
-
name from the original object got lost.
|
194
|
+
name from the original object got lost.
|
210
195
|
* CHANGE: Gibbler methods are no longer available to all Ruby classes
|
211
|
-
by default. The default list is now: String, Hash, Array, Symbol,
|
212
|
-
Class, Fixnum, Bignum.
|
196
|
+
by default. The default list is now: String, Hash, Array, Symbol,
|
197
|
+
Class, Fixnum, Bignum.
|
213
198
|
* CHANGE: Renamed Gibbler.digest_type to Gibbler.digest_type
|
214
199
|
* ADDED: Custom objects can now "include Gibbler::Complex"
|
215
200
|
|
216
|
-
|
217
|
-
#### 0.3 (2009-06-29) #################################
|
201
|
+
### 0.3 (2009-06-29)
|
218
202
|
|
219
203
|
* CHANGE: Renamed to_gibble -> gibble
|
220
|
-
* CHANGE: Renamed __default_gibbler
|
221
|
-
* CHANGE: Created Gibbler module, all other modules can
|
222
|
-
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.
|
223
207
|
* ADDED: Object#hash and performance tryouts
|
224
208
|
|
225
|
-
|
226
|
-
#### 0.2 (2009-06-25) #################################
|
209
|
+
### 0.2 (2009-06-25)
|
227
210
|
|
228
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.
|