fiber-storage 0.1.0 → 0.1.2

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: 613e39ecf0a56decec406ef7692b26baaf0b273dae3402ef8b84deab22af6015
4
- data.tar.gz: dd80f4d293fcc5b3b2359275af6a6834c8b9c474a0befecb77ea164e2e14de9c
3
+ metadata.gz: 94e4cd24eb54f3ddde1331fa5900809a0a9dcdd6c93f0ea84c347813f70dd049
4
+ data.tar.gz: 94ed180a80d0879e3235a100eb47ef7e9286aad87f8b725a491733615ba5fc78
5
5
  SHA512:
6
- metadata.gz: 55c768ba68fbc1cd36b09bcf20a9d903fae33d73402d7beb41e98510d76c681f8bee71f9a6b1e1019c6bc5b12486fdca16c7a2eded4725acae052bd0ed6d8be8
7
- data.tar.gz: 0e4404d83c7f2a26f492133aa5c15bdecbfbb655ff48cfb081ac56612c3c1f40a87e1df4e41c8fdc1c50be57dd5d68b1be4a72760f88634d8616cad58e9298bb
6
+ metadata.gz: a93d517e4f2ac212b71fefd8fc582d8fe2c9d08b43d7be907599cc9c33426011f6d479667d9bc7ae9d61a1d1d3533b2453944a2bcb1c28565fd189d64ee164c6
7
+ data.tar.gz: 393c7b732dc373de8e9dfcb4458d6224add7ed6ef983bf69eecfac0afadad019c72db49cc295523e472bbd467ca0d724fc8862967d6113e1fecc0dbe9d11fea4
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022, by Samuel Williams.
4
+ # Copyright, 2022-2023, by Samuel Williams.
5
5
 
6
6
  require 'fiber'
7
7
 
8
8
  class Fiber
9
9
  module Storage
10
- VERSION = "0.1.0"
10
+ VERSION = "0.1.2"
11
11
  end
12
12
  end
data/lib/fiber/storage.rb CHANGED
@@ -36,7 +36,6 @@ class Fiber
36
36
  end
37
37
 
38
38
  unless Fiber.current.respond_to?(:storage)
39
- warn "Fiber#storage is missing and being monkey-patched."
40
39
  prepend Storage
41
40
 
42
41
  # Get a value from the current fiber's storage.
@@ -76,7 +75,6 @@ class Fiber
76
75
  end
77
76
  end
78
77
 
79
- warn "Fiber#storage has borked keys and is being monkey-patched."
80
78
  singleton_class.prepend FixBorkedKeys
81
79
  end
82
80
  end
data/readme.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This gem provides a shim for `Fiber.[]`, `Fiber.[]=`, `Fiber#storage`, `Fiber#storage=`, which was introduced in Ruby 3.2.
4
4
 
5
+ [![Development Status](https://github.com/ioquatix/fiber-storage/workflows/Test/badge.svg)](https://github.com/ioquatix/fiber-storage/actions?workflow=Test)
6
+
5
7
  ## Motivation
6
8
 
7
9
  Ruby 3.2 introduces inheritable fiber storage for per-request or per-operation state. This gem provides a shim for Ruby 3.1 and earlier to make adoption easier. It isn't able to provide the full range of features, but it should be sufficient for most use cases.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiber-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,50 +37,8 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2023-08-24 00:00:00.000000000 Z
41
- dependencies:
42
- - !ruby/object:Gem::Dependency
43
- name: bundler
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: covered
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: sus
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
40
+ date: 2024-06-15 00:00:00.000000000 Z
41
+ dependencies: []
84
42
  description:
85
43
  email:
86
44
  executables: []
@@ -91,10 +49,13 @@ files:
91
49
  - lib/fiber/storage/version.rb
92
50
  - license.md
93
51
  - readme.md
94
- homepage: https://github.com/socketry/fiber-storage
52
+ homepage: https://github.com/ioquatix/fiber-storage
95
53
  licenses:
96
54
  - MIT
97
- metadata: {}
55
+ metadata:
56
+ documentation_uri: https://ioquatix.github.io/fiber-storage/
57
+ funding_uri: https://github.com/sponsors/ioquatix/
58
+ source_code_uri: https://github.com/ioquatix/fiber-storage.git
98
59
  post_install_message:
99
60
  rdoc_options: []
100
61
  require_paths:
@@ -103,14 +64,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
64
  requirements:
104
65
  - - ">="
105
66
  - !ruby/object:Gem::Version
106
- version: 2.7.0
67
+ version: '2.7'
107
68
  required_rubygems_version: !ruby/object:Gem::Requirement
108
69
  requirements:
109
70
  - - ">="
110
71
  - !ruby/object:Gem::Version
111
72
  version: '0'
112
73
  requirements: []
113
- rubygems_version: 3.4.10
74
+ rubygems_version: 3.5.9
114
75
  signing_key:
115
76
  specification_version: 4
116
77
  summary: Provides a compatibility shim for fiber storage.
metadata.gz.sig CHANGED
Binary file