publify_amazon_sidebar 9.0.0 → 9.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +26 -3
- data/app/models/amazon_sidebar.rb +5 -3
- data/config/routes.rb +2 -0
- data/lib/publify_amazon_sidebar.rb +6 -4
- data/lib/publify_amazon_sidebar/engine.rb +2 -0
- data/lib/publify_amazon_sidebar/version.rb +3 -1
- data/lib/tasks/manifest.rake +30 -0
- data/lib/tasks/publify_amazon_sidebar_tasks.rake +2 -0
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6d8522ffebf4a62ce8e2d4cbede17ff40697f32e70e7be0eafe83d1dac445f28
|
4
|
+
data.tar.gz: c874292b043e906e2326d38bd0af99f669e7a2b05fc86e1ae54e44c17e7a7e33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6937d44b5ab672eb3a46251b1a954ea152f7a929d19a50dd26099c66376591a21142b43cde37729f91c90d586746798a819999da1d524bc6a69ab1adfe6b0680
|
7
|
+
data.tar.gz: b3d67862269b78f2c3ed2442812df7ae5615751789afc37d09691ac8b7c802f6f55fc32e9a4eacca0c758b1799e5d56cb631a22bbe9881d066c5cab0cd6cfecf
|
data/CHANGELOG.md
CHANGED
@@ -1,17 +1,40 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 9.2.2 / 2021-03-21
|
4
|
+
|
5
|
+
* No changes
|
6
|
+
|
7
|
+
## 9.2.1 / 2021-03-20
|
8
|
+
|
9
|
+
* No changes
|
10
|
+
|
11
|
+
## 9.2.0 / 2021-01-17
|
12
|
+
|
13
|
+
* Upgrade to Rails 5.2 (mvz)
|
14
|
+
* Drop support for Ruby 2.2 and 2.3 (mvz)
|
15
|
+
* Add support for Ruby 2.7 (mvz)
|
16
|
+
* Depend on `publify_core` 9.2 (mvz)
|
17
|
+
|
18
|
+
## 9.1.0 / 2018-04-19
|
19
|
+
|
20
|
+
* Depend on `publify_core` 9.1
|
21
|
+
|
22
|
+
## 9.0.1
|
23
|
+
|
24
|
+
* Depend on released version of `publify_core` (mvz)
|
25
|
+
|
3
26
|
## 9.0.0
|
4
27
|
|
5
28
|
* No changes
|
6
29
|
|
7
30
|
## 9.0.0.pre3
|
8
31
|
|
9
|
-
* Loosen dependency on publify_core
|
32
|
+
* Loosen dependency on `publify_core` (mvz)
|
10
33
|
|
11
34
|
## 9.0.0.pre2
|
12
35
|
|
13
|
-
* Upgrade to Rails 5
|
36
|
+
* Upgrade to Rails 5 (mvz)
|
14
37
|
|
15
38
|
## 9.0.0.pre1
|
16
39
|
|
17
|
-
* Initial pre-release of Publify Amazon Sidebar as a separate gem
|
40
|
+
* Initial pre-release of Publify Amazon Sidebar as a separate gem (mvz)
|
@@ -1,8 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class AmazonSidebar < Sidebar
|
2
4
|
description \
|
3
|
-
|
4
|
-
setting :title,
|
5
|
-
setting :associate_id,
|
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,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require
|
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
|
8
|
+
SidebarRegistry.register_sidebar "AmazonSidebar"
|
7
9
|
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
|
metadata
CHANGED
@@ -1,85 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publify_amazon_sidebar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.2.2
|
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:
|
11
|
+
date: 2021-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: publify_core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
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:
|
26
|
+
version: 9.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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:
|
40
|
+
version: 5.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '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: '0'
|
54
|
+
version: '4.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
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:
|
68
|
+
version: 0.18.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: sqlite3
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
82
|
+
version: '0'
|
83
83
|
description: Amazon sidebar for the Publify blogging system.
|
84
84
|
email:
|
85
85
|
- matijs@matijs.net
|
@@ -96,8 +96,9 @@ 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.
|
101
|
+
homepage: https://publify.github.io/
|
101
102
|
licenses:
|
102
103
|
- MIT
|
103
104
|
metadata: {}
|
@@ -109,15 +110,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
110
|
requirements:
|
110
111
|
- - ">="
|
111
112
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
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
|
-
|
120
|
-
rubygems_version: 2.6.12
|
120
|
+
rubygems_version: 3.2.3
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Amazon sidebar for the Publify blogging system.
|