lucie-lib 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucie/app.rb +7 -6
- data/lib/lucie/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b12bd295a200a26a1dbfa7051e5293e3cc6c2b1d
|
4
|
+
data.tar.gz: 0ecdf8e4ebf0a535477b951ed3ff8e12891083ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef96258e5908bc5849185ddc547235c2e4ad536dcc52d5b1282bb8197e5ae75f554e8f9562016f6d52b6a0cc9ad21777366ea6df20901b9976bc0e7607118b3b
|
7
|
+
data.tar.gz: 3106c5a14a5ffb32198f70b046e3e184e7c801d0e3791b0d225e6fa9aeb0d268192f48dc03c98c6dfd0de12aef57de3bbd8607922c8032f8b9ed3e623d5a0b00
|
data/lib/lucie/app.rb
CHANGED
@@ -18,15 +18,15 @@ module Lucie
|
|
18
18
|
attr_reader :root
|
19
19
|
attr_reader :pwd
|
20
20
|
|
21
|
-
def self.run(command = ARGV, root = nil)
|
21
|
+
def self.run(command = ARGV, root = nil, pwd = nil)
|
22
22
|
root ||= File.expand_path("..", File.dirname(Kernel.caller[0]))
|
23
|
-
instance = self.init(command, root)
|
23
|
+
instance = self.init(command, root, pwd)
|
24
24
|
self.start(instance)
|
25
25
|
end
|
26
26
|
|
27
|
-
def self.init(command = ARGV, root = nil)
|
27
|
+
def self.init(command = ARGV, root = nil, pwd = nil)
|
28
28
|
root ||= File.expand_path("..", File.dirname(Kernel.caller[0]))
|
29
|
-
self.new(command, root)
|
29
|
+
self.new(command, root, pwd)
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.start(instance)
|
@@ -34,12 +34,13 @@ module Lucie
|
|
34
34
|
instance.exit_value
|
35
35
|
end
|
36
36
|
|
37
|
-
def initialize(command, root)
|
37
|
+
def initialize(command, root, pwd = nil)
|
38
38
|
@root = root
|
39
39
|
@command = CommandLineParser.new(command)
|
40
40
|
@exit_value ||= 0
|
41
41
|
@task = nil
|
42
|
-
@pwd = ENV["PWD"]
|
42
|
+
@pwd = pwd || ENV["PWD"]
|
43
|
+
Dir.chdir(@pwd)
|
43
44
|
end
|
44
45
|
|
45
46
|
def start
|
data/lib/lucie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucie-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nucc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.0.
|
120
|
+
rubygems_version: 2.0.5
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Library part of Lucie framework. Use only this gem, if you don't need project
|