monadic 0.7.4 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b70ca70545b06fd45dbf391147624e2d2b704463
4
+ data.tar.gz: 4030ac00afbf2d31224be41ef71702d2b7b7e0ef
5
+ SHA512:
6
+ metadata.gz: 16e6ce74d343249e480f64c183a0f98fee5181542faf24267dfa18b8b14906c0633836610179a60d739bc6b5199295f40a12798f52f58ecd1c56c888894d5928
7
+ data.tar.gz: e8939d79001f11d5ca5c160fce911c5ec5db372e9d3e1d9c984593e3d7d4619bf3dcb0798ce2f80bbf7fe31260b6677b16d53492bc8d68a85faf722512065085
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Monadic
2
2
  [![Build Status](https://secure.travis-ci.org/pzol/monadic.png?branch=master)](http://travis-ci.org/pzol/monadic) [![endorse](http://api.coderwall.com/pzol/endorsecount.png)](http://coderwall.com/pzol)
3
3
 
4
+ I am currently working on a successor, currently under the working name [Deterministic](http://github.com/pzol/deterministic). Check it out and let me know your thoughts and wishes.
5
+
4
6
  helps dealing with exceptional situations, it comes from the sphere of functional programming and bringing the goodies I have come to love in [Scala](http://www.scala-lang.org/) and [Haskell](http://www.haskell.org/) to my ruby projects.
5
7
 
6
8
  My motivation to create this gem was that I often work with nested Hashes and need to reach deeply inside of them so my code is sprinkled with things like some_hash.fetch(:one, {}).fetch(:two, {}).fetch(:three, "unknown").
@@ -1,3 +1,3 @@
1
1
  module Monadic
2
- VERSION = "0.7.4"
2
+ VERSION = "0.8.0"
3
3
  end
data/monadic.gemspec CHANGED
@@ -22,4 +22,5 @@ Gem::Specification.new do |gem|
22
22
  gem.add_development_dependency 'growl'
23
23
  gem.add_development_dependency 'activesupport'
24
24
  gem.add_development_dependency 'rake'
25
+ gem.add_development_dependency 'rb-fsevent', '~> 0.9.1'
25
26
  end
data/spec/maybe_spec.rb CHANGED
@@ -44,10 +44,6 @@ describe Monadic::Maybe do
44
44
  Maybe(nil).something.or(Just('')).fetch.should == Just('')
45
45
  end
46
46
 
47
- it 'Just#inspect returns Just(value)' do
48
- Just(1).inspect.should == 'Just(1)'
49
- end
50
-
51
47
  it 'works with method_missing !caution! with Monad.methods like #join' do
52
48
  Maybe([1, 2]).join(' ').should == ' '
53
49
  end
metadata CHANGED
@@ -1,128 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monadic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
5
- prerelease:
4
+ version: 0.8.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Piotr Zolnierek
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
11
+ date: 2014-01-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.9.0
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 2.9.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: guard
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: guard-rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: guard-bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: growl
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: activesupport
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rake
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rb-fsevent
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 0.9.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: 0.9.1
126
125
  description: brings some functional goodness to ruby by giving you some monads
127
126
  email:
128
127
  - pz@anixe.pl
@@ -166,27 +165,26 @@ files:
166
165
  - spec/validation_spec.rb
167
166
  homepage: http://github.com/pzol/monadic
168
167
  licenses: []
168
+ metadata: {}
169
169
  post_install_message:
170
170
  rdoc_options: []
171
171
  require_paths:
172
172
  - lib
173
173
  required_ruby_version: !ruby/object:Gem::Requirement
174
- none: false
175
174
  requirements:
176
- - - ! '>='
175
+ - - '>='
177
176
  - !ruby/object:Gem::Version
178
177
  version: '0'
179
178
  required_rubygems_version: !ruby/object:Gem::Requirement
180
- none: false
181
179
  requirements:
182
- - - ! '>='
180
+ - - '>='
183
181
  - !ruby/object:Gem::Version
184
182
  version: '0'
185
183
  requirements: []
186
184
  rubyforge_project:
187
- rubygems_version: 1.8.23
185
+ rubygems_version: 2.2.1
188
186
  signing_key:
189
- specification_version: 3
187
+ specification_version: 4
190
188
  summary: see README
191
189
  test_files:
192
190
  - spec/core_ext/object_spec.rb