pstore 0.1.2 → 0.1.3

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: 4ca86b8693a69b67fa1864f055fb547d881d62979a047a7fa24e43aa0688cc01
4
- data.tar.gz: b4af87cbe5e36edcf852c5465e686e477cb8ae301cd00c4dd8a38f56aa23f6e2
3
+ metadata.gz: 72f658b529641295888e56602677fe0f38bda8824529a2a8d35100e6d58e99e8
4
+ data.tar.gz: 1531cc04ead49cbc5dbf481f2f4a695bc1de94398f057ff0c65ff022322284bc
5
5
  SHA512:
6
- metadata.gz: 8f87e2b27466bcb3dfb2b910b1fb2fafcec06beef6d4aa49c9dad2acdf170c9d5db8631b9c08097b97334ec3797043c89b96b138c363805205407d0cc0b08590
7
- data.tar.gz: 0efcfca9e94dae981be03cfd191265d10c348241b243c2fd7f7ae0fa07b63781ddcf70853dea07889294fd85794fbbc34f7b00b2de67de2b16950b882fe302f2
6
+ metadata.gz: 79f06b0cb5666d9ba0a2497d99b42761c5c728b87137693581faa6c08f9b3f4f53dc34764db01b4190a08e33259e0b933a98aa17f5dd8f0717670fdb55a9b0df
7
+ data.tar.gz: 7cd25219d39946f558480e53373b47da30d8083cea9e67a3dfd44f7612050f23fd05577d932cb0f4a1af46b42119ff2a4bf3bb36300a5163f31d837f7126dbda
@@ -3,20 +3,27 @@ name: test
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
6
+ ruby-versions:
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ engine: cruby
10
+ min_version: 2.4
11
+
12
+ test:
13
+ needs: ruby-versions
7
14
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
15
  strategy:
9
16
  matrix:
10
- ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
17
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
11
18
  os: [ ubuntu-latest, macos-latest ]
12
19
  runs-on: ${{ matrix.os }}
13
20
  steps:
14
- - uses: actions/checkout@v3
21
+ - uses: actions/checkout@v4
15
22
  - name: Set up Ruby
16
23
  uses: ruby/setup-ruby@v1
17
24
  with:
18
25
  ruby-version: ${{ matrix.ruby }}
19
26
  - name: Install dependencies
20
- run: bundle install
27
+ run: gem i test-unit test-unit-ruby-core
21
28
  - name: Run test
22
29
  run: rake test
data/Gemfile CHANGED
@@ -6,4 +6,5 @@ group :development do
6
6
  gem "bundler"
7
7
  gem "rake"
8
8
  gem "test-unit"
9
+ gem "test-unit-ruby-core"
9
10
  end
data/Rakefile CHANGED
@@ -7,11 +7,4 @@ Rake::TestTask.new(:test) do |t|
7
7
  t.test_files = FileList["test/**/test_*.rb"]
8
8
  end
9
9
 
10
- task :sync_tool do
11
- require 'fileutils'
12
- FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
13
- FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
14
- FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
15
- end
16
-
17
10
  task :default => :test
data/lib/pstore.rb CHANGED
@@ -326,7 +326,7 @@ require "digest"
326
326
  # end
327
327
  #
328
328
  class PStore
329
- VERSION = "0.1.2"
329
+ VERSION = "0.1.3"
330
330
 
331
331
  RDWR_ACCESS = {mode: IO::RDWR | IO::CREAT | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze
332
332
  RD_ACCESS = {mode: IO::RDONLY | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze
@@ -487,8 +487,6 @@ class PStore
487
487
  # end
488
488
  #
489
489
  # Raises an exception if called outside a transaction block.
490
- #
491
- # PStore#roots is an alias for PStore#keys.
492
490
  def keys
493
491
  in_transaction
494
492
  @table.keys
@@ -504,8 +502,6 @@ class PStore
504
502
  # end
505
503
  #
506
504
  # Raises an exception if called outside a transaction block.
507
- #
508
- # PStore#root? is an alias for PStore#key?.
509
505
  def key?(key)
510
506
  in_transaction
511
507
  @table.key? key
@@ -521,8 +517,8 @@ class PStore
521
517
  end
522
518
 
523
519
  # Exits the current transaction block, committing any changes
524
- # specified in the transaction block.
525
- # See {Committing or Aborting}[rdoc-ref:PStore@Committing+or+Aborting].
520
+ # specified in the
521
+ # {transaction block}[rdoc-ref:PStore@The+Transaction+Block].
526
522
  #
527
523
  # Raises an exception if called outside a transaction block.
528
524
  def commit
@@ -532,8 +528,8 @@ class PStore
532
528
  end
533
529
 
534
530
  # Exits the current transaction block, discarding any changes
535
- # specified in the transaction block.
536
- # See {Committing or Aborting}[rdoc-ref:PStore@Committing+or+Aborting].
531
+ # specified in the
532
+ # {transaction block}[rdoc-ref:PStore@The+Transaction+Block].
537
533
  #
538
534
  # Raises an exception if called outside a transaction block.
539
535
  def abort
data/pstore.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  name = File.basename(__FILE__, ".gemspec")
4
- version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
4
+ version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
5
5
  break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
6
6
  /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
7
7
  end rescue nil
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  # Specify which files should be added to the gem when it is released.
25
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
26
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27
- `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
28
  end
29
29
  spec.bindir = "exe"
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Transactional File Storage for Ruby Objects
14
14
  email:
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
- rubygems_version: 3.4.0.dev
53
+ rubygems_version: 3.5.0.dev
54
54
  signing_key:
55
55
  specification_version: 4
56
56
  summary: Transactional File Storage for Ruby Objects