foobara-cached-command 1.0.0 → 1.0.1

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: c0cbe47bcf1bd9b9efd9dff8456fa23647a28dd18b54ecfa1167a40bdbd01c56
4
- data.tar.gz: 28da7e0c4682e53fca722d24e1b33fe45ca63b6a089c3c9a594694f36e159f9a
3
+ metadata.gz: 5d8e296be0c816d2067080c1e6e248728e45de05ca707fc6d02051435b23f31d
4
+ data.tar.gz: a6a1e6941c53c7835d9bafa3a01367952099249f1a7a3d75e3ab201e4daaa6a1
5
5
  SHA512:
6
- metadata.gz: 1459cf4031df08db4b3dceeb70deed05ff92da58bd876fc9a33725163e98af274c55d72fa740acb63b7b939f9daefc9c9b456a05001216d45218e0ad3bd32ef5
7
- data.tar.gz: b00a02a45fd79a4133287b9f14d27b5c5a242a567bdaf2111fd2cc041a91d4f699cd5bde59d54dfaf1e86d3e4525481458313ad0e65bb99bf9bd781f38fabca8
6
+ metadata.gz: e977071bfc0afa25f41307cdeb9eaf9933e0c48ba2742104aaf6cbbdaf2cc23d8d2ae5296e7abc78fb008205fb7f29b17c14f7d011a18438748a4b16b4e8cb9e
7
+ data.tar.gz: a2c50d13ad3b37e8432c5b45df7b9a82be660d1b67671399bf08cf6c15d1c00bc08aa892904a28ea4f7f3dec236388ea37b1a1e69017c62868acffb5ef932697
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.0.1] - 2026-09-11
2
+
3
+ - Handle removed JSON.fast_generate
4
+
1
5
  ## [1.0.0] - 2025-07-21
2
6
 
3
7
  - Add .reset_all for test suites
@@ -7,7 +7,7 @@ module Foobara
7
7
  module CachedCommand
8
8
  class << self
9
9
  def reset_all
10
- Foobara.raise_if_production!("reset_all")
10
+ Foobara.raise_if_production!
11
11
 
12
12
  FileUtils.rm_rf "tmp/cached_command/"
13
13
  Foobara::CachedCommand.cache.clear
@@ -49,7 +49,7 @@ module Foobara
49
49
 
50
50
  FileUtils.mkdir_p(basedir)
51
51
 
52
- File.write(file_path, JSON.fast_generate(data))
52
+ File.write(file_path, JSON.generate(data))
53
53
  cache[key] = data
54
54
  end
55
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-cached-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -13,6 +13,9 @@ dependencies:
13
13
  name: foobara
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 0.1.1
16
19
  - - "<"
17
20
  - !ruby/object:Gem::Version
18
21
  version: 2.0.0
@@ -20,6 +23,9 @@ dependencies:
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 0.1.1
23
29
  - - "<"
24
30
  - !ruby/object:Gem::Version
25
31
  version: 2.0.0
@@ -51,13 +57,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
53
59
  version: 3.4.0
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '4.1'
54
63
  required_rubygems_version: !ruby/object:Gem::Requirement
55
64
  requirements:
56
65
  - - ">="
57
66
  - !ruby/object:Gem::Version
58
67
  version: '0'
59
68
  requirements: []
60
- rubygems_version: 3.6.9
69
+ rubygems_version: 4.0.16
61
70
  specification_version: 4
62
71
  summary: Makes it so that any foobara command will cache its result in memory and
63
72
  on disk.