storable 0.10.pre.RC2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
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: 9d468ae4b4c603f57f1181c2621c009468bd6a9675d6fd3d3fa93d31eaf6aa3c
4
- data.tar.gz: 99a96fb2cb80836c7be1ccfd2d7ac7dae4adbefb90db6fd3a40376eb1ce43db6
3
+ metadata.gz: 41cc444e205cd3c1d7db4fe1e9e6a185838e64f96392fe60ee97bd99329c548a
4
+ data.tar.gz: adbba74e40188200e33871aa3657e4a4df4242c8e099a422a2252a9282b4a702
5
5
  SHA512:
6
- metadata.gz: 625916584f044d82d6bab287ae2cad8218f02f358e622a142140349cea32c6b0152457f946bd41ac75c723a851633176bfce378468e65f8414ebe3d73c500cd7
7
- data.tar.gz: 139253c3cd97dbf50d2c3a561ba26f6bb8fc2d892874d9cd70ac6c0eb5bf93a9569c2769ec4396ebe2837ada3fcd106b131d904afabbe92e57e9a0e74baae1e5
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-RC2"
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.RC2
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