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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65e847c034c853bd502d292d4be66fb51fd59bf6
4
- data.tar.gz: a625b67be3ed57c7a2473a9639e364d0b3417ec8
3
+ metadata.gz: 2631a47dcc277a5a6addb9bcdb53d59926fb3743
4
+ data.tar.gz: 725b6ad00382819c0aceeed6ee0b054923abc7f2
5
5
  SHA512:
6
- metadata.gz: 136851501b61bd710c66b3d26ab07042221fc07b4a3c1c7ddb7fafbf1e0699c63b37c9d0e075711e6445749867d6760451133878b291b90dca92e1e2461dc83f
7
- data.tar.gz: f823c42d7578fe23e3d4095ab86dde7eb601e7cdca7f011d8a222224acf623db1cbd1715f954ae47dcbad9034d89acdc098355485e209afc35b5fdbf134f232f
6
+ metadata.gz: 68721238a3f24fda4dc9258f026135e2fa69253d287fd74fc42ab95b5160ee51daa65cc76eb6c04f07c6bc451319b0578f84fa82b89313c8128d3625042ee4ad
7
+ data.tar.gz: cda453608f2c8756688c7b6fb34c1dbc94d4c09890b77cb354b9ea86d9762c3bee633aa00239d22730784780fefea53a6bc86a0aea81dcc1db1def7ec1b55117
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.2
1
+ 2.2.3
@@ -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 { 'already exists, skipped.' })
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]
@@ -19,7 +19,7 @@ module Vedeu
19
19
  # @param name [String]
20
20
  # @return [String]
21
21
  def new(name)
22
- say(Vedeu::CLI::Application.generate(name))
22
+ Vedeu::CLI::Application.generate(name)
23
23
  end
24
24
 
25
25
  # 'Specify the interface name lowercase snakecase; e.g. main_interface'
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'vedeu'
4
- # gem 'ruby-prof' # uncomment when using the `debug!` configuration option.
4
+ # gem 'ruby-prof' # uncomment if using the `profile!` configuration option.
5
+ # gem 'pry' # uncomment if using `Vedeu.debug`.
@@ -3,7 +3,7 @@ module Vedeu
3
3
  module CLI
4
4
 
5
5
  # The current version of Vedeu CLI.
6
- VERSION = '0.0.5'
6
+ VERSION = '0.0.6'
7
7
 
8
8
  end # CLI
9
9
 
@@ -19,6 +19,9 @@ module Vedeu
19
19
  # before do
20
20
  # FileUtils.stubs(:cp_r)
21
21
  # FileUtils.stubs(:mkdir)
22
+ # FileUtils.stubs(:mkdir_p)
23
+ # FileUtils.stubs(:touch)
24
+ # File.stubs(:write)
22
25
  # end
23
26
 
24
27
  subject { instance.generate(_name) }
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 'minitest', '5.8.0'
24
- spec.add_development_dependency 'minitest-reporters', '1.0.19'
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.1'
27
- spec.add_development_dependency 'rake', '~> 10.0'
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.5
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-08-16 00:00:00.000000000 Z
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: minitest
42
+ name: guard-rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 5.8.0
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: 5.8.0
54
+ version: 1.2.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest-reporters
56
+ name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.19
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: 1.0.19
68
+ version: 5.8.1
69
69
  - !ruby/object:Gem::Dependency
70
- name: mocha
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.0
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.0
82
+ version: 1.1.2
83
83
  - !ruby/object:Gem::Dependency
84
- name: pry
84
+ name: mocha
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.10.1
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: 0.10.1
96
+ version: 1.1.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: rake
98
+ name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: '10.0'
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: '10.0'
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.33.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.33.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.8
283
+ rubygems_version: 2.4.5.1
270
284
  signing_key:
271
285
  specification_version: 4
272
286
  summary: A plugin for Vedeu.