furoshiki 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,2 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem "rake"
@@ -6,13 +6,13 @@ In our case, you can distribute your Ruby script with 風呂敷 by adding this t
6
6
 
7
7
  require 'furoshiki'
8
8
 
9
- PackageTask.new
9
+ Furoshiki::RakeTask.new
10
10
 
11
11
  If you'd like to set a different entry point, just configure your task:
12
12
 
13
- PackageTask.new do
14
- entry "SomeClass#some_method"
15
- end
13
+ Furoshiki::RakeTask.new do
14
+ entry "SomeClass#some_method"
15
+ end
16
16
 
17
17
  and it'll do the right thing.
18
18
 
@@ -0,0 +1,4 @@
1
+ require 'rubygems'
2
+ require 'furoshiki'
3
+
4
+ Furoshiki::RakeTask.new
@@ -1,5 +1 @@
1
- module Furoshiki
2
- def self.hello
3
- "hello"
4
- end
5
- end
1
+ require_relative 'furoshiki/rake_task'
@@ -0,0 +1,19 @@
1
+ require 'rake'
2
+
3
+ module Furoshiki
4
+ class RakeTask
5
+ def initialize opts={}
6
+ yield self if block_given?
7
+
8
+ desc "Builds the package for distribution"
9
+ task "build" do
10
+ puts "You're going to build something!"
11
+ end
12
+
13
+ desc "Builds an installer"
14
+ task "install" do
15
+ puts "You're going to install something!"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,4 +1,4 @@
1
1
  module Furoshiki
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
4
4
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Steve Klabnik
@@ -34,8 +34,10 @@ files:
34
34
  - LICENSE
35
35
  - README.rdoc
36
36
  - Rakefile
37
+ - example/Rakefile
37
38
  - furoshiki.gemspec
38
39
  - lib/furoshiki.rb
40
+ - lib/furoshiki/rake_task.rb
39
41
  - lib/furoshiki/version.rb
40
42
  has_rdoc: true
41
43
  homepage: http://github.com/steveklabnik/furoshiki