storable 0.10.pre.RC1 → 0.10.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/storable.rb +3 -3
  3. data/storable.gemspec +3 -1
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d4de380456e5e2160c14f50d89aca59f16663ee536f2c70c57fc60a012de4fa
4
- data.tar.gz: da8b8b69b2c609d015a8a8a6a98dd7012b32e738a6249aea467956d3adfdfca8
3
+ metadata.gz: 41cc444e205cd3c1d7db4fe1e9e6a185838e64f96392fe60ee97bd99329c548a
4
+ data.tar.gz: adbba74e40188200e33871aa3657e4a4df4242c8e099a422a2252a9282b4a702
5
5
  SHA512:
6
- metadata.gz: d06a4f6debd1580ff0eb700d6f0fc0c16fade5434448322fd9d576165723003dac7e22e32b7a05865e5ae169b40a5eddbe2e8f073f41694b8f84a81c3032997e
7
- data.tar.gz: 52e61c82500333a12d4254d84d02b8580cdc71c3f0008e618a72d757a769d56f66d38553f306f9228291ea0f4a6ca6dca44081f7a70109aa617603d2dd371a3d
6
+ metadata.gz: 3717e1e8ce01d5ff457b7afe4950f771da41ee1d70d343052eb1a632811fed0e5dc8702900eacb20213c3fc0d70a0b7083fb0ca971b4070a1c4da9c788bb36fa
7
+ data.tar.gz: 183a8f0108a339813b82079df27df0ea9bed63aa78557eaf2158c7eb2f84ff7a061db05dc359f64cb7bd08853165a6eaf5712fe73d15331e01a0b3be568479df
data/lib/storable.rb CHANGED
@@ -35,7 +35,7 @@ class Storable
35
35
 
36
36
  require 'storable/orderedhash' if USE_ORDERED_HASH
37
37
  unless defined?(SUPPORTED_FORMATS) # We can assume all are defined
38
- VERSION = "0.8.9"
38
+ VERSION = "0.10.0"
39
39
  NICE_TIME_FORMAT = "%Y-%m-%d@%H:%M:%S".freeze
40
40
  SUPPORTED_FORMATS = [:tsv, :csv, :yaml, :json, :s, :string].freeze
41
41
  end
@@ -194,7 +194,7 @@ class Storable
194
194
 
195
195
  # Create a new instance of the object using data from file.
196
196
  def self.from_file(file_path, format='yaml')
197
- raise "Cannot read file (#{file_path})" unless File.exists?(file_path)
197
+ raise "Cannot read file (#{file_path})" unless File.exist?(file_path)
198
198
  raise "#{self} doesn't support from_#{format}" unless self.respond_to?("from_#{format}")
199
199
  format = format || File.extname(file_path).tr('.', '')
200
200
  me = send("from_#{format}", read_file_to_array(file_path))
@@ -461,7 +461,7 @@ class Storable
461
461
 
462
462
  def self.read_file_to_array(path)
463
463
  contents = []
464
- return contents unless File.exists?(path)
464
+ return contents unless File.exist?(path)
465
465
 
466
466
  open(path, 'r') do |l|
467
467
  contents = l.readlines
data/storable.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "storable"
3
- s.version = "0.10-RC1"
3
+ s.version = "0.10.0"
4
4
  s.summary = "Ruby classes as strings"
5
5
  s.description = "Storable: Marshal Ruby classes into and out of multiple formats (yaml, json, csv, tsv)"
6
6
  s.authors = ["Delano Mandelbaum"]
@@ -19,4 +19,6 @@
19
19
  s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.md"]
20
20
  s.require_paths = %w[lib]
21
21
  s.rubygems_version = '3.2.21'
22
+
23
+ s.required_ruby_version = '>= 2.6.8'
22
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.pre.RC1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-03 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Storable: Marshal Ruby classes into and out of multiple formats (yaml,
14
14
  json, csv, tsv)'
@@ -40,14 +40,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0'
43
+ version: 2.6.8
44
44
  required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 1.3.1
48
+ version: '0'
49
49
  requirements: []
50
- rubygems_version: 3.3.26
50
+ rubygems_version: 3.5.7
51
51
  signing_key:
52
52
  specification_version: 4
53
53
  summary: Ruby classes as strings