multi_range 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +46 -0
- data/.gitignore +60 -60
- data/.rubocop.yml +1174 -1174
- data/CHANGELOG.md +38 -26
- data/CODE_OF_CONDUCT.md +49 -49
- data/LICENSE +21 -21
- data/README.md +238 -238
- data/Rakefile +10 -10
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/gemfiles/Gemfile +9 -9
- data/lib/multi_range.rb +236 -222
- data/lib/multi_range/version.rb +5 -5
- data/multi_range.gemspec +47 -47
- metadata +6 -7
- data/.travis.yml +0 -25
data/lib/multi_range/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class MultiRange
|
4
|
-
VERSION = '2.
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class MultiRange
|
4
|
+
VERSION = '2.1.0'
|
5
|
+
end
|
data/multi_range.gemspec
CHANGED
@@ -1,47 +1,47 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'multi_range/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'multi_range'
|
8
|
-
spec.version = MultiRange::VERSION
|
9
|
-
spec.authors = ['khiav reoy']
|
10
|
-
spec.email = ['mrtmrt15xn@yahoo.com.tw']
|
11
|
-
|
12
|
-
spec.summary = 'Allow you to manipulate a group of ranges.
|
13
|
-
spec.description = 'Allow you to manipulate a group of ranges. Such as merging overlapping ranges, doing ranges union and
|
14
|
-
spec.homepage = 'https://github.com/khiav223577/multi_range'
|
15
|
-
spec.license = 'MIT'
|
16
|
-
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
19
|
-
# if spec.respond_to?(:metadata)
|
20
|
-
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
-
# else
|
22
|
-
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
-
# end
|
24
|
-
|
25
|
-
spec.files = `git ls-files -z`.split("\x0").reject{|f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
spec.bindir = 'exe'
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/}){|f| File.basename(f) }
|
28
|
-
spec.require_paths = ['lib']
|
29
|
-
spec.metadata = {
|
30
|
-
'homepage_uri' => 'https://github.com/khiav223577/multi_range',
|
31
|
-
'changelog_uri' => 'https://github.com/khiav223577/multi_range/blob/master/CHANGELOG.md',
|
32
|
-
'source_code_uri' => 'https://github.com/khiav223577/multi_range',
|
33
|
-
'documentation_uri' => 'https://www.rubydoc.info/gems/multi_range',
|
34
|
-
'bug_tracker_uri' => 'https://github.com/khiav223577/multi_range/issues',
|
35
|
-
}
|
36
|
-
|
37
|
-
spec.required_ruby_version = '>= 2.0'
|
38
|
-
|
39
|
-
spec.add_development_dependency 'bundler', '>= 1.17', '< 3.x'
|
40
|
-
spec.add_development_dependency 'rake', '>= 10.5.0'
|
41
|
-
spec.add_development_dependency 'minitest', '~> 5.0'
|
42
|
-
spec.add_development_dependency 'minitest-color', '~> 0.0.2'
|
43
|
-
spec.add_development_dependency 'backports', '~> 3.15.0'
|
44
|
-
|
45
|
-
spec.add_dependency 'roulette-wheel-selection', '~> 1.1.1'
|
46
|
-
spec.add_dependency 'fast_interval_tree', '~> 0.2.0'
|
47
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'multi_range/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'multi_range'
|
8
|
+
spec.version = MultiRange::VERSION
|
9
|
+
spec.authors = ['khiav reoy']
|
10
|
+
spec.email = ['mrtmrt15xn@yahoo.com.tw']
|
11
|
+
|
12
|
+
spec.summary = 'Allow you to manipulate a group of ranges.'
|
13
|
+
spec.description = 'Allow you to manipulate a group of ranges. Such as merging overlapping ranges, doing ranges union, intersection, difference, and so on.'
|
14
|
+
spec.homepage = 'https://github.com/khiav223577/multi_range'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
# end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject{|f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = 'exe'
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}){|f| File.basename(f) }
|
28
|
+
spec.require_paths = ['lib']
|
29
|
+
spec.metadata = {
|
30
|
+
'homepage_uri' => 'https://github.com/khiav223577/multi_range',
|
31
|
+
'changelog_uri' => 'https://github.com/khiav223577/multi_range/blob/master/CHANGELOG.md',
|
32
|
+
'source_code_uri' => 'https://github.com/khiav223577/multi_range',
|
33
|
+
'documentation_uri' => 'https://www.rubydoc.info/gems/multi_range',
|
34
|
+
'bug_tracker_uri' => 'https://github.com/khiav223577/multi_range/issues',
|
35
|
+
}
|
36
|
+
|
37
|
+
spec.required_ruby_version = '>= 2.0'
|
38
|
+
|
39
|
+
spec.add_development_dependency 'bundler', '>= 1.17', '< 3.x'
|
40
|
+
spec.add_development_dependency 'rake', '>= 10.5.0'
|
41
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
42
|
+
spec.add_development_dependency 'minitest-color', '~> 0.0.2'
|
43
|
+
spec.add_development_dependency 'backports', '~> 3.15.0'
|
44
|
+
|
45
|
+
spec.add_dependency 'roulette-wheel-selection', '~> 1.1.1'
|
46
|
+
spec.add_dependency 'fast_interval_tree', '~> 0.2.0'
|
47
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_range
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khiav reoy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -115,16 +115,16 @@ dependencies:
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 0.2.0
|
117
117
|
description: Allow you to manipulate a group of ranges. Such as merging overlapping
|
118
|
-
ranges, doing ranges union and
|
118
|
+
ranges, doing ranges union, intersection, difference, and so on.
|
119
119
|
email:
|
120
120
|
- mrtmrt15xn@yahoo.com.tw
|
121
121
|
executables: []
|
122
122
|
extensions: []
|
123
123
|
extra_rdoc_files: []
|
124
124
|
files:
|
125
|
+
- ".github/workflows/ruby.yml"
|
125
126
|
- ".gitignore"
|
126
127
|
- ".rubocop.yml"
|
127
|
-
- ".travis.yml"
|
128
128
|
- CHANGELOG.md
|
129
129
|
- CODE_OF_CONDUCT.md
|
130
130
|
- LICENSE
|
@@ -160,9 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
rubygems_version: 3.0.
|
163
|
+
rubygems_version: 3.0.6
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
|
-
summary: Allow you to manipulate a group of ranges.
|
167
|
-
doing ranges union and difference.
|
166
|
+
summary: Allow you to manipulate a group of ranges.
|
168
167
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
env:
|
3
|
-
global:
|
4
|
-
- CC_TEST_REPORTER_ID=a2bb1313ac63f7ae7a7f13ac962870e3cdb0c345b6c60d2857807cc5153d7c3b
|
5
|
-
language: ruby
|
6
|
-
rvm:
|
7
|
-
- 2.0
|
8
|
-
- 2.2
|
9
|
-
- 2.6
|
10
|
-
- 2.7
|
11
|
-
gemfile:
|
12
|
-
- gemfiles/Gemfile
|
13
|
-
before_install:
|
14
|
-
- if `ruby -e 'exit(RUBY_VERSION.to_f < 2.7)'`; then
|
15
|
-
gem i rubygems-update -v '< 3' && update_rubygems;
|
16
|
-
gem install bundler -v '< 2';
|
17
|
-
fi
|
18
|
-
- gem --version
|
19
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
20
|
-
- chmod +x ./cc-test-reporter
|
21
|
-
- ./cc-test-reporter before-build
|
22
|
-
script:
|
23
|
-
- bundle exec rake test
|
24
|
-
after_script:
|
25
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|