interval_notation 0.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 +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/README.md +163 -0
- data/Rakefile +2 -0
- data/TODO.md +3 -0
- data/interval_notation.gemspec +23 -0
- data/lib/interval_notation/basic_intervals.rb +263 -0
- data/lib/interval_notation/combiners.rb +120 -0
- data/lib/interval_notation/error.rb +3 -0
- data/lib/interval_notation/interval_set.rb +190 -0
- data/lib/interval_notation/operations.rb +62 -0
- data/lib/interval_notation/version.rb +3 -0
- data/lib/interval_notation.rb +117 -0
- data/spec/basic_intervals_spec.rb +140 -0
- data/spec/interval_notation_spec.rb +881 -0
- data/spec/spec_helper.rb +1 -0
- metadata +93 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'rspec'
|
metadata
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: interval_notation
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ilya Vorontsov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: interval_notation provides methods to create intervals with open or closed
|
42
|
+
boundaries or singular points, unite and intersect them, check inclusion into an
|
43
|
+
interval and so on.
|
44
|
+
email:
|
45
|
+
- prijutme4ty@gmail.com
|
46
|
+
executables: []
|
47
|
+
extensions: []
|
48
|
+
extra_rdoc_files: []
|
49
|
+
files:
|
50
|
+
- ".gitignore"
|
51
|
+
- Gemfile
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- TODO.md
|
55
|
+
- interval_notation.gemspec
|
56
|
+
- lib/interval_notation.rb
|
57
|
+
- lib/interval_notation/basic_intervals.rb
|
58
|
+
- lib/interval_notation/combiners.rb
|
59
|
+
- lib/interval_notation/error.rb
|
60
|
+
- lib/interval_notation/interval_set.rb
|
61
|
+
- lib/interval_notation/operations.rb
|
62
|
+
- lib/interval_notation/version.rb
|
63
|
+
- spec/basic_intervals_spec.rb
|
64
|
+
- spec/interval_notation_spec.rb
|
65
|
+
- spec/spec_helper.rb
|
66
|
+
homepage: https://github.com/prijutme4ty/interval_notation
|
67
|
+
licenses:
|
68
|
+
- MIT
|
69
|
+
metadata: {}
|
70
|
+
post_install_message:
|
71
|
+
rdoc_options: []
|
72
|
+
require_paths:
|
73
|
+
- lib
|
74
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
requirements: []
|
85
|
+
rubyforge_project:
|
86
|
+
rubygems_version: 2.4.5
|
87
|
+
signing_key:
|
88
|
+
specification_version: 4
|
89
|
+
summary: interval_notation allows one to work with 1D-intervals.
|
90
|
+
test_files:
|
91
|
+
- spec/basic_intervals_spec.rb
|
92
|
+
- spec/interval_notation_spec.rb
|
93
|
+
- spec/spec_helper.rb
|