pugin 1.10.6 → 1.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pugin.rb +1 -1
- data/lib/pugin/version.rb +1 -1
- data/spec/views/pugin/layouts/_layout.html.haml_spec.rb +2 -2
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 958b2f6852e3fa2cabb83af8ea1dd082bdd00e17
|
4
|
+
data.tar.gz: 43984998d8ca691d097f0b570b446c035428313e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c97051e9c884e095b6498d0958b75673e74602aa5e32ad160c4bfe9c37cae0161b99cfc2a2d85ea7e8c357005a4806250d6fb0c95a8c9acc6349eecb7a78130
|
7
|
+
data.tar.gz: 670b8dccb5f92395b7c26e1bd62e6f040597857e5d73cb049679717867c32a47ee50ea023be609538a946bf6ea89ce5f758c5f17916e11ddfc1fc1a66b12f414
|
data/lib/pugin.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'pugin/version'
|
2
2
|
|
3
3
|
module Pugin
|
4
|
-
ASSET_VERSION = '1.12.
|
4
|
+
ASSET_VERSION = '1.12.1'.freeze
|
5
5
|
ASSET_LOCATION_URL = ENV.fetch('ASSET_LOCATION_URL', 'https://static.parliament.uk/pugin')
|
6
6
|
STATIC_ASSET_LOCATION_URL = ENV.fetch('STATIC_ASSET_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1live.static-assets')
|
7
7
|
STATIC_ASSET_PUBLIC_LOCATION_URL = ENV.fetch('STATIC_ASSET_PUBLIC_LOCATION_URL', 'https://static.parliament.uk/assets-public')
|
data/lib/pugin/version.rb
CHANGED
@@ -95,7 +95,7 @@ describe 'pugin/layouts/_layout.html.haml', type: :view do
|
|
95
95
|
end
|
96
96
|
|
97
97
|
it 'renders og:image' do
|
98
|
-
expect(response).to include("<meta content='https://api.parliament.uk/
|
98
|
+
expect(response).to include("<meta content='https://api.parliament.uk/photo/1234.jpeg?crop=CU_1:1&width=400&quality=100' property='og:image'>")
|
99
99
|
expect(response).to include("<meta content='400' property='og:image:width'>")
|
100
100
|
expect(response).to include("<meta content='400' property='og:image:height'>")
|
101
101
|
expect(response).to include("<meta content='summary' name='twitter:card'>")
|
@@ -112,7 +112,7 @@ describe 'pugin/layouts/_layout.html.haml', type: :view do
|
|
112
112
|
end
|
113
113
|
|
114
114
|
it 'renders og:image' do
|
115
|
-
expect(response).to include("<meta content='https://api.parliament.uk/
|
115
|
+
expect(response).to include("<meta content='https://api.parliament.uk/photo/5678.jpeg?crop=CU_1:1&width=400&quality=100' property='og:image'>")
|
116
116
|
expect(response).to include("<meta content='400' property='og:image:width'>")
|
117
117
|
expect(response).to include("<meta content='400' property='og:image:height'>")
|
118
118
|
expect(response).to include("<meta content='summary' name='twitter:card'>")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -31,6 +31,9 @@ dependencies:
|
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '1.4'
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +41,9 @@ dependencies:
|
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '1.3'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.4'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rspec-rails
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|