Skip to content

Commit

Permalink
Release 1.0 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-lairan authored Mar 29, 2021
1 parent dcd1d4e commit 47c0c91
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
crystal 1.0.0
6 changes: 3 additions & 3 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: monads
version: 0.6.0
version: 1.0.0

authors:
- Alexandre Lairan <[email protected]>

crystal: 0.34.0
crystal: ~> 1.0.0

license: MIT

development_dependencies:
ameba:
github: crystal-ameba/ameba
version: ~> 0.11.0
version: ~> 0.14.2
6 changes: 3 additions & 3 deletions spec/monads/list_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -336,17 +336,17 @@ describe Monads::List do

describe "#sort_by" do
it "List[].sort_by {|x| x.size } == List[]" do
value = Monads::List.new([] of Array(Int32)).sort_by { |x| x.size }
value = Monads::List.new([] of Array(Int32)).sort_by(&.size)
value.should eq(Monads::List.new([] of Array(Int32)))
end

it "List[[1]].sort_by {|x| x.size } == List[[1]]" do
value = Monads::List[[1]].sort_by { |x| x.size }
value = Monads::List[[1]].sort_by(&.size)
value.should eq(Monads::List[[1]])
end

it "List[[3], [2,1], [1,2,3], [1], [-1,2]] == List[[3], [1], [2,1], [-1,2], [1,2,3]]" do
value = Monads::List[[3], [2, 1], [1,2,3], [1], [-1, 2]].sort_by { |x| x.size }
value = Monads::List[[3], [2, 1], [1,2,3], [1], [-1, 2]].sort_by(&.size)
value.should eq(Monads::List[[3], [1], [2,1], [-1,2], [1,2,3]])
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/monads/monad_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ describe Monads::Monad do
value.should eq(Monads::Maybe.return(1))
end
end
end
end
2 changes: 1 addition & 1 deletion spec/monads_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ require "./monads/**"

describe Monads do
it "should have version" do
Monads::VERSION.should eq("0.7.0")
Monads::VERSION.should eq("1.0.0")
end
end
4 changes: 1 addition & 3 deletions src/monads.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require "./monads/*"

module Monads
# Requirements for 1.0.0
# - Documentation
VERSION = "0.6.0"
VERSION = "1.0.0"
end

0 comments on commit 47c0c91

Please sign in to comment.