rcoli 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/LICENSE.txt +22 -0
- data/lib/rcoli/model.rb +4 -0
- data/lib/rcoli/utils.rb +5 -0
- data/lib/rcoli/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 106a3c1ccde8c7b7f61ff901bbda35c921a89a75
|
4
|
+
data.tar.gz: 0791d9b134da909ea6afa669ee7e2f555ac9258f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b663509b7dece64252688e96eeb37d74937fd25ad952db19cb7b501e8d64bcb5769fcb6170a47aa49035047394fbaeaaa6a142f93392bd9a3bdb65bba2c1892
|
7
|
+
data.tar.gz: 1c6b77aba6885ceb1c6ed0e05421ba22851c9687894f6c11e75127419ca265b2363bde879e399056856d2e38f88bb9e810c78e09cce3a142989e29e3d9894f57
|
data/Gemfile.lock
CHANGED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Jiri Pisa, Jaroslav Barton
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/rcoli/model.rb
CHANGED
@@ -224,6 +224,10 @@ module RCoLi
|
|
224
224
|
ApplicationContext.instance.devmode = true
|
225
225
|
end
|
226
226
|
|
227
|
+
if (result.options['debug'])
|
228
|
+
ApplicationContext.instance.debug = true
|
229
|
+
end
|
230
|
+
|
227
231
|
# execution of the pre block
|
228
232
|
context.instance_exec(result.options, result.arguments, &@pre_action) if (@pre_action and !result.command.value_of_skip_pre)
|
229
233
|
# execution of the main block
|
data/lib/rcoli/utils.rb
CHANGED
@@ -13,6 +13,7 @@ module RCoLi
|
|
13
13
|
|
14
14
|
def initialize
|
15
15
|
@devmode = false
|
16
|
+
@debug = false
|
16
17
|
end
|
17
18
|
|
18
19
|
end
|
@@ -97,6 +98,10 @@ def dev_mode?
|
|
97
98
|
RCoLi::ApplicationContext.instance.devmode
|
98
99
|
end
|
99
100
|
|
101
|
+
def debug?
|
102
|
+
RCoLi::ApplicationContext.instance.debug
|
103
|
+
end
|
104
|
+
|
100
105
|
def sysexec(command, *args)
|
101
106
|
halt_on_error = false
|
102
107
|
args.each do |arg|
|
data/lib/rcoli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcoli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jiri Pisa
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- .gitignore
|
65
65
|
- Gemfile
|
66
66
|
- Gemfile.lock
|
67
|
+
- LICENSE.txt
|
67
68
|
- README.md
|
68
69
|
- Rakefile
|
69
70
|
- lib/rcoli.rb
|
@@ -100,3 +101,4 @@ signing_key:
|
|
100
101
|
specification_version: 4
|
101
102
|
summary: The complete solution for commandline application written in ruby.
|
102
103
|
test_files: []
|
104
|
+
has_rdoc:
|