publify_amazon_sidebar 9.0.1 → 9.2.3

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
- SHA1:
3
- metadata.gz: 610a02400384911a5969ed6701277d7c9ee9ef29
4
- data.tar.gz: b3a1635efb9431f8cd3b5267c1ebb78b4fad2fe0
2
+ SHA256:
3
+ metadata.gz: 13e853d5473c4310edeb67c3b46d04b3c1cee61724f392e224c4649e97c85a27
4
+ data.tar.gz: 0e31c9ee645a208ca2707606d4335944c4f53f0dc0597ba9bb32131d21ecfcd0
5
5
  SHA512:
6
- metadata.gz: 93dd9021d808ad9f81fb75d8d38b67e6af8f235579af39864dee1af46473e66b70e8ea4e40e65a02eaa1acfb8bb31cf8f1420d9d09ad9e7907214dd85b4244b6
7
- data.tar.gz: 2724fbc99c62f63b05f71dfb38b678e4877b5071fcc031045a4bd36c11ed5592f846b5b9368ab06bf2e0969cbc42de0cbd97a480e35479491f4941adc001e981
6
+ metadata.gz: 1c71370f912bd2c8b25840d320cd64e3c0d087528fb1cbac467b07b3726640f38c09461fbdba9dbc202b977a247a88a2a54dbd1a85ee647cb05753bc6c54ced7
7
+ data.tar.gz: 0ff6c6305ead4c585240e8f3dd0455d932a977995f6b06f488b0a3a8e2087b5874001d3415b0e65627efb9447a997647fe894b96fe81935d46d6012e78c2a076
data/CHANGELOG.md CHANGED
@@ -1,8 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.2.3 / 2021-05-22
4
+
5
+ * Depend on `publify_core` gem to set Rails dependency
6
+
7
+ ## 9.2.2 / 2021-03-21
8
+
9
+ * No changes
10
+
11
+ ## 9.2.1 / 2021-03-20
12
+
13
+ * No changes
14
+
15
+ ## 9.2.0 / 2021-01-17
16
+
17
+ * Upgrade to Rails 5.2 (mvz)
18
+ * Drop support for Ruby 2.2 and 2.3 (mvz)
19
+ * Add support for Ruby 2.7 (mvz)
20
+ * Depend on `publify_core` 9.2 (mvz)
21
+
22
+ ## 9.1.0 / 2018-04-19
23
+
24
+ * Depend on `publify_core` 9.1
25
+
3
26
  ## 9.0.1
4
27
 
5
- * Depend on released version of publify_core (mvz)
28
+ * Depend on released version of `publify_core` (mvz)
6
29
 
7
30
  ## 9.0.0
8
31
 
@@ -10,7 +33,7 @@
10
33
 
11
34
  ## 9.0.0.pre3
12
35
 
13
- * Loosen dependency on publify_core (mvz)
36
+ * Loosen dependency on `publify_core` (mvz)
14
37
 
15
38
  ## 9.0.0.pre2
16
39
 
@@ -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
data/config/routes.rb CHANGED
@@ -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.0.1'.freeze
4
+ VERSION = "9.2.3"
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,85 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publify_amazon_sidebar
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.1
4
+ version: 9.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2021-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 5.0.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 5.0.0
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: publify_core
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 9.0.0
19
+ version: 9.2.3
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 9.0.0
26
+ version: 9.2.3
41
27
  - !ruby/object:Gem::Dependency
42
- name: sqlite3
28
+ name: rspec-rails
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - ">="
31
+ - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '0'
33
+ version: '4.0'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ">="
38
+ - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '0'
40
+ version: '4.0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: rspec-rails
42
+ name: simplecov
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 3.6.0
47
+ version: 0.18.5
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 3.6.0
54
+ version: 0.18.5
69
55
  - !ruby/object:Gem::Dependency
70
- name: simplecov
56
+ name: sqlite3
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - "~>"
59
+ - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: 0.14.0
61
+ version: '0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - "~>"
66
+ - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: 0.14.0
68
+ version: '0'
83
69
  description: Amazon sidebar for the Publify blogging system.
84
70
  email:
85
71
  - matijs@matijs.net
@@ -96,8 +82,9 @@ files:
96
82
  - lib/publify_amazon_sidebar.rb
97
83
  - lib/publify_amazon_sidebar/engine.rb
98
84
  - lib/publify_amazon_sidebar/version.rb
85
+ - lib/tasks/manifest.rake
99
86
  - lib/tasks/publify_amazon_sidebar_tasks.rake
100
- homepage: https://publify.co
87
+ homepage: https://publify.github.io/
101
88
  licenses:
102
89
  - MIT
103
90
  metadata: {}
@@ -109,15 +96,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
96
  requirements:
110
97
  - - ">="
111
98
  - !ruby/object:Gem::Version
112
- version: '0'
99
+ version: 2.4.0
113
100
  required_rubygems_version: !ruby/object:Gem::Requirement
114
101
  requirements:
115
102
  - - ">="
116
103
  - !ruby/object:Gem::Version
117
104
  version: '0'
118
105
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.6.11
106
+ rubygems_version: 3.1.6
121
107
  signing_key:
122
108
  specification_version: 4
123
109
  summary: Amazon sidebar for the Publify blogging system.