version_gem 1.1.9 → 1.1.15
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +275 -1
- data/LICENSE.md +11 -0
- data/README.md +208 -205
- data/lib/version_gem/api.rb +1 -1
- data/lib/version_gem/epoch.rb +1 -1
- data/lib/version_gem/ruby.rb +2 -2
- data/lib/version_gem/version.rb +5 -8
- data/lib/version_gem.rb +1 -0
- data/sig/version_gem.rbs +72 -0
- data.tar.gz.sig +0 -0
- metadata +69 -66
- metadata.gz.sig +0 -0
- data/CITATION.cff +0 -20
- data/CODE_OF_CONDUCT.md +0 -134
- data/CONTRIBUTING.md +0 -200
- data/FUNDING.md +0 -77
- data/LICENSE.txt +0 -21
- data/REEK +0 -0
- data/RUBOCOP.md +0 -71
- data/SECURITY.md +0 -21
- data/sig/all_formatters.rbs +0 -1
- data/sig/debug.rbs +0 -1
- data/sig/debug_ide.rbs +0 -1
- data/sig/debug_jruby.rbs +0 -1
- data/sig/debugging.rbs +0 -1
- data/sig/run_coverage.rbs +0 -1
- data/sig/version_gem/api.rbs +0 -27
- data/sig/version_gem/basic.rbs +0 -5
- data/sig/version_gem/epoch.rbs +0 -26
- data/sig/version_gem/error.rbs +0 -4
- data/sig/version_gem/ruby.rbs +0 -11
- data/sig/version_gem/version.rbs +0 -9
data/lib/version_gem/api.rb
CHANGED
data/lib/version_gem/epoch.rb
CHANGED
data/lib/version_gem/ruby.rb
CHANGED
|
@@ -7,7 +7,7 @@ module VersionGem
|
|
|
7
7
|
|
|
8
8
|
# Check if the current Ruby version is greater than or equal to the given version
|
|
9
9
|
def gte_minimum_version?(version, engine = "ruby")
|
|
10
|
-
|
|
10
|
+
::Gem::Version.new(version) <= RUBY_VER && engine == ::RUBY_ENGINE
|
|
11
11
|
end
|
|
12
12
|
module_function :gte_minimum_version?
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ module VersionGem
|
|
|
16
16
|
segs = RUBY_VER.segments
|
|
17
17
|
major.to_i == segs[0] &&
|
|
18
18
|
minor.to_i == segs[1] &&
|
|
19
|
-
|
|
19
|
+
engine == ::RUBY_ENGINE
|
|
20
20
|
end
|
|
21
21
|
module_function :actual_minor_version?
|
|
22
22
|
end
|
data/lib/version_gem/version.rb
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module VersionGem
|
|
4
|
+
# Version namespace for this gem.
|
|
4
5
|
module Version
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# because version files are loaded in Gemspecs before bundler
|
|
8
|
-
# has a chance to load dependencies.
|
|
9
|
-
# Instead, see lib/version_gem.rb for a solution that will work everywhere
|
|
10
|
-
# extend VersionGem::Basic
|
|
11
|
-
# or
|
|
12
|
-
# extend VersionGem::Epoch
|
|
6
|
+
# Current gem version.
|
|
7
|
+
VERSION = "1.1.15"
|
|
13
8
|
end
|
|
9
|
+
# Current gem version exposed at the traditional constant location.
|
|
10
|
+
VERSION = Version::VERSION # Traditional Constant Location
|
|
14
11
|
end
|
data/lib/version_gem.rb
CHANGED
data/sig/version_gem.rbs
CHANGED
|
@@ -1,2 +1,74 @@
|
|
|
1
1
|
module VersionGem
|
|
2
|
+
module Api
|
|
3
|
+
# Internal memoized version string segments
|
|
4
|
+
@_to_a: Array[String]
|
|
5
|
+
|
|
6
|
+
# Memoized components
|
|
7
|
+
@major: Integer
|
|
8
|
+
@minor: Integer
|
|
9
|
+
@patch: Integer
|
|
10
|
+
@pre: String?
|
|
11
|
+
@to_a: Array[Integer | String | nil]
|
|
12
|
+
@to_h: Hash[Symbol, (Integer | String | nil)]
|
|
13
|
+
|
|
14
|
+
# Public API
|
|
15
|
+
def to_s: () -> String
|
|
16
|
+
def major: () -> Integer
|
|
17
|
+
def minor: () -> Integer
|
|
18
|
+
def patch: () -> Integer
|
|
19
|
+
def pre: () -> String?
|
|
20
|
+
def to_a: () -> Array[Integer | String | nil]
|
|
21
|
+
def to_h: () -> Hash[Symbol, (Integer | String | nil)]
|
|
22
|
+
|
|
23
|
+
private
|
|
24
|
+
|
|
25
|
+
def _to_a: () -> Array[String]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
module Basic
|
|
29
|
+
def self.extended: () -> void
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
module Epoch
|
|
33
|
+
EPOCH_SIZE: Integer
|
|
34
|
+
|
|
35
|
+
# Hook used when this module is extended
|
|
36
|
+
def self.extended: (untyped) -> void
|
|
37
|
+
|
|
38
|
+
module OverloadApiForEpoch
|
|
39
|
+
# The epoch component (derived)
|
|
40
|
+
def epoch: () -> Integer
|
|
41
|
+
|
|
42
|
+
# Override of Api#major returning the derived major component
|
|
43
|
+
def major: () -> Integer
|
|
44
|
+
|
|
45
|
+
# Hash representation including epoch
|
|
46
|
+
def to_h: () -> Hash[Symbol, (Integer | String | nil)]
|
|
47
|
+
|
|
48
|
+
# Array of components [epoch, major, minor, patch, pre]
|
|
49
|
+
def to_a: () -> Array[Integer | String | nil]
|
|
50
|
+
|
|
51
|
+
private
|
|
52
|
+
|
|
53
|
+
def _major: () -> Integer
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class Error < ::RuntimeError
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
module Ruby
|
|
61
|
+
RUBY_VER: ::Gem::Version
|
|
62
|
+
|
|
63
|
+
# Check if the current Ruby version is >= given version for the engine
|
|
64
|
+
def self.gte_minimum_version?: (String, ?String) -> bool
|
|
65
|
+
|
|
66
|
+
# Check if the current Ruby MAJOR.MINOR equals the given values for the engine
|
|
67
|
+
def self.actual_minor_version?: ((Integer | String), (Integer | String), ?String) -> bool
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
module Version
|
|
71
|
+
VERSION: String
|
|
72
|
+
end
|
|
73
|
+
VERSION: String
|
|
2
74
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: version_gem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Peter Boling
|
|
8
|
-
|
|
7
|
+
- Peter H. Boling
|
|
8
|
+
- Aboling0
|
|
9
|
+
bindir: exe
|
|
9
10
|
cert_chain:
|
|
10
11
|
- |
|
|
11
12
|
-----BEGIN CERTIFICATE-----
|
|
@@ -43,34 +44,34 @@ dependencies:
|
|
|
43
44
|
requirements:
|
|
44
45
|
- - "~>"
|
|
45
46
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
47
|
+
version: '2.5'
|
|
47
48
|
- - ">="
|
|
48
49
|
- !ruby/object:Gem::Version
|
|
49
|
-
version:
|
|
50
|
+
version: 2.5.14
|
|
50
51
|
type: :development
|
|
51
52
|
prerelease: false
|
|
52
53
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
54
|
requirements:
|
|
54
55
|
- - "~>"
|
|
55
56
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '
|
|
57
|
+
version: '2.5'
|
|
57
58
|
- - ">="
|
|
58
59
|
- !ruby/object:Gem::Version
|
|
59
|
-
version:
|
|
60
|
+
version: 2.5.14
|
|
60
61
|
- !ruby/object:Gem::Dependency
|
|
61
62
|
name: bundler-audit
|
|
62
63
|
requirement: !ruby/object:Gem::Requirement
|
|
63
64
|
requirements:
|
|
64
65
|
- - "~>"
|
|
65
66
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: 0.9.
|
|
67
|
+
version: 0.9.3
|
|
67
68
|
type: :development
|
|
68
69
|
prerelease: false
|
|
69
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
70
71
|
requirements:
|
|
71
72
|
- - "~>"
|
|
72
73
|
- !ruby/object:Gem::Version
|
|
73
|
-
version: 0.9.
|
|
74
|
+
version: 0.9.3
|
|
74
75
|
- !ruby/object:Gem::Dependency
|
|
75
76
|
name: rake
|
|
76
77
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -105,54 +106,86 @@ dependencies:
|
|
|
105
106
|
- - ">="
|
|
106
107
|
- !ruby/object:Gem::Version
|
|
107
108
|
version: 1.0.4
|
|
109
|
+
- !ruby/object:Gem::Dependency
|
|
110
|
+
name: anonymous_loader
|
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - "~>"
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: '0.1'
|
|
116
|
+
- - ">="
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: 0.1.3
|
|
119
|
+
type: :development
|
|
120
|
+
prerelease: false
|
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
+
requirements:
|
|
123
|
+
- - "~>"
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '0.1'
|
|
126
|
+
- - ">="
|
|
127
|
+
- !ruby/object:Gem::Version
|
|
128
|
+
version: 0.1.3
|
|
108
129
|
- !ruby/object:Gem::Dependency
|
|
109
130
|
name: appraisal2
|
|
110
131
|
requirement: !ruby/object:Gem::Requirement
|
|
111
132
|
requirements:
|
|
112
133
|
- - "~>"
|
|
113
134
|
- !ruby/object:Gem::Version
|
|
114
|
-
version: '3.
|
|
135
|
+
version: '3.2'
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: 3.2.0
|
|
115
139
|
type: :development
|
|
116
140
|
prerelease: false
|
|
117
141
|
version_requirements: !ruby/object:Gem::Requirement
|
|
118
142
|
requirements:
|
|
119
143
|
- - "~>"
|
|
120
144
|
- !ruby/object:Gem::Version
|
|
121
|
-
version: '3.
|
|
145
|
+
version: '3.2'
|
|
146
|
+
- - ">="
|
|
147
|
+
- !ruby/object:Gem::Version
|
|
148
|
+
version: 3.2.0
|
|
122
149
|
- !ruby/object:Gem::Dependency
|
|
123
150
|
name: kettle-test
|
|
124
151
|
requirement: !ruby/object:Gem::Requirement
|
|
125
152
|
requirements:
|
|
126
153
|
- - "~>"
|
|
127
154
|
- !ruby/object:Gem::Version
|
|
128
|
-
version: '
|
|
155
|
+
version: '2.0'
|
|
156
|
+
- - ">="
|
|
157
|
+
- !ruby/object:Gem::Version
|
|
158
|
+
version: 2.0.17
|
|
129
159
|
type: :development
|
|
130
160
|
prerelease: false
|
|
131
161
|
version_requirements: !ruby/object:Gem::Requirement
|
|
132
162
|
requirements:
|
|
133
163
|
- - "~>"
|
|
134
164
|
- !ruby/object:Gem::Version
|
|
135
|
-
version: '
|
|
165
|
+
version: '2.0'
|
|
166
|
+
- - ">="
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: 2.0.17
|
|
136
169
|
- !ruby/object:Gem::Dependency
|
|
137
|
-
name:
|
|
170
|
+
name: turbo_tests2
|
|
138
171
|
requirement: !ruby/object:Gem::Requirement
|
|
139
172
|
requirements:
|
|
140
173
|
- - "~>"
|
|
141
174
|
- !ruby/object:Gem::Version
|
|
142
|
-
version: '
|
|
175
|
+
version: '3.2'
|
|
143
176
|
- - ">="
|
|
144
177
|
- !ruby/object:Gem::Version
|
|
145
|
-
version:
|
|
178
|
+
version: 3.2.4
|
|
146
179
|
type: :development
|
|
147
180
|
prerelease: false
|
|
148
181
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
182
|
requirements:
|
|
150
183
|
- - "~>"
|
|
151
184
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: '
|
|
185
|
+
version: '3.2'
|
|
153
186
|
- - ">="
|
|
154
187
|
- !ruby/object:Gem::Version
|
|
155
|
-
version:
|
|
188
|
+
version: 3.2.4
|
|
156
189
|
- !ruby/object:Gem::Dependency
|
|
157
190
|
name: ruby-progressbar
|
|
158
191
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -176,7 +209,7 @@ dependencies:
|
|
|
176
209
|
version: '1.0'
|
|
177
210
|
- - ">="
|
|
178
211
|
- !ruby/object:Gem::Version
|
|
179
|
-
version: 1.0.
|
|
212
|
+
version: 1.0.8
|
|
180
213
|
type: :development
|
|
181
214
|
prerelease: false
|
|
182
215
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -186,55 +219,37 @@ dependencies:
|
|
|
186
219
|
version: '1.0'
|
|
187
220
|
- - ">="
|
|
188
221
|
- !ruby/object:Gem::Version
|
|
189
|
-
version: 1.0.
|
|
222
|
+
version: 1.0.8
|
|
190
223
|
- !ruby/object:Gem::Dependency
|
|
191
224
|
name: gitmoji-regex
|
|
192
225
|
requirement: !ruby/object:Gem::Requirement
|
|
193
226
|
requirements:
|
|
194
227
|
- - "~>"
|
|
195
228
|
- !ruby/object:Gem::Version
|
|
196
|
-
version: '
|
|
229
|
+
version: '2.0'
|
|
197
230
|
- - ">="
|
|
198
231
|
- !ruby/object:Gem::Version
|
|
199
|
-
version:
|
|
232
|
+
version: 2.0.11
|
|
200
233
|
type: :development
|
|
201
234
|
prerelease: false
|
|
202
235
|
version_requirements: !ruby/object:Gem::Requirement
|
|
203
236
|
requirements:
|
|
204
237
|
- - "~>"
|
|
205
238
|
- !ruby/object:Gem::Version
|
|
206
|
-
version: '
|
|
239
|
+
version: '2.0'
|
|
207
240
|
- - ">="
|
|
208
241
|
- !ruby/object:Gem::Version
|
|
209
|
-
version:
|
|
210
|
-
description: "\
|
|
242
|
+
version: 2.0.11
|
|
243
|
+
description: "\U0001F372 Versions are good. Versions are cool. Versions will win."
|
|
211
244
|
email:
|
|
212
245
|
- floss@galtzo.com
|
|
213
|
-
- oauth-ruby@googlegroups.com
|
|
214
246
|
executables: []
|
|
215
247
|
extensions: []
|
|
216
|
-
extra_rdoc_files:
|
|
217
|
-
- CHANGELOG.md
|
|
218
|
-
- CITATION.cff
|
|
219
|
-
- CODE_OF_CONDUCT.md
|
|
220
|
-
- CONTRIBUTING.md
|
|
221
|
-
- FUNDING.md
|
|
222
|
-
- LICENSE.txt
|
|
223
|
-
- README.md
|
|
224
|
-
- REEK
|
|
225
|
-
- RUBOCOP.md
|
|
226
|
-
- SECURITY.md
|
|
248
|
+
extra_rdoc_files: []
|
|
227
249
|
files:
|
|
228
250
|
- CHANGELOG.md
|
|
229
|
-
-
|
|
230
|
-
- CODE_OF_CONDUCT.md
|
|
231
|
-
- CONTRIBUTING.md
|
|
232
|
-
- FUNDING.md
|
|
233
|
-
- LICENSE.txt
|
|
251
|
+
- LICENSE.md
|
|
234
252
|
- README.md
|
|
235
|
-
- REEK
|
|
236
|
-
- RUBOCOP.md
|
|
237
|
-
- SECURITY.md
|
|
238
253
|
- lib/version_gem.rb
|
|
239
254
|
- lib/version_gem/api.rb
|
|
240
255
|
- lib/version_gem/basic.rb
|
|
@@ -243,37 +258,25 @@ files:
|
|
|
243
258
|
- lib/version_gem/rspec.rb
|
|
244
259
|
- lib/version_gem/ruby.rb
|
|
245
260
|
- lib/version_gem/version.rb
|
|
246
|
-
- sig/all_formatters.rbs
|
|
247
|
-
- sig/debug.rbs
|
|
248
|
-
- sig/debug_ide.rbs
|
|
249
|
-
- sig/debug_jruby.rbs
|
|
250
|
-
- sig/debugging.rbs
|
|
251
|
-
- sig/run_coverage.rbs
|
|
252
261
|
- sig/version_gem.rbs
|
|
253
|
-
- sig/version_gem/api.rbs
|
|
254
|
-
- sig/version_gem/basic.rbs
|
|
255
|
-
- sig/version_gem/epoch.rbs
|
|
256
|
-
- sig/version_gem/error.rbs
|
|
257
|
-
- sig/version_gem/ruby.rbs
|
|
258
|
-
- sig/version_gem/version.rbs
|
|
259
262
|
homepage: https://github.com/ruby-oauth/version_gem
|
|
260
263
|
licenses:
|
|
261
264
|
- MIT
|
|
262
265
|
metadata:
|
|
263
|
-
homepage_uri: https://version-gem.galtzo.com
|
|
264
|
-
source_code_uri: https://github.com/ruby-oauth/version_gem/tree/v1.1.
|
|
265
|
-
changelog_uri: https://github.com/ruby-oauth/version_gem/blob/v1.1.
|
|
266
|
+
homepage_uri: https://version-gem.galtzo.com
|
|
267
|
+
source_code_uri: https://github.com/ruby-oauth/version_gem/tree/v1.1.15
|
|
268
|
+
changelog_uri: https://github.com/ruby-oauth/version_gem/blob/v1.1.15/CHANGELOG.md
|
|
266
269
|
bug_tracker_uri: https://github.com/ruby-oauth/version_gem/issues
|
|
267
|
-
documentation_uri: https://www.rubydoc.info/gems/version_gem/1.1.
|
|
270
|
+
documentation_uri: https://www.rubydoc.info/gems/version_gem/1.1.15
|
|
268
271
|
funding_uri: https://github.com/sponsors/pboling
|
|
269
272
|
wiki_uri: https://github.com/ruby-oauth/version_gem/wiki
|
|
270
|
-
mailing_list_uri: https://groups.google.com/g/oauth-ruby
|
|
271
273
|
news_uri: https://www.railsbling.com/tags/version_gem
|
|
272
274
|
discord_uri: https://discord.gg/3qme4XHNKN
|
|
275
|
+
mailing_list_uri: https://www.rubyforum.org/tag/ruby-oauth
|
|
273
276
|
rubygems_mfa_required: 'true'
|
|
274
277
|
rdoc_options:
|
|
275
278
|
- "--title"
|
|
276
|
-
- "version_gem - \
|
|
279
|
+
- "version_gem - \U0001F372 Enhance your VERSION! Sugar for Version modules."
|
|
277
280
|
- "--main"
|
|
278
281
|
- README.md
|
|
279
282
|
- "--exclude"
|
|
@@ -287,14 +290,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
287
290
|
requirements:
|
|
288
291
|
- - ">="
|
|
289
292
|
- !ruby/object:Gem::Version
|
|
290
|
-
version:
|
|
293
|
+
version: 2.2.0
|
|
291
294
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
295
|
requirements:
|
|
293
296
|
- - ">="
|
|
294
297
|
- !ruby/object:Gem::Version
|
|
295
298
|
version: '0'
|
|
296
299
|
requirements: []
|
|
297
|
-
rubygems_version:
|
|
300
|
+
rubygems_version: 4.0.17
|
|
298
301
|
specification_version: 4
|
|
299
|
-
summary: "\
|
|
302
|
+
summary: "\U0001F372 Enhance your VERSION! Sugar for Version modules."
|
|
300
303
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
data/CITATION.cff
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: version_gem
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this work and you want to cite it,
|
|
5
|
-
then you can use the metadata from this file.
|
|
6
|
-
type: software
|
|
7
|
-
authors:
|
|
8
|
-
- given-names: Peter Hurn
|
|
9
|
-
family-names: Boling
|
|
10
|
-
email: peter@railsbling.com
|
|
11
|
-
affiliation: railsbling.com
|
|
12
|
-
orcid: 'https://orcid.org/0009-0008-8519-441X'
|
|
13
|
-
identifiers:
|
|
14
|
-
- type: url
|
|
15
|
-
value: 'https://github.com/ruby-oauth/version_gem'
|
|
16
|
-
description: version_gem
|
|
17
|
-
repository-code: 'https://github.com/ruby-oauth/version_gem'
|
|
18
|
-
abstract: >-
|
|
19
|
-
version_gem
|
|
20
|
-
license: See license file
|
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
-
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
-
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
-
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
-
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
-
identity and orientation.
|
|
11
|
-
|
|
12
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
-
diverse, inclusive, and healthy community.
|
|
14
|
-
|
|
15
|
-
## Our Standards
|
|
16
|
-
|
|
17
|
-
Examples of behavior that contributes to a positive environment for our
|
|
18
|
-
community include:
|
|
19
|
-
|
|
20
|
-
* Demonstrating empathy and kindness toward other people
|
|
21
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
-
* Giving and gracefully accepting constructive feedback
|
|
23
|
-
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
-
and learning from the experience
|
|
25
|
-
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
-
community
|
|
27
|
-
|
|
28
|
-
Examples of unacceptable behavior include:
|
|
29
|
-
|
|
30
|
-
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
-
any kind
|
|
32
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
-
* Public or private harassment
|
|
34
|
-
* Publishing others' private information, such as a physical or email address,
|
|
35
|
-
without their explicit permission
|
|
36
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
-
professional setting
|
|
38
|
-
|
|
39
|
-
## Enforcement Responsibilities
|
|
40
|
-
|
|
41
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
-
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
-
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
-
or harmful.
|
|
45
|
-
|
|
46
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
-
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
-
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
-
decisions when appropriate.
|
|
50
|
-
|
|
51
|
-
## Scope
|
|
52
|
-
|
|
53
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
-
an individual is officially representing the community in public spaces.
|
|
55
|
-
Examples of representing our community include using an official email address,
|
|
56
|
-
posting via an official social media account, or acting as an appointed
|
|
57
|
-
representative at an online or offline event.
|
|
58
|
-
|
|
59
|
-
## Enforcement
|
|
60
|
-
|
|
61
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
-
reported to the community leaders responsible for enforcement at
|
|
63
|
-
[![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact].
|
|
64
|
-
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
-
|
|
66
|
-
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
-
reporter of any incident.
|
|
68
|
-
|
|
69
|
-
## Enforcement Guidelines
|
|
70
|
-
|
|
71
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
-
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
-
|
|
74
|
-
### 1. Correction
|
|
75
|
-
|
|
76
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
-
unprofessional or unwelcome in the community.
|
|
78
|
-
|
|
79
|
-
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
-
clarity around the nature of the violation and an explanation of why the
|
|
81
|
-
behavior was inappropriate. A public apology may be requested.
|
|
82
|
-
|
|
83
|
-
### 2. Warning
|
|
84
|
-
|
|
85
|
-
**Community Impact**: A violation through a single incident or series of
|
|
86
|
-
actions.
|
|
87
|
-
|
|
88
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
-
interaction with the people involved, including unsolicited interaction with
|
|
90
|
-
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
-
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
-
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
-
ban.
|
|
94
|
-
|
|
95
|
-
### 3. Temporary Ban
|
|
96
|
-
|
|
97
|
-
**Community Impact**: A serious violation of community standards, including
|
|
98
|
-
sustained inappropriate behavior.
|
|
99
|
-
|
|
100
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
-
communication with the community for a specified period of time. No public or
|
|
102
|
-
private interaction with the people involved, including unsolicited interaction
|
|
103
|
-
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
-
Violating these terms may lead to a permanent ban.
|
|
105
|
-
|
|
106
|
-
### 4. Permanent Ban
|
|
107
|
-
|
|
108
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
-
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
-
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
-
|
|
112
|
-
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
-
community.
|
|
114
|
-
|
|
115
|
-
## Attribution
|
|
116
|
-
|
|
117
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
-
version 2.1, available at
|
|
119
|
-
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
-
|
|
121
|
-
Community Impact Guidelines were inspired by
|
|
122
|
-
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
123
|
-
|
|
124
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
126
|
-
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
-
|
|
128
|
-
[homepage]: https://www.contributor-covenant.org
|
|
129
|
-
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
130
|
-
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
131
|
-
[FAQ]: https://www.contributor-covenant.org/faq
|
|
132
|
-
[translations]: https://www.contributor-covenant.org/translations
|
|
133
|
-
[🚂maint-contact]: http://www.railsbling.com/contact
|
|
134
|
-
[🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
|