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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c2e4cf7def8af261dfc8136cb483312591135917
4
- data.tar.gz: 1b0268e61064133c130ecca6130a1fb7361acc54
2
+ SHA256:
3
+ metadata.gz: 6d8522ffebf4a62ce8e2d4cbede17ff40697f32e70e7be0eafe83d1dac445f28
4
+ data.tar.gz: c874292b043e906e2326d38bd0af99f669e7a2b05fc86e1ae54e44c17e7a7e33
5
5
  SHA512:
6
- metadata.gz: c54ca35fd3b426c0df58f37372a4e01d5f0528444559a0934b8180f3945a1694783f3b88346f5cbf50f913ba5df56bc2fe71fa00b6d1bb9445ce5e4341c80aea
7
- data.tar.gz: 785b2fb2cf61a1644990b9bd182da1a3e8f9ee73cdee6543f5f4ea578b47c60ffe34cc59fa97ffa47499bbfb38ec69c2a5e96a420d29b0e60c82a2c66e441331
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
- '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.0'.freeze
4
+ VERSION = "9.2.2"
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,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publify_amazon_sidebar
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
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: 2017-07-29 00:00:00.000000000 Z
11
+ date: 2021-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: publify_core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.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: 5.0.0
26
+ version: 9.2.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: publify_core
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 9.0.0.pre4
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: 9.0.0.pre4
40
+ version: 5.2.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: sqlite3
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: rspec-rails
56
+ name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.6.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: 3.6.0
68
+ version: 0.18.5
69
69
  - !ruby/object:Gem::Dependency
70
- name: simplecov
70
+ name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.14.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.14.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.co
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: '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.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.