vedeu_cli 0.0.9 → 0.0.10

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: a24a490252f117afc78c725535d98bdc727e6af7
4
- data.tar.gz: 0163be54e79077f0d4eeb8d1d6ded1c746409833
3
+ metadata.gz: 21702492131dcb88447ff7336a81bb7805005e69
4
+ data.tar.gz: 746a8de43e26eaeada6c060e92b3bd055332e3fa
5
5
  SHA512:
6
- metadata.gz: 306836f843ea9eca961fbbe6213462c3e1b0249bdf03c10aa6d1713c9963b0d84431094c074f86c91df3bfac03e9a5db0bb65b49cc3e20c78b5abc442b6f5a9b
7
- data.tar.gz: 81bbfb73eaa2c9de2568b7cb153f568d0ddf939a4aff38d42aff44f047c1bb35de7e0c75c33675895eb10bcc0a09bf961ae0e28419f6e1f3826751cbcaeca9aa
6
+ metadata.gz: d5ab3caca1a26ba37b8b146a1369d2f5117dd9ad789e7d583508cda2a97fe6ef0f767b4308d1f293d2a100401fce2474726f2339db839801048c21cfd7e2356f
7
+ data.tar.gz: ec67b6e0ed379952a7e24a76e13b3170227be9d1eb1a9e77c57d6039e3d9b4fde584135fb12ff89c2cb4a220be6934b077829aeee97867e34bb447033f975b3c
@@ -27,9 +27,7 @@ AllCops:
27
27
  Exclude:
28
28
  - 'test/**/*'
29
29
  - 'vendor/**/*'
30
- # By default, the rails cops are not run. Override in project or home
31
- # directory .rubocop.yml files, or by giving the -R/--rails option.
32
- RunRailsCops: false
30
+
33
31
  # Cop names are not displayed in offense messages by default. Change behavior
34
32
  # by overriding DisplayCopNames, or by giving the -D/--display-cop-names
35
33
  # option.
@@ -111,7 +109,7 @@ Style/SpaceInsideHashLiteralBraces:
111
109
  Style/TrailingBlankLines:
112
110
  EnforcedStyle: final_newline
113
111
 
114
- Style/TrailingComma:
112
+ Style/TrailingCommaInLiteral:
115
113
  EnforcedStyleForMultiline: comma
116
114
 
117
115
  ##################### Metrics ##################################
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
4
- before_install: gem install bundler -v 1.10.6
3
+ - 2.3.0
4
+ cache: bundler
5
+ script: 'bundle exec rake'
6
+ sudo: false
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
- # Specify your gem's dependencies in vedeu_cli.gemspec
4
5
  gemspec
5
6
 
6
7
  group :test do
data/Guardfile CHANGED
@@ -1,3 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ guard :rubocop do
4
+ watch(/.+\.rb$/)
5
+ watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
6
+ end
7
+
1
8
  guard :minitest, all_after_pass: true,
2
9
  focus_on_failed: true,
3
10
  env: { 'NO_SIMPLECOV' => true } do
@@ -530,7 +530,7 @@ Style/SingleLineMethods:
530
530
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
531
531
  Enabled: true
532
532
 
533
- Style/SingleSpaceBeforeFirstArg:
533
+ Style/SpaceBeforeFirstArg:
534
534
  Description: >-
535
535
  Checks that exactly one space is used between a method name
536
536
  and the first argument for method calls without parentheses.
@@ -546,7 +546,7 @@ Style/SpaceAfterComma:
546
546
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
547
547
  Enabled: true
548
548
 
549
- Style/SpaceAfterControlKeyword:
549
+ Style/SpaceAroundKeyword:
550
550
  Description: 'Use spaces after if/elsif/unless/while/until/case/when.'
551
551
  Enabled: true
552
552
 
@@ -611,7 +611,7 @@ Style/SpaceAroundOperators:
611
611
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
612
612
  Enabled: true
613
613
 
614
- Style/SpaceBeforeModifierKeyword:
614
+ Style/SpaceAroundKeyword:
615
615
  Description: 'Put a space before the modifier keyword.'
616
616
  Enabled: true
617
617
 
@@ -674,7 +674,7 @@ Style/TrailingBlankLines:
674
674
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
675
675
  Enabled: true
676
676
 
677
- Style/TrailingComma:
677
+ Style/TrailingCommaInLiteral:
678
678
  Description: 'Checks for trailing comma in parameter lists and literals.'
679
679
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
680
680
  Enabled: true
@@ -914,7 +914,7 @@ Lint/ShadowingOuterLocalVariable:
914
914
  for block arguments or block local variables.
915
915
  Enabled: true
916
916
 
917
- Lint/SpaceBeforeFirstArg:
917
+ Style/SpaceBeforeFirstArg:
918
918
  Description: >-
919
919
  Put a space between a method name and the first argument
920
920
  in a method call without parentheses.
@@ -1004,10 +1004,6 @@ Rails/Date:
1004
1004
  such as Date.today, Date.current etc.
1005
1005
  Enabled: true
1006
1006
 
