Permalink
Browse files

Merge pull request #1 from kachick/feature/bundler+travis-ci

Feature/bundler+travis ci
  • Loading branch information...
2 parents 1687a96 + 9f26c14 commit 0652477e97feb4cf6bb763524d88e6502e31d5be @kachick committed Aug 21, 2012
Showing with 99 additions and 43 deletions.
  1. +6 −0 .gitignore
  2. +8 −0 .travis.yml
  3. +12 −0 Gemfile
  4. +1 −1 LICENSE
  5. +4 −1 Manifest.txt
  6. +14 −12 README.rdoc
  7. +7 −11 Rakefile
  8. +6 −4 example.rb → examples/README.rb
  9. +1 −0 lib/vertere.rb
  10. +1 −14 lib/vertere/ext.rb
  11. +17 −0 lib/vertere/objectextension.rb
  12. +22 −0 vertere.gemspec
View
@@ -13,6 +13,9 @@ test/tmp
test/version_tmp
tmp
+# bundler
+vendor/
+
# YARD artifacts
.yardoc
_yardoc
@@ -24,3 +27,6 @@ doc/
# editor
*~
.redcar
+
+# other
+*.lock
View
@@ -0,0 +1,8 @@
+language: ruby
+rvm:
+ - ruby-head
+ - 1.9.3
+ - 1.9.2
+ - jruby-head
+ - jruby-19mode # JRuby in 1.9 mode
+ - rbx-19mode # Rubinius in 1.9 mode
View
@@ -0,0 +1,12 @@
+source 'https://rubygems.org'
+
+gemspec
+
+group :development do
+ gem 'rake'
+ gem 'yard', '>=0.8.2.1'
+end
+
+group :test do
+ gem 'rake'
+end
View
@@ -1,4 +1,4 @@
-(The MIT X11 License)
+(The MIT X License)
Copyright (c) 2012 Kenichi Kamiya
View
@@ -3,9 +3,12 @@ LICENSE
History.rdoc
Manifest.txt
Rakefile
-example.rb
+Gemfile
+vertere.gemspec
lib/vertere.rb
lib/vertere/version.rb
+lib/vertere/objectextension.rb
lib/vertere/ext.rb
test/test_helper.rb
test/test_vertere.rb
+examples/README.rb
View
@@ -1,11 +1,10 @@
= vertere
-code :: http://github.com/kachick/vertere
-gem :: http://rubygems.org/gems/vertere
+{<img src="https://secure.travis-ci.org/kachick/vertere.png" />}[http://travis-ci.org/kachick/vertere]
== Description
-Provide a way of get wrapper objects for inverted comparisons
+Provide a way of getting wrapper objects for inverted comparisons.
== Features
@@ -22,9 +21,9 @@ Wrap below methods
require 'vertere'
-* An approaching to invert comparisons # from [ruby-talk:392128]
+* An approaching to invert comparisons
- num_chars = ["0", "1", "9", "10", "11"]
+ num_chars = %w[0 1 9 10 11]
num_chars.grep(/0/) #=> ["0", "10"]
num_chars.grep(Veretere.invert(/0/)) #=> ["1", "9", "11"]
@@ -41,19 +40,22 @@ Wrap below methods
== Requirements
* Ruby 1.9.2 or later
-
- Focusing
-
- * 1.9.3-p194
- * 1.9.2-p290
== Installation
-* gem install vertere
+ 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 X11 License
+The MIT X License
Copyright (c) 2012 Kenichi Kamiya
View
@@ -1,15 +1,11 @@
-gem 'hoe', '~> 3.0.6'
-require 'hoe'
-require 'fileutils'
+#!/usr/bin/env rake
+require 'bundler/gem_tasks'
-Hoe.plugin :newgem
+require 'rake/testtask'
-$hoe = Hoe.spec 'vertere' do
- developer 'Kenichi Kamiya', 'kachick1+ruby@gmail.com'
- self.rubyforge_name = name
- require_ruby_version '>= 1.9.2'
- dependency 'yard', '~> 0.8.1', :development
+task default: [:test]
+
+Rake::TestTask.new do |tt|
+ tt.verbose = true
end
-require 'newgem/tasks'
-Dir['tasks/**/*.rake'].each { |t| load t }
@@ -1,12 +1,14 @@
-#!/usr/bin/ruby -w
+#!/usr/bin/env ruby
-require_relative 'lib/vertere'
+$VERBOSE = true
-num_chars = ["0", "1", "9", "10", "11"].freeze
+require_relative '../lib/vertere'
+
+num_chars = %w[0 1 9 10 11].freeze
p num_chars.grep(/0/) #=> ["0", "10"]
p(/0/ =~ '0') #=> 0
-require_relative 'lib/vertere/ext'
+require_relative '../lib/vertere/ext'
p num_chars.grep(/0/.for_!) #=> ["1", "9", "11"]
p(/0/.for_! =~ '0') #=> false
View
@@ -2,6 +2,7 @@
require 'delegate'
require_relative 'vertere/version'
+require_relative 'vertere/objectextension'
module Vertere
View
@@ -1,17 +1,4 @@
-module Vertere::ObjectExtension
-
- def for_vertere
- ::Vertere.for_object self
- end
-
- alias_method :for_!, :for_vertere
-
- def comparison_inverted?
- false
- end
-
-end
-
+require_relative 'objectextension'
class Object
@@ -0,0 +1,17 @@
+module Vertere
+
+ module ObjectExtension
+
+ def for_vertere
+ ::Vertere.for_object self
+ end
+
+ alias_method :for_!, :for_vertere
+
+ def comparison_inverted?
+ false
+ end
+
+ end
+
+end
View
@@ -0,0 +1,22 @@
+# 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.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
+
+ gem.required_ruby_version = '>=1.9.2'
+ gem.add_development_dependency 'yard', '>=0.8.2.1'
+end
+

0 comments on commit 0652477

Please sign in to comment.