kitkat 0.0.2 → 1.0.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: 4d628ae53c4814952a15decd1ad945e63582df6a0021b50a642e21aeae3ddfd2
4
- data.tar.gz: 67d0781bb56c93cc7c1d3476a0d19dabb2df09140c831ae30b83b7f99af970c6
3
+ metadata.gz: 17654438fa4ef7a3ed4c7050ccccfa152d315a233a3776e3ddc64a234f8f0d7b
4
+ data.tar.gz: 7a9d327cc6cc8cf6dbdaff076f4b1e0d3c6cc39822a8aeeb4d95b2db1f43aa0b
5
5
  SHA512:
6
- metadata.gz: e13624e8469b16e2286be815c37340b5402d0697023831f56f32256c66aae9480b5b0a920df1298016eb72f3065ba1f13b1984c3b05402f078bf54736b0eb59d
7
- data.tar.gz: cc72cb9c18db99192df99f5572d5c229c1c6eaf50372b88cf80421d12bf9e032449799d4aa299810f4070b8144a9e50a54e594af073d42c165e18abe0b022d25
6
+ metadata.gz: fa9081036b32b79d977c32416db7ab733007cd6d55bb0ff2f898852a065a57cf556d579399dc0047083f6c2b29ae4e54ba4a56f6cb397e42b0d9ab9f339585fb
7
+ data.tar.gz: f9af84a84eebd3b1f7723b7fe3428ebb1eea95bf58cfb6677af8a70d0228ee0b64b93ef677e520ceeeb38e7fcb96168fda691e4fd0d165b706f7615ab7334419
@@ -11,15 +11,13 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.6', '2.7', '3.0']
14
+ ruby-version: ['3.2.1']
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v2
18
+ # https://github.com/ruby/setup-ruby#versioning
18
19
  - name: Set up Ruby
19
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
20
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
21
- # uses: ruby/setup-ruby@v1
22
- uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
20
+ uses: ruby/setup-ruby@v1
23
21
  with:
24
22
  ruby-version: ${{ matrix.ruby-version }}
25
23
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
data/.rubocop.yml CHANGED
@@ -4,11 +4,14 @@ require:
4
4
 
5
5
  AllCops:
6
6
  NewCops: enable
7
- TargetRubyVersion: 2.6
7
+ TargetRubyVersion: 3.2
8
8
  Exclude:
9
9
  - bin/*
10
10
  - vendor/bundle/**/*
11
11
 
12
+ Gemspec/DevelopmentDependencies:
13
+ EnforcedStyle: gemspec
14
+
12
15
  Metrics/MethodLength:
13
16
  Max: 20
14
17
 
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 2.6.6
1
+ ruby 3.2.1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 1.0.0 - February 12th, 2023
2
+
3
+ * Update to use Ruby 3.2.1 and later only.
4
+
1
5
  #### 0.0.2 - June 11th, 2022
2
6
 
3
7
  * Internal API Change: Kitkat::Reader is now Enumerable.
data/exe/kitkat CHANGED
@@ -7,4 +7,4 @@ require 'kitkat'
7
7
  path = ARGV[0].to_s
8
8
  db = ARGV[1].to_s.empty? ? 'kitkat.db' : ARGV[1].to_s
9
9
 
10
- Kitkat.crawl(db: db, path: path)
10
+ Kitkat.crawl(db:, path:)
data/kitkat.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  'rubygems_mfa_required' => 'true'
28
28
  }
29
29
 
30
- s.required_ruby_version = '>= 2.6'
30
+ s.required_ruby_version = '>= 3.2.1'
31
31
 
32
32
  s.add_dependency('sqlite3')
33
33
 
@@ -35,7 +35,7 @@ module Kitkat
35
35
  def ensure_dir_exists(path)
36
36
  dir = File.dirname(path)
37
37
 
38
- FileUtils.mkdir_p(dir) unless File.exist?(dir)
38
+ FileUtils.mkdir_p(dir)
39
39
  end
40
40
 
41
41
  def sql_statement
data/lib/kitkat/reader.rb CHANGED
@@ -15,21 +15,21 @@ module Kitkat
15
15
  freeze
16
16
  end
17
17
 
18
- def each(&block)
18
+ def each(&)
19
19
  return enum_for(:each) unless block_given?
20
20
 
21
- traverse(root, &block)
21
+ traverse(root, &)
22
22
 
23
23
  self
24
24
  end
25
25
 
26
26
  private
27
27
 
28
- def traverse(dir, &block)
28
+ def traverse(dir, &)
29
29
  Dir[File.join(dir, '*')].each do |path|
30
- yield FileInfo.new(path, root: root)
30
+ yield FileInfo.new(path, root:)
31
31
 
32
- traverse(path, &block) if File.directory?(path)
32
+ traverse(path, &) if File.directory?(path)
33
33
  end
34
34
  end
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kitkat
4
- VERSION = '0.0.2'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitkat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-11 00:00:00.000000000 Z
11
+ date: 2023-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -217,14 +217,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
217
  requirements:
218
218
  - - ">="
219
219
  - !ruby/object:Gem::Version
220
- version: '2.6'
220
+ version: 3.2.1
221
221
  required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
223
  - - ">="
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.0.3
227
+ rubygems_version: 3.4.6
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: File/Metadata Database Populator