active_scaffold_duplicate 1.1.4 → 1.2.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: 78f2be0ff070f22c4a9a630af130d7619a3a5082f58b66183dd9a16569461375
4
- data.tar.gz: 6d4950083667682aea84fd16a4586a546a6730b7784e5fc715ece4d7c6129aac
3
+ metadata.gz: '000090db88809b6c86fb027ca9e576358265ff88f4b9db0a98c730d76792c5b4'
4
+ data.tar.gz: f3469b5d01868324d55d6380e3d18447a61567294310617ba5554cfb166087d3
5
5
  SHA512:
6
- metadata.gz: 7813adc9c072eca9f11b3e5caefabb8ad0d42b7e7a4428325b28f30529c33ad0621da7f91d574321a1f8f3de2dcb7afb9cff4fd9cf85cd3e9a0c63c8f0164e8d
7
- data.tar.gz: 34e53f4f665ed36066bae9a1108a3c61a91a6600b5b3ff6daadf12ff50daa0d55a6be28a7633ca51f6ee6f9f4606bb7361975009a05dcab70e7e995310e5146f
6
+ metadata.gz: 8fef7c1494886ea04da287b43937ab8d7c0ff24ceae01b41a85b24cd621905667136310824640e0ee1c0ab4eb9b7f6b15d4cbe35c3f823294d659a14f35b9bb8
7
+ data.tar.gz: 6255e504a1dd6c87bf450e97913cd40dc0b9f16619f5879fbe4bfa0205d0ead5786f01179966047c25076a248568d96235cfb68f2e609c1e2ef92353f4b79215
@@ -1,9 +1,14 @@
1
1
  module ActiveScaffoldDuplicate
2
2
  class Engine < ::Rails::Engine
3
- initializer "active_scaffold.action_view" do |app|
3
+ initializer "active_scaffold_duplicate.action_view" do |app|
4
4
  ActiveSupport.on_load :action_view do
5
5
  include ActiveScaffold::Helpers::DuplicateHelpers
6
6
  end
7
7
  end
8
+ initializer 'active_scaffold_duplicate.routes' do
9
+ ActiveSupport.on_load :active_scaffold_routing do
10
+ self::ACTIVE_SCAFFOLD_CORE_ROUTING[:member][:duplicate] = [:post, :get]
11
+ end
12
+ end
8
13
  end
9
14
  end
@@ -1,8 +1,8 @@
1
1
  module ActiveScaffoldDuplicate
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 1
5
- PATCH = 4
4
+ MINOR = 2
5
+ PATCH = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -1,4 +1,3 @@
1
- require "active_scaffold_duplicate/config/core.rb"
2
1
  require "active_scaffold_duplicate/engine.rb"
3
2
 
4
3
  module ActiveScaffoldDuplicate
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_duplicate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-15 00:00:00.000000000 Z
11
+ date: 2024-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_scaffold
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.6.0.pre
19
+ version: 3.7.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.6.0.pre
26
+ version: 3.7.1
27
27
  description: Clone records using a method from model in ActiveScaffold
28
28
  email: activescaffold@googlegroups.com
29
29
  executables: []
@@ -41,7 +41,6 @@ files:
41
41
  - lib/active_scaffold/config/duplicate.rb
42
42
  - lib/active_scaffold/helpers/duplicate_helpers.rb
43
43
  - lib/active_scaffold_duplicate.rb
44
- - lib/active_scaffold_duplicate/config/core.rb
45
44
  - lib/active_scaffold_duplicate/engine.rb
46
45
  - lib/active_scaffold_duplicate/version.rb
47
46
  homepage: http://github.com/activescaffold/active_scaffold_duplicate
@@ -63,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
62
  - !ruby/object:Gem::Version
64
63
  version: '0'
65
64
  requirements: []
66
- rubygems_version: 3.0.9
65
+ rubygems_version: 3.2.3
67
66
  signing_key:
68
67
  specification_version: 4
69
68
  summary: Clone record gem for Activescaffold
@@ -1,4 +0,0 @@
1
- # Need to open the AS module carefully due to Rails 2.3 lazy loading
2
- ActiveScaffold::Config::Core.class_eval do
3
- ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:member][:duplicate] = [:post, :get]
4
- end