Skip to content
Browse files

Improve environments

  • Loading branch information...
1 parent 48c5466 commit 221b43290524af38a0bfc30d55e777260756d6d0 @kachick committed Mar 19, 2013
Showing with 96 additions and 80 deletions.
  1. +1 −1 .gitignore
  2. +11 −2 .travis.yml
  3. +1 −0 .yardopts
  4. +1 −2 Gemfile
  5. 0 LICENSE → MIT-LICENSE
  6. +68 −0 README.md
  7. +0 −62 README.rdoc
  8. +2 −2 Rakefile
  9. 0 test/{test_helper.rb → helper.rb}
  10. +2 −3 test/test_vertere.rb
  11. +10 −8 vertere.gemspec
View
2 .gitignore
@@ -29,4 +29,4 @@ doc/
.redcar
# other
-*.lock
+*.lock
View
13 .travis.yml
@@ -1,8 +1,17 @@
language: ruby
rvm:
- ruby-head
+ - 2.0.0
- 1.9.3
- 1.9.2
+ - rbx-19mode
- jruby-head
- - jruby-19mode # JRuby in 1.9 mode
- - rbx-19mode # Rubinius in 1.9 mode
+ - jruby-19mode
+matrix:
+ allow_failures:
+ - rvm: ruby-head
+ - rvm: rbx-19mode
+ - rvm: jruby-head
+ - rvm: jruby-19mode
+before_install:
+ - gem install bundler
View
1 .yardopts
@@ -0,0 +1 @@
+--readme README.md lib/**/*.rb
View
3 Gemfile
@@ -4,9 +4,8 @@ gemspec
group :development do
gem 'rake'
- gem 'yard', '>=0.8.2.1'
end
group :test do
gem 'rake'
-end
+end
View
0 LICENSE → MIT-LICENSE
File renamed without changes.
View
68 README.md
@@ -0,0 +1,68 @@
+vertere
+=============
+
+[![Build Status](https://secure.travis-ci.org/kachick/vertere.png)](http://travis-ci.org/kachick/vertere)
+[![Gem Version](https://badge.fury.io/rb/vertere.png)](http://badge.fury.io/rb/vertere)
+
+Description
+-----------
+
+Get wrapper for inverted comparisons.
+
+Features
+--------
+
+### Wraps
+
+* #==
+* #===
+* #=~
+* #<=>
+
+Usage
+-----
+
+```ruby
+require 'vertere'
+
+# An approaching to invert comparisons
+num_chars = %w[0 1 9 10 11]
+num_chars.grep(/0/) #=> ["0", "10"]
+num_chars.grep(Veretere.invert(/0/)) #=> ["1", "9", "11"]
+
+# Extend core classies
+require 'vertere/ext'
+num_chars.grep(/0/.for_!) #=> ["1", "9", "11"]
+
+# And more
+num_chars.sort_by{|s|s.to_i.for_!} #=> ["11", "10", "9", "1", "0"]
+```
+
+Requirements
+-------------
+
+* [Ruby 1.9.2 or later](http://travis-ci.org/#!/kachick/vertere)
+
+Install
+-------
+
+```bash
+$ gem install vertere
+```
+
+Link
+----
+
+* [Home](http://kachick.github.com/vertere/)
+* [code](https://github.com/kachick/vertere)
+* [API](http://kachick.github.com/vertere/yard/frames.html)
+* [issues](https://github.com/kachick/vertere/issues)
+* [CI](http://travis-ci.org/#!/kachick/vertere)
+* [gem](https://rubygems.org/gems/vertere)
+
+License
+--------
+
+The MIT X11 License
+Copyright (c) 2012 Kenichi Kamiya
+See MIT-LICENSE for further details.
View
62 README.rdoc
@@ -1,62 +0,0 @@
-= vertere
-
-{<img src="https://secure.travis-ci.org/kachick/vertere.png" />}[http://travis-ci.org/kachick/vertere]
-
-== Description
-
-Provide a way of getting wrapper objects for inverted comparisons.
-
-== Features
-
-Wrap below methods
-
-* #==
-* #===
-* #=~
-* #<=>
-
-== Usage
-
-* Setup
-
- require 'vertere'
-
-* An approaching to invert comparisons
-
- num_chars = %w[0 1 9 10 11]
- num_chars.grep(/0/) #=> ["0", "10"]
- num_chars.grep(Veretere.invert(/0/)) #=> ["1", "9", "11"]
-
-* Extend Ruby's interface
-
- require 'vertere/ext'
-
- num_chars.grep(/0/.for_!) #=> ["1", "9", "11"]
-
-* And more
-
- num_chars.sort_by{|s|s.to_i.for_!} #=> ["11", "10", "9", "1", "0"]
-
-== Requirements
-
-* Ruby 1.9.2 or later
-
-== Installation
-
- gem install vertere
-
-== Links
-
-code :: https://github.com/kachick/vertere
-issues :: https://github.com/kachick/vertere/issues
-CI :: http://travis-ci.org/#!/kachick/vertere
-gem :: https://rubygems.org/gems/vertere
-gem+ :: http://metagem.info/gems/vertere
-
-== License
-
-The MIT X License
-
-Copyright (c) 2012 Kenichi Kamiya
-
-See the file LICENSE for further details.
View
4 Rakefile
@@ -7,5 +7,5 @@ task default: [:test]
Rake::TestTask.new do |tt|
tt.verbose = true
-end
-
+ tt.warning = true
+end
View
0 test/test_helper.rb → test/helper.rb
File renamed without changes.
View
5 test/test_vertere.rb
@@ -1,5 +1,4 @@
-$VERBOSE = true
-require_relative 'test_helper'
+require_relative 'helper'
class TestVertere < Test::Unit::TestCase
@@ -30,4 +29,4 @@ def test_check_methods
assert_equal(false, obj.comparison_inverted?)
assert_equal(true, obj.for_!.comparison_inverted?)
end
-end
+end
View
18 vertere.gemspec
@@ -1,22 +1,24 @@
-# I don't know why dose occur errors below.
-# require_relative 'lib/vertere/version'
require File.expand_path('../lib/vertere/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Kenichi Kamiya']
gem.email = ['kachick1+ruby@gmail.com']
- gem.description = %q{Provide a way of getting wrapper objects for inverted comparisons}
- gem.summary = %q{inverted comparisons}
- gem.homepage = 'https://github.com/kachick/vertere'
+ gem.licenses = ['MIT']
+ gem.description = %q{Get wrapper for inverted comparisons}
+ gem.summary = gem.description.dup
+ gem.homepage = 'http://kachick.github.com/vertere/'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features|declare)/})
gem.name = 'vertere'
gem.require_paths = ['lib']
- gem.version = Vertere::VERSION.dup # dup for https://github.com/rubygems/rubygems/commit/48f1d869510dcd325d6566df7d0147a086905380#-P0
+ # dup for https://github.com/rubygems/rubygems/commit/48f1d869510dcd325d6566df7d0147a086905380#-P0
+ gem.version = Vertere::VERSION.dup
gem.required_ruby_version = '>=1.9.2'
- gem.add_development_dependency 'yard', '>=0.8.2.1'
-end
+ gem.add_development_dependency 'yard', '>= 0.8.5.2', '< 2'
+ gem.add_development_dependency 'rake', '>= 10', '< 20'
+ gem.add_development_dependency 'bundler', '>= 1.3.0', '< 2'
+end

0 comments on commit 221b432

Please sign in to comment.
Something went wrong with that request. Please try again.