Permalink
Browse files

Added Rakefile and bin directory to build a gem file.

  • Loading branch information...
1 parent 17b0c70 commit 8c7039de4fd4038a683875adc5f2aaec885de9dd @ashbb committed Mar 23, 2012
Showing with 309 additions and 1 deletion.
  1. +32 −0 Rakefile
  2. +1 −1 VERSION
  3. +23 −0 bin/pshoes
  4. +2 −0 bin/pshoes.bat
  5. +251 −0 purple_shoes.gemspec
View
@@ -0,0 +1,32 @@
+require 'rubygems'
+require 'rake'
+require 'rdoc/task'
+require 'rake/clean'
+begin
+ require 'jeweler'
+rescue LoadError
+ raise LoadError, "!!! Please install the gem: jeweler !!!"
+end
+
+Jeweler::Tasks.new do |gem|
+ gem.name = "purple_shoes"
+ gem.summary = %Q{Purple Shoes}
+ gem.description = %Q{Purple Shoes is one of colorful Shoes, written in JRuby ans SWT.}
+ gem.email = "ashbbb@gmail.com"
+ gem.executables = ["pshoes"]
+ gem.homepage = "http://github.com/ashbb/purple_shoes"
+ gem.authors = ["ashbb"]
+ gem.add_dependency 'swt'
+ gem.files = %w[bin lib static samples snapshots].map{|dir| FileList[dir + '/**/*']}.flatten << 'VERSION'
+end
+
+Rake::RDocTask.new do |t|
+ t.rdoc_dir = 'doc'
+ t.title = 'Purple Shoes'
+ t.options << '--charset' << 'utf-8'
+ t.rdoc_files.include('README.md')
+ t.rdoc_files.include('lib/purple_shoes.rb')
+ t.rdoc_files.include('lib/shoes/*.rb')
+end
+
+CLEAN.include [ 'pkg', '*.gem', 'doc' ]
View
@@ -1 +1 @@
-0.0.99
+0.0.100
View
@@ -0,0 +1,23 @@
+#!/usr/bin/env ruby
+require File.dirname(__FILE__) + '/../lib/purple_shoes'
+
+arg = ARGV[0]
+path = File.expand_path(arg.gsub(/\\/, "/")) if arg
+ARGV[0] = path
+
+case arg
+when '-m', '-men'
+ Shoes.show_manual
+when '-mjp'
+ Shoes.show_manual 'Japanese'
+when '-h', nil
+ puts "Usage: pshoes (options or app.rb)
+ -m, -men Open the built-in English manual.
+ -mjp Open the built-in Japanese manual.
+ -v Display the version info.
+ -h Show this message."
+when '-v'
+ puts IO.read File.join(DIR, '../VERSION')
+else
+ load path
+end
View
@@ -0,0 +1,2 @@
+@ECHO OFF
+@pshoes %1
View
@@ -0,0 +1,251 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = "purple_shoes"
+ s.version = "0.0.100"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["ashbb"]
+ s.date = "2012-03-23"
+ s.description = "Purple Shoes is one of colorful Shoes, written in JRuby ans SWT."
+ s.email = "ashbbb@gmail.com"
+ s.executables = ["pshoes"]
+ s.extra_rdoc_files = [
+ "README.md"
+ ]
+ s.files = [
+ "VERSION",
+ "bin/pshoes",
+ "bin/pshoes.bat",
+ "lib/plugins/video.rb",
+ "lib/purple_shoes.rb",
+ "lib/shoes/anim.rb",
+ "lib/shoes/app.rb",
+ "lib/shoes/basic.rb",
+ "lib/shoes/colors.rb",
+ "lib/shoes/download.rb",
+ "lib/shoes/help.rb",
+ "lib/shoes/helper_methods.rb",
+ "lib/shoes/main.rb",
+ "lib/shoes/manual.rb",
+ "lib/shoes/ruby.rb",
+ "lib/shoes/slot.rb",
+ "lib/shoes/style.rb",
+ "lib/shoes/text.rb",
+ "lib/shoes/url.rb",
+ "lib/shoes/widget.rb",
+ "samples/class-book.yaml",
+ "samples/cy.png",
+ "samples/loogink.png",
+ "samples/potato_chopping/1258_s001.gif",
+ "samples/potato_chopping/1258_s002.gif",
+ "samples/potato_chopping/1258_s003.gif",
+ "samples/potato_chopping/1258_s004.gif",
+ "samples/potato_chopping/1258_s005.gif",
+ "samples/potato_chopping/1258_s006.gif",
+ "samples/potato_chopping/1258_s007.gif",
+ "samples/potato_chopping/1258_s008.gif",
+ "samples/potato_chopping/1258_s009.gif",
+ "samples/potato_chopping/1258_s010.gif",
+ "samples/potato_chopping/1258_s011.gif",
+ "samples/potato_chopping/1258_s012.gif",
+ "samples/potato_chopping/1258_s013.gif",
+ "samples/potato_chopping/1258_s014.gif",
+ "samples/potato_chopping/1258_s015.gif",
+ "samples/potato_chopping/1258_s016.gif",
+ "samples/potato_chopping/1258_s017.gif",
+ "samples/potato_chopping/1258_s018.gif",
+ "samples/potato_chopping/1258_s019.gif",
+ "samples/potato_chopping/1258_s020.gif",
+ "samples/potato_chopping/1258_s021.gif",
+ "samples/potato_chopping/1258_s022.gif",
+ "samples/potato_chopping/1258_s023.gif",
+ "samples/potato_chopping/1258_s024.gif",
+ "samples/potato_chopping/1258_s025.gif",
+ "samples/potato_chopping/1258_s026.gif",
+ "samples/potato_chopping/1258_s027.gif",
+ "samples/potato_chopping/1258_s028.gif",
+ "samples/potato_chopping/1258_s029.gif",
+ "samples/potato_chopping/1258_s030.gif",
+ "samples/potato_chopping/1258_s031.gif",
+ "samples/potato_chopping/1258_s032.gif",
+ "samples/potato_chopping/1258_s033.gif",
+ "samples/potato_chopping/1258_s034.gif",
+ "samples/potato_chopping/1258_s035.gif",
+ "samples/potato_chopping/1258_s036.gif",
+ "samples/potato_chopping/1258_s037.gif",
+ "samples/potato_chopping/1258_s038.gif",
+ "samples/potato_chopping/1258_s039.gif",
+ "samples/potato_chopping/1258_s040.gif",
+ "samples/potato_chopping/1258_s041.gif",
+ "samples/potato_chopping/1258_s042.gif",
+ "samples/potato_chopping/1258_s043.gif",
+ "samples/potato_chopping/1258_s044.gif",
+ "samples/potato_chopping/1258_s045.gif",
+ "samples/potato_chopping/1258_s046.gif",
+ "samples/potato_chopping/1258_s047.gif",
+ "samples/potato_chopping/1258_s048.gif",
+ "samples/potato_chopping/1258_s049.gif",
+ "samples/potato_chopping/1258_s050.gif",
+ "samples/potato_chopping/1258_s051.gif",
+ "samples/potato_chopping/1258_s052.gif",
+ "samples/potato_chopping/1258_s053.gif",
+ "samples/potato_chopping/1258_s054.gif",
+ "samples/potato_chopping/1258_s055.gif",
+ "samples/potato_chopping/1258_s056.gif",
+ "samples/potato_chopping/1258_s057.gif",
+ "samples/potato_chopping/1258_s058.gif",
+ "samples/potato_chopping/1258_s059.gif",
+ "samples/sample1.rb",
+ "samples/sample10.rb",
+ "samples/sample11.rb",
+ "samples/sample12.rb",
+ "samples/sample13.rb",
+ "samples/sample14.rb",
+ "samples/sample15.rb",
+ "samples/sample16.rb",
+ "samples/sample17.rb",
+ "samples/sample18.rb",
+ "samples/sample19.rb",
+ "samples/sample2.rb",
+ "samples/sample20.rb",
+ "samples/sample21.rb",
+ "samples/sample22.rb",
+ "samples/sample23.rb",
+ "samples/sample24.rb",
+ "samples/sample25.rb",
+ "samples/sample27.rb",
+ "samples/sample28.rb",
+ "samples/sample29.rb",
+ "samples/sample3.rb",
+ "samples/sample30.rb",
+ "samples/sample31.rb",
+ "samples/sample34.rb",
+ "samples/sample35.rb",
+ "samples/sample36.rb",
+ "samples/sample37.rb",
+ "samples/sample38.rb",
+ "samples/sample4.rb",
+ "samples/sample40.rb",
+ "samples/sample42.rb",
+ "samples/sample43.rb",
+ "samples/sample44.rb",
+ "samples/sample45.rb",
+ "samples/sample46.rb",
+ "samples/sample47.rb",
+ "samples/sample48.rb",
+ "samples/sample49.rb",
+ "samples/sample5.rb",
+ "samples/sample50.rb",
+ "samples/sample58.rb",
+ "samples/sample6.rb",
+ "samples/sample7.rb",
+ "samples/sample8.rb",
+ "samples/sample9.rb",
+ "samples/sample99.rb",
+ "samples/sounds/102719__sarge4267__explosion.mp3",
+ "samples/sounds/145622__andybrannan__train-fog-horn-long-wyomming.aiff",
+ "samples/sounds/46492__phreaksaccount__shields1.ogg",
+ "samples/sounds/61847__simon-rue__boink-v3.wav",
+ "snapshots/sample1.png",
+ "snapshots/sample10.png",
+ "snapshots/sample11.png",
+ "snapshots/sample12.png",
+ "snapshots/sample13.png",
+ "snapshots/sample14.png",
+ "snapshots/sample15.png",
+ "snapshots/sample16.png",
+ "snapshots/sample17.png",
+ "snapshots/sample18.png",
+ "snapshots/sample19.png",
+ "snapshots/sample2.png",
+ "snapshots/sample20.png",
+ "snapshots/sample21.png",
+ "snapshots/sample22.png",
+ "snapshots/sample23.png",
+ "snapshots/sample24.png",
+ "snapshots/sample25.png",
+ "snapshots/sample27.png",
+ "snapshots/sample28.png",
+ "snapshots/sample29.png",
+ "snapshots/sample3-osx.png",
+ "snapshots/sample3.png",
+ "snapshots/sample30.png",
+ "snapshots/sample31.png",
+ "snapshots/sample33.png",
+ "snapshots/sample34.png",
+ "snapshots/sample35.png",
+ "snapshots/sample36.png",
+ "snapshots/sample37.png",
+ "snapshots/sample38.png",
+ "snapshots/sample4.png",
+ "snapshots/sample40.png",
+ "snapshots/sample42.png",
+ "snapshots/sample43.png",
+ "snapshots/sample44-linux.png",
+ "snapshots/sample44.png",
+ "snapshots/sample45.png",
+ "snapshots/sample46.png",
+ "snapshots/sample47.png",
+ "snapshots/sample48.png",
+ "snapshots/sample49.png",
+ "snapshots/sample5.png",
+ "snapshots/sample50.png",
+ "snapshots/sample58.png",
+ "snapshots/sample6.png",
+ "snapshots/sample7.png",
+ "snapshots/sample8.png",
+ "snapshots/sample9.png",
+ "snapshots/sample99.png",
+ "static/code_highlighter.js",
+ "static/code_highlighter_ruby.js",
+ "static/man-editor-notepad.png",
+ "static/man-editor-osx.png",
+ "static/man-ele-background.png",
+ "static/man-ele-border.png",
+ "static/man-ele-button.png",
+ "static/man-ele-check.png",
+ "static/man-ele-editbox.png",
+ "static/man-ele-editline.png",
+ "static/man-ele-image.png",
+ "static/man-ele-listbox.png",
+ "static/man-ele-progress.png",
+ "static/man-ele-radio.png",
+ "static/man-ele-shape.png",
+ "static/man-ele-textblock.png",
+ "static/man-ele-video.png",
+ "static/man-shot1.png",
+ "static/manual-en.txt",
+ "static/manual-ja.txt",
+ "static/manual.css",
+ "static/purple_shoes-icon.png",
+ "static/rshoes-icon.png",
+ "static/shoes-manual-apps.png",
+ "static/sound_jars/jl1.0.1.jar",
+ "static/sound_jars/jogg-0.0.7.jar",
+ "static/sound_jars/jorbis-0.0.15.jar",
+ "static/sound_jars/mp3spi1.9.5.jar",
+ "static/sound_jars/tritonus_share.jar",
+ "static/sound_jars/vorbisspi1.0.3.jar"
+ ]
+ s.homepage = "http://github.com/ashbb/purple_shoes"
+ s.require_paths = ["lib"]
+ s.rubygems_version = "1.8.16"
+ s.summary = "Purple Shoes"
+
+ if s.respond_to? :specification_version then
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<swt>, [">= 0"])
+ else
+ s.add_dependency(%q<swt>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<swt>, [">= 0"])
+ end
+end
+

0 comments on commit 8c7039d

Please sign in to comment.