Permalink
Browse files

modify for bundler & travis-ci

  • Loading branch information...
1 parent f22e8bc commit e4084675c8c6d99864c4004bbdcf094c21feea7b @kachick committed Aug 21, 2012
Showing with 100 additions and 25 deletions.
  1. +31 −0 .gitignore
  2. +8 −0 .travis.yml
  3. +12 −0 Gemfile
  4. +2 −0 Manifest.txt
  5. +18 −14 README.rdoc
  6. +7 −11 Rakefile
  7. +22 −0 flyweight.gemspec
View
31 .gitignore
@@ -1 +1,32 @@
+*.gem
+*.rbc
+.bundle
+.config
+coverage
+coverage.data
+InstalledFiles
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
+
+# bundler
+vendor/
+
+# YARD artifacts
+.yardoc
+_yardoc
+doc/
+
+# tmp-old
+.old
+
+# editor
*~
+.redcar
+
+# other
+*.lock
View
8 .travis.yml
@@ -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
12 Gemfile
@@ -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
2 Manifest.txt
@@ -3,6 +3,8 @@ LICENSE
History.rdoc
Manifest.txt
Rakefile
+Gemfile
+flyweight.gemspec
lib/flyweight.rb
test/test_helper.rb
test/test_flyweight.rb
View
32 README.rdoc
@@ -1,20 +1,18 @@
= Flyweight
-* http://github.com/kachick/flyweight
-* http://rubygems.org/gems/flyweight
-* http://rubyforge.org/projects/flyweight
+{<img src="https://secure.travis-ci.org/kachick/flyweight.png" />}[http://travis-ci.org/kachick/flyweight]
== Description
-A tiny template for the "Flyweight Pattern"
+A tiny template for the "Flyweight Pattern".
== Usage
-* setup
+* Setup
require 'flyweight'
-* overview
+* Overview
class Material
include Flyweight
@@ -38,18 +36,24 @@ A tiny template for the "Flyweight Pattern"
== Requirements
* Ruby 1.9.2 or later
-
- target release versions
-
- * 1.9.3-p125
- * 1.9.2-p290
== Installation
-* gem install flyweight
+ gem install flyweight
+
+== Links
+
+code :: https://github.com/kachick/flyweight
+issues :: https://github.com/kachick/flyweight/issues
+CI :: http://travis-ci.org/#!/kachick/flyweight
+gem :: https://rubygems.org/gems/flyweight
+gem+ :: http://metagem.info/gems/flyweight
== License
-Copyright (C) 2012 Kenichi Kamiya
+The MIT X License
+
+Copyright (c) 2012 Kenichi Kamiya
+
+See the file LICENSE for further details.
-The MIT/X11 License (See the file LICENSE)
View
18 Rakefile
@@ -1,15 +1,11 @@
-gem 'hoe', '~> 3.0.3'
-require 'hoe'
-require 'fileutils'
+#!/usr/bin/env rake
+require 'bundler/gem_tasks'
-Hoe.plugin :newgem
+require 'rake/testtask'
-$hoe = Hoe.spec 'flyweight' do
- developer 'Kenichi Kamiya', 'kachick1+ruby@gmail.com'
- self.rubyforge_name = name
- require_ruby_version '>= 1.9.2'
- dependency 'yard', '~> 0.7.5', :development
+task default: [:test]
+
+Rake::TestTask.new do |tt|
+ tt.verbose = true
end
-require 'newgem/tasks'
-Dir['tasks/**/*.rake'].each { |t| load t }
View
22 flyweight.gemspec
@@ -0,0 +1,22 @@
+# I don't know why dose occur errors below.
+# require_relative 'lib/flyweight/version'
+require File.expand_path('../lib/flyweight/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ['Kenichi Kamiya']
+ gem.email = ['kachick1+ruby@gmail.com']
+ gem.description = %q{A tiny template for the "Flyweight Pattern".}
+ gem.summary = %q{A tiny template for the "Flyweight Pattern".}
+ gem.homepage = 'https://github.com/kachick/flyweight'
+
+ 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 = 'flyweight'
+ gem.require_paths = ['lib']
+ gem.version = Flyweight::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 e408467

Please sign in to comment.