multi_range 1.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +46 -0
- data/.gitignore +60 -60
- data/.rubocop.yml +1174 -1174
- data/CHANGELOG.md +38 -16
- data/CODE_OF_CONDUCT.md +49 -49
- data/LICENSE +21 -21
- data/README.md +238 -198
- 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 -143
- data/lib/multi_range/version.rb +5 -5
- data/multi_range.gemspec +47 -43
- metadata +36 -10
- data/.travis.yml +0 -29
- data/gemfiles/ruby_1_8_7.gemfile +0 -10
data/lib/multi_range/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class MultiRange
|
4
|
-
VERSION = '1.0
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class MultiRange
|
4
|
+
VERSION = '2.1.0'
|
5
|
+
end
|
data/multi_range.gemspec
CHANGED
@@ -1,43 +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 = '
|
13
|
-
spec.description = '
|
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.
|
38
|
-
|
39
|
-
spec.add_development_dependency '
|
40
|
-
spec.add_development_dependency '
|
41
|
-
|
42
|
-
spec.
|
43
|
-
|
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: 1.0
|
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
|
@@ -58,6 +58,20 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '5.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: minitest-color
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.0.2
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.0.2
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: backports
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,17 +100,31 @@ dependencies:
|
|
86
100
|
- - "~>"
|
87
101
|
- !ruby/object:Gem::Version
|
88
102
|
version: 1.1.1
|
89
|
-
|
90
|
-
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: fast_interval_tree
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.2.0
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.2.0
|
117
|
+
description: Allow you to manipulate a group of ranges. Such as merging overlapping
|
118
|
+
ranges, doing ranges union, intersection, difference, and so on.
|
91
119
|
email:
|
92
120
|
- mrtmrt15xn@yahoo.com.tw
|
93
121
|
executables: []
|
94
122
|
extensions: []
|
95
123
|
extra_rdoc_files: []
|
96
124
|
files:
|
125
|
+
- ".github/workflows/ruby.yml"
|
97
126
|
- ".gitignore"
|
98
127
|
- ".rubocop.yml"
|
99
|
-
- ".travis.yml"
|
100
128
|
- CHANGELOG.md
|
101
129
|
- CODE_OF_CONDUCT.md
|
102
130
|
- LICENSE
|
@@ -105,7 +133,6 @@ files:
|
|
105
133
|
- bin/console
|
106
134
|
- bin/setup
|
107
135
|
- gemfiles/Gemfile
|
108
|
-
- gemfiles/ruby_1_8_7.gemfile
|
109
136
|
- lib/multi_range.rb
|
110
137
|
- lib/multi_range/version.rb
|
111
138
|
- multi_range.gemspec
|
@@ -126,16 +153,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
153
|
requirements:
|
127
154
|
- - ">="
|
128
155
|
- !ruby/object:Gem::Version
|
129
|
-
version: '0'
|
156
|
+
version: '2.0'
|
130
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
158
|
requirements:
|
132
159
|
- - ">="
|
133
160
|
- !ruby/object:Gem::Version
|
134
161
|
version: '0'
|
135
162
|
requirements: []
|
136
|
-
rubygems_version: 3.0.
|
163
|
+
rubygems_version: 3.0.6
|
137
164
|
signing_key:
|
138
165
|
specification_version: 4
|
139
|
-
summary:
|
140
|
-
create easy-to-maintain gems, and so on.
|
166
|
+
summary: Allow you to manipulate a group of ranges.
|
141
167
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
env:
|
3
|
-
global:
|
4
|
-
- CC_TEST_REPORTER_ID=a2bb1313ac63f7ae7a7f13ac962870e3cdb0c345b6c60d2857807cc5153d7c3b
|
5
|
-
language: ruby
|
6
|
-
rvm:
|
7
|
-
- 2.2
|
8
|
-
- 2.6
|
9
|
-
- 2.7
|
10
|
-
gemfile:
|
11
|
-
- gemfiles/Gemfile
|
12
|
-
matrix:
|
13
|
-
include:
|
14
|
-
- dist: trusty
|
15
|
-
rvm: 1.8.7
|
16
|
-
gemfile: gemfiles/ruby_1_8_7.gemfile
|
17
|
-
before_install:
|
18
|
-
- if `ruby -e 'exit(RUBY_VERSION.to_f < 2.7)'`; then
|
19
|
-
gem i rubygems-update -v '< 3' && update_rubygems;
|
20
|
-
gem install bundler -v '< 2';
|
21
|
-
fi
|
22
|
-
- gem --version
|
23
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
24
|
-
- chmod +x ./cc-test-reporter
|
25
|
-
- ./cc-test-reporter before-build
|
26
|
-
script:
|
27
|
-
- bundle exec rake test
|
28
|
-
after_script:
|
29
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|