crawler-operator-core 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -9
- data/lib/crawler/operator.rb +2 -2
- data/lib/crawler/operator/configuration.rb +7 -0
- data/lib/crawler/operator/core/version.rb +1 -1
- metadata +2 -2
- data/lib/crawler/operator/core/configuration.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a7e2ef40582e3b4df57ed6b860513f4695119ad5c9079eac06d6c4dcd0cf07c
|
4
|
+
data.tar.gz: 31451e01096f5a72e87e9c6c0837e0ba1c070902744144f079143b3f482f80db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2b3e9a2281c501605d279a79a2e9f6b06d7b2d2c9901f69e792e936151f731f8db0660656da0c38ca0bfa73ce064c9e75d92915c2e8da898b833a96446f8e3
|
7
|
+
data.tar.gz: 13c6db42782394c6f71cd06b108f272bc5b90a2e99b0092cee868ba1f5d7b81ece05a5110e709874367c7c1706a06b9b8da0d49ecba8c3bc89b638e90c3c4bb4
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,42 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
crawler-
|
4
|
+
crawler-operator-core (0.2.0)
|
5
5
|
activesupport (>= 3.0)
|
6
|
-
|
6
|
+
crawler-core (>= 0.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (
|
11
|
+
activesupport (6.0.3.4)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 0.7, < 2)
|
14
14
|
minitest (~> 5.1)
|
15
15
|
tzinfo (~> 1.1)
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
17
|
+
concurrent-ruby (1.1.7)
|
18
|
+
crawler-core (0.2.0)
|
19
|
+
activesupport (>= 3.0)
|
20
|
+
levenshtein-ffi (>= 1.0)
|
21
|
+
ffi (1.13.1)
|
22
|
+
i18n (1.8.5)
|
19
23
|
concurrent-ruby (~> 1.0)
|
20
24
|
levenshtein-ffi (1.1.0)
|
21
25
|
ffi (~> 1.9)
|
22
26
|
minitest (5.11.3)
|
23
27
|
rake (10.5.0)
|
24
28
|
thread_safe (0.3.6)
|
25
|
-
tzinfo (1.2.
|
29
|
+
tzinfo (1.2.8)
|
26
30
|
thread_safe (~> 0.1)
|
31
|
+
zeitwerk (2.4.1)
|
27
32
|
|
28
33
|
PLATFORMS
|
29
34
|
ruby
|
30
35
|
|
31
36
|
DEPENDENCIES
|
32
37
|
bundler (~> 1.17)
|
33
|
-
crawler-
|
38
|
+
crawler-operator-core!
|
34
39
|
rake (~> 10.0)
|
35
40
|
|
36
41
|
BUNDLED WITH
|
37
|
-
1.17.
|
42
|
+
1.17.3
|
data/lib/crawler/operator.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'active_support/core_ext/hash/keys'
|
2
2
|
require 'active_support/inflector'
|
3
3
|
require 'crawler/base'
|
4
|
-
require 'crawler/operator/
|
4
|
+
require 'crawler/operator/configuration'
|
5
5
|
|
6
6
|
module Crawler
|
7
7
|
module Operator
|
@@ -16,7 +16,7 @@ module Crawler
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.resolve(name, address)
|
19
|
-
full_address = "#{address.dig(:street)}, #{address.dig(:zipcode)} #{address.dig(:city)}, #{address.dig(:country)
|
19
|
+
full_address = "#{address.dig(:street)}, #{address.dig(:zipcode)} #{address.dig(:city)}, #{address.dig(:country)&.upcase}"
|
20
20
|
|
21
21
|
operator = PROVIDERS.find do |provider_name|
|
22
22
|
camelized = ActiveSupport::Inflector.camelize("crawler/operator/providers/#{provider_name.to_s}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crawler-operator-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan PHILIPPE
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- bin/setup
|
85
85
|
- crawler-operator-core.gemspec
|
86
86
|
- lib/crawler/operator.rb
|
87
|
-
- lib/crawler/operator/
|
87
|
+
- lib/crawler/operator/configuration.rb
|
88
88
|
- lib/crawler/operator/core/version.rb
|
89
89
|
homepage: https://crawler.cinema.paris
|
90
90
|
licenses:
|