include_with_respect 1.0.0 → 1.0.2

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.
@@ -16,9 +16,9 @@ module IncludeWithRespect
16
16
 
17
17
  included do
18
18
  # Rename standard include to include_without_respect
19
- define_singleton_method(:include_without_respect, base.method(:include))
19
+ define_singleton_method(:include_without_respect, Module.instance_method(:include).bind(base))
20
20
  # Rename standard extend to extend_without_respect
21
- define_singleton_method(:extend_without_respect, base.method(:extend))
21
+ define_singleton_method(:extend_without_respect, Module.instance_method(:extend).bind(base))
22
22
  end
23
23
 
24
24
  class_methods do
@@ -2,7 +2,7 @@
2
2
 
3
3
  module IncludeWithRespect
4
4
  class Configuration
5
- VALID_LEVELS = %i[warning error skip silent]
5
+ VALID_LEVELS = [:warning, :error, :skip, :silent]
6
6
  attr_reader :level
7
7
 
8
8
  def initialize(**options)
@@ -21,4 +21,4 @@ module IncludeWithRespect
21
21
  raise ::IncludeWithRespect::Error, "Unexpected configuration value(s) for level: #{unexpected}"
22
22
  end
23
23
  end
24
- end
24
+ end
@@ -2,4 +2,4 @@ module ActiveRecord
2
2
  class Base
3
3
  include IncludeWithRespect::ModuleWithRespect
4
4
  end
5
- end
5
+ end
@@ -4,4 +4,4 @@ module ActiveSupport
4
4
  base.send(:include, IncludeWithRespect::ModuleWithRespect)
5
5
  end
6
6
  end
7
- end
7
+ end
@@ -3,7 +3,7 @@
3
3
  # Usage in a class:
4
4
  #
5
5
  # class MyClass
6
- # using IncludeWithRespect::ModuleWithRespect
6
+ # include IncludeWithRespect::ModuleWithRespect
7
7
  # include SomeOtherConcern
8
8
  # end
9
9
  #
@@ -1,3 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module IncludeWithRespect
2
- VERSION = '1.0.0'.freeze
4
+ # Version namespace for this gem.
5
+ module Version
6
+ # Current gem version.
7
+ VERSION = "1.0.2"
8
+ end
9
+ # Current gem version exposed at the traditional constant location.
10
+ VERSION = Version::VERSION # Traditional Constant Location
3
11
  end
@@ -1,36 +1,39 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'include_with_respect/version'
4
- require 'include_with_respect/configuration'
3
+ require "include_with_respect/configuration"
5
4
 
6
5
  # How to automatically inject into ActiveSupport::Concern,
7
6
  # or other module dependency trees?
8
7
  # Refer to inline documentation in each file.
9
- require 'include_with_respect/module_with_respect'
10
- require 'include_with_respect/concern_with_respect' if defined?(ActiveSupport)
8
+ require "include_with_respect/module_with_respect"
9
+ require_relative "include_with_respect/version"
10
+
11
+ require "include_with_respect/concern_with_respect" if defined?(ActiveSupport)
11
12
 
12
13
  # [Sometimes] We should respect our ancestors.
14
+ #
15
+ # ## Raw Usage (see lib/include_with_respect/module_with_respect for the non-intrusive interface)
16
+ #
13
17
  # If you swap `include` for `include_with_respect`, when a module is already among our ancestors does not re-include it.
14
18
  # Why?
15
19
  # Some modules have side effects on the `included` hook which can be problematic if they run more than once.
16
20
  # Additionally, including a module multiple times will override the original include,
17
21
  # but in a messy way, with potentially dangerous side effects and shared state.
22
+ #
18
23
  module IncludeWithRespect
19
24
  class Error < StandardError; end
20
25
 
21
26
  def include_with_respect(receiver, module1, *smth)
22
- @skip_include = false
23
- have_respect('included', receiver, module1, *smth) if receiver.include?(module1)
27
+ skip = receiver.include?(module1) && have_respect("included", receiver, module1, *smth)
24
28
 
25
- receiver.send(:include_without_respect, module1, *smth) unless @skip_include
29
+ receiver.send(:include_without_respect, module1, *smth) unless skip
26
30
  end
27
31
  module_function :include_with_respect
