rcoli 0.6.3 → 0.6.4
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 +7 -0
- data/Gemfile.lock +1 -1
- data/lib/rcoli/utils.rb +2 -2
- data/lib/rcoli/version.rb +1 -1
- metadata +9 -23
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: b3cc98246fe432689eccf86b409ea13f23334f47
|
|
4
|
+
data.tar.gz: 837c910d9513f9f5a753a4f8f35cf87d36bdc952
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4c886fe512596f6df69324908791c377edb0bc2b9b0988757f7281139532885aa41eaad7fc4ad0ef7433c0c9164e060401e083888d8b043c9f9a3bf1f86d6851
|
|
7
|
+
data.tar.gz: 52825fc69ba55dc8bc3efb151192364c6dfa958ae4ebfeae89c7b6415f9fc27368b9d7694ef3321ec8c39b54489e2f38c6a1e5dc9160cde78c0e40bd938436bf
|
data/Gemfile.lock
CHANGED
data/lib/rcoli/utils.rb
CHANGED
|
@@ -59,10 +59,10 @@ module RCoLi
|
|
|
59
59
|
def execute(command, *args)
|
|
60
60
|
cmnd = @commands[command.to_s]
|
|
61
61
|
if cmnd
|
|
62
|
-
cmnd.scan(/\$\{([
|
|
62
|
+
cmnd.scan(/\$\{([^}\s]+)\}/).each do |s|
|
|
63
63
|
context = args[0]
|
|
64
64
|
(s[0].split('.').each{|key| context = (context.is_a? Hash) ? context[key] : nil})
|
|
65
|
-
cmnd = cmnd.
|
|
65
|
+
cmnd = cmnd.gsub("${#{s[0]}}", ((context.is_a? Array) ? context.join(',') : context.to_s)) if context
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
# ALTERNATIVE SOLUTION
|
data/lib/rcoli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rcoli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.6.4
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Jiri Pisa
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: highline
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
17
|
- - ~>
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
@@ -22,7 +20,6 @@ dependencies:
|
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
24
|
- - ~>
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
@@ -30,7 +27,6 @@ dependencies:
|
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: paint
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
31
|
- - '='
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
@@ -38,7 +34,6 @@ dependencies:
|
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
38
|
- - '='
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
@@ -46,17 +41,15 @@ dependencies:
|
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
|
47
42
|
name: rake
|
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
44
|
requirements:
|
|
51
|
-
- -
|
|
45
|
+
- - '>='
|
|
52
46
|
- !ruby/object:Gem::Version
|
|
53
47
|
version: '0'
|
|
54
48
|
type: :development
|
|
55
49
|
prerelease: false
|
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
51
|
requirements:
|
|
59
|
-
- -
|
|
52
|
+
- - '>='
|
|
60
53
|
- !ruby/object:Gem::Version
|
|
61
54
|
version: '0'
|
|
62
55
|
description: The complete solution for commandline application written in ruby.
|
|
@@ -82,32 +75,25 @@ files:
|
|
|
82
75
|
- rcoli.gemspec
|
|
83
76
|
homepage: https://github.com/jiripisa/rcoli
|
|
84
77
|
licenses: []
|
|
78
|
+
metadata: {}
|
|
85
79
|
post_install_message:
|
|
86
80
|
rdoc_options: []
|
|
87
81
|
require_paths:
|
|
88
82
|
- lib
|
|
89
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
|
-
none: false
|
|
91
84
|
requirements:
|
|
92
|
-
- -
|
|
85
|
+
- - '>='
|
|
93
86
|
- !ruby/object:Gem::Version
|
|
94
87
|
version: '0'
|
|
95
|
-
segments:
|
|
96
|
-
- 0
|
|
97
|
-
hash: 3561981524977890123
|
|
98
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
|
-
none: false
|
|
100
89
|
requirements:
|
|
101
|
-
- -
|
|
90
|
+
- - '>='
|
|
102
91
|
- !ruby/object:Gem::Version
|
|
103
92
|
version: '0'
|
|
104
|
-
segments:
|
|
105
|
-
- 0
|
|
106
|
-
hash: 3561981524977890123
|
|
107
93
|
requirements: []
|
|
108
94
|
rubyforge_project:
|
|
109
|
-
rubygems_version:
|
|
95
|
+
rubygems_version: 2.0.3
|
|
110
96
|
signing_key:
|
|
111
|
-
specification_version:
|
|
97
|
+
specification_version: 4
|
|
112
98
|
summary: The complete solution for commandline application written in ruby.
|
|
113
99
|
test_files: []
|