plutonium 0.15.0.pre.rc3 → 0.15.0

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: 405c1eab2d9e447c8a04632503a74cd7738a3e538b9f4c81d3f2f5388cc69db3
4
- data.tar.gz: 56abd90667c0ebed5de99983ecda28602d30bce10cfc25f7ea4050db83ae65a1
3
+ metadata.gz: a79da147b298beabc3cfbdeaca6b9fc9d933b28eeca7dc305ded679f8ad21319
4
+ data.tar.gz: 99b1d2b9c16aa6e097c2f50dfa5eee01768999c046d6a463b061608498c55523
5
5
  SHA512:
6
- metadata.gz: facccabb9461dd0948ae6c3ec7ff1cffce5430cf927d628abfc29725faf4155d5acdfe2990f1ecb23255baa5ffd9b8004a4da5cb274a26c50b62c3db921153ac
7
- data.tar.gz: 3a87907c78fbedf64c9fa96d4c206d5880f8984cc6dee212eeb1d1435b8c6a87bb410fbcd3e42aec80177ba29b45a17fd7dd76250755eba94c6454587b54ed79
6
+ metadata.gz: ebe1f5da07fbe90389c8dad3006084952649a82cfca662a177b51b612d84479ef52a8ad91b9c0df60a450b597933e560e12d0ddef85a63ce1ba6e7be3320e431
7
+ data.tar.gz: d372628ad0e5a0d79e90ec04d5bac2fccbb3ce43426494f49c0e1f64f1d002cdae414f7238718f654c11eb73b80debe298f147ae748877216b03f595513f5c25
@@ -2,7 +2,7 @@ require "simple_form"
2
2
 
3
3
  module PlutoniumUi
4
4
  class FormBuilder < SimpleForm::FormBuilder
5
- def input(attribute_name, options = {}, &block)
5
+ def input(attribute_name, options = {}, &)
6
6
  label_class = options.dig(:label_html, :class)
7
7
  if object&.errors&.[](attribute_name).present?
8
8
  # Don't show the hint
@@ -19,13 +19,13 @@ module PlutoniumUi
19
19
  options[:label_html] ||= {}
20
20
  options[:label_html][:class] = label_class
21
21
 
22
- super(attribute_name, options, &block)
22
+ super
23
23
  end
24
24
 
25
25
  def hint(...)
26
26
  return if object.errors[attribute_name].present?
27
27
 
28
- super(...)
28
+ super
29
29
  end
30
30
 
31
31
  def return_to(url)
@@ -9,7 +9,7 @@ module PlutoniumUi
9
9
  #
10
10
  # @param options [Hash] The options for the component.
11
11
  def initialize(...)
12
- super(...)
12
+ super
13
13
  @columns = []
14
14
  end
15
15
 
@@ -106,7 +106,7 @@ module PlutoniumGenerators
106
106
  end
107
107
 
108
108
  def yes?(statement, color = nil)
109
- !interactive? || super(statement, color)
109
+ !interactive? || super
110
110
  end
111
111
 
112
112
  def interactive?
@@ -2,9 +2,9 @@ module Plutonium
2
2
  module Core
3
3
  module Actions
4
4
  class BasicAction < Plutonium::Core::Action
5
- def initialize(*args, **kwargs)
5
+ def initialize(*, **kwargs)
6
6
  kwargs.reverse_merge! action_options
7
- super(*args, **kwargs)
7
+ super
8
8
  end
9
9
 
10
10
  private
@@ -8,12 +8,12 @@ module Plutonium
8
8
 
9
9
  attr_reader :interaction, :inline, :inputs
10
10
 
11
- def initialize(name, *args, interaction:, **kwargs)
11
+ def initialize(name, *, interaction:, **kwargs)
12
12
  set_interaction interaction
13
13
 
14
14
  kwargs[:route_options] ||= build_route_options name
15
15
  kwargs.reverse_merge! action_options
16
- super(name, *args, **kwargs)
16
+ super(name, *, **kwargs)
17
17
  end
18
18
 
19
19
  def confirmation
@@ -99,7 +99,7 @@ module Plutonium
99
99
  def root_path(*)
100
100
  return send(:"#{scoped_entity_param_key}_root_path", *) if scoped_to_entity? && scoped_entity_strategy == :path
101
101
 
102
- super(*)
102
+ super
103
103
  end
104
104
 
105
105
  def registered_resources
@@ -5,9 +5,9 @@ module Plutonium
5
5
  class AttachmentInput < SimpleFormInput
6
6
  attr_reader :reflection
7
7
 
8
- def initialize(name, reflection:, **options)
8
+ def initialize(name, reflection:, **)
9
9
  @reflection = reflection
10
- super(name, **options)
10
+ super(name, **)
11
11
  end
12
12
 
13
13
  private
@@ -7,14 +7,14 @@ module Plutonium
7
7
 
8
8
  attr_reader :inputs, :resource_class
9
9
 
10
- def initialize(name, inputs:, resource_class:, allow_destroy:, update_only:, limit:, **options)
10
+ def initialize(name, inputs:, resource_class:, allow_destroy:, update_only:, limit:, **)
11
11
  @inputs = inputs
12
12
  @resource_class = resource_class
13
13
  @allow_destroy = allow_destroy
14
14
  @update_only = update_only
15
15
  @limit = limit
16
16
 
17
- super(name, **options)
17
+ super(name, **)
18
18
  end
19
19
 
20
20
  def render
@@ -42,7 +42,7 @@ module Plutonium
42
42
  end
43
43
  end
44
44
  else
45
- super(&block)
45
+ super
46
46
  end
47
47
  end
48
48
 
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.15.0-rc3"
2
+ VERSION = "0.15.0"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.pre.rc3
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
@@ -1428,9 +1428,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1428
1428
  version: 3.2.2
1429
1429
  required_rubygems_version: !ruby/object:Gem::Requirement
1430
1430
  requirements:
1431
- - - ">"
1431
+ - - ">="
1432
1432
  - !ruby/object:Gem::Version
1433
- version: 1.3.1
1433
+ version: '0'
1434
1434
  requirements: []
1435
1435
  rubygems_version: 3.4.10
1436
1436
  signing_key: