gloc 0.4.0 → 0.8.0

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
  SHA256:
3
- metadata.gz: bd73796e1c759d5340ea4478edab80c3b9bfe05af571a23caaeee56f024564bb
4
- data.tar.gz: eab787cfeaaa52b9eadee669ddfbbfec46bf517766f9c06ca888d8ed890cf634
3
+ metadata.gz: 5156b6f1cc4eb919a465b8dc8f85de9205985ac8254b4137a69551f7962d460e
4
+ data.tar.gz: 2bbcb2c970741426522922268d8fcd0889ca34470b9b28eb2a98b4511ef333a6
5
5
  SHA512:
6
- metadata.gz: 610cb691e8cba874108f5e8081405f5044a372df81469a71ef0fe03dde46640ffea2ff92a5ef27e27dae4ad818823fcffc145a2a2872e1b0df664b4e7b6558fe
7
- data.tar.gz: 592969a3042bab78d38b1dc53df591c9362ebc42fff0161e52157f36533e75708cf50ba7280173ae81baa58e4e9b92bbd4871850a52fbd3def3b468f64b90e9d
6
+ metadata.gz: 91e48fc39853ecf51a65945df2da0172e6dd9f5b9aa25d36591faf2f5e8681e648aba02d926efb1576945ecaee10d70ef685809d8fcc734ba984a30f5e85ef05
7
+ data.tar.gz: 96a9431bc608a88c36a95dc2c4b5a955aeb27480c75dd5891f59c44f9d13dd39b341dfde54c5b1d7ba14389e0e0dd38515cc31339c33ac281f18743aa42a1f5c
data/.gitconform ADDED
@@ -0,0 +1,9 @@
1
+ [git "conform"]
2
+ checker = CarriageReturnCharacterChecker
3
+ checker = FileNotEmptyChecker
4
+ checker = LowercaseFilenameChecker
5
+ checker = NonAsciiCharacterChecker
6
+ checker = NonAsciiFilenameChecker
7
+ checker = TabCharacterChecker
8
+ checker = TrailingWhitespaceChecker
9
+ checker = WhitespaceFilenameChecker
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /vendor/
data/.rubocop.yml CHANGED
@@ -1,12 +1,14 @@
1
- Lint/HandleExceptions:
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-minitest
4
+
5
+ Lint/SuppressedException:
2
6
  Enabled: false
3
7
 
4
8
  Metrics/AbcSize:
5
9
  Enabled: false
6
10
  Metrics/ClassLength:
7
11
  Enabled: false
8
- Metrics/LineLength:
9
- Enabled: false
10
12
  Metrics/MethodLength:
11
13
  Enabled: false
12
14
  Metrics/ModuleLength:
@@ -35,3 +37,6 @@ Style/TrailingCommaInArrayLiteral:
35
37
  Enabled: false
36
38
  Style/TrailingCommaInHashLiteral:
37
39
  Enabled: false
40
+
41
+ AllCops:
42
+ NewCops: enable
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.8
1
+ 2.6.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at peter.vandenberk@simplybusiness.co.uk. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
3
5
  # Specify your gem's dependencies in gloc.gemspec
4
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,52 +1,61 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gloc (0.4.0)
4
+ gloc (0.8.0)
5
5
  rainbow (~> 3.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.0)
11
- coderay (1.1.2)
10
+ ast (2.4.2)
11
+ coderay (1.1.3)
12
12
  interception (0.5)
13
- jaro_winkler (1.5.2)
14
- method_source (0.9.2)
15
- minitest (5.11.3)
16
- parallel (1.14.0)
17
- parser (2.6.2.0)
18
- ast (~> 2.4.0)
19
- pry (0.12.2)
20
- coderay (~> 1.1.0)
21
- method_source (~> 0.9.0)
22
- pry-rescue (1.5.0)
13
+ method_source (1.0.0)
14
+ minitest (5.14.4)
15
+ parallel (1.20.1)
16
+ parser (3.0.2.0)
17
+ ast (~> 2.4.1)
18
+ pry (0.14.1)
19
+ coderay (~> 1.1)
20
+ method_source (~> 1.0)
21
+ pry-rescue (1.5.2)
23
22
  interception (>= 0.5)
24
23
  pry (>= 0.12.0)
25
- psych (3.1.0)
26
24
  rainbow (3.0.0)
27
- rake (12.3.2)
28
- rubocop (0.66.0)
29
- jaro_winkler (~> 1.5.1)
25
+ rake (13.0.6)
26
+ regexp_parser (2.1.1)
27
+ rexml (3.2.5)
28
+ rubocop (1.18.4)
30
29
  parallel (~> 1.10)
31
- parser (>= 2.5, != 2.5.1.1)
32
- psych (>= 3.1.0)
30
+ parser (>= 3.0.0.0)
33
31
  rainbow (>= 2.2.2, < 4.0)
32
+ regexp_parser (>= 1.8, < 3.0)
33
+ rexml
34
+ rubocop-ast (>= 1.8.0, < 2.0)
34
35
  ruby-progressbar (~> 1.7)
35
- unicode-display_width (>= 1.4.0, < 1.6)
36
- ruby-progressbar (1.10.0)
37
- unicode-display_width (1.5.0)
36
+ unicode-display_width (>= 1.4.0, < 3.0)
37
+ rubocop-ast (1.8.0)
38
+ parser (>= 3.0.1.1)
39
+ rubocop-minitest (0.14.0)
40
+ rubocop (>= 0.90, < 2.0)
41
+ rubocop-rake (0.6.0)
42
+ rubocop (~> 1.0)
43
+ ruby-progressbar (1.11.0)
44
+ unicode-display_width (2.0.0)
38
45
 
39
46
  PLATFORMS
40
47
  ruby
41
48
 
42
49
  DEPENDENCIES
43
- bundler
50
+ bundler (~> 2.2)
44
51
  gloc!
45
- minitest
46
- pry
47
- pry-rescue
48
- rake
49
- rubocop
52
+ minitest (~> 5.14)
53
+ pry (~> 0.14)
54
+ pry-rescue (~> 1.5)
55
+ rake (~> 13.0)
56
+ rubocop (~> 1.18)
57
+ rubocop-minitest (~> 0.14)
58
+ rubocop-rake (~> 0.6)
50
59
 
51
60
  BUNDLED WITH
