nueca_rails_interfaces 0.2.6 → 0.2.7

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: 31ae17c6c4a1bc6e73e1e0cf9804c160d3cf5faf685b49c594c47c4be6a6e168
4
- data.tar.gz: 1fd912144144b1c8a5ee9431dd58f5c416216da361adf8f20d80646597d6f4cf
3
+ metadata.gz: 74afcdb7a7a52b56e4cc4cffe5090f41953716dff8ec0228eb16fe95481d6e7c
4
+ data.tar.gz: ec03b957452a422600146f6754f8c3d57e819784293886ad448ce6d116d7813e
5
5
  SHA512:
6
- metadata.gz: 2a3fb6374aebdfe04125d0a37b2dbdbc7397bebbe9ca9801bec2991c5355f5b2ee2b649cb24a676ffecf4f4eb7155cb343a0f3047a5836ba1bc837b6b56e4d84
7
- data.tar.gz: f1a29e95b7fee07b6a7bef84e34791c0e7f7177eb2ea0336f359dc34b24c893084c4c030cb226632051f3dbff9c72fcea0b704a076eca00e87777d75f9902933
6
+ metadata.gz: 6811ebb05326d196b007a2aacf05dc5862145c38a0adad0d419c8585fcdc0bf1156a9be802973a12f0ecf4547d25a82e4c5ac84d465522a42be9957f84e08cc4
7
+ data.tar.gz: bb113faf322139c677ce7302888c7ce5e64ec901500178b8b4915ef53449756792b03272f4b0f9af1bbff24cbdd98f081641b75d6382b9a5b21ffce4ac94cf14
data/.rubocop.yml CHANGED
@@ -1,6 +1,8 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rails
3
3
  - rubocop-rake
4
+
5
+ require:
4
6
  - rubocop-rspec
5
7
 
6
8
  AllCops:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NuecaRailsInterfaces
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
@@ -8,6 +8,12 @@ require_relative 'nueca_rails_interfaces/version'
8
8
 
9
9
  # This module is a namespace for the gem.
10
10
  module NuecaRailsInterfaces
11
+ # Class that forces an error due to being deprecated.
12
+ class DeprecatedError < StandardError
13
+ def initialize
14
+ super('This feature is deprecated.')
15
+ end
16
+ end
11
17
  end
12
18
 
13
19
  require_relative 'nueca_rails_interfaces/util'
@@ -15,17 +15,19 @@ module V1
15
15
  # Allows the form mixin to include ActiveModel::Model powers.
16
16
  # @param [self] base Instance of the base form that would include this module.
17
17
  # @return [void]
18
- def self.included(base)
19
- base.include(ActiveModel::Model)
20
- Rails.logger&.warn(
21
- <<~MSG
22
- ##############################################
23
- # DEPRECATION WARNING #
24
- # V1::FormInterface will be deprecated soon. #
25
- # Please use V2::FormInterface instead. #
26
- ##############################################
27
- MSG
28
- )
18
+ def self.included(_base)
19
+ raise NuecaRailsInterfaces::DeprecatedError
20
+
21
+ # base.include(ActiveModel::Model)
22
+ # Rails.logger&.warn(
23
+ # <<~MSG
24
+ # ##############################################
25
+ # # DEPRECATION WARNING #
26
+ # # V1::FormInterface will be deprecated soon. #
27
+ # # Please use V2::FormInterface instead. #
28
+ # ##############################################
29
+ # MSG
30
+ # )
29
31
  end
30
32
 
31
33
  # Final attributes to be returned by the form after validation.
@@ -14,15 +14,17 @@ module V1
14
14
  # Developers will mainly override `action` method and `data method`.
15
15
  module ServiceInterface
16
16
  def self.included(_)
17
- Rails.logger&.warn(
18
- <<~MSG
19
- #################################################
20
- # DEPRECATION WARNING #
21
- # V1::ServiceInterface will be deprecated soon. #
22
- # Please use V2::ServiceInterface instead. #
23
- #################################################
24
- MSG
25
- )
17
+ raise NuecaRailsInterfaces::DeprecatedError
18
+
19
+ # Rails.logger&.warn(
20
+ # <<~MSG
21
+ # #################################################
22
+ # # DEPRECATION WARNING #
23
+ # # V1::ServiceInterface will be deprecated soon. #
24
+ # # Please use V2::ServiceInterface instead. #
25
+ # #################################################
26
+ # MSG
27
+ # )
26
28
  end
27
29
 
28
30
  # This is the main method of the service. This is the method that should be called to perform the service.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nueca_rails_interfaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tien
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-03 00:00:00.000000000 Z
10
+ date: 2025-06-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.6.5
89
+ rubygems_version: 3.6.2
90
90
  specification_version: 4
91
91
  summary: Interfaces for known object entities in Rails Development at Nueca.
92
92
  test_files: []