Skip to content

Commit

Permalink
Release as a gem
Browse files Browse the repository at this point in the history
  • Loading branch information
tomstuart committed Aug 2, 2014
1 parent 2a9426c commit fcbf979
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Gemfile.lock
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source 'https://rubygems.org/'

gem 'rspec', '~> 3.0.0'
gemspec
22 changes: 0 additions & 22 deletions Gemfile.lock

This file was deleted.

22 changes: 22 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2014 Tom Stuart

MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 4 additions & 0 deletions lib/monads.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'monads/eventually'
require 'monads/many'
require 'monads/optional'
require 'monads/version'
3 changes: 3 additions & 0 deletions lib/monads/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Monads
VERSION = '0.0.1'
end
19 changes: 19 additions & 0 deletions monads.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'monads/version'

Gem::Specification.new do |spec|
spec.name = 'monads'
spec.version = Monads::VERSION
spec.author = 'Tom Stuart'
spec.email = '[email protected]'
spec.summary = 'Simple Ruby implementations of some common monads.'
spec.homepage = 'https://github.com/tomstuart/monads'
spec.license = 'MIT'

spec.files = `git ls-files -z`.split("\x0")
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_development_dependency 'rspec', '~> 3.0', '>= 3.0.0'
end

0 comments on commit fcbf979

Please sign in to comment.