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 +4 -4
- data/app/models/aranha/address.rb +1 -1
- data/app/models/aranha/start_point.rb +1 -1
- data/config/initializers/menus.rb +8 -0
- data/config/locales/en.yml +6 -0
- data/config/locales/pt-BR.yml +6 -0
- data/lib/aranha/rails/version.rb +1 -1
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ef473d4768fa4c8f4c030b5ce29f2e165aeaca2183b843730c0e7275b463688
|
4
|
+
data.tar.gz: 8338e62d01cd6909d4c455705fe39b396388013ebc9e1044341aa3ad62128700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/config/locales/en.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/lib/aranha/rails/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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: '
|
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"
|