textrepo 0.5.9 → 0.5.10

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: 9e4c8bee5a07bd1bd578fa838c0897358a7436c76246e672f555b7cc88540323
4
- data.tar.gz: 2e7894038fdf7d8e3ffde5993d37d83b574861195e4df1bbc3494bae26937dc0
3
+ metadata.gz: '0937f6151f2758ca033ce7c7b0c56f0df77aacd1887b00101354de77a48e0031'
4
+ data.tar.gz: bfb01aa0e618c65bf635a6cd6cc81da0fa17704b9c5784c486a9154c164ff9ea
5
5
  SHA512:
6
- metadata.gz: bc3ada372e37db9a400c69c7fc5cbfbb59fb2e54878cc5d51e51f31ae6769fd79ef6e4871e1a27c1f3901442aae4c3e683722fa957a4a714f96bdbbf133693b5
7
- data.tar.gz: 11b86ca186db89e6c68909be0dfd0a1fc1b27203fec77bad6f6b3a93f69328eff83b7796a458eb4e8a9c6fad0febed554571f828eea68c7a1c9cf582d64bcfce
6
+ metadata.gz: f390996f082ea34021009f38304296f68194be986e44edfed15c28ae3ded5ac9500a6dbd10bd6ed3b24c8239f627cdff5939be5c65b0541b273616945ea06634
7
+ data.tar.gz: beb3ac5e4aa8cac4fce86506aa94583420fd279c1132a45de59caeb57b708a36f76072d3d9587604d93b9fa9bb7720606fbe9434c810d29cda66ce43a8b3dd1d
@@ -6,13 +6,11 @@ jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
9
+ - uses: actions/checkout@v4
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@v1
12
12
  with:
13
- ruby-version: 3.0.0
13
+ ruby-version: 3.3
14
+ bundler-cache: true
14
15
  - name: Run the default task
15
- run: |
16
- gem install bundler -v 2.2.3
17
- bundle install
18
- bundle exec rake
16
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.5.10] - 2024-11-03
10
+ ### Fixed
11
+ - Fix issue #56: accept incomplete timestamp patterns.
12
+ - Use ruby 3.3.5.
13
+ - Remove codefactor badge from `README.md`.
14
+
9
15
  ## [0.5.9] - 2021-05-25
10
16
  ### Fixed
11
17
  - Fix issue #54: add check argument in some methods.
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in textrepo.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 13.0"
7
- gem "minitest", "~> 5.0"
6
+ gem "rake", "~> 13.1"
7
+ gem "minitest", "~> 5.20"
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020, 2021 mnbi
3
+ Copyright (c) 2020, 2021, 2024 mnbi
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Textrepo
2
2
 
3
3
  [![Build Status](https://github.com/mnbi/textrepo/workflows/Build/badge.svg)](https://github.com/mnbi/textrepo/actions?query=workflow%3A"Build")
4
- [![CodeFactor](https://www.codefactor.io/repository/github/mnbi/textrepo/badge)](https://www.codefactor.io/repository/github/mnbi/textrepo)
5
4
 
6
5
  Textrepo is a repository to store a note with a timestamp. Each note
7
6
  in the repository operates with the associated timestamp.
@@ -192,7 +192,18 @@ module Textrepo
192
192
  if exist?(stamp)
193
193
  results << stamp
194
194
  end
195
- when 0, "yyyymoddhhmiss".size, "yyyymodd".size, "yyyymo".size
195
+ when 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
196
+ # 0 <--- ""
197
+ # 5 <--- "yyyy m" (incomplete)
198
+ # 6 <--- "yyyy mo"
199
+ # 7 <--- "yyyy mo d" (incomplete)
200
+ # 8 <--- "yyyy mo dd"
201
+ # 9 <--- "yyyy mo dd h" (incomplete)
202
+ # 10 <-- "yyyy mo dd hh"
203
+ # 11 <-- "yyyy mo dd hh m" (incomplete)
204
+ # 12 <-- "yyyy mo dd hh mm"
205
+ # 13 <-- "yyyy mo dd hh mm s" (incomplete)
206
+ # 14 <-- "yyyy mo dd hh mm ss"
196
207
  results += find_entries("#{stamp_pattern}*")
197
208
  when 4 # "yyyy" or "modd"
198
209
  pat = nil
@@ -1,3 +1,3 @@
1
1
  module Textrepo
2
- VERSION = '0.5.9'
2
+ VERSION = '0.5.10'
3
3
  end
data/textrepo.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = %q{Textrepo is a repository to store text with timestamp. It can manage text with the attached timestamp (create/read/update/delete).}
11
11
  spec.homepage = "https://github.com/mnbi/textrepo"
12
12
  spec.license = "MIT"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.3.0")
14
14
 
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = "https://github.com/mnbi/textrepo"
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
27
 
28
- spec.add_development_dependency "bundler", "~> 2.1"
28
+ spec.add_development_dependency "bundler", "~> 2.5"
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textrepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - mnbi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-25 00:00:00.000000000 Z
11
+ date: 2024-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '2.5'
20
20
  type: :development
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: '2.1'
26
+ version: '2.5'
27
27
  description: Textrepo is a repository to store text with timestamp. It can manage
28
28
  text with the attached timestamp (create/read/update/delete).
29
29
  email:
@@ -70,14 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: 2.7.0
73
+ version: 3.3.0
74
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.2.15
80
+ rubygems_version: 3.5.18
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: A repository to store text with timestamp.