rcoli 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 921fb46c2cbd5497b9113de61d816a0042449050
4
- data.tar.gz: dfdac228b77b754dc6bcf77d06ab8573b5f81ab0
3
+ metadata.gz: 106a3c1ccde8c7b7f61ff901bbda35c921a89a75
4
+ data.tar.gz: 0791d9b134da909ea6afa669ee7e2f555ac9258f
5
5
  SHA512:
6
- metadata.gz: 8c72236617c59c39fc9dd25fbdc601a4f41a0ed0c0437066922064c1d4c2fbe24137e195dd168373e6160db71f0b99696d5c3dc35438980660d07797be09face
7
- data.tar.gz: 19f9d4500577edb50b0985f100d768058159f50300262d2c81a6926a321ef8e81e23c0218670f707cf35b1d85e3ba8549edd3e0ac84e15f5b99c47661e139528
6
+ metadata.gz: 7b663509b7dece64252688e96eeb37d74937fd25ad952db19cb7b501e8d64bcb5769fcb6170a47aa49035047394fbaeaaa6a142f93392bd9a3bdb65bba2c1892
7
+ data.tar.gz: 1c6b77aba6885ceb1c6ed0e05421ba22851c9687894f6c11e75127419ca265b2363bde879e399056856d2e38f88bb9e810c78e09cce3a142989e29e3d9894f57
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rcoli (0.7.0)
4
+ rcoli (0.7.1)
5
5
  highline (~> 1.6.11)
6
6
  paint (= 0.8.5)
7
7
 
@@ -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.
@@ -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
@@ -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|
@@ -1,5 +1,5 @@
1
1
  module RCoLi
2
2
 
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
 
5
5
  end
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.0
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-24 00:00:00.000000000 Z
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: