code_keeper 0.4.0 → 0.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36a68ad1540e4e6adb062bc85c1ab015c280bfe604ac5644cdfc21dd1df58c9d
4
- data.tar.gz: 6850f00648efb8910be1eaf0125a3aa39a799a888a31e2c971946cab337dbdbb
3
+ metadata.gz: b4a15da64994715117539279f4e5e5cf188cda6d2b12a1a06bf2c9d952e675a4
4
+ data.tar.gz: f4aa1e1345c5677ded8d8aaaa124d4680b92f022ed83a93410dbf747c8491216
5
5
  SHA512:
6
- metadata.gz: 87718f55c24471bee5b26d21d108445103111b135e117872d8c0e709b20a21cdbd6b865d06db277e29722eb607ba3bb687f8eef6c509e68a47c1563052d7b2e3
7
- data.tar.gz: 63938e0590f3c9faa32ef9f71d7a1b45cc3685d0a46d2a53aaa6d8c222eefaf3119cb2bb5aac2eeb618a0bf092999c4283f3b98fc36554218624c4a9027b9054
6
+ metadata.gz: '042197cb06c4aed7677d9074f53ee106264164536e3bc8a14a483c2bebf88454fd183724939daad10ea0eb5078b6718df07bfbcf615d792ac9ca4cbd2b51ef6f'
7
+ data.tar.gz: a3ba59d24ab56465ede942e32262838485ef38795156a48976deb2de00508fee3a9b0249e71495ce99d05f525bd7873abf4fe195b605f9bb080a22d3fc5e1c62
@@ -5,12 +5,16 @@ on: [push,pull_request]
5
5
  jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby: [2.7, 3.0]
11
+ name: Ruby ${{ matrix.ruby }}
8
12
  steps:
9
13
  - uses: actions/checkout@v2
10
14
  - name: Set up Ruby
11
15
  uses: ruby/setup-ruby@v1
12
16
  with:
13
- ruby-version: 3.0.0
17
+ ruby-version: ${{ matrix.ruby }}
14
18
  - name: Run the default task
15
19
  run: |
16
20
  gem install bundler -v 2.2.3
data/.rubocop.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.0
3
2
  Exclude:
4
3
  - spec/fixtures/**/*.rb
5
4
 
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unrelease
4
4
 
5
+ ## 0.5.0 (2021-09-16)
6
+ ### Changes
7
+ - [32](https://github.com/ebihara99999/code_keeper/pull/32): Specify dependency versions and loosen the supported ruby version.
8
+
5
9
  ## 0.4.0 (2021-09-15)
6
10
  ### New features
7
11
  - [#30](https://github.com/ebihara99999/code_keeper/pull/30): Support CSV and JSON format.
data/Gemfile.lock CHANGED
@@ -1,26 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- code_keeper (0.1.0)
5
- parallel
6
- rubocop
7
- rubocop-ast
4
+ code_keeper (0.4.0)
5
+ parallel (~> 1.20.1)
6
+ rubocop (~> 1.13.0)
7
+ rubocop-ast (~> 1.4.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ast (2.4.2)
13
- coderay (1.1.3)
14
13
  diff-lcs (1.4.4)
15
- method_source (0.9.2)
16
14
  parallel (1.20.1)
17
- parser (3.0.1.0)
15
+ parser (3.0.2.0)
18
16
  ast (~> 2.4.1)
19
- pry (0.12.2)
20
- coderay (~> 1.1.0)
21
- method_source (~> 0.9.0)
22
- pry-nav (0.3.0)
23
- pry (>= 0.9.10, < 0.13.0)
24
17
  rainbow (3.0.0)
25
18
  rake (13.0.3)
26
19
  regexp_parser (2.1.1)
@@ -47,23 +40,18 @@ GEM
47
40
  rubocop-ast (>= 1.2.0, < 2.0)
48
41
  ruby-progressbar (~> 1.7)
49
42
  unicode-display_width (>= 1.4.0, < 3.0)
50
- rubocop-ast (1.4.1)
51
- parser (>= 2.7.1.5)
43
+ rubocop-ast (1.4.2)
44
+ parser (>= 3.0.1.1)
52
45
  ruby-progressbar (1.11.0)
53
- unicode-display_width (2.0.0)
46
+ unicode-display_width (2.1.0)
54
47
 
55
48
  PLATFORMS
56
49
  x86_64-linux
57
50
 
58
51
  DEPENDENCIES
59
52
  code_keeper!
60
- parallel
61
- pry
62
- pry-nav
63
53
  rake (~> 13.0)
64
54
  rspec (~> 3.0)
65
- rubocop
66
- rubocop-ast
67
55
 
68
56
  BUNDLED WITH
69
57
  2.2.3
data/code_keeper.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "The CodeKeeper measures metrics especially about complexity and size of Ruby files, aiming to be a Ruby version of gmetrics."
13
13
  spec.homepage = "https://github.com/ebihara99999/code_keeper"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = "https://github.com/ebihara99999/code_keeper/"
@@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ["lib"]
29
29
 
30
30
  # Uncomment to register a new dependency of your gem
31
- spec.add_dependency "parallel"
32
- spec.add_dependency "rubocop"
33
- spec.add_dependency "rubocop-ast"
31
+ spec.add_dependency "parallel", '~> 1.20.1'
32
+ spec.add_dependency "rubocop", '~> 1.13.0'
33
+ spec.add_dependency "rubocop-ast", '~> 1.4.1'
34
34
 
35
35
  # For more information and examples about making a new gem, checkout our
36
36
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -7,7 +7,7 @@ module CodeKeeper
7
7
 
8
8
  def initialize(file_path)
9
9
  source = File.read(File.expand_path(file_path))
10
- @processed_source = ::RuboCop::AST::ProcessedSource.new(source, 3.0)
10
+ @processed_source = ::RuboCop::AST::ProcessedSource.new(source, RUBY_VERSION.to_f)
11
11
  rescue Errno::ENOENT
12
12
  raise TargetFileNotFoundError, "The target file does not exist. Check the file path: #{file_path}."
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CodeKeeper
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_keeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Ebihara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-14 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.20.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.20.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.13.0
34
34
  type: :runtime
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: 1.13.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-ast
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 1.4.1
48
48
  type: :runtime
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: 1.4.1
55
55
  description: The CodeKeeper measures metrics especially about complexity and size
56
56
  of Ruby files, aiming to be a Ruby version of gmetrics.
57
57
  email:
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: 3.0.0
107
+ version: 2.7.0
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="