pageflow-external-links 2.1.0 → 2.2.0

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: 346615b36f62575e6dbf43cf2237c045115587a4c5ce9a7de865e4687c21de06
4
- data.tar.gz: 53c3e0204212221068c292f7443bdc53d1a6e91543aa6716c0a751f7c64de35f
3
+ metadata.gz: 1238f8a7790db04f3106262157e7de423636835b8b54d51dffb372323d95e907
4
+ data.tar.gz: 7fffd9d6757b2f808f839cf7bfa438228c7895293e10c0df6f62e1a218461a4d
5
5
  SHA512:
6
- metadata.gz: d2f7bbb58e4e469a3aca88fa8639752a71a06003fb9580c12313829cb89a5a8fe6a2cb95b5d95feb06662ea28381c8ebf7fa25e5df85e215d928a9cf40e4a0cf
7
- data.tar.gz: 752cb59f5cea9a2b9c938db024c24bc0b81f29fcd32a15871ce569b5db9dc6798e6ed15983f366bcb47ad8a8ab666ad056abbd8f7a948712e55b78ef4d457f74
6
+ metadata.gz: 854344f01b6c50908abe8f192a592e941481469a7dd71beb7963b59ba5f12bf27444e28c6343a1d34d5e5ed885b2d783c23d7a2cbe2a4a1aeaa6a67b5f738d8d
7
+ data.tar.gz: 27cd62ab68a17527325a107d66f29d5448cdbf296d71c15332143e982db211c1a7f28b34daa47218e8f6e3c0180e31a8b6033d638c199db4e3464b55e9573c78
data/.travis.yml CHANGED
@@ -15,3 +15,6 @@ before_install:
15
15
  script:
16
16
  - bin/rspec
17
17
  - bundle exec publish-pageflow-theme-doc
18
+
19
+ services:
20
+ - mysql
data/CHANGELOG.md CHANGED
@@ -1,16 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 2.1.0
3
+ ### Version 2.2.0
4
4
 
5
- 2019-04-04
5
+ 2019-11-04
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-external-links/compare/2-0-stable...v2.1.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-external-links/compare/2-1-stable...v2.2.0)
8
8
 
9
- - Adapt page dom for Pageflow 14
10
- ([#40](https://github.com/codevise/pageflow-external-links/pull/40))
11
- - Setup page type lint specs
12
- ([#39](https://github.com/codevise/pageflow-external-links/pull/39))
9
+ - Change file lookup to usage.perma_id
10
+ ([#42](https://github.com/codevise/pageflow-external-links/pull/42))
11
+ - Fix Travis CI
12
+ ([#43](https://github.com/codevise/pageflow-external-links/pull/43))
13
+ - Extend pageflow version requirement to < 16
14
+ ([#41](https://github.com/codevise/pageflow-external-links/pull/41))
13
15
 
14
16
  See
15
- [2-0-stable branch](https://github.com/codevise/pageflow-external-links/blob/2-0-stable/CHANGELOG.md)
17
+ [2-1-stable branch](https://github.com/codevise/pageflow-external-links/blob/2-1-stable/CHANGELOG.md)
16
18
  for previous changes.
@@ -1,6 +1,8 @@
1
1
  module Pageflow
2
2
  module ExternalLinks
3
3
  module SitesHelper
4
+ include RevisionFileHelper
5
+
4
6
  def external_links_site_css_class(site)
5
7
  ['link-item', site.title.blank? && site.description.blank? ? 'no_text' : ''].compact.join(' ')
6
8
  end
@@ -9,7 +11,7 @@ module Pageflow
9
11
  def external_links_site_thumbnail_css_class(site)
10
12
  classes = ['link-thumbnail']
11
13
 
12
- if file = site.thumbnail_file
14
+ if file = find_file_in_entry(ImageFile, site.thumbnail)
13
15
  classes << file_thumbnail_css_class(file, :link_thumbnail_large)
14
16
  end
15
17
 
@@ -2,10 +2,6 @@ module Pageflow
2
2
  module ExternalLinks
3
3
  class Site < ActiveRecord::Base
4
4
  include RevisionComponent
5
-
6
- def thumbnail_file
7
- ImageFile.find_by_id(thumbnail)
8
- end
9
5
  end
10
6
  end
11
7
  end
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module ExternalLinks
3
- VERSION = '2.1.0'.freeze
3
+ VERSION = '2.2.0'.freeze
4
4
  end
5
5
  end
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.required_ruby_version = '~> 2.1'
20
20
 
21
- spec.add_runtime_dependency 'pageflow', '~> 14.x'
21
+ spec.add_runtime_dependency 'pageflow', '~> 15.x'
22
22
  spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
23
23
 
24
24
  spec.add_development_dependency 'bundler', ['>= 1.0', '< 3']
25
- spec.add_development_dependency 'pageflow-support', '~> 14.x'
25
+ spec.add_development_dependency 'pageflow-support', '~> 15.x'
26
26
  spec.add_development_dependency 'rake', '~> 12.0'
27
27
  spec.add_development_dependency 'rspec-rails', '~> 3.0'
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-external-links
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2019-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 14.x
19
+ version: 15.x
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 14.x
26
+ version: 15.x
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pageflow-public-i18n
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 14.x
67
+ version: 15.x
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 14.x
74
+ version: 15.x
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rake
77
77
  requirement: !ruby/object:Gem::Requirement