Browse files

modify for bundler

  • Loading branch information...
1 parent 748e735 commit dde0c40ad386648929b9671e78de8af8ba0a19ed @kachick committed Aug 20, 2012
Showing with 30 additions and 16 deletions.
  1. +6 −0 .gitignore
  2. +3 −0 Gemfile
  3. +1 −0 Manifest.txt
  4. +2 −16 Rakefile
  5. +18 −0 structable.gemspec
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
3 Gemfile
@@ -0,0 +1,3 @@
+source 'https://rubygems.org'
+
+gemspec
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
18 Rakefile
@@ -1,16 +1,2 @@
-gem 'hoe', '~> 3.0.7'
-require 'hoe'
-require 'fileutils'
-
-Hoe.plugin :newgem
-
-$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
-end
-
-require 'newgem/tasks'
-Dir['tasks/**/*.rake'].each { |t| load t }
+#!/usr/bin/env rake
+require 'bundler/gem_tasks'
View
18 structable.gemspec
@@ -0,0 +1,18 @@
+# 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 "Struct" like API}
+ 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
+end

0 comments on commit dde0c40

Please sign in to comment.