52
- 2.0.1
61
+ 2.2.25
data/README.md CHANGED
@@ -99,6 +99,22 @@ The results are sorted by "lines of code" by default _(with "lines of code" defi
99
99
  gloc -comment # sort by the number of comment lines
100
100
  gloc -code # sort by lines of code (default)
101
101
 
102
+ ## Processing
103
+
104
+ When `gloc`'s STDOUT isn't a TTY, it outputs the LoC stats in JSON format, for further parsing and processing.
105
+
106
+ This also means you can pretty-print the LoC stats as follows:
107
+
108
+ gloc | jq
109
+
110
+ ... which uses the [the indispensable jq utility][jq] (`brew install jq`) for processing the JSON output.
111
+
112
+ To "force" the typical TTY output even when STDOUT isn't a TTY, you can use the `-tty` option as follows:
113
+
114
+ gloc -tty | pbcopy
115
+
116
+ ... which copies the non-JSON version of the LoC stats to the clipboard.
117
+
102
118
  ## Known Issues and Possible Enhancements
103
119
 
104
120
  * identify comment-only lines for a lot more languages
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  # rubocop:disable Style/SymbolArray
2
2
  # rubocop:disable Style/HashSyntax
3
+ # rubocop:disable Rake/Desc
3
4
 
4
5
  require 'bundler/gem_tasks'
5
6
 
@@ -34,5 +35,6 @@ end
34
35
 
35
36
  Rake::Task['build'].enhance([:default, :ready])
36
37
 
38
+ # rubocop:enable Rake/Desc
37
39
  # rubocop:enable Style/HashSyntax
38
40
  # rubocop:enable Style/SymbolArray
data/exe/gloc CHANGED
@@ -1,11 +1,13 @@
1
1
  #!/usr/bin/env ruby -s
2
2
 
3
3
  #
4
- # rubocop:disable Layout/AlignHash
4
+ # rubocop:disable Layout/HashAlignment
5
5
  # rubocop:disable Layout/ElseAlignment
6
6
  # rubocop:disable Layout/EndAlignment
7
7
  # rubocop:disable Layout/IndentationWidth
8
8
  #
9
+ # rubocop:disable Lint/DuplicateBranch:
10
+ #
9
11
  # rubocop:disable Style/EmptyCaseCondition
10
12
  # rubocop:disable Style/GlobalVars
11
13
  # rubocop:disable Style/RegexpLiteral
@@ -14,7 +16,7 @@
14
16
  require 'English'
15
17
  require 'ostruct'
16
18
 
17
- source_files = if STDIN.tty? || $tty
19
+ source_files = if $stdin.tty? || $tty
18
20
  `git rev-parse --show-toplevel &> /dev/null`
19
21
  if $CHILD_STATUS.success?
20
22
  # we're inside a git repo so
@@ -27,8 +29,8 @@ source_files = if STDIN.tty? || $tty
27
29
  end
28
30
  else
29
31
  # assume we're running it in a pipeline
30
- # and read list of filenames from STDIN
31
- STDIN.read.split($RS).map(&:chomp)
32
+ # and read list of filenames from $stdin
33
+ $stdin.read.split($RS).map(&:chomp)
32
34
  end
33
35
 
34
36
  # exclude binary files from stats
@@ -96,7 +98,7 @@ STATS_FOR = Hash.new do |stats_for_ext, ext|
96
98
  end
97
99
 
98
100
  source_files.each do |file|
99
- ext = '*' + File.extname(file) # e.g. '*.rb' or '*' if no ext!
101
+ ext = File.extname(file).prepend('*') # e.g. '*.rb' or '*' if no ext!
100
102
 
101
103
  blank_regex = BLANKS[ext]
102
104
  comment_regex = COMMENTS[ext]
@@ -120,11 +122,13 @@ sort_metric = case
120
122
  else :code_count
121
123
  end
122
124
 
123
- source_stats = Hash[
124
- STATS_FOR.sort_by { |_, stats|
125
- stats.send(sort_metric)
126
- }.reverse
127
- ]
125
+ file_stats = STATS_FOR_FILE.sort_by { |_, stats|
126
+ stats.send(sort_metric)
127
+ }.reverse.to_h
128
+
129
+ source_stats = STATS_FOR.sort_by { |_, stats|
130
+ stats.send(sort_metric)
131
+ }.reverse.to_h
128
132
 
129
133
  source_stats['TOTAL'] = OpenStruct.new(
130
134
  file_count: source_stats.values.map(&:file_count).reduce(:+) || 0,
@@ -138,7 +142,7 @@ source_stats['TOTAL'] = OpenStruct.new(
138
142
  # JSON formatting for non-TTY output
139
143
  #
140
144
 
141
- unless STDOUT.tty? || $tty
145
+ unless $stdout.tty? || $tty || $visual
142
146
  require 'json'
143
147
 
144
148
  class OpenStruct
@@ -152,71 +156,96 @@ unless STDOUT.tty? || $tty
152
156
  exit
153
157
  end
154
158
 
155
- #
156
- # fancy formatting for TTY output
157
- #
158
-
159
- class String
160
- def commify
161
- gsub(/(\d)(?=(\d{3})+(\..*)?$)/, '\1,')
159
+ unless $visual
160
+ class String
161
+ def commify
162
+ gsub(/(\d)(?=(\d{3})+(\..*)?$)/, '\1,')
163
+ end
162
164
  end
163
- end
164
165
 
165
- class Numeric
166
- def commify
167
- to_s.commify
166
+ class Numeric
167
+ def commify
168
+ to_s.commify
169
+ end
168
170
  end
169
- end
170
171
 
171
- source_stats.values.each do |stats_for_ext|
172
- stats_for_ext.file_count = stats_for_ext.file_count.commify
173
- stats_for_ext.line_count = stats_for_ext.line_count.commify
174
- stats_for_ext.blank_count = stats_for_ext.blank_count.commify
175
- stats_for_ext.comment_count = stats_for_ext.comment_count.commify
176
- stats_for_ext.code_count = stats_for_ext.code_count.commify
177
- end
172
+ #
173
+ # fancy formatting for TTY output
174
+ #
178
175
 
179
- # widest_file_ext = source_stats.keys.map(&:length).max
180
- # widest_file_count = source_stats.values.map(&:file_count).map(&:length).max
181
- # widest_line_count = source_stats.values.map(&:line_count).map(&:length).max
182
- # widest_blank_count = source_stats.values.map(&:blank_count).map(&:length).max
183
- # widest_comment_count = source_stats.values.map(&:comment_count).map(&:length).max
184
- # widest_code_count = source_stats.values.map(&:code_count).map(&:length).max
176
+ source_stats.each_value do |stats_for_ext|
177
+ stats_for_ext.file_count = stats_for_ext.file_count.commify
178
+ stats_for_ext.line_count = stats_for_ext.line_count.commify
179
+ stats_for_ext.blank_count = stats_for_ext.blank_count.commify
180
+ stats_for_ext.comment_count = stats_for_ext.comment_count.commify
181
+ stats_for_ext.code_count = stats_for_ext.code_count.commify
182
+ end
185
183
 
186
- DIVIDER = ('-' * 80) # because loc uses 80 columns
187
- TEMPLATE = ' %-13s %12s %12s %12s %12s %12s'.freeze
184
+ DIVIDER = ('-' * 80) # because loc uses 80 columns
185
+ TEMPLATE = ' %-13s %12s %12s %12s %12s %12s'.freeze
188
186
 
189
- puts format(
190
- "#{DIVIDER}\n#{TEMPLATE}\n#{DIVIDER}",
191
- 'Language', 'Files', 'Lines', 'Blank', 'Comment', 'Code'
192
- )
187
+ puts format(
188
+ "#{DIVIDER}\n#{TEMPLATE}\n#{DIVIDER}",
189
+ 'Language', 'Files', 'Lines', 'Blank', 'Comment', 'Code'
190
+ )
191
+
192
+ source_stats.each do |file_ext, stats|
193
+ next if file_ext == 'TOTAL'
194
+
195
+ puts format(
196
+ TEMPLATE,
197
+ file_ext,
198
+ stats.file_count,
199
+ stats.line_count,
200
+ stats.blank_count,
201
+ stats.comment_count,
202
+ stats.code_count,
203
+ )
204
+ end
193
205
 
194
- source_stats.each do |file_ext, stats|
195
206
  puts format(
196
- TEMPLATE,
197
- file_ext,
198
- stats.file_count,
199
- stats.line_count,
200
- stats.blank_count,
201
- stats.comment_count,
202
- stats.code_count,
207
+ "#{DIVIDER}\n#{TEMPLATE}\n#{DIVIDER}",
208
+ 'Total', *source_stats.fetch('TOTAL').to_h.values
203
209
  )
204
210
  end
205
211
 
206
- puts format(
207
- "#{DIVIDER}\n#{TEMPLATE}\n#{DIVIDER}",
208
- 'Total', *source_stats.delete('TOTAL').to_h.values
209
- )
212
+ if $visual
213
+ require 'rainbow'
214
+ require 'io/console'
215
+
216
+ max_line_count = file_stats.values.map(&:line_count).max
217
+ longest_filename = file_stats.keys.map(&:first).map(&:length).max
218
+ _, console_width = IO.console.winsize
219
+ available_width = Float(console_width - longest_filename - 5)
220
+
221
+ abort 'Terminal not wide enough... aborting!' if available_width.negative?
222
+
223
+ file_stats.each_pair do |(file, _, _), stats|
224
+ code_width = (available_width * stats.code_count / max_line_count)
225
+ comment_width = (available_width * stats.comment_count / max_line_count)
226
+ blank_width = (available_width * stats.blank_count / max_line_count)
227
+
228
+ puts format(
229
+ " %-#{longest_filename}<file>s | %<code>s%<comment>s%<blank>s",
230
+ file: file,
231
+ code: Rainbow('+' * code_width).green,
232
+ comment: Rainbow('-' * comment_width).red,
233
+ blank: Rainbow('_' * blank_width).blue,
234
+ )
235
+ end
236
+ end
210
237
 
211
238
  #
212
239
  # rubocop:enable Style/RegexpLiteral
213
240
  # rubocop:enable Style/GlobalVars
214
241
  # rubocop:enable Style/EmptyCaseCondition
215
242
  #
243
+ # rubocop:enable Lint/DuplicateBranch:
244
+ #
216
245
  # rubocop:enable Layout/IndentationWidth
217
246
  # rubocop:enable Layout/EndAlignment
218
247
  # rubocop:enable Layout/ElseAlignment
219
- # rubocop:enable Layout/AlignHash
248
+ # rubocop:enable Layout/HashAlignment
220
249
  #
221
250
 
222
251
  # That's all Folks!
data/gloc.gemspec CHANGED
@@ -22,12 +22,16 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
+ spec.required_ruby_version = ['>= 2.6.0', '< 2.7.0']
26
+
25
27
  spec.add_dependency 'rainbow', '~> 3.0'
26
28
 
27
- spec.add_development_dependency 'bundler'
28
- spec.add_development_dependency 'minitest'
29
- spec.add_development_dependency 'pry'
30
- spec.add_development_dependency 'pry-rescue'
31
- spec.add_development_dependency 'rake'
32
- spec.add_development_dependency 'rubocop'
29
+ spec.add_development_dependency 'bundler', '~> 2.2'
30
+ spec.add_development_dependency 'minitest', '~> 5.14'
31
+ spec.add_development_dependency 'pry', '~> 0.14'
32
+ spec.add_development_dependency 'pry-rescue', '~> 1.5'
33
+ spec.add_development_dependency 'rake', '~> 13.0'
34
+ spec.add_development_dependency 'rubocop', '~> 1.18'
35
+ spec.add_development_dependency 'rubocop-minitest', '~> 0.14'
36
+ spec.add_development_dependency 'rubocop-rake', '~> 0.6'
33
37
  end
data/lib/gloc/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module GLOC
2
2
  NAME = 'gloc'.freeze
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.8.0'.freeze
4
4
 
5
5
  def self.version
6
6
  "#{NAME} v#{VERSION}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenberk
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-23 00:00:00.000000000 Z
11
+ date: 2021-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -28,86 +28,114 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2.2'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '5.14'
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: '0'
54
+ version: '5.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '0.14'
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: '0'
68
+ version: '0.14'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry-rescue
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.5'
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: '0'
82
+ version: '1.5'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '13.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'
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.18'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.18'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-minitest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.14'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.14'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
102
130
  - !ruby/object:Gem::Version
103
- version: '0'
131
+ version: '0.6'
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
- - - ">="
136
+ - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: '0'
138
+ version: '0.6'
111
139
  description: Simple "lines of code" utility, based on file extensions!
112
140
  email:
113
141
  - pvandenberk@mac.com
@@ -116,11 +144,13 @@ executables:
116
144
  extensions: []
117
145
  extra_rdoc_files: []
118
146
  files:
147
+ - ".gitconform"
119
148
  - ".gitignore"
120
149
  - ".pryrc"
121
150
  - ".rubocop.yml"
122
151
  - ".ruby-version"
123
152
  - ".travis.yml"
153
+ - CODE_OF_CONDUCT.md
124
154
  - Gemfile
125
155
  - Gemfile.lock
126
156
  - LICENSE.txt
@@ -136,7 +166,7 @@ homepage: https://github.com/pvdb/gloc
136
166
  licenses:
137
167
  - MIT
138
168
  metadata: {}
139
- post_install_message:
169
+ post_install_message:
140
170
  rdoc_options: []
141
171
  require_paths:
142
172
  - lib
@@ -144,15 +174,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
174
  requirements:
145
175
  - - ">="
146
176
  - !ruby/object:Gem::Version
147
- version: '0'
177
+ version: 2.6.0
178
+ - - "<"
179
+ - !ruby/object:Gem::Version
180
+ version: 2.7.0
148
181
  required_rubygems_version: !ruby/object:Gem::Requirement
149
182
  requirements:
150
183
  - - ">="
151
184
  - !ruby/object:Gem::Version
152
185
  version: '0'
153
186
  requirements: []
154
- rubygems_version: 3.0.2
155
- signing_key:
187
+ rubygems_version: 3.0.3
188
+ signing_key:
156
189
  specification_version: 4
157
190
  summary: Not `loc`, not `cloc`, not `tokei`, not `SLOCCOUNT`, ...
158
191
  test_files: []