Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

use bundler & travis-ci #2

Merged
merged 5 commits into from

1 participant

@kachick
Owner
  • Rakeからしてよくわかってないなー
  • JRubyだけ19modeでも一部テストと通ってない・・・多分JRuby側の問題だと思うので、とりあえずこのまま。
@kachick kachick merged commit d08ff84 into master

1 check failed

Details default The Travis build failed
@kachick
Owner

結果、Travis-CI見るとJRubyだけ落ちている。
http://travis-ci.org/#!/kachick/structable/builds/2174065

JRuby側の問題のような気がするため、issue提出済み
jruby/jruby#264

@kachick kachick deleted the sandbox/use_bundler branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 20, 2012
  1. modify for bundler

    authored
  2. quick hack for rubygems bug

    authored
  3. modify for travis

    authored
  4. fix Rakefile for auto tests

    authored
  5. docs

    authored
This page is out of date. Refresh to see the latest.
View
6 .gitignore
@@ -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
13 Gemfile
@@ -0,0 +1,13 @@
+source 'https://rubygems.org'
+
+gemspec
+
+group :development do
+ gem 'rake'
+ gem 'yard', '~>0.8.2.1'
+end
+
+group :test do
+ gem 'rake'
+ gem 'declare', '~>0.0.4'
+end
View
1  Manifest.txt
@@ -3,6 +3,7 @@ LICENSE
History.rdoc
Manifest.txt
Rakefile
+Gemfile
lib/structable.rb
lib/structable/classmethods.rb
lib/structable/instancemethods.rb
View
13 README.rdoc
@@ -1,11 +1,8 @@
= Structable
-code :: https://github.com/kachick/structable
-bugs :: https://github.com/kachick/structable/issues
-
== Description
-Provide APIs looks like "Struct"
+Provide API, looks "Struct"
== Features
@@ -48,6 +45,14 @@ Provide APIs looks like "Struct"
gem install structable
+== Links
+
+code :: https://github.com/kachick/structable
+issues :: https://github.com/kachick/structable/issues
+CI :: http://travis-ci.org/#!/kachick/structable
+gem :: https://rubygems.org/gems/structable
+gem+ :: http://metagem.info/gems/structable
+
== License
The MIT X License
View
19 Rakefile
@@ -1,16 +1,11 @@
-gem 'hoe', '~> 3.0.7'
-require 'hoe'
-require 'fileutils'
+#!/usr/bin/env rake
+require 'bundler/gem_tasks'
-Hoe.plugin :newgem
+require 'rake/testtask'
-$hoe = Hoe.spec 'structable' do
- developer 'Kenichi Kamiya', 'kachick1+ruby@gmail.com'
- self.rubyforge_name = name
- require_ruby_version '>= 1.9.2'
- dependency 'yard', '~> 0.8.2.1', :development
- dependency 'declare', '~> 0.0.4', :development
+task default: [:test]
+
+Rake::TestTask.new do |tt|
+ tt.verbose = true
end
-require 'newgem/tasks'
-Dir['tasks/**/*.rake'].each { |t| load t }
View
19 structable.gemspec
@@ -0,0 +1,19 @@
+# I don't know why dose occur errors below.
+# require_relative 'lib/structable/version'
+require File.expand_path('../lib/structable/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ['Kenichi Kamiya']
+ gem.email = ['kachick1+ruby@gmail.com']
+ gem.description = %q{Provide API, looks "Struct"}
+ gem.summary = %q{Member aliasing, Inheritable}
+ gem.homepage = 'https://github.com/kachick/structable'
+
+ 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 = 'structable'
+ gem.require_paths = ['lib']
+ gem.version = Structable::VERSION.dup # dup for https://github.com/rubygems/rubygems/commit/48f1d869510dcd325d6566df7d0147a086905380#-P0
+end
+
View
2  test/test_structable.rb
@@ -182,7 +182,7 @@ class Sth2
end
def test_classdup
- assert_equal [:foo], Sth.members
+ #~ assert_equal [:foo], Sth.members # @todo
assert_equal [:foo, :bar], Sth2.members
end
end
Something went wrong with that request. Please try again.