1007
- Rails/DefaultScope:
1008
- Description: 'Checks if the argument passed to default_scope is a block.'
1009
- Enabled: true
1010
-
1011
1007
  Rails/Delegate:
1012
1008
  Description: 'Prefer delegate method for delegations.'
1013
1009
  Enabled: true
@@ -66,7 +66,7 @@ module Vedeu
66
66
 
67
67
  # @return [void]
68
68
  def copy_application_executable
69
- copy_file(source + '/bin/name', app_bin_path + "#{name}")
69
+ copy_file(source + '/bin/name', app_bin_path + name)
70
70
  end
71
71
 
72
72
  # @return [void]
@@ -14,7 +14,7 @@ module Vedeu
14
14
 
15
15
  # @return [String]
16
16
  def app_name
17
- @app_name ||= File.read('./config/app_name' )
17
+ @app_name ||= File.read('./config/app_name')
18
18
  end
19
19
 
20
20
  # @return [String]
@@ -111,7 +111,7 @@ module Vedeu
111
111
  # @param destination_path [String]
112
112
  # @return [TrueClass]
113
113
  def log_processed_file(destination_path)
114
- Vedeu.log_stdout(type: :create, message: "#{destination_path}")
114
+ Vedeu.log_stdout(type: :create, message: destination_path)
115
115
 
116
116
  true
117
117
  end
@@ -121,7 +121,7 @@ module Vedeu
121
121
  def log_skipped_file(destination_path)
122
122
  Vedeu.log_stdout(type: :create,
123
123
  message: "#{destination_path} " +
124
- Vedeu::EscapeSequences::Esc.red {
124
+ Vedeu::Esc.red {
125
125
  'already exists, skipped.'
126
126
  })
127
127
  true
@@ -141,7 +141,7 @@ module Vedeu
141
141
  def name
142
142
  @_name ||= @name.downcase
143
143
  end
144
- alias_method :app_root_path, :name
144
+ alias app_root_path name
145
145
 
146
146
  # @return [String]
147
147
  def name_as_class
@@ -5,7 +5,7 @@ module Vedeu
5
5
  module CLI
6
6
 
7
7
  # The current version of Vedeu CLI.
8
- VERSION = '0.0.9'
8
+ VERSION = '0.0.10'.freeze
9
9
 
10
10
  end # CLI
11
11
 
@@ -36,7 +36,7 @@ module MiniTest
36
36
 
37
37
  class << self
38
38
 
39
- alias_method :context, :describe
39
+ alias context describe
40
40
 
41
41
  end # Eigenclass
42
42
 
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'vedeu/cli/version'
@@ -21,16 +22,16 @@ Gem::Specification.new do |spec|
21
22
  spec.add_development_dependency 'guard', '2.13.0'
22
23
  spec.add_development_dependency 'guard-minitest', '2.4.4'
23
24
  spec.add_development_dependency 'guard-rubocop', '1.2.0'
24
- spec.add_development_dependency 'minitest', '5.8.3'
25
- spec.add_development_dependency 'minitest-reporters', '1.1.7'
25
+ spec.add_development_dependency 'minitest', '5.8.4'
26
+ spec.add_development_dependency 'minitest-reporters', '1.1.8'
26
27
  spec.add_development_dependency 'mocha', '1.1.0'
27
28
  spec.add_development_dependency 'pry', '0.10.3'
28
- spec.add_development_dependency 'rubocop', '0.35.1'
29
- spec.add_development_dependency 'ruby-prof', '0.15.8'
30
- spec.add_development_dependency 'simplecov', '0.10.0'
31
- spec.add_development_dependency 'simplecov-console', '0.2.0'
29
+ spec.add_development_dependency 'rubocop', '0.39.0'
30
+ spec.add_development_dependency 'ruby-prof', '0.15.9'
31
+ spec.add_development_dependency 'simplecov', '0.11.2'
32
+ spec.add_development_dependency 'simplecov-console', '0.3.0'
32
33
  spec.add_development_dependency 'yard', '0.8.7.6'
33
34
 
34
- spec.add_dependency 'rake', '~> 10.4'
35
+ spec.add_dependency 'rake', '~> 10.5'
35
36
  spec.add_dependency 'thor', '0.19.1'
36
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vedeu_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Laking
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 5.8.3
61
+ version: 5.8.4
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: 5.8.3
68
+ version: 5.8.4
69
69
  - !ruby/object:Gem::Dependency
70
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.7
75
+ version: 1.1.8
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.7
82
+ version: 1.1.8
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: mocha
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,56 +114,56 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.35.1
117
+ version: 0.39.0
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.35.1
124
+ version: 0.39.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: ruby-prof
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.15.8
131
+ version: 0.15.9
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.15.8
138
+ version: 0.15.9
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 0.10.0
145
+ version: 0.11.2
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 0.10.0
152
+ version: 0.11.2
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simplecov-console
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 0.2.0
159
+ version: 0.3.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 0.2.0
166
+ version: 0.3.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: yard
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '10.4'
187
+ version: '10.5'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '10.4'
194
+ version: '10.5'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: thor
197
197
  requirement: !ruby/object:Gem::Requirement