tdiary-contrib 5.0.13 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tdiary/contrib/version.rb +1 -1
- data/plugin/hb_footer.rb +2 -2
- data/plugin/image_ex.rb +4 -3
- data/plugin/mm_footer.rb +2 -2
- data/plugin/socialbutton.rb +2 -2
- data/spec/spec_helper.rb +6 -6
- data/util/image-gallery/misc/plugin/recent_image.rb +2 -2
- data/util/image-gallery/misc/plugin/view_exif.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d262d84bca36f6a339c14c533b6ca4aa501d05265ccf12302e6e150904115a32
|
4
|
+
data.tar.gz: 37dfe05808d551ab064233f0c74b39ed18a5b9daa8c4ebaadea6c7270a20b41d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2878acca923e00de23074f88283047c0f9e8aa1d75d2406fcf1a02fb4c8f23d68b6f3c913908cef6affe697f2b67f2744e1b615dd3c0693bb6aad38b37c475fe
|
7
|
+
data.tar.gz: 51c5cddf7db092060fb5e23676443ef6035611e1d81a2c4747541855440a4d86b1bc667aeef160444136652bd60b90ef96388c72e61805abe3e3616232c4bcb6
|
data/plugin/hb_footer.rb
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
# Author: ishinao <ishinao@ishinao.net>
|
9
9
|
#
|
10
10
|
|
11
|
-
add_body_leave_proc
|
11
|
+
add_body_leave_proc do |date|
|
12
12
|
if @mode == 'day' or @mode == 'latest'
|
13
13
|
diary = @diaries[date.strftime('%Y%m%d')]
|
14
14
|
pnum = 1
|
@@ -33,7 +33,7 @@ add_body_leave_proc(Proc.new do |date|
|
|
33
33
|
else
|
34
34
|
''
|
35
35
|
end
|
36
|
-
end
|
36
|
+
end
|
37
37
|
|
38
38
|
# rss-recent.rb: RSS recent plugin
|
39
39
|
#
|
data/plugin/image_ex.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: utf-8
|
1
2
|
# image_plugin_ex.rb
|
2
3
|
# version 0.3
|
3
4
|
# -pv-
|
@@ -86,11 +87,11 @@
|
|
86
87
|
|
87
88
|
enable_js("image_ex.js")
|
88
89
|
|
89
|
-
add_body_enter_proc
|
90
|
+
add_body_enter_proc do |date|
|
90
91
|
@image_date = date.strftime("%Y%m%d")
|
91
92
|
@image_year = date.strftime("%Y")
|
92
93
|
""
|
93
|
-
end
|
94
|
+
end
|
94
95
|
|
95
96
|
|
96
97
|
def image( id, alt = "image", id2 = nil, width = nil, place="none" )
|
@@ -199,7 +200,7 @@ add_form_proc do |date|
|
|
199
200
|
imageex_convertedsize = %Q[#{imageex_convertedheight}x#{imageex_convertedwidth}]
|
200
201
|
imageex_convertedsize
|
201
202
|
end
|
202
|
-
system(imageex_convertpath , "-geometry", imageex_convertedsize , orig, new)
|
203
|
+
system(imageex_convertpath , "-auto-orient", "-geometry", imageex_convertedsize , orig, new)
|
203
204
|
if FileTest::size?( new ) == 0
|
204
205
|
File::delete( new )
|
205
206
|
end
|
data/plugin/mm_footer.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
require 'nkf'
|
11
11
|
|
12
|
-
add_body_leave_proc
|
12
|
+
add_body_leave_proc do |date|
|
13
13
|
|
14
14
|
oldest_date = Time.local(2005, 1, 11)
|
15
15
|
if date > oldest_date
|
@@ -38,7 +38,7 @@ add_body_leave_proc(Proc.new do |date|
|
|
38
38
|
''
|
39
39
|
end
|
40
40
|
end
|
41
|
-
end
|
41
|
+
end
|
42
42
|
|
43
43
|
require "rss/rss"
|
44
44
|
|
data/plugin/socialbutton.rb
CHANGED
@@ -52,9 +52,9 @@ end
|
|
52
52
|
if @mode =~ /^(latest|day|month|nyear)$/
|
53
53
|
socialbutton_footer = Proc.new { %Q|<div class="socialbuttons"></div>| }
|
54
54
|
if respond_to?(:blogkit?) && blogkit?
|
55
|
-
add_body_leave_proc(socialbutton_footer)
|
55
|
+
add_body_leave_proc(&socialbutton_footer)
|
56
56
|
else
|
57
|
-
add_section_leave_proc(socialbutton_footer)
|
57
|
+
add_section_leave_proc(&socialbutton_footer)
|
58
58
|
end
|
59
59
|
|
60
60
|
# load javascript
|
data/spec/spec_helper.rb
CHANGED
@@ -49,19 +49,19 @@ class PluginFake
|
|
49
49
|
@conf_procs << block
|
50
50
|
end
|
51
51
|
|
52
|
-
def add_edit_proc(
|
52
|
+
def add_edit_proc(&block)
|
53
53
|
@edit_procs << block
|
54
54
|
end
|
55
55
|
|
56
|
-
def add_header_proc(
|
56
|
+
def add_header_proc(&block)
|
57
57
|
@header_procs << block
|
58
58
|
end
|
59
59
|
|
60
|
-
def add_footer_proc(
|
60
|
+
def add_footer_proc(&block)
|
61
61
|
@footer_procs << block
|
62
62
|
end
|
63
63
|
|
64
|
-
def add_update_proc(
|
64
|
+
def add_update_proc(&block)
|
65
65
|
@update_procs << block
|
66
66
|
end
|
67
67
|
|
@@ -89,7 +89,7 @@ class PluginFake
|
|
89
89
|
r.join.chomp
|
90
90
|
end
|
91
91
|
|
92
|
-
def add_body_enter_proc(
|
92
|
+
def add_body_enter_proc(&block)
|
93
93
|
@body_enter_procs << block
|
94
94
|
end
|
95
95
|
|
@@ -101,7 +101,7 @@ class PluginFake
|
|
101
101
|
r.join.chomp
|
102
102
|
end
|
103
103
|
|
104
|
-
def add_body_leave_proc(
|
104
|
+
def add_body_leave_proc(&block)
|
105
105
|
@body_leave_procs << block
|
106
106
|
end
|
107
107
|
|
@@ -259,10 +259,10 @@ end
|
|
259
259
|
# Callback Functions
|
260
260
|
|
261
261
|
# this is for view_exif().
|
262
|
-
add_body_enter_proc
|
262
|
+
add_body_enter_proc do |date|
|
263
263
|
@image_date_exif = date.strftime("%Y%m%d")
|
264
264
|
""
|
265
|
-
end
|
265
|
+
end
|
266
266
|
|
267
267
|
# Update Proc of the plugin
|
268
268
|
add_update_proc do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdiary-contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tDiary contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tdiary
|