28
32
 
29
33
  def extend_with_respect(receiver, module1, *smth)
30
- @skip_include = false
31
- have_respect('extended', receiver, module1, skip, *smth) if receiver.singleton_class.include?(module1)
34
+ skip = receiver.singleton_class.include?(module1) && have_respect("extended", receiver, module1, *smth)
32
35
 
33
- receiver.send(:extend_without_respect, module1, *smth) unless @skip_include
36
+ receiver.send(:extend_without_respect, module1, *smth) unless skip
34
37
  end
35
38
  module_function :extend_with_respect
36
39
 
@@ -53,18 +56,19 @@ module IncludeWithRespect
53
56
  private
54
57
 
55
58
  def have_respect(action, receiver, module1, *smth)
56
- message = "#{module1}#{smth.any? ? " with #{smth}" : ''} already #{action} in #{receiver}"
59
+ message = "#{module1}#{" with #{smth}" if smth.any?} already #{action} in #{receiver}"
57
60
  puts "message: #{message}" if configuration.level == [:error]
58
- configuration.level.each do |level|
61
+ configuration.level.any? do |level|
59
62
  case level
60
63
  when :error
61
64
  raise ::IncludeWithRespect::Error, message
62
65
  when :warning
63
66
  puts message
64
67
  when :skip
65
- @skip_include = true
68
+ true
66
69
  else # :silent
67
70
  # NOOP
71
+ false
68
72
  end
69
73
  end
70
74
  end
@@ -0,0 +1,12 @@
1
+ module IncludeWithRespect
2
+ module Version
3
+ VERSION: String
4
+ end
5
+ VERSION: String
6
+ module Error
7
+ module Version
8
+ VERSION: String
9
+ end
10
+ VERSION: String
11
+ end
12
+ end
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,64 +1,160 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: include_with_respect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - Peter Boling
8
- autorequire:
7
+ - Peter H. Boling
9
8
  bindir: exe
10
- cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
9
+ cert_chain:
10
+ - |
11
+ -----BEGIN CERTIFICATE-----
12
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
13
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
14
+ A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
15
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
16
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
17
+ uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
18
+ LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
19
+ mZuZ5+Z7walmv6sFD9ajhzj+oIgwWfnEHkXYTR8I6VLN7MRRKGMPoZ/yvOmxb2DN
20
+ coEEHWKO9CvgYpW7asIihl/9GMpKiRkcYPm9dGQzZc6uTwom1COfW0+ZOFrDVBuV
21
+ FMQRPswZcY4Wlq0uEBLPU7hxnCL9nKK6Y9IhdDcz1mY6HZ91WImNslOSI0S8hRpj
22
+ yGOWxQIhBT3fqCBlRIqFQBudrnD9jSNpSGsFvbEijd5ns7Z9ZMehXkXDycpGAUj1
23
+ to/5cuTWWw1JqUWrKJYoifnVhtE1o1DZ+LkPtWxHtz5kjDG/zR3MG0Ula0UOavlD
24
+ qbnbcXPBnwXtTFeZ3C+yrWpE4pGnl3yGkZj9SMTlo9qnTMiPmuWKQDatAgMBAAGj
25
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQE8uWvNbPVNRXZ
26
+ HlgPbc2PCzC4bjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
27
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
28
+ ggGBAJbnUwfJQFPkBgH9cL7hoBfRtmWiCvdqdjeTmi04u8zVNCUox0A4gT982DE9
29
+ wmuN12LpdajxZONqbXuzZvc+nb0StFwmFYZG6iDwaf4BPywm2e/Vmq0YG45vZXGR
30
+ L8yMDSK1cQXjmA+ZBKOHKWavxP6Vp7lWvjAhz8RFwqF9GuNIdhv9NpnCAWcMZtpm
31
+ GUPyIWw/Cw/2wZp74QzZj6Npx+LdXoLTF1HMSJXZ7/pkxLCsB8m4EFVdb/IrW/0k
32
+ kNSfjtAfBHO8nLGuqQZVH9IBD1i9K6aSs7pT6TW8itXUIlkIUI2tg5YzW6OFfPzq
33
+ QekSkX3lZfY+HTSp/o+YvKkqWLUV7PQ7xh1ZYDtocpaHwgxe/j3bBqHE+CUPH2vA
34
+ 0V/FwdTRWcwsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
35
+ DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
36
+ L9nRqA==
37
+ -----END CERTIFICATE-----
38
+ date: 1980-01-02 00:00:00.000000000 Z
12
39
  dependencies:
13
40
  - !ruby/object:Gem::Dependency
14
- name: appraisal
41
+ name: kettle-dev
15
42
  requirement: !ruby/object:Gem::Requirement
16
43
  requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '3.1'
17
47
  - - ">="
18
48
  - !ruby/object:Gem::Version
19
- version: '0'
49
+ version: 3.1.5
20
50
  type: :development
21
51
  prerelease: false
22
52
  version_requirements: !ruby/object:Gem::Requirement
23
53
  requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '3.1'
24
57
  - - ">="
25
58
  - !ruby/object:Gem::Version
26
- version: '0'
59
+ version: 3.1.5
60
+ - !ruby/object:Gem::Dependency
61
+ name: bundler-audit
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: 0.9.3
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: 0.9.3
74
+ - !ruby/object:Gem::Dependency
75
+ name: rake
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '13.0'
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '13.0'
27
88
  - !ruby/object:Gem::Dependency
28
- name: byebug
89
+ name: require_bench
29
90
  requirement: !ruby/object:Gem::Requirement
30
91
  requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '1.0'
31
95
  - - ">="
32
96
  - !ruby/object:Gem::Version
33
- version: '0'
97
+ version: 1.0.4
34
98
  type: :development
35
99
  prerelease: false
36
100
  version_requirements: !ruby/object:Gem::Requirement
37
101
  requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '1.0'
38
105
  - - ">="
39
106
  - !ruby/object:Gem::Version
40
- version: '0'
107
+ version: 1.0.4
41
108
  - !ruby/object:Gem::Dependency
42
- name: bundler
109
+ name: anonymous_loader
43
110
  requirement: !ruby/object:Gem::Requirement
44
111
  requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '0.1'
45
115
  - - ">="
46
116
  - !ruby/object:Gem::Version
47
- version: '0'
117
+ version: 0.1.3
48
118
  type: :development
49
119
  prerelease: false
50
120
  version_requirements: !ruby/object:Gem::Requirement
51
121
  requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.1'
52
125
  - - ">="
53
126
  - !ruby/object:Gem::Version
54
- version: '0'
127
+ version: 0.1.3
55
128
  - !ruby/object:Gem::Dependency
56
- name: gem-release
129
+ name: appraisal2
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: '3.2'
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: 3.2.5
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '3.2'
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 3.2.5
148
+ - !ruby/object:Gem::Dependency
149
+ name: kettle-test
57
150
  requirement: !ruby/object:Gem::Requirement
58
151
  requirements:
59
152
  - - "~>"
60
153
  - !ruby/object:Gem::Version
61
154
  version: '2.0'
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: 2.0.23
62
158
  type: :development
63
159
  prerelease: false
64
160
  version_requirements: !ruby/object:Gem::Requirement
@@ -66,36 +162,85 @@ dependencies:
66
162
  - - "~>"
67
163
  - !ruby/object:Gem::Version
68
164
  version: '2.0'
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: 2.0.23
69
168
  - !ruby/object:Gem::Dependency
70
- name: pry-byebug
169
+ name: turbo_tests2
71
170
  requirement: !ruby/object:Gem::Requirement
72
171
  requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '3.2'
73
175
  - - ">="
74
176
  - !ruby/object:Gem::Version
75
- version: '0'
177
+ version: 3.2.12
76
178
  type: :development
77
179
  prerelease: false
78
180
  version_requirements: !ruby/object:Gem::Requirement
79
181
  requirements:
182
+ - - "~>"
183
+ - !ruby/object:Gem::Version
184
+ version: '3.2'
80
185
  - - ">="
81
186
  - !ruby/object:Gem::Version
82
- version: '0'
187
+ version: 3.2.12
83
188
  - !ruby/object:Gem::Dependency
84
- name: rake
189
+ name: ruby-progressbar
190
+ requirement: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '1.13'
195
+ type: :development
196
+ prerelease: false
197
+ version_requirements: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '1.13'
202
+ - !ruby/object:Gem::Dependency
203
+ name: stone_checksums
85
204
  requirement: !ruby/object:Gem::Requirement
86
205
  requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '1.0'
87
209
  - - ">="
88
210
  - !ruby/object:Gem::Version
89
- version: '0'
211
+ version: 1.0.9
90
212
  type: :development
91
213
  prerelease: false
92
214
  version_requirements: !ruby/object:Gem::Requirement
93
215
  requirements:
216
+ - - "~>"
217
+ - !ruby/object:Gem::Version
218
+ version: '1.0'
94
219
  - - ">="
95
220
  - !ruby/object:Gem::Version
96
- version: '0'
221
+ version: 1.0.9
97
222
  - !ruby/object:Gem::Dependency
98
- name: rspec
223
+ name: gitmoji-regex
224
+ requirement: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: '2.0'
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ version: 2.0.13
232
+ type: :development
233
+ prerelease: false
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ requirements:
236
+ - - "~>"
237
+ - !ruby/object:Gem::Version
238
+ version: '2.0'
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: 2.0.13
242
+ - !ruby/object:Gem::Dependency
243
+ name: bundler
99
244
  requirement: !ruby/object:Gem::Requirement
100
245
  requirements:
101
246
  - - ">="
@@ -109,7 +254,7 @@ dependencies:
109
254
  - !ruby/object:Gem::Version
110
255
  version: '0'
111
256
  - !ruby/object:Gem::Dependency
112
- name: rspec-block_is_expected
257
+ name: rspec
113
258
  requirement: !ruby/object:Gem::Requirement
114
259
  requirements:
115
260
  - - ">="
@@ -123,7 +268,7 @@ dependencies:
123
268
  - !ruby/object:Gem::Version
124
269
  version: '0'
125
270
  - !ruby/object:Gem::Dependency
126
- name: rubocop
271
+ name: rspec-block_is_expected
127
272
  requirement: !ruby/object:Gem::Requirement
128
273
  requirements:
129
274
  - - ">="
@@ -137,7 +282,7 @@ dependencies:
137
282
  - !ruby/object:Gem::Version
138
283
  version: '0'
139
284
  - !ruby/object:Gem::Dependency
140
- name: rubocop-rspec
285
+ name: rubocop
141
286
  requirement: !ruby/object:Gem::Requirement
142
287
  requirements:
143
288
  - - ">="
@@ -192,32 +337,16 @@ dependencies:
192
337
  - - ">="
193
338
  - !ruby/object:Gem::Version
194
339
  version: '0'
195
- description:
340
+ description: "\U0001F48E Find out if your Module include/extend hooks are misbehaving!"
196
341
  email:
197
- - peter.boling@gmail.com
342
+ - floss@galtzo.com
198
343
  executables: []
199
344
  extensions: []
200
345
  extra_rdoc_files: []
201
346
  files:
202
- - ".gitignore"
203
- - ".rspec"
204
- - ".ruby-version"
205
- - ".travis.yml"
206
- - CODE_OF_CONDUCT.md
207
- - Gemfile
208
- - LICENSE
347
+ - CHANGELOG.md
348
+ - LICENSE.md
209
349
  - README.md
210
- - Rakefile
211
- - bin/console
212
- - bin/setup
213
- - gemfiles/ruby_2.0.gemfile
214
- - gemfiles/ruby_2.1.gemfile
215
- - gemfiles/ruby_2.2.gemfile
216
- - gemfiles/ruby_2.3.gemfile
217
- - gemfiles/ruby_2.4.gemfile
218
- - gemfiles/ruby_2.5.gemfile
219
- - gemfiles/ruby_2.6.gemfile
220
- - include_with_respect.gemspec
221
350
  - lib/include_with_respect.rb
222
351
  - lib/include_with_respect/concern_with_respect.rb
223
352
  - lib/include_with_respect/configuration.rb
@@ -225,29 +354,46 @@ files:
225
354
  - lib/include_with_respect/ext/active_support/concern.rb
226
355
  - lib/include_with_respect/module_with_respect.rb
227
356
  - lib/include_with_respect/version.rb
228
- homepage: http://github.com/pboling/include_with_respect
229
- licenses: []
357
+ - sig/include_with_respect.rbs
358
+ homepage: https://github.com/galtzo-floss/include_with_respect
359
+ licenses:
360
+ - MIT
230
361
  metadata:
231
362
  homepage_uri: http://github.com/pboling/include_with_respect
232
- source_code_uri: http://github.com/pboling/include_with_respect
233
- changelog_uri: http://github.com/pboling/include_with_respect/blob/master/CHANGELOG
234
- post_install_message:
235
- rdoc_options: []
363
+ source_code_uri: https://github.com/galtzo-floss/include_with_respect/tree/v1.0.2
364
+ changelog_uri: https://github.com/galtzo-floss/include_with_respect/blob/v1.0.2/CHANGELOG.md
365
+ bug_tracker_uri: https://github.com/galtzo-floss/include_with_respect/issues
366
+ documentation_uri: https://www.rubydoc.info/gems/include_with_respect/1.0.2
367
+ funding_uri: https://github.com/sponsors/pboling
368
+ wiki_uri: https://github.com/galtzo-floss/include_with_respect/wiki
369
+ news_uri: https://www.railsbling.com/tags/include_with_respect
370
+ discord_uri: https://discord.gg/3qme4XHNKN
371
+ mailing_list_uri: https://www.rubyforum.org/tag/galtzo-floss
372
+ rubygems_mfa_required: 'true'
373
+ rdoc_options:
374
+ - "--title"
375
+ - "include_with_respect - \U0001F48E Untangle dependency trees"
376
+ - "--main"
377
+ - README.md
378
+ - "--exclude"
379
+ - "^sig/"
380
+ - "--line-numbers"
381
+ - "--inline-source"
382
+ - "--quiet"
236
383
  require_paths:
237
384
  - lib
238
385
  required_ruby_version: !ruby/object:Gem::Requirement
239
386
  requirements:
240
387
  - - ">="
241
388
  - !ruby/object:Gem::Version
242
- version: '0'
389
+ version: 1.9.2
243
390
  required_rubygems_version: !ruby/object:Gem::Requirement
244
391
  requirements:
245
392
  - - ">="
246
393
  - !ruby/object:Gem::Version
247
394
  version: '0'
248
395
  requirements: []
249
- rubygems_version: 3.0.3
250
- signing_key:
396
+ rubygems_version: 4.0.20
251
397
  specification_version: 4
252
- summary: Untangle dependency trees
398
+ summary: "\U0001F48E Untangle dependency trees"
253
399
  test_files: []
metadata.gz.sig ADDED
Binary file
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /*.gem
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
-
12
- # rspec failure tracking
13
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.6.5
data/.travis.yml DELETED
@@ -1,38 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache:
4
- bundler: true
5
- env:
6
- global:
7
- CC_TEST_REPORTER_ID=da3f62293bf581a89f1401a183a4ee30e43c2f150913635992062367771ddfd9
8
- before_install:
9
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
10
- - chmod +x ./cc-test-reporter
11
- - ./cc-test-reporter before-build
12
- - gem install bundler:1.17.3
13
- install:
14
- - bundle install --path=${BUNDLE_PATH:-vendor/bundle} # Install ruby gems
15
- script:
16
- # - bundle exec rubocop -DESP # linting
17
- - bundle exec rake # specs
18
-
19
- # Pipe the coverage data to Code Climate
20
- after_script:
21
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
22
-
23
- jobs:
24
- include:
25
- - rvm: ruby-2.0.0-p648
26
- gemfile: gemfiles/ruby_2.0.gemfile
27
- - rvm: ruby-2.1.10
28
- gemfile: gemfiles/ruby_2.1.gemfile
29
- - rvm: ruby-2.2.10
30
- gemfile: gemfiles/ruby_2.2.gemfile
31
- - rvm: ruby-2.3.8
32
- gemfile: gemfiles/ruby_2.3.gemfile
33
- - rvm: ruby-2.4.9
34
- gemfile: gemfiles/ruby_2.4.gemfile
35
- - rvm: ruby-2.5.7
36
- gemfile: gemfiles/ruby_2.5.gemfile
37
- - rvm: ruby-2.6.5
38
- gemfile: gemfiles/ruby_2.6.gemfile
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at peter.boling@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/