option 1.2.0 → 1.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3dd34fb171dfcc1862b66d435d6f8d3b6c1d143e
4
- data.tar.gz: ebf4273da8e4e9d2a30de1408dd87e7fe7ea181f
2
+ SHA256:
3
+ metadata.gz: 8d62b3e8f924c0460d6f8c1d33e5ca1c2b32ec3e4ed57c51357c31463fe0144a
4
+ data.tar.gz: 8046156564e161b894f525f7ec27c1c096a54ba8faf8ab1a8f405281e12a7c0c
5
5
  SHA512:
6
- metadata.gz: f07ca0002272a113c26e4498d252eb9ae751bf51d9c44b9d78d63cfca91d9c4d98b5d17a0361021e959195ae77b679022bf57d867c52927a887215705029d711
7
- data.tar.gz: 30512e4b6f843b62e74cecf9a708591dc25705b39a4f15086f74174ec65964df8c4b31d501b653b0b91f490925cf355f042f29e2c1090faf74f0c3f097ac156f
6
+ metadata.gz: e56d12174634bcbb184cb2a6a0f173cf4b36ed09be2b6889750ced4f7d234e434f50209835532eea7a0cf484ca7cea40a6cc26169f3503f70fd6a4590a002b54
7
+ data.tar.gz: 7449965349fbacfd90665cce8ec3af2af7896836e687177ccd33b81344af1d0924ae10912d1202f70a0085c23811f9449f570fe74a41812027ab812e77e9e2a8
data/.gitignore CHANGED
@@ -16,3 +16,5 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .rvmrc
19
+
20
+ .mise.toml
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in option.gemspec
4
- gemspec :path => "ci", :name => "option"
3
+ gemspec
data/README.md CHANGED
@@ -76,7 +76,10 @@ end
76
76
 
77
77
  1. Fork it
78
78
  2. Create your feature branch (`git checkout -b my-new-feature`)
79
- 3. Implement your feature. Patches not considered without accompanying tests.
79
+ 3. Implement your feature. Patches not considered without accompanying tests.
80
80
  4. Commit your changes (`git commit -am 'Added some feature'`)
81
81
  5. Push to the branch (`git push origin my-new-feature`)
82
82
  6. Create new Pull Request
83
+
84
+ ## License
85
+ http://rares.mit-license.org/
@@ -1,3 +1,3 @@
1
1
  module Option
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
data/option.gemspec CHANGED
@@ -3,10 +3,10 @@ require File.expand_path('../lib/option/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Rob Ares"]
6
- gem.email = ["rob.ares@gmail.com"]
6
+ gem.email = [""]
7
7
  gem.description = %q{Ruby port of Scala's Option Monad}
8
8
  gem.summary = %q{Option attempts to be faithful to the useful parts of the scala api. We lose the type safety but still is quite useful when dealing with optional values.}
9
- gem.homepage = "http://www.github.com/rares/option"
9
+ gem.homepage = "http://www.gitlab.com/rob.ares/option"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -15,9 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Option::VERSION
17
17
 
18
- gem.signing_key = "/Volumes/External/gem-private_key.pem"
19
- gem.cert_chain = ["gem-public_cert.pem"]
20
-
21
- gem.add_development_dependency "rake", "= 0.9.2.2"
22
- gem.add_development_dependency "minitest", "= 3.4.0"
18
+ gem.add_development_dependency "minitest", ">= 5.20.0"
23
19
  end
@@ -11,21 +11,21 @@ describe "Option" do
11
11
  describe "left identity" do
12
12
 
13
13
  it "obeys (return x) >>= f == f x" do
14
- some.flat_map(&upcase).must_equal(upcase.call(some.get))
14
+ _(some.flat_map(&upcase)).must_equal(upcase.call(some.get))
15
15
  end
16
16
  end
17
17
 
18
18
  describe "right identity" do
19
19
 
20
20
  it "obeys m >>= return == m" do
21
- some.flat_map { |v| Some(v) }.must_equal(some)
21
+ _(some.flat_map { |v| Some(v) }).must_equal(some)
22
22
  end
23
23
  end
24
24
 
25
25
  describe "associative composition" do
26
26
 
27
27
  it "obeys (m >>= f) >>= g == m >>= (\\x -> f x >>= g)" do
28
- some.flat_map(&upcase).flat_map(&empty).
28
+ _(some.flat_map(&upcase).flat_map(&empty)).
29
29
  must_equal(upcase.call(some.get).flat_map(&empty))
30
30
  end
31
31
  end
data/spec/option_spec.rb CHANGED
@@ -3,228 +3,228 @@ require "spec_helper"
3
3
  describe NoneClass do
4
4
 
5
5
  it "#dup results in a TypeError" do
6
- lambda { None.dup }.must_raise TypeError
6
+ _ { None.dup }.must_raise TypeError
7
7
  end
8
8
 
9
9
  it "#clone results in a TypeError" do
10
- lambda { None.clone }.must_raise TypeError
10
+ _ { None.clone }.must_raise TypeError
11
11
  end
12
12
 
13
13
  it "#to_a returns an empty array" do
14
- None.to_a.must_equal([])
14
+ _(None.to_a).must_equal([])
15
15
  end
16
16
 
17
17
  it "#get raises IndexError" do
18
- lambda { None.get }.must_raise IndexError
18
+ _ { None.get }.must_raise IndexError
19
19
  end
20
20
 
21
21
  it "#get_or_else executes the block" do
22
- None.get_or_else { "Some" }.must_equal "Some"
22
+ _(None.get_or_else { "Some" }).must_equal "Some"
23
23
  end
24
24
 
25
25
  it "#each does not execute the block" do
26
26
  expected = nil
27
27
  None.each { |v| expected = v }
28
28
 
29
- expected.must_be_nil
29
+ _(expected).must_be_nil
30
30
  end
31
31
 
32
32
  it "#or_nil should return nil" do
33
- None.or_nil.must_be_nil
33
+ _(None.or_nil).must_be_nil
34
34
  end
35
35
 
36
36
  it "#present? should be false" do
37
- None.present?.must_equal(false)
37
+ _(None.present?).must_equal(false)
38
38
  end
39
39
 
40
40
  it "#empty? should be true" do
41
- None.empty?.must_equal(true)
41
+ _(None.empty?).must_equal(true)
42
42
  end
43
43
 
44
44
  it "#map should return itself" do
45
- None.map {}.must_be_none
45
+ _(None.map {}).must_be_none
46
46
  end
47
47
 
48
48
  it "#flat_map should return itself" do
49
- None.flat_map {}.must_be_none
49
+ _(None.flat_map {}).must_be_none
50
50
  end
51
51
 
52
52
  it "#exists? should return false" do
53
- None.exists? {}.must_equal(false)
53
+ _(None.exists? {}).must_equal(false)
54
54
  end
55
55
 
56
56
  it "#include? should return false" do
57
- None.include?(value).must_equal(false)
57
+ _(None.include?(subject_value)).must_equal(false)
58
58
  end
59
59
 
60
60
  it "#fold should invoke the default proc" do
61
- None.fold(proc { value }) { |v| v.to_f }.must_equal(value)
61
+ _(None.fold(proc { subject_value }) { |v| v.to_f }).must_equal(subject_value)
62
62
  end
63
63
 
64
64
  it "#filter with a true predicate returns itself" do
65
- Option(value).filter { |i| i == 12 }.must_be_some(value)
65
+ _(Option(subject_value).filter { |i| i == 12 }).must_be_some(subject_value)
66
66
  end
67
67
 
68
68
  it "#filter with a false predicate returns None" do
69
- Option(value).filter { |i| i == 1 }.must_be_none
69
+ _(Option(subject_value).filter { |i| i == 1 }).must_be_none
70
70
  end
71
71
 
72
72
  it "should be aliased to None" do
73
- None.must_be_instance_of(NoneClass)
73
+ _(None).must_be_instance_of(NoneClass)
74
74
  end
75
75
 
76
76
  it "#inside should return itself without invoking the block" do
77
77
  expected = nil
78
- None.inside { |v| expected = value }
79
- expected.must_be_nil
78
+ None.inside { |v| expected = subject_value }
79
+ _(expected).must_be_nil
80
80
  end
81
81
 
82
82
  it "#or_else should invoke the block and return an Option" do
83
- None.or_else { Some(value) }.must_be_some(value)
83
+ _(None.or_else { Some(subject_value) }).must_be_some(subject_value)
84
84
  end
85
85
 
86
86
  it "#or_else should raise a TypeError if an Option is not returned" do
87
- lambda { None.or_else { value } }.must_raise TypeError
87
+ _ { None.or_else { subject_value } }.must_raise TypeError
88
88
  end
89
89
 
90
90
  it "#flatten should return itself" do
91
- None.flatten.must_be_none
91
+ _(None.flatten).must_be_none
92
92
  end
93
93
 
94
94
  it "#error should raise a RuntimeError with the given message" do
95
- lambda { None.error("error") }.must_raise RuntimeError, "error"
95
+ _ { None.error("error") }.must_raise RuntimeError, "error"
96
96
  end
97
97
 
98
98
  it "#error should raise the error passed to it" do
99
- -> { None.error(ArgumentError.new("name")) }.must_raise ArgumentError, "name"
99
+ _ { None.error(ArgumentError.new("name")) }.must_raise ArgumentError, "name"
100
100
  end
101
101
 
102
102
  it "should assemble an Error from the arguments passed in" do
103
- -> { None.error(StandardError, "this is a problem") }.must_raise StandardError, "this is a problem"
103
+ _ { None.error(StandardError, "this is a problem") }.must_raise StandardError, "this is a problem"
104
104
  end
105
105
  end
106
106
 
107
107
  describe SomeClass do
108
108
 
109
109
  it "#to_a returns the value wrapped in an array" do
110
- Some(value).to_a.must_equal([value])
110
+ _(Some(subject_value).to_a).must_equal([subject_value])
111
111
  end
112
112
 
113
113
  it "#get returns the inner value" do
114
- Some(value).get.must_equal(value)
114
+ _(Some(subject_value).get).must_equal(subject_value)
115
115
  end
116
116
 
117
117
  it "#get_or_else does not execute the block;" do
118
118
  expected = nil
119
- Some(value).get_or_else { expected = true }
119
+ Some(subject_value).get_or_else { expected = true }
120
120
 
121
- expected.must_be_nil
121
+ _(expected).must_be_nil
122
122
  end
123
123
 
124
124
  it "#get_or_else returns the value" do
125
- Some(value).get_or_else { }.must_equal(value)
125
+ _(Some(subject_value).get_or_else { }).must_equal(subject_value)
126
126
  end
127
127
 
128
128
  it "#each executes the block passing the inner value" do
129
129
  expected = nil
130
- Some(value).each { |v| expected = v }
130
+ Some(subject_value).each { |v| expected = v }
131
131
 
132
- expected.must_equal(value)
132
+ _(expected).must_equal(subject_value)
133
133
  end
134
134
 
135
135
  it "#or_nil should return the inner value" do
136
- Some(value).or_nil.must_equal(value)
136
+ _(Some(subject_value).or_nil).must_equal(subject_value)
137
137
  end
138
138
 
139
139
  it "#present? should be true" do
140
- Some(value).present?.must_equal(true)
140
+ _(Some(subject_value).present?).must_equal(true)
141
141
  end
142
142
 
143
143
  it "#empty? should be false" do
144
- Some(value).empty?.must_equal(false)
144
+ _(Some(subject_value).empty?).must_equal(false)
145
145
  end
146
146
 
147
147
  it "#map should return the result of the proc over the value in a Some" do
148
- Some(value).map { |v| v * 2 }.must_be_some(24)
148
+ _(Some(subject_value).map { |v| v * 2 }).must_be_some(24)
149
149
  end
150
150
 
151
151
  it "#flat_map should raise TypeError if the returned value is not an Option" do
152
- lambda { Some(value).flat_map { |v| v * 2 } }.must_raise TypeError
152
+ _ { Some(subject_value).flat_map { |v| v * 2 } }.must_raise TypeError
153
153
  end
154
154
 
155
155
  it "#flat_map should return an Option value from the block" do
156
- Some(value).flat_map { |v| Option(v * 2) }.must_be_some(24)
156
+ _(Some(subject_value).flat_map { |v| Option(v * 2) }).must_be_some(24)
157
157
  end
158
158
 
159
159
  it "#flat_map can return None from the block" do
160
- Some(value).flat_map { |_| None }.must_be_none
160
+ _(Some(subject_value).flat_map { |_| None }).must_be_none
161
161
  end
162
162
 
163
163
  it "#exists? should return true when the block evaluates true" do
164
- Some(value).exists? { |v| v % 2 == 0 }.must_equal(true)
164
+ _(Some(subject_value).exists? { |v| v % 2 == 0 }).must_equal(true)
165
165
  end
166
166
 
167
167
  it "#exists? should return false when the block evaluates false" do
168
- Some(value).exists? { |v| v % 2 != 0 }.must_equal(false)
168
+ _(Some(subject_value).exists? { |v| v % 2 != 0 }).must_equal(false)
169
169
  end
170
170
 
171
171
  it "#include? should return true when the passed value and the boxed value are the same" do
172
- Some(value).include?(value).must_equal(true)
172
+ _(Some(subject_value).include?(subject_value)).must_equal(true)
173
173
  end
174
174
 
175
175
  it "#include? should return false when the passed value and the boxed value are not the same" do
176
- Some(value).include?(value + 1).must_equal(false)
176
+ _(Some(subject_value).include?(subject_value + 1)).must_equal(false)
177
177
  end
178
178
 
179
179
  it "#fold should map the proc over the value and return it" do
180
- Some(value).fold(proc { value * 2 }) { |v| v * 3 }.must_equal(36)
180
+ _(Some(subject_value).fold(proc { value * 2 }) { |v| v * 3 }).must_equal(36)
181
181
  end
182
182
 
183
183
  it "#filter should return itself" do
184
- None.filter { |i| i == 0 }.must_be_none
184
+ _(None.filter { |i| i == 0 }).must_be_none
185
185
  end
186
186
 
187
187
  it "#inside should invoke the proc and return itself" do
188
188
  expected = nil
189
- Some(value).inside { |v| expected = v }.must_be_some(value)
190
- expected.must_equal(value)
189
+ _(Some(subject_value).inside { |v| expected = v }).must_be_some(subject_value)
190
+ _(expected).must_equal(subject_value)
191
191
  end
192
192
 
193
193
  it "#or_else should return itself" do
194
- Some(value).or_else { None }.must_be_some(value)
194
+ _(Some(subject_value).or_else { None }).must_be_some(subject_value)
195
195
  end
196
196
 
197
197
  it "should wrap the creation of a Some" do
198
- Some(value).must_be_instance_of(SomeClass)
198
+ _(Some(subject_value)).must_be_instance_of(SomeClass)
199
199
  end
200
200
 
201
201
  it "should be aliased to Some" do
202
- Some.new(value).must_be_some(value)
202
+ _(Some.new(subject_value)).must_be_some(subject_value)
203
203
  end
204
204
 
205
205
  it "#flatten" do
206
- inner_value = Some(Some(Some(value))).flatten
207
- inner_value.must_be_some(value)
208
- inner_value.or_nil.must_equal(value)
206
+ inner_value = Some(Some(Some(subject_value))).flatten
207
+ _(inner_value).must_be_some(subject_value)
208
+ _(inner_value.or_nil).must_equal(subject_value)
209
209
  end
210
210
 
211
211
  it "#error should return the Some" do
212
- value = !!(Some(value).error("error") rescue false)
213
- value.must_equal true
212
+ value = !!(Some(subject_value).error("error") rescue false)
213
+ _(value).must_equal true
214
214
  end
215
215
  end
216
216
 
217
217
  describe OptionClass do
218
218
 
219
219
  it "must return a some if the passed value is not nil" do
220
- Option(value).must_be_some(value)
220
+ _(Option(subject_value)).must_be_some(subject_value)
221
221
  end
222
222
 
223
223
  it "must return a None if the passed value is nil" do
224
- Option(nil).must_be_none
224
+ _(Option(nil)).must_be_none
225
225
  end
226
226
 
227
227
  it "should do equality checks against the boxed value" do
228
- Option(value).must_equal(value)
228
+ _(Option(subject_value)).must_equal(subject_value)
229
229
  end
230
230
  end
data/spec/spec_helper.rb CHANGED
@@ -2,9 +2,9 @@ require "minitest/autorun"
2
2
  require "minitest/pride"
3
3
  require "minitest/spec"
4
4
 
5
- require "option"
5
+ require_relative "../lib/option"
6
6
 
7
- module MiniTest::Assertions
7
+ module Minitest::Assertions
8
8
 
9
9
  def assert_some(value, option, msg = nil)
10
10
  assert (option.is_a?(Some) && option.or_nil == value), "Expected Some(#{value})"
@@ -18,6 +18,6 @@ end
18
18
  OptionClass.infect_an_assertion :assert_some, :must_be_some
19
19
  OptionClass.infect_an_assertion :assert_none, :must_be_none
20
20
 
21
- def value
21
+ def subject_value
22
22
  12
23
23
  end
metadata CHANGED
@@ -1,87 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: option
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Ares
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhyb2Iu
14
- YXJlczEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
- MB4XDTE0MDMwMzE1MzYyMloXDTE1MDMwMzE1MzYyMlowPzERMA8GA1UEAwwIcm9i
16
- LmFyZXMxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALbltpKu3b5+nvN46Eew
18
- IDzCxoi9wbrbt2I9zsuF0i6BxH8It5ce+4dGHpzUTK7Kw6HHesUUL2xePE7aaf4D
19
- SfYOLqE/qVam/JqnRBHNWvBBZl/qXtcm4TS8HpO1EXaQZ8uubYnaAKF6Drgv3eUq
20
- Y/GZ9XwyVSeRJDKDtjrWLhwi+SJENbWbUIu2HelNCoscQmza9rGdciVz65IDKWxO
21
- vA7kzCVhykGxCHb/K2ICslo4+49+zB7owtvrrUWN/tuPX5CkLwNG42B3zGED+dgI
22
- Jpm12B3DuTrSn2sd1brj+PiqmR9no1fPDKPLZ9IoOZsL+gUSo2zyCciKSAFmIhUz
23
- agMCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFPRT
24
- NwXu52FT6zVrl9P0Ils7MbCOMB0GA1UdEQQWMBSBEnJvYi5hcmVzQGdtYWlsLmNv
25
- bTAdBgNVHRIEFjAUgRJyb2IuYXJlc0BnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
26
- ggEBAHlZQvEnbCVAM+peq/BDA/l4Kxzo7Pf/k1hm76P5xwThW5DDsnA0TN/tj5zN
27
- vagQHqC1rjSUyZdpsmirMATm4DpiwyIwxrSxzLHO4kSJNsX3hB9wcSdeiVc7gH1a
28
- 2rCnN1ZcvSM1lcVkRW3BX4ycyl86MkvHrgP9ytdA1tZgHQM30ZAw6h86si4TOMwJ
29
- OIuMBzMI/Ssl3C8DJlN6UlkytPjppqD/3qukepuVOm0gbKqAOlGbDEK/FfSzV0Mr
30
- 77c8ApML1B7wubSs7fykaPuXZX4VL2Gsus1znAJtqiIpuGw3cupy9mApeesCI6kO
31
- 290ocpWJbAZG98uB33L0VfcVIGs=
32
- -----END CERTIFICATE-----
33
- date: 2014-03-03 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2024-06-17 00:00:00.000000000 Z
34
12
  dependencies:
35
- - !ruby/object:Gem::Dependency
36
- name: rake
37
- requirement: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - '='
40
- - !ruby/object:Gem::Version
41
- version: 0.9.2.2
42
- type: :development
43
- prerelease: false
44
- version_requirements: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - '='
47
- - !ruby/object:Gem::Version
48
- version: 0.9.2.2
49
13
  - !ruby/object:Gem::Dependency
50
14
  name: minitest
51
15
  requirement: !ruby/object:Gem::Requirement
52
16
  requirements:
53
- - - '='
17
+ - - ">="
54
18
  - !ruby/object:Gem::Version
55
- version: 3.4.0
19
+ version: 5.20.0
56
20
  type: :development
57
21
  prerelease: false
58
22
  version_requirements: !ruby/object:Gem::Requirement
59
23
  requirements:
60
- - - '='
24
+ - - ">="
61
25
  - !ruby/object:Gem::Version
62
- version: 3.4.0
26
+ version: 5.20.0
63
27
  description: Ruby port of Scala's Option Monad
64
28
  email:
65
- - rob.ares@gmail.com
29
+ - ''
66
30
  executables: []
67
31
  extensions: []
68
32
  extra_rdoc_files: []
69
33
  files:
70
- - .gitignore
71
- - .travis.yml
34
+ - ".gitignore"
72
35
  - Gemfile
73
- - LICENSE
74
36
  - README.md
75
37
  - Rakefile
76
- - ci/option.gemspec
77
- - gem-public_cert.pem
78
38
  - lib/option.rb
79
39
  - lib/option/version.rb
80
40
  - option.gemspec
81
41
  - spec/acceptance_spec.rb
82
42
  - spec/option_spec.rb
83
43
  - spec/spec_helper.rb
84
- homepage: http://www.github.com/rares/option
44
+ homepage: http://www.gitlab.com/rob.ares/option
85
45
  licenses: []
86
46
  metadata: {}
87
47
  post_install_message:
@@ -90,17 +50,16 @@ require_paths:
90
50
  - lib
91
51
  required_ruby_version: !ruby/object:Gem::Requirement
92
52
  requirements:
93
- - - '>='
53
+ - - ">="
94
54
  - !ruby/object:Gem::Version
95
55
  version: '0'
96
56
  required_rubygems_version: !ruby/object:Gem::Requirement
97
57
  requirements:
98
- - - '>='
58
+ - - ">="
99
59
  - !ruby/object:Gem::Version
100
60
  version: '0'
101
61
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.0.14
62
+ rubygems_version: 3.5.11
104
63
  signing_key:
105
64
  specification_version: 4
106
65
  summary: Option attempts to be faithful to the useful parts of the scala api. We lose
checksums.yaml.gz.sig DELETED
@@ -1 +0,0 @@
1
- ���=����ӕ$N�7dR���I��l�DI-jG(6�!$�O�d���]� `��o?*��avK �T�~}�)]�픗��Ϝ��S�<���"�gW�5����Yzp�>�;_v ��u��k�v��v�`Pf�>8�=�?�<��'dFLDz������܎(]�hF���F���
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- language: ruby
2
- before_install:
3
- - gem install bundler
4
- rvm:
5
- - 2.0.0
6
- - 1.9.3
7
- - 1.9.2
8
- - jruby-18mode
9
- - jruby-19mode
10
- - rbx-18mode
11
- - rbx-19mode
12
- - 1.8.7
13
- - ree
14
-
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2012 Rob Ares
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/ci/option.gemspec DELETED
@@ -1,20 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../../lib/option/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Rob Ares"]
6
- gem.email = ["rob.ares@gmail.com"]
7
- gem.description = %q{Ruby port of Scala's Option Monad}
8
- gem.summary = %q{Option attempts to be faithful to the useful parts of the scala api. We lose the type safety but still is quite useful when dealing with optional values.}
9
- gem.homepage = "http://www.github.com/rares/option"
10
-
11
- gem.files = `git ls-files`.split($\)
12
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
- gem.test_files = gem.files.grep(%r{^(spec)/})
14
- gem.name = "option"
15
- gem.require_paths = ["lib"]
16
- gem.version = Option::VERSION
17
-
18
- gem.add_development_dependency "rake", "= 0.9.2.2"
19
- gem.add_development_dependency "minitest", "= 3.4.0"
20
- end
data/gem-public_cert.pem DELETED
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhyb2Iu
3
- YXJlczEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
- MB4XDTE0MDMwMzE1MzYyMloXDTE1MDMwMzE1MzYyMlowPzERMA8GA1UEAwwIcm9i
5
- LmFyZXMxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALbltpKu3b5+nvN46Eew
7
- IDzCxoi9wbrbt2I9zsuF0i6BxH8It5ce+4dGHpzUTK7Kw6HHesUUL2xePE7aaf4D
8
- SfYOLqE/qVam/JqnRBHNWvBBZl/qXtcm4TS8HpO1EXaQZ8uubYnaAKF6Drgv3eUq
9
- Y/GZ9XwyVSeRJDKDtjrWLhwi+SJENbWbUIu2HelNCoscQmza9rGdciVz65IDKWxO
10
- vA7kzCVhykGxCHb/K2ICslo4+49+zB7owtvrrUWN/tuPX5CkLwNG42B3zGED+dgI
11
- Jpm12B3DuTrSn2sd1brj+PiqmR9no1fPDKPLZ9IoOZsL+gUSo2zyCciKSAFmIhUz
12
- agMCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFPRT
13
- NwXu52FT6zVrl9P0Ils7MbCOMB0GA1UdEQQWMBSBEnJvYi5hcmVzQGdtYWlsLmNv
14
- bTAdBgNVHRIEFjAUgRJyb2IuYXJlc0BnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
15
- ggEBAHlZQvEnbCVAM+peq/BDA/l4Kxzo7Pf/k1hm76P5xwThW5DDsnA0TN/tj5zN
16
- vagQHqC1rjSUyZdpsmirMATm4DpiwyIwxrSxzLHO4kSJNsX3hB9wcSdeiVc7gH1a
17
- 2rCnN1ZcvSM1lcVkRW3BX4ycyl86MkvHrgP9ytdA1tZgHQM30ZAw6h86si4TOMwJ
18
- OIuMBzMI/Ssl3C8DJlN6UlkytPjppqD/3qukepuVOm0gbKqAOlGbDEK/FfSzV0Mr
19
- 77c8ApML1B7wubSs7fykaPuXZX4VL2Gsus1znAJtqiIpuGw3cupy9mApeesCI6kO
20
- 290ocpWJbAZG98uB33L0VfcVIGs=
21
- -----END CERTIFICATE-----
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- ���� >�4�%L�98
2
- E;h@A4;^��˜��|Q��ܡX�[�� $�Xf���\R!*d���c� =[%�4�}�#�P�~&�V��b��$�����B��q�B��g�_R�I ֵ����*“��IJ�}�fL�v���+�KO����h��0_�}��崅 n��Mc2�D�Ϯ�:����>u_�'�j�蕥6�QYP���,Ӿ*o�-I���͖��m�qFW�Ts��In�w+���2�Q�͒
metadata.gz.sig DELETED
Binary file