publify_amazon_sidebar 9.1.0 → 9.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: ad6c87514e156facac71070c0ce29de065fd134e37fc263b67f361b6c9a36cd8
4
- data.tar.gz: d9cab185b44727c4fde1924a340d648373b5152759e92567edfd87ba776acda2
3
+ metadata.gz: 0cd5609e5c8ab6aa559b1412342802df41cb7df1cc4cb196c2e6a713de6a6b1a
4
+ data.tar.gz: 5f3309a7a33361ef273aa024c265ced0164d43ab8d1572d0005ee3ccc6298b7f
5
5
  SHA512:
6
- metadata.gz: c4078fcc7ee731d1d5ff151fe76ded1d233ff04bbedef95edf3de9234488960f09f96da7b5f441a8f1621f02bdfd00ac225061766c96835b6931669f68e500b3
7
- data.tar.gz: 12c225045122545bbfb380c28f44123e80ccbffd2b7313bfe9a5e52e62664dfe340985d5254fb6aa5b5c9a00cacf3e3900858fec29d328b0f6fe0437b2ddfc99
6
+ metadata.gz: f12b04e5dcae99624e6e6456b9b8c4fd681c07f9f0a964532d2204ef65ebd5ddd6b48e54130ac6ab867c3f77c41b4cd5bc1ef9bb646e04c6b001597b77d81032
7
+ data.tar.gz: 76549de82837b3403a2a2c6b5ec32ca564a544d2467d42f3a5488001c1c16b28af38c027797a733d2f448d0c728afed837fede6926dc45d3aed8aae02e2ec1cc
@@ -1,12 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.2.0 / 2021-01-17
4
+
5
+ * Upgrade to Rails 5.2 (mvz)
6
+ * Drop support for Ruby 2.2 and 2.3 (mvz)
7
+ * Add support for Ruby 2.7 (mvz)
8
+ * Depend on `publify_core` 9.2 (mvz)
9
+
3
10
  ## 9.1.0 / 2018-04-19
4
11
 
5
- * Depend on publify_core 9.1
12
+ * Depend on `publify_core` 9.1
6
13
 
7
14
  ## 9.0.1
8
15
 
9
- * Depend on released version of publify_core (mvz)
16
+ * Depend on released version of `publify_core` (mvz)
10
17
 
11
18
  ## 9.0.0
12
19
 
@@ -14,7 +21,7 @@
14
21
 
15
22
  ## 9.0.0.pre3
16
23
 
17
- * Loosen dependency on publify_core (mvz)
24
+ * Loosen dependency on `publify_core` (mvz)
18
25
 
19
26
  ## 9.0.0.pre2
20
27
 
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class AmazonSidebar < Sidebar
2
4
  description \
3
- 'Adds sidebar links to any Amazon.com books linked in the body of the page'
4
- setting :title, 'Cited books'
5
- setting :associate_id, 'justasummary-20'
5
+ "Adds sidebar links to any Amazon.com books linked in the body of the page"
6
+ setting :title, "Cited books"
7
+ setting :associate_id, "justasummary-20"
6
8
  setting :maxlinks, 4
7
9
 
8
10
  attr_accessor :asins
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.routes.draw do
2
4
  end
@@ -1,7 +1,9 @@
1
- require 'publify_core'
2
- require 'publify_amazon_sidebar/engine'
3
- require 'sidebar_registry'
1
+ # frozen_string_literal: true
2
+
3
+ require "publify_core"
4
+ require "publify_amazon_sidebar/engine"
5
+ require "sidebar_registry"
4
6
 
5
7
  module PublifyAmazonSidebar
6
- SidebarRegistry.register_sidebar 'AmazonSidebar'
8
+ SidebarRegistry.register_sidebar "AmazonSidebar"
7
9
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PublifyAmazonSidebar
2
4
  class Engine < ::Rails::Engine
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PublifyAmazonSidebar
2
- VERSION = '9.1.0'.freeze
4
+ VERSION = "9.2.0"
3
5
  end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :manifest do
4
+ def gemmable_files
5
+ `git ls-files -z`.split("\x0").reject do |file|
6
+ file.match(%r{^(bin|spec)/}) ||
7
+ file.end_with?("/.keep") ||
8
+ file.start_with?(".") ||
9
+ %w(Manifest.txt Gemfile Rakefile publify_amazon_sidebar.gemspec).include?(file)
10
+ end
11
+ end
12
+
13
+ def manifest_files
14
+ File.open("Manifest.txt").readlines.map(&:chomp)
15
+ end
16
+
17
+ desc "Create manifest"
18
+ task :create do
19
+ File.open("Manifest.txt", "w") do |manifest|
20
+ gemmable_files.each { |file| manifest.puts file }
21
+ end
22
+ end
23
+
24
+ desc "Check manifest"
25
+ task :check do
26
+ unless gemmable_files == manifest_files
27
+ raise "Manifest check failed, try recreating the manifest"
28
+ end
29
+ end
30
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # desc "Explaining what the task does"
2
4
  # task :publify_amazon_sidebar do
3
5
  # # Task goes here
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publify_amazon_sidebar
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.1.0
4
+ version: 9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2021-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: publify_core
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 9.1.0
19
+ version: 9.2.0
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: 9.1.0
26
+ version: 9.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.1.2
33
+ version: 5.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 5.1.2
40
+ version: 5.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.6.0
47
+ version: '4.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.6.0
54
+ version: '4.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.14.0
61
+ version: 0.18.5
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.14.0
68
+ version: 0.18.5
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -96,12 +96,13 @@ files:
96
96
  - lib/publify_amazon_sidebar.rb
97
97
  - lib/publify_amazon_sidebar/engine.rb
98
98
  - lib/publify_amazon_sidebar/version.rb
99
+ - lib/tasks/manifest.rake
99
100
  - lib/tasks/publify_amazon_sidebar_tasks.rake
100
- homepage: https://publify.co
101
+ homepage: https://publify.github.io/
101
102
  licenses:
102
103
  - MIT
103
104
  metadata: {}
104
- post_install_message:
105
+ post_install_message:
105
106
  rdoc_options: []
106
107
  require_paths:
107
108
  - lib
@@ -109,16 +110,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
110
  requirements:
110
111
  - - ">="
111
112
  - !ruby/object:Gem::Version
112
- version: '0'
113
+ version: 2.4.0
113
114
  required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  requirements:
115
116
  - - ">="
116
117
  - !ruby/object:Gem::Version
117
118
  version: '0'
118
119
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.7.6
121
- signing_key:
120
+ rubygems_version: 3.2.3
121
+ signing_key:
122
122
  specification_version: 4
123
123
  summary: Amazon sidebar for the Publify blogging system.
124
124
  test_files: []