aranha-rails 0.9.2 → 0.10.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: ccf0e2d95f1f75b70103fc8dbd3c579900dbd9fc4ed84b85a8b8b66c0e0bee5e
4
- data.tar.gz: fc49c9631f3fdda0b35cd82cbb104f0552512453c5df635ef77b91082d42262d
3
+ metadata.gz: 6ef473d4768fa4c8f4c030b5ce29f2e165aeaca2183b843730c0e7275b463688
4
+ data.tar.gz: 8338e62d01cd6909d4c455705fe39b396388013ebc9e1044341aa3ad62128700
5
5
  SHA512:
6
- metadata.gz: ed9e51426b0ed6ff0606030053b66641703467969845564dbfbff652b5092c4524ea7e88b72f5631fc6d2e28da68f63f7d07605304bc2d3c9b92c2ce0ca79bb9
7
- data.tar.gz: ad6e443f99d39aae62a93e9d0104ad39eccfb272df1e80d14cc4044d7554ef5ac30ae4cfe22568afcc9a6993d1bdeff98d27f885b90ffc4e0d840da7fa8daec0
6
+ metadata.gz: c4d61b4c8d7609c1fea15af3e48c07fbe7dd919f9bcd3703a2233d710a31a173c472cff0411bbef1141fe10d9fdda7caf3fcfbbac3f4a978163601787eb66c1e
7
+ data.tar.gz: 02e7029d9a3a0ff554fb9dfb8f793e11aa69148f578e50aee54d67885affc1ffafb9352583032133f2d9ddccffb911e5974f63d353e3e6325d8941d5b9dd812e
@@ -24,7 +24,7 @@ module Aranha
24
24
  belongs_to :delayed_job, class_name: 'Delayed::Backend::ActiveRecord::Job', dependent: :destroy,
25
25
  optional: true
26
26
 
27
- validates :url, presence: true, uniqueness: true
27
+ validates :url, presence: true, uniqueness: true # rubocop:disable Rails/UniqueValidationWithoutIndex
28
28
  validates :processor, presence: true
29
29
  validates :tries_count, presence: true, numericality: { only_integer: true,
30
30
  greater_or_equal: 0 }
@@ -24,7 +24,7 @@ module Aranha
24
24
  end
25
25
  end
26
26
 
27
- validates :uri, presence: true, uniqueness: true,
27
+ validates :uri, presence: true, uniqueness: true, # rubocop:disable Rails/UniqueValidationWithoutIndex
28
28
  format: { with: ::URI::DEFAULT_PARSER.make_regexp }
29
29
  validates :processor_class, presence: true
30
30
  validate :processor_class_in_list
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::Rails.application.root_menu.group(:admin).group(:aranha, :aranha).within do |g|
4
+ g.action(:addresses).label(-> { ::Aranha::Address.plural_name })
5
+ g.action(:processor_configurations)
6
+ .label(-> { ::Aranha::ProcessorConfiguration.plural_name })
7
+ g.action(:start_points).label(-> { ::Aranha::StartPoint.plural_name })
8
+ end
@@ -10,3 +10,9 @@ en:
10
10
  aranha/start_point:
11
11
  one: Aranha start point
12
12
  other: Aranha start points
13
+ eac_rails_utils:
14
+ menus:
15
+ root:
16
+ admin:
17
+ aranha:
18
+ __self: Aranha
@@ -10,3 +10,9 @@ pt-BR:
10
10
  aranha/start_point:
11
11
  one: Ponto de Partida Aranha
12
12
  other: Pontos de Partida Aranha
13
+ eac_rails_utils:
14
+ menus:
15
+ root:
16
+ admin:
17
+ aranha:
18
+ __self: Aranha
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Rails
5
- VERSION = '0.9.2'
5
+ VERSION = '0.10.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aranha-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-24 00:00:00.000000000 Z
11
+ date: 2023-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha
@@ -90,28 +90,34 @@ dependencies:
90
90
  requirements:
91
91
  - - "~>"
92
92
  - !ruby/object:Gem::Version
93
- version: '0.19'
93
+ version: '0.22'
94
94
  type: :runtime
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - "~>"
99
99
  - !ruby/object:Gem::Version
100
- version: '0.19'
100
+ version: '0.22'
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: eac_ruby_utils
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: '0.118'
107
+ version: '0.119'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.119.2
108
111
  type: :runtime
109
112
  prerelease: false
110
113
  version_requirements: !ruby/object:Gem::Requirement
111
114
  requirements:
112
115
  - - "~>"
113
116
  - !ruby/object:Gem::Version
114
- version: '0.118'
117
+ version: '0.119'
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 0.119.2
115
121
  - !ruby/object:Gem::Dependency
116
122
  name: rails
117
123
  requirement: !ruby/object:Gem::Requirement
@@ -167,6 +173,7 @@ files:
167
173
  - app/models/aranha/processor_configuration.rb
168
174
  - app/models/aranha/start_point.rb
169
175
  - config/initializers/aranha.rb
176
+ - config/initializers/menus.rb
170
177
  - config/locales/en.yml
171
178
  - config/locales/pt-BR.yml
172
179
  - config/routes.rb
@@ -200,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
207
  requirements:
201
208
  - - ">="
202
209
  - !ruby/object:Gem::Version
203
- version: '0'
210
+ version: '2.4'
204
211
  required_rubygems_version: !ruby/object:Gem::Requirement
205
212
  requirements:
206
213
  - - ">="
@@ -212,8 +219,8 @@ signing_key:
212
219
  specification_version: 4
213
220
  summary: Put here de description.
214
221
  test_files:
215
- - spec/rubocop_spec.rb
216
222
  - spec/spec_helper.rb
223
+ - spec/rubocop_spec.rb
217
224
  - ".rspec"
218
225
  - Gemfile
219
226
  - ".rubocop.yml"