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 +1 -0
- data/README.rdoc +4 -4
- data/example/Rakefile +4 -0
- data/lib/furoshiki.rb +1 -5
- data/lib/furoshiki/rake_task.rb +19 -0
- data/lib/furoshiki/version.rb +1 -1
- metadata +4 -2
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
@@ -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
|
-
|
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
|
-
|
14
|
-
|
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
|
|
data/example/Rakefile
ADDED
data/lib/furoshiki.rb
CHANGED
@@ -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
|
data/lib/furoshiki/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
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
|