textrepo 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +4 -6
- data/CHANGELOG.md +6 -0
- data/Gemfile +2 -2
- data/LICENSE +1 -1
- data/README.md +0 -1
- data/lib/textrepo/file_system_repository.rb +12 -1
- data/lib/textrepo/version.rb +1 -1
- data/textrepo.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0937f6151f2758ca033ce7c7b0c56f0df77aacd1887b00101354de77a48e0031'
|
4
|
+
data.tar.gz: bfb01aa0e618c65bf635a6cd6cc81da0fa17704b9c5784c486a9154c164ff9ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f390996f082ea34021009f38304296f68194be986e44edfed15c28ae3ded5ac9500a6dbd10bd6ed3b24c8239f627cdff5939be5c65b0541b273616945ea06634
|
7
|
+
data.tar.gz: beb3ac5e4aa8cac4fce86506aa94583420fd279c1132a45de59caeb57b708a36f76072d3d9587604d93b9fa9bb7720606fbe9434c810d29cda66ce43a8b3dd1d
|
data/.github/workflows/main.yml
CHANGED
@@ -6,13 +6,11 @@ jobs:
|
|
6
6
|
build:
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
steps:
|
9
|
-
- uses: actions/checkout@
|
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.
|
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
data/LICENSE
CHANGED
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,
|
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
|
data/lib/textrepo/version.rb
CHANGED
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(">=
|
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.
|
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.
|
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:
|
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.
|
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.
|
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:
|
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.
|
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.
|