Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

prep for relase

  • Loading branch information...
commit 590c3ec3943f19d31e1e0de29819fbcf42b2b2dc 1 parent 4d8a8a4
@moro authored
Showing with 193 additions and 1 deletion.
  1. +9 −0 ChangeLog
  2. +153 −0 Rakefile
  3. +1 −1  lib/miso.rb
  4. +30 −0 miso.gemspec
View
9 ChangeLog
@@ -0,0 +1,9 @@
+== 0.0.2 / 2009-05-24
+
+* add optional web steps to web_ext_ja_steps.rb
+
+== 0.0.1 / 2009-05-24
+
+* initial release
+* generates japanese translated webrat_steps.rb as webrat_steps_ja.rb
+
View
153 Rakefile
@@ -0,0 +1,153 @@
+require 'rubygems'
+require 'rake'
+require 'rake/clean'
+require 'rake/testtask'
+require 'rake/packagetask'
+require 'rake/gempackagetask'
+require 'rake/rdoctask'
+require 'fileutils'
+require 'spec/rake/spectask'
+require 'lib/miso'
+include FileUtils
+
+use_rubyforge = false
+NAME = "miso"
+AUTHOR = "MOROHASHI Kyosuke"
+EMAIL = "moronatural@gmail.com"
+DESCRIPTION = "dip cukes into me."
+
+if use_rubyforge
+ require 'rake/contrib/rubyforgepublisher'
+ require 'rake/contrib/sshpublisher'
+ RUBYFORGE_PROJECT = "miso"
+ HOMEPAGE = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
+else
+ HOMEPAGE = "http://github.com/moro/#{NAME}/"
+end
+BIN_FILES = %w( )
+
+VERS = Miso::Version
+REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
+CLEAN.include ['**/.*.sw?', '*.gem', '.config']
+RDOC_OPTS = [
+ '--title', "#{NAME} documentation",
+ "--charset", "utf-8",
+ "--opname", "index.html",
+ "--line-numbers",
+ "--main", "README.rdoc",
+ "--inline-source",
+]
+
+task :default => [:spec]
+task :package => [:clean]
+
+desc "Run all specs in spec directory"
+Spec::Rake::SpecTask.new(:spec) do |t|
+ t.spec_opts = %w[--colour --format progress --loadby --reverse]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+end
+
+spec = Gem::Specification.new do |s|
+ s.name = NAME
+ s.version = VERS
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README.rdoc", "ChangeLog"]
+ s.rdoc_options += RDOC_OPTS + ['--exclude', '^(examples|extras)/']
+ s.summary = DESCRIPTION
+ s.description = DESCRIPTION
+ s.author = AUTHOR
+ s.email = EMAIL
+ s.homepage = HOMEPAGE
+ s.executables = BIN_FILES
+ s.rubyforge_project = RUBYFORGE_PROJECT if use_rubyforge
+ s.bindir = "bin"
+ s.require_path = "lib"
+ s.test_files = Dir["test/*_test.rb"]
+
+ #s.add_dependency('activesupport', '>=1.3.1')
+ #s.required_ruby_version = '>= 1.8.2'
+
+ s.files = %w(README.rdoc ChangeLog Rakefile) +
+ Dir.glob("{bin,doc,test,lib,templates,generator,extras,website,script,rails_generators}/**/*") +
+ Dir.glob("ext/**/*.{h,c,rb}") +
+ Dir.glob("examples/**/*.rb") +
+ Dir.glob("tools/*.rb") +
+ Dir.glob("rails/*.rb")
+
+ s.extensions = FileList["ext/**/extconf.rb"].to_a
+end
+
+Rake::GemPackageTask.new(spec) do |p|
+ p.need_tar = true
+ p.gem_spec = spec
+end
+
+task :install do
+ name = "#{NAME}-#{VERS}.gem"
+ sh %{rake package}
+ sh %{gem install pkg/#{name}}
+end
+
+task :uninstall => [:clean] do
+ sh %{gem uninstall #{NAME}}
+end
+
+desc 'Show information about the gem.'
+task :debug_gem do
+ puts spec.to_ruby
+end
+
+desc 'Update gem spec'
+task :gemspec do
+ open("#{NAME}.gemspec", 'w').write spec.to_ruby
+end
+
+
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'html'
+ rdoc.options += RDOC_OPTS
+ rdoc.template = "resh"
+ #rdoc.template = "#{ENV['template']}.rb" if ENV['template']
+ if ENV['DOC_FILES']
+ rdoc.rdoc_files.include(ENV['DOC_FILES'].split(/,\s*/))
+ else
+ rdoc.rdoc_files.include('README', 'ChangeLog')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ rdoc.rdoc_files.include('ext/**/*.c')
+ end
+end
+
+if use_rubyforge
+ desc "Publish to RubyForge"
+ task :rubyforge => [:rdoc, :package] do
+ require 'rubyforge'
+ Rake::RubyForgePublisher.new(RUBYFORGE_PROJECT, 'moro').upload
+ end
+
+ desc 'Package and upload the release to rubyforge.'
+ task :release => [:clean, :package] do |t|
+ v = ENV["VERSION"] or abort "Must supply VERSION=x.y.z"
+ abort "Versions don't match #{v} vs #{VERS}" unless v == VERS
+ pkg = "pkg/#{NAME}-#{VERS}"
+
+ require 'rubyforge'
+ rf = RubyForge.new.configure
+ puts "Logging in"
+ rf.login
+
+ c = rf.userconfig
+ # c["release_notes"] = description if description
+ # c["release_changes"] = changes if changes
+ c["preformatted"] = true
+
+ files = [
+ "#{pkg}.tgz",
+ "#{pkg}.gem"
+ ].compact
+
+ puts "Releasing #{NAME} v. #{VERS}"
+ rf.add_release RUBYFORGE_PROJECT, NAME, VERS, *files
+ end
+end
+
View
2  lib/miso.rb
@@ -1,4 +1,4 @@
module Miso
- Version = '0.0.1'
+ Version = '0.0.2'
end
View
30 miso.gemspec
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{miso}
+ s.version = "0.0.2"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["MOROHASHI Kyosuke"]
+ s.date = %q{2009-05-25}
+ s.description = %q{dip cukes into me.}
+ s.email = %q{moronatural@gmail.com}
+ s.extra_rdoc_files = ["README.rdoc", "ChangeLog"]
+ s.files = ["README.rdoc", "ChangeLog", "Rakefile", "lib/miso", "lib/miso.rb", "rails_generators/miso", "rails_generators/miso/miso_generator.rb", "rails_generators/miso/templates", "rails_generators/miso/templates/web_extra_ja_steps.rb", "rails_generators/miso/templates/webrat_ja_steps.rb"]
+ s.has_rdoc = true
+ s.homepage = %q{http://github.com/moro/miso/}
+ s.rdoc_options = ["--title", "miso documentation", "--charset", "utf-8", "--opname", "index.html", "--line-numbers", "--main", "README.rdoc", "--inline-source", "--exclude", "^(examples|extras)/"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{dip cukes into me.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.