active_interaction 5.4.0 → 5.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f39aaac6de9ca228f9a223ef78ce39b17f7b934ac161e66067993b33968851c6
4
- data.tar.gz: 9b16a1f1e0e0ecacb542709b103db93a79c9995a7cc90c5cff89d619ffcad204
3
+ metadata.gz: 9e3c0c4b273d6133644463ea773ea4551331ee7a9eb92c9dc9b3ff4b069aff55
4
+ data.tar.gz: bc874a3de1e5557e2baf01a59b62822fb073721f4e639559e47ce72ce50c41ad
5
5
  SHA512:
6
- metadata.gz: 4c1796f310a05133999ad8b69ea16073f017856a4fb371d4f38381d8d69c3503b3b1b2e1e45126b4f8feec0723de622ce672d043b5e6a933840abd5825327235
7
- data.tar.gz: b7af241f16b1554e186456e647e2d612446b4a1ad8bb9ae2a4fa903a5231fe4b04751e6ba4becd4c5d2edd69ebe4698ab27b82534a73a464ca631073a7f71160
6
+ metadata.gz: b3af5f93ea4049897a6d10bf3da4e11d3eccfa14fd8a0180eeb84c6e695fadd9bc2990c0058bb605a9f7667c0759e32187797984128d3ab36b4e06ff176e26ea
7
+ data.tar.gz: 4b3fdc8b15977f1e0e46f654e97574581da9ebbdd851b7c91355c5ea32906fdd9b68e220bf89cc57973041995e47b3f9a8183155fbf5a1e8167d3be213c3ad8e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ # [5.5.0][] (2025-02-02)
2
+
3
+ ## Added
4
+
5
+ - Support for Ruby 3.4.
6
+
7
+ ## Fixed
8
+
9
+ - OStruct was listed as a development dependency instead of a runtime dependency.
10
+ The need for OStruct has been removed entirely.
11
+
1
12
  # [5.4.0][] (2024-11-23)
2
13
 
3
14
  ## Added
@@ -1151,6 +1162,8 @@ Example.run
1151
1162
 
1152
1163
  - Initial release.
1153
1164
 
1165
+ [5.5.0]: https://github.com/AaronLasseigne/active_interaction/compare/v5.4.0...v5.5.0
1166
+ [5.4.0]: https://github.com/AaronLasseigne/active_interaction/compare/v5.3.0...v5.4.0
1154
1167
  [5.3.0]: https://github.com/AaronLasseigne/active_interaction/compare/v5.2.0...v5.3.0
1155
1168
  [5.2.0]: https://github.com/AaronLasseigne/active_interaction/compare/v5.1.1...v5.2.0
1156
1169
  [5.1.1]: https://github.com/AaronLasseigne/active_interaction/compare/v5.1.0...v5.1.1
data/README.md CHANGED
@@ -60,13 +60,13 @@ If ActiveModel deals with your nouns, then ActiveInteraction handles your verbs.
60
60
  Add it to your Gemfile:
61
61
 
62
62
  ``` rb
63
- gem 'active_interaction', '~> 5.4'
63
+ gem 'active_interaction', '~> 5.5'
64
64
  ```
65
65
 
66
66
  Or install it manually:
67
67
 
68
68
  ``` sh
69
- $ gem install active_interaction --version '~> 5.4'
69
+ $ gem install active_interaction --version '~> 5.5'
70
70
  ```
71
71
 
72
72
  This project uses [Semantic Versioning][]. Check out [GitHub releases][] for a
@@ -1,11 +1,31 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'ostruct'
4
-
5
3
  module ActiveInteraction
6
4
  # Holds a group of inputs together for passing from {Base} to {Filter}s.
7
5
  #
8
6
  # @private
9
- class GroupedInput < OpenStruct
7
+ class GroupedInput
8
+ include Comparable
9
+
10
+ attr_reader :data
11
+ protected :data
12
+
13
+ def initialize(**data)
14
+ @data = data
15
+ end
16
+
17
+ def [](key)
18
+ @data[key]
19
+ end
20
+
21
+ def []=(key, value)
22
+ @data[key] = value
23
+ end
24
+
25
+ def <=>(other)
26
+ return nil unless other.is_a?(self.class)
27
+
28
+ data <=> other.data
29
+ end
10
30
  end
11
31
  end
@@ -4,5 +4,5 @@ module ActiveInteraction
4
4
  # The version number.
5
5
  #
6
6
  # @return [Gem::Version]
7
- VERSION = Gem::Version.new('5.4.0')
7
+ VERSION = Gem::Version.new('5.5.0')
8
8
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_interaction
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne
8
8
  - Taylor Fausak
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-11-23 00:00:00.000000000 Z
11
+ date: 2025-02-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activemodel
@@ -93,20 +92,6 @@ dependencies:
93
92
  - - "~>"
94
93
  - !ruby/object:Gem::Version
95
94
  version: '2.1'
96
- - !ruby/object:Gem::Dependency
97
- name: ostruct
98
- requirement: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '0.6'
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '0.6'
110
95
  - !ruby/object:Gem::Dependency
111
96
  name: rake
112
97
  requirement: !ruby/object:Gem::Requirement
@@ -271,7 +256,6 @@ metadata:
271
256
  source_code_uri: https://github.com/AaronLasseigne/active_interaction
272
257
  changelog_uri: https://github.com/AaronLasseigne/active_interaction/blob/main/CHANGELOG.md
273
258
  rubygems_mfa_required: 'true'
274
- post_install_message:
275
259
  rdoc_options: []
276
260
  require_paths:
277
261
  - lib
@@ -286,8 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
270
  - !ruby/object:Gem::Version
287
271
  version: '0'
288
272
  requirements: []
289
- rubygems_version: 3.5.22
290
- signing_key:
273
+ rubygems_version: 3.6.2
291
274
  specification_version: 4
292
275
  summary: Manage application specific business logic.
293
276
  test_files: []