vedeu_cli 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/vedeu/cli/helpers.rb +15 -1
- data/lib/vedeu/cli/main.rb +1 -1
- data/lib/vedeu/cli/templates/application/Gemfile +2 -1
- data/lib/vedeu/cli/version.rb +1 -1
- data/test/lib/vedeu/cli/application_test.rb +3 -0
- data/vedeu_cli.gemspec +6 -5
- metadata +36 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2631a47dcc277a5a6addb9bcdb53d59926fb3743
|
4
|
+
data.tar.gz: 725b6ad00382819c0aceeed6ee0b054923abc7f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68721238a3f24fda4dc9258f026135e2fa69253d287fd74fc42ab95b5160ee51daa65cc76eb6c04f07c6bc451319b0578f84fa82b89313c8128d3625042ee4ad
|
7
|
+
data.tar.gz: cda453608f2c8756688c7b6fb34c1dbc94d4c09890b77cb354b9ea86d9762c3bee633aa00239d22730784780fefea53a6bc86a0aea81dcc1db1def7ec1b55117
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.3
|
data/lib/vedeu/cli/helpers.rb
CHANGED
@@ -56,6 +56,8 @@ module Vedeu
|
|
56
56
|
log_processed_file(destination)
|
57
57
|
|
58
58
|
FileUtils.mkdir_p(destination)
|
59
|
+
|
60
|
+
true
|
59
61
|
end
|
60
62
|
|
61
63
|
# @param source [String]
|
@@ -65,10 +67,14 @@ module Vedeu
|
|
65
67
|
if File.exist?(destination)
|
66
68
|
log_skipped_file(destination)
|
67
69
|
|
70
|
+
false
|
71
|
+
|
68
72
|
else
|
69
73
|
log_processed_file(destination)
|
70
74
|
|
71
75
|
FileUtils.cp(source, destination)
|
76
|
+
|
77
|
+
true
|
72
78
|
end
|
73
79
|
end
|
74
80
|
|
@@ -79,10 +85,14 @@ module Vedeu
|
|
79
85
|
if File.exist?(destination)
|
80
86
|
log_skipped_file(destination)
|
81
87
|
|
88
|
+
false
|
89
|
+
|
82
90
|
else
|
83
91
|
log_processed_file(destination)
|
84
92
|
|
85
93
|
File.write(destination, parse(source))
|
94
|
+
|
95
|
+
true
|
86
96
|
end
|
87
97
|
end
|
88
98
|
|
@@ -99,7 +109,9 @@ module Vedeu
|
|
99
109
|
def log_skipped_file(destination)
|
100
110
|
Vedeu.log_stdout(type: :create,
|
101
111
|
message: "#{destination} " +
|
102
|
-
Esc.red {
|
112
|
+
Vedeu::EscapeSequences::Esc.red {
|
113
|
+
'already exists, skipped.'
|
114
|
+
})
|
103
115
|
true
|
104
116
|
end
|
105
117
|
|
@@ -109,6 +121,8 @@ module Vedeu
|
|
109
121
|
log_processed_file(destination)
|
110
122
|
|
111
123
|
FileUtils.touch(destination)
|
124
|
+
|
125
|
+
true
|
112
126
|
end
|
113
127
|
|
114
128
|
# @return [String]
|
data/lib/vedeu/cli/main.rb
CHANGED
data/lib/vedeu/cli/version.rb
CHANGED
data/vedeu_cli.gemspec
CHANGED
@@ -20,16 +20,17 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency 'guard', '2.13.0'
|
22
22
|
spec.add_development_dependency 'guard-minitest', '2.4.4'
|
23
|
-
spec.add_development_dependency '
|
24
|
-
spec.add_development_dependency 'minitest
|
23
|
+
spec.add_development_dependency 'guard-rubocop', '1.2.0'
|
24
|
+
spec.add_development_dependency 'minitest', '5.8.1'
|
25
|
+
spec.add_development_dependency 'minitest-reporters', '1.1.2'
|
25
26
|
spec.add_development_dependency 'mocha', '1.1.0'
|
26
|
-
spec.add_development_dependency 'pry', '0.10.
|
27
|
-
spec.add_development_dependency '
|
28
|
-
spec.add_development_dependency 'rubocop', '0.33.0'
|
27
|
+
spec.add_development_dependency 'pry', '0.10.2'
|
28
|
+
spec.add_development_dependency 'rubocop', '0.34.2'
|
29
29
|
spec.add_development_dependency 'ruby-prof', '0.15.8'
|
30
30
|
spec.add_development_dependency 'simplecov', '0.10.0'
|
31
31
|
spec.add_development_dependency 'simplecov-console', '0.2.0'
|
32
32
|
spec.add_development_dependency 'yard', '0.8.7.6'
|
33
33
|
|
34
|
+
spec.add_dependency 'rake', '~> 10.4'
|
34
35
|
spec.add_dependency 'thor', '0.19.1'
|
35
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vedeu_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Laking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -39,89 +39,89 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.4.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: guard-rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.2.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.2.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
56
|
+
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 5.8.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 5.8.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: minitest-reporters
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.1.
|
75
|
+
version: 1.1.2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.1.
|
82
|
+
version: 1.1.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: mocha
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 1.1.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 1.1.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.10.2
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.10.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.34.2
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.34.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: ruby-prof
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 0.8.7.6
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rake
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '10.4'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '10.4'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: thor
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -266,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
280
|
version: '0'
|
267
281
|
requirements: []
|
268
282
|
rubyforge_project:
|
269
|
-
rubygems_version: 2.4.
|
283
|
+
rubygems_version: 2.4.5.1
|
270
284
|
signing_key:
|
271
285
|
specification_version: 4
|
272
286
|
summary: A plugin for Vedeu.
|