Skip to content

Commit 47c0c91

Browse files
authored
Release 1.0 (#60)
1 parent dcd1d4e commit 47c0c91

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
crystal 1.0.0

shard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: monads
2-
version: 0.6.0
2+
version: 1.0.0
33

44
authors:
55
- Alexandre Lairan <lairana@free.fr>
66

7-
crystal: 0.34.0
7+
crystal: ~> 1.0.0
88

99
license: MIT
1010

1111
development_dependencies:
1212
ameba:
1313
github: crystal-ameba/ameba
14-
version: ~> 0.11.0
14+
version: ~> 0.14.2

spec/monads/list_spec.cr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,17 @@ describe Monads::List do
336336

337337
describe "#sort_by" do
338338
it "List[].sort_by {|x| x.size } == List[]" do
339-
value = Monads::List.new([] of Array(Int32)).sort_by { |x| x.size }
339+
value = Monads::List.new([] of Array(Int32)).sort_by(&.size)
340340
value.should eq(Monads::List.new([] of Array(Int32)))
341341
end
342342

343343
it "List[[1]].sort_by {|x| x.size } == List[[1]]" do
344-
value = Monads::List[[1]].sort_by { |x| x.size }
344+
value = Monads::List[[1]].sort_by(&.size)
345345
value.should eq(Monads::List[[1]])
346346
end
347347

348348
it "List[[3], [2,1], [1,2,3], [1], [-1,2]] == List[[3], [1], [2,1], [-1,2], [1,2,3]]" do
349-
value = Monads::List[[3], [2, 1], [1,2,3], [1], [-1, 2]].sort_by { |x| x.size }
349+
value = Monads::List[[3], [2, 1], [1,2,3], [1], [-1, 2]].sort_by(&.size)
350350
value.should eq(Monads::List[[3], [1], [2,1], [-1,2], [1,2,3]])
351351
end
352352
end

spec/monads/monad_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ describe Monads::Monad do
2626
value.should eq(Monads::Maybe.return(1))
2727
end
2828
end
29-
end
29+
end

spec/monads_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ require "./monads/**"
33

44
describe Monads do
55
it "should have version" do
6-
Monads::VERSION.should eq("0.7.0")
6+
Monads::VERSION.should eq("1.0.0")
77
end
88
end

src/monads.cr

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
require "./monads/*"
22

33
module Monads
4-
# Requirements for 1.0.0
5-
# - Documentation
6-
VERSION = "0.6.0"
4+
VERSION = "1.0.0"
75
end

0 commit comments

Comments
 (0)