active_call-api 0.1.1 → 0.1.2

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: 50d0496b6464e535935177271048ee1e64f343b02d0861ecf1194e6b478b94bd
4
- data.tar.gz: 220af672cf5bc713ba37de16ff2f1491e4b4123fd1f33e1de14dee7c77e95cd3
3
+ metadata.gz: d23874a9558d000decbf108d6b788a55b6828f708e803ec00b94c529e87bec29
4
+ data.tar.gz: eb9ee3ac6d81af702a00baebb7c08396f2f119a58877ece7a7ff4362a0cd9cbb
5
5
  SHA512:
6
- metadata.gz: cae306b53bd3c345e93c50144c630a2bf3d55e8639a6d374759727c60d464010ee995969eb49e51b0c86e121d18efc2323bf4e8277796e09fb1bb56139e80033
7
- data.tar.gz: 2b2888e5b561c8985cdc33c825774948836c3ff1f6a47a1cc0617904a4a5b2f3502144314b261d9b66befeca62897a68e12ffc1c77988887bc32e444059b0162
6
+ metadata.gz: 04ec1dab25deb138924d7afedbe3109e7fde959e9acec589b48cced78be931540319ffd748253645a8cf9037c77aa94f6ae0f76d2ca6c2220d21b66b3b14b9d3
7
+ data.tar.gz: e193076a2823202d9275d54d4af2313f8c1969167b11370781827c0e4caa0423368a981ae2de2375e8ae00bac88fdfd22a585cea647ac6ef97bcfda5c93050b4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.1.2] - 2025-03-28
2
+
3
+ - Fix for when included in a Rails app when getting `<NoMethodError: undefined method 'attributes'`.
4
+
1
5
  ## [0.1.1] - 2025-03-27
2
6
 
3
7
  - Remove `include ActiveModel::Validations`, it is already included with `active_call`.
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCall::Api::Attributes
4
+ def attributes
5
+ {}
6
+ end
7
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveCall
4
4
  module Api
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
@@ -302,3 +302,12 @@ end
302
302
  ActiveSupport.on_load(:i18n) do
303
303
  I18n.load_path << File.expand_path('api/locale/en.yml', __dir__)
304
304
  end
305
+
306
+ ActiveSupport.on_load(:active_record) do
307
+ # Getting the following error when the gem is included in a Rails application with ActiveRecord.
308
+ #
309
+ # <NoMethodError: undefined method `attributes' for an instance of YourGem::SomeResource::UpdateService>
310
+ #
311
+ # Struggling to get to the root of the issue, but this seems to help ¯\(°_o)/¯
312
+ ActiveCall::Api.include(ActiveCall::Api::Attributes)
313
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_call-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kobus Joubert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-27 00:00:00.000000000 Z
11
+ date: 2025-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_call
@@ -81,6 +81,7 @@ files:
81
81
  - README.md
82
82
  - Rakefile
83
83
  - lib/active_call/api.rb
84
+ - lib/active_call/api/attributes.rb
84
85
  - lib/active_call/api/locale/en.yml
85
86
  - lib/active_call/api/version.rb
86
87
  - lib/active_call/error.rb