aranha-rails 0.7.1 → 0.7.5

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: a7f0c7237e3e9ca7d3f5ddc61973513d2a86750e88d96640879c5cd91a46be91
4
- data.tar.gz: 59b99c087566e49e93e116d51a05f2c29406d8376640112d52f7c59184543de8
3
+ metadata.gz: 5d239706dd3ab35e45e5323cf31a72ef271a54549af7e4e7048a9409d14c7e15
4
+ data.tar.gz: e1512c3a6f2907d5b0cb2e0d68c2667395abb52ef3001513ba8739c7ce2ec71d
5
5
  SHA512:
6
- metadata.gz: 80ec1e16b92e7ae0cb463f64c4f6f35b93876fb0987fc0a6ed9d3a57cb509fba35fcddeae40b6b16ba8901576e3f6da125c79e40b3d246b77887c90e8ba15bee
7
- data.tar.gz: 82a5d76749efb28e26388b1af4cb2d9208915920124e6d6b881d58a1e598a56de989fb539da363a26d09827e96d6cd985f516815ba633ed38069e2eeefffa92e
6
+ metadata.gz: 82d8caf5476cb0ec35adbbbb331d60a4485e928fc09670c4aa37ae8d5e901cd7ee03000f3f0c31905fff1b326fa26e18e4f24228ea02a5ae710024b1bc437487
7
+ data.tar.gz: 2b74eecd11c26522fe44dd7c15bcf8d204e78e7bc1457c97b04ad626fe002b4955c7599e29c22af1af76510aff04f10fb472d5cd78f1ebf9963e2be49e0dd8af
@@ -1,2 +1,2 @@
1
1
  //= require_tree .
2
- //= require active_scaffold
2
+ //= require eac_active_scaffold
@@ -1,5 +1,5 @@
1
1
  /*
2
2
  *= require_tree .
3
3
  *= require_self
4
- *= require active_scaffold
4
+ *= require eac_active_scaffold
5
5
  */
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Aranha
4
4
  class AddressesController < ::ApplicationController
5
- active_scaffold :'aranha/address' do |_conf|
5
+ active_scaffold :'aranha/address' do |conf|
6
+ conf.actions.exclude :create, :update
6
7
  end
7
8
  end
8
9
  end
@@ -8,6 +8,7 @@ module Aranha
8
8
  common_constructor :address_id
9
9
 
10
10
  def perform
11
+ ::Rails.logger.info("Processing \"#{address.url}\"")
11
12
  address_processor.successful? ? perform_on_success : perform_on_error
12
13
  end
13
14
 
data/config/routes.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  ::Aranha::Rails::Engine.routes.draw do
4
- concern :active_scaffold, ActiveScaffold::Routing::Basic.new(association: true)
5
- resources(:addresses, concerns: :active_scaffold)
6
- resources(:processor_configurations, concerns: :active_scaffold)
7
- resources(:start_points, concerns: :active_scaffold)
4
+ resources(:addresses, concerns: active_scaffold)
5
+ resources(:processor_configurations, concerns: active_scaffold)
6
+ resources(:start_points, concerns: active_scaffold)
8
7
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_scaffold'
3
+ require 'eac_active_scaffold'
4
4
  require 'eac_rails_delayed_job/engine'
5
5
 
6
6
  module Aranha
@@ -15,8 +15,8 @@ module Aranha
15
15
  private
16
16
 
17
17
  def run_close
18
- ::Aranha::Address.failed do |a|
19
- ::Rails.logger.info "Failed \"#{a.url}\": #{a.last_error}"
18
+ ::Aranha::Address.failed.each do |a|
19
+ ::Rails.logger.warn "Failed \"#{a.url}\": #{a.last_error}"
20
20
  end
21
21
  raise 'Some address failed' if ::Aranha::Address.failed.any?
22
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Rails
5
- VERSION = '0.7.1'
5
+ VERSION = '0.7.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,63 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aranha-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.5
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: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: active_scaffold
14
+ name: aranha
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.5'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 3.5.5
19
+ version: '0.15'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '3.5'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 3.5.5
26
+ version: '0.15'
33
27
  - !ruby/object:Gem::Dependency
34
- name: aranha
28
+ name: aranha-parsers
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '0.15'
33
+ version: '0.6'
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '0.15'
40
+ version: '0.6'
47
41
  - !ruby/object:Gem::Dependency
48
- name: aranha-parsers
42
+ name: eac_active_scaffold
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0.6'
47
+ version: '0.1'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '0.6'
54
+ version: '0.1'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: eac_rails_delayed_job
63
57
  requirement: !ruby/object:Gem::Requirement
@@ -110,36 +104,36 @@ dependencies:
110
104
  name: rails
111
105
  requirement: !ruby/object:Gem::Requirement
112
106
  requirements:
113
- - - "~>"
107
+ - - ">="
114
108
  - !ruby/object:Gem::Version
115
109
  version: 5.1.7
110
+ - - "<"
111
+ - !ruby/object:Gem::Version
112
+ version: '6'
116
113
  type: :runtime
117
114
  prerelease: false
118
115
  version_requirements: !ruby/object:Gem::Requirement
119
116
  requirements:
120
- - - "~>"
117
+ - - ">="
121
118
  - !ruby/object:Gem::Version
122
119
  version: 5.1.7
120
+ - - "<"
121
+ - !ruby/object:Gem::Version
122
+ version: '6'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: eac_ruby_gem_support
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '0.3'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 0.3.1
129
+ version: '0.4'
133
130
  type: :development
134
131
  prerelease: false
135
132
  version_requirements: !ruby/object:Gem::Requirement
136
133
  requirements:
137
134
  - - "~>"
138
135
  - !ruby/object:Gem::Version
139
- version: '0.3'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 0.3.1
136
+ version: '0.4'
143
137
  description:
144
138
  email:
145
139
  executables: []