lazyportal 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lazyportal.rb +1 -1
- data/lib/lazyportal/cli.rb +12 -10
- metadata +1 -2
- data/Rakefile +0 -0
data/lib/lazyportal.rb
CHANGED
data/lib/lazyportal/cli.rb
CHANGED
@@ -6,24 +6,26 @@ module Lazyportal
|
|
6
6
|
# Rakefile contents includes the Tasks
|
7
7
|
# module and loads lazy's tasks
|
8
8
|
tasks = %{
|
9
|
-
|
10
|
-
|
9
|
+
require 'rubygems'
|
10
|
+
require 'lazyportal'
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
include Lazyportal::Tasks
|
13
|
+
|
14
|
+
Lazyportal::Tasks.load_tasks
|
15
15
|
}
|
16
16
|
|
17
17
|
# Use existing Rakefile if one exists
|
18
18
|
rakefile = existing_rakefile.nil? ? "Rakefile" : existing_rakefile
|
19
|
-
|
19
|
+
|
20
|
+
# Print message to tell the user
|
21
|
+
# what happened (need to print the message
|
22
|
+
# first because otherwise it sees the newly
|
23
|
+
# created Rakefile)
|
24
|
+
print_message
|
25
|
+
|
20
26
|
# Append contents to existing Rakefile
|
21
27
|
# or generate a new Rakefile
|
22
28
|
create_file rakefile, tasks, :noclobber => true
|
23
|
-
|
24
|
-
# Print message to tell the user
|
25
|
-
# what happened
|
26
|
-
print_message
|
27
29
|
end
|
28
30
|
|
29
31
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazyportal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -19,7 +19,6 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- LICENSE.txt
|
22
|
-
- Rakefile
|
23
22
|
- README.md
|
24
23
|
- TODO.txt
|
25
24
|
- lib/lazyportal/cli.rb
|
data/Rakefile
DELETED
File without changes
|