foobara-cached-command 0.0.2 → 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: 28d9ff865e9bcef1916074da6800fc794ccd1be7b476eabb0eae805cd30fd927
4
- data.tar.gz: 06c371633bde1bd493a2ba945a0b68665d761a4ce13c281cb1e45532b9ca0ec3
3
+ metadata.gz: 5d8e296be0c816d2067080c1e6e248728e45de05ca707fc6d02051435b23f31d
4
+ data.tar.gz: a6a1e6941c53c7835d9bafa3a01367952099249f1a7a3d75e3ab201e4daaa6a1
5
5
  SHA512:
6
- metadata.gz: 8a85959c4074b29c67df622245572ffbf1842d4d5439f8bbf92b42be73ab286c595f86c5f0ef878ca3b67b4a06160facd9c6e91274a4f1de084d6e7b91f761b3
7
- data.tar.gz: 8ff108e33e8c3b63e519595763e36dda8e82c9d8a3830cdfb63317c8cba04b94febd54762cdf94c42a34169176c18241328a8b8ee19db5712280c50acfd167d5
6
+ metadata.gz: e977071bfc0afa25f41307cdeb9eaf9933e0c48ba2742104aaf6cbbdaf2cc23d8d2ae5296e7abc78fb008205fb7f29b17c14f7d011a18438748a4b16b4e8cb9e
7
+ data.tar.gz: a2c50d13ad3b37e8432c5b45df7b9a82be660d1b67671399bf08cf6c15d1c00bc08aa892904a28ea4f7f3dec236388ea37b1a1e69017c62868acffb5ef932697
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.0.1] - 2026-09-11
2
+
3
+ - Handle removed JSON.fast_generate
4
+
5
+ ## [1.0.0] - 2025-07-21
6
+
7
+ - Add .reset_all for test suites
8
+
1
9
  ## [0.0.2] - 2025-02-19
2
10
 
3
11
  - Fix bugs with tmp file name
@@ -2,3 +2,16 @@ require "foobara/all"
2
2
  require "foobara/command_connectors"
3
3
 
4
4
  Foobara::Util.require_directory "#{__dir__}/../../src"
5
+
6
+ module Foobara
7
+ module CachedCommand
8
+ class << self
9
+ def reset_all
10
+ Foobara.raise_if_production!
11
+
12
+ FileUtils.rm_rf "tmp/cached_command/"
13
+ Foobara::CachedCommand.cache.clear
14
+ end
15
+ end
16
+ end
17
+ end
@@ -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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-cached-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: foobara
@@ -15,14 +15,20 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '0'
18
+ version: 0.1.1
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: 2.0.0
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
23
26
  - - ">="
24
27
  - !ruby/object:Gem::Version
25
- version: '0'
28
+ version: 0.1.1
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: 2.0.0
26
32
  email:
27
33
  - azimux@gmail.com
28
34
  executables: []
@@ -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.3
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.