publify_amazon_sidebar 9.0.0.pre2 → 9.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +32 -0
- 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 +33 -33
- data/Rakefile +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0cd5609e5c8ab6aa559b1412342802df41cb7df1cc4cb196c2e6a713de6a6b1a
|
4
|
+
data.tar.gz: 5f3309a7a33361ef273aa024c265ced0164d43ab8d1572d0005ee3ccc6298b7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f12b04e5dcae99624e6e6456b9b8c4fd681c07f9f0a964532d2204ef65ebd5ddd6b48e54130ac6ab867c3f77c41b4cd5bc1ef9bb646e04c6b001597b77d81032
|
7
|
+
data.tar.gz: 76549de82837b3403a2a2c6b5ec32ca564a544d2467d42f3a5488001c1c16b28af38c027797a733d2f448d0c728afed837fede6926dc45d3aed8aae02e2ec1cc
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Changelog
|
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
|
+
|
10
|
+
## 9.1.0 / 2018-04-19
|
11
|
+
|
12
|
+
* Depend on `publify_core` 9.1
|
13
|
+
|
14
|
+
## 9.0.1
|
15
|
+
|
16
|
+
* Depend on released version of `publify_core` (mvz)
|
17
|
+
|
18
|
+
## 9.0.0
|
19
|
+
|
20
|
+
* No changes
|
21
|
+
|
22
|
+
## 9.0.0.pre3
|
23
|
+
|
24
|
+
* Loosen dependency on `publify_core` (mvz)
|
25
|
+
|
26
|
+
## 9.0.0.pre2
|
27
|
+
|
28
|
+
* Upgrade to Rails 5 (mvz)
|
29
|
+
|
30
|
+
## 9.0.0.pre1
|
31
|
+
|
32
|
+
* 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.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:
|
11
|
+
date: 2021-01-17 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
|
@@ -87,21 +87,22 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- CHANGELOG.md
|
90
91
|
- MIT-LICENSE
|
91
92
|
- README.rdoc
|
92
|
-
- Rakefile
|
93
93
|
- app/models/amazon_sidebar.rb
|
94
94
|
- app/views/amazon_sidebar/_content.html.erb
|
95
95
|
- config/routes.rb
|
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: {}
|
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:
|
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
|
-
version:
|
118
|
+
version: '0'
|
118
119
|
requirements: []
|
119
|
-
|
120
|
-
|
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: []
|
data/Rakefile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'bundler/setup'
|
3
|
-
rescue LoadError
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
6
|
-
|
7
|
-
APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
|
8
|
-
load 'rails/tasks/engine.rake'
|
9
|
-
|
10
|
-
load 'rails/tasks/statistics.rake'
|
11
|
-
|
12
|
-
Bundler::GemHelper.install_tasks
|
13
|
-
|
14
|
-
require 'rspec/core/rake_task'
|
15
|
-
|
16
|
-
desc 'Run all specs in spec directory (excluding plugin specs)'
|
17
|
-
RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')
|
18
|
-
|
19
|
-
task default: :spec
|
20
|
-
|
21
|
-
require 'rubocop/rake_task'
|
22
|
-
RuboCop::RakeTask.new do |task|
|
23
|
-
task.options = ['--config', '.rubocop.yml']
|
24
|
-
end
|
25
|
-
task default: :rubocop
|