maltese 0.8.4 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/Gemfile.lock +20 -20
- data/lib/maltese/sitemap.rb +1 -1
- data/lib/maltese/version.rb +1 -1
- data/spec/cli_spec.rb +3 -3
- data/spec/fixtures/vcr_cassettes/Maltese_CLI/sitemap/should_succeed.yml +26 -26
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/get_total/with_works.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_no_works_returned_by_the_Datacite_REST_API.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/push_data/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Maltese_Sitemap/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_REST_API.yml +27 -27
- data/spec/sitemap_spec.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c907d368447c575714d869d9cebe58a5912068d1c05ebd4c768716870db0584
|
4
|
+
data.tar.gz: 63e9474d047977d23466d557c5cf8e7a0efba91f624fd997a0f4365729df0def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17ab6e4f9e1ffaf53c572d6326124085b4dec225a227cf239e75af1b8124ab734807aa2bb4cf51695d3020bb574a894a584dc86992900acb9b22b79e4ae83b0e
|
7
|
+
data.tar.gz: 5ef2d8a9d8ed16a0afad7badf48bf456441b8d980d2c99855f5f9f745dfeb46aafa04cbeaa44f3feb8a629e9047017481ede6bbfd8184c01817caf20258695f5
|
data/Dockerfile
CHANGED
@@ -11,6 +11,6 @@ RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" &&
|
|
11
11
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
12
12
|
|
13
13
|
# Install maltese gem
|
14
|
-
RUN /sbin/setuser app gem install maltese -v 0.8.
|
14
|
+
RUN /sbin/setuser app gem install maltese -v 0.8.6
|
15
15
|
|
16
16
|
CMD maltese sitemap --sitemap_bucket $SITEMAP_BUCKET
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
maltese (0.8.
|
4
|
+
maltese (0.8.6)
|
5
5
|
activesupport (>= 4.2.5, < 6)
|
6
6
|
aws-sdk-s3 (~> 1.19)
|
7
7
|
dotenv (~> 2.1, >= 2.1.1)
|
@@ -21,17 +21,17 @@ GEM
|
|
21
21
|
addressable (2.6.0)
|
22
22
|
public_suffix (>= 2.0.2, < 4.0)
|
23
23
|
aws-eventstream (1.0.3)
|
24
|
-
aws-partitions (1.
|
25
|
-
aws-sdk-core (3.
|
24
|
+
aws-partitions (1.188.0)
|
25
|
+
aws-sdk-core (3.59.0)
|
26
26
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
27
27
|
aws-partitions (~> 1.0)
|
28
28
|
aws-sigv4 (~> 1.1)
|
29
29
|
jmespath (~> 1.0)
|
30
|
-
aws-sdk-kms (1.
|
31
|
-
aws-sdk-core (~> 3, >= 3.
|
30
|
+
aws-sdk-kms (1.23.0)
|
31
|
+
aws-sdk-core (~> 3, >= 3.58.0)
|
32
32
|
aws-sigv4 (~> 1.1)
|
33
|
-
aws-sdk-s3 (1.
|
34
|
-
aws-sdk-core (~> 3, >= 3.
|
33
|
+
aws-sdk-s3 (1.45.0)
|
34
|
+
aws-sdk-core (~> 3, >= 3.58.0)
|
35
35
|
aws-sdk-kms (~> 1)
|
36
36
|
aws-sigv4 (~> 1.1)
|
37
37
|
aws-sigv4 (1.1.0)
|
@@ -44,9 +44,9 @@ GEM
|
|
44
44
|
safe_yaml (~> 1.0.0)
|
45
45
|
diff-lcs (1.3)
|
46
46
|
docile (1.1.5)
|
47
|
-
dotenv (2.7.
|
48
|
-
excon (0.
|
49
|
-
faraday (0.
|
47
|
+
dotenv (2.7.4)
|
48
|
+
excon (0.62.0)
|
49
|
+
faraday (0.14.0)
|
50
50
|
multipart-post (>= 1.2, < 3)
|
51
51
|
faraday-encoding (0.0.5)
|
52
52
|
faraday
|
@@ -57,12 +57,12 @@ GEM
|
|
57
57
|
concurrent-ruby (~> 1.0)
|
58
58
|
jmespath (1.4.0)
|
59
59
|
json (2.2.0)
|
60
|
-
maremma (4.2.
|
60
|
+
maremma (4.2.6)
|
61
61
|
activesupport (>= 4.2.5, < 6)
|
62
62
|
addressable (>= 2.3.6)
|
63
63
|
builder (~> 3.2, >= 3.2.2)
|
64
|
-
excon (~> 0.60)
|
65
|
-
faraday (~> 0.14)
|
64
|
+
excon (~> 0.60, < 0.63)
|
65
|
+
faraday (~> 0.14, < 0.15)
|
66
66
|
faraday-encoding (~> 0.0.4)
|
67
67
|
faraday_middleware (~> 0.12.0)
|
68
68
|
multi_json (~> 1.12)
|
@@ -78,7 +78,7 @@ GEM
|
|
78
78
|
nokogiri (1.8.5)
|
79
79
|
mini_portile2 (~> 2.3.0)
|
80
80
|
oj (3.7.12)
|
81
|
-
public_suffix (3.1.
|
81
|
+
public_suffix (3.1.1)
|
82
82
|
rack (2.0.7)
|
83
83
|
rack-test (0.8.3)
|
84
84
|
rack (>= 1.0, < 3)
|
@@ -87,15 +87,15 @@ GEM
|
|
87
87
|
rspec-core (~> 3.8.0)
|
88
88
|
rspec-expectations (~> 3.8.0)
|
89
89
|
rspec-mocks (~> 3.8.0)
|
90
|
-
rspec-core (3.8.
|
90
|
+
rspec-core (3.8.2)
|
91
91
|
rspec-support (~> 3.8.0)
|
92
|
-
rspec-expectations (3.8.
|
92
|
+
rspec-expectations (3.8.4)
|
93
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
94
94
|
rspec-support (~> 3.8.0)
|
95
|
-
rspec-mocks (3.8.
|
95
|
+
rspec-mocks (3.8.1)
|
96
96
|
diff-lcs (>= 1.2.0, < 2.0)
|
97
97
|
rspec-support (~> 3.8.0)
|
98
|
-
rspec-support (3.8.
|
98
|
+
rspec-support (3.8.2)
|
99
99
|
safe_yaml (1.0.5)
|
100
100
|
simplecov (0.13.0)
|
101
101
|
docile (~> 1.1.0)
|
@@ -109,10 +109,10 @@ GEM
|
|
109
109
|
tzinfo (1.2.5)
|
110
110
|
thread_safe (~> 0.1)
|
111
111
|
vcr (3.0.3)
|
112
|
-
webmock (3.
|
112
|
+
webmock (3.6.0)
|
113
113
|
addressable (>= 2.3.6)
|
114
114
|
crack (>= 0.3.2)
|
115
|
-
hashdiff
|
115
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
116
116
|
|
117
117
|
PLATFORMS
|
118
118
|
ruby
|
data/lib/maltese/sitemap.rb
CHANGED
data/lib/maltese/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -12,11 +12,11 @@ describe Maltese::CLI do
|
|
12
12
|
describe "sitemap", vcr: true, :order => :defined do
|
13
13
|
it 'should succeed' do
|
14
14
|
subject.options = cli_options
|
15
|
-
expect { subject.sitemap }.to output(/
|
15
|
+
expect { subject.sitemap }.to output(/1001 links/).to_stdout
|
16
16
|
sitemap = Zlib::GzipReader.open("public/sitemaps/sitemap.xml.gz") { |gz| gz.read }
|
17
17
|
doc = Nokogiri::XML(sitemap)
|
18
|
-
expect(doc.xpath("//xmlns:url").size).to eq(
|
19
|
-
expect(doc.xpath("//xmlns:loc").last.text).to eq("https://search.test.datacite.org/works/10.
|
18
|
+
expect(doc.xpath("//xmlns:url").size).to eq(1001)
|
19
|
+
expect(doc.xpath("//xmlns:loc").last.text).to eq("https://search.test.datacite.org/works/10.17863/cam.1255")
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|