tdiary-contrib 5.1.4 → 5.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tdiary/contrib/version.rb +1 -1
- data/plugin/comment_pushbullet.rb +0 -0
- data/plugin/jholiday.rb +3 -3
- data/plugin/my_hotentry.rb +1 -1
- data/plugin/ogp.rb +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6c19593df443182f317dd5f95221f5d60a40f31f9f5f651d92658f317be523
|
4
|
+
data.tar.gz: d23ef645cdd7b6d991debef467c842a267c4881c90d5d9bf19282c4c3bea9a32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59a4d79e22875821acbc05f0ba56130adaaa1e06add567e69a5dc745c98a541c01fb638e8fd0303cdeed6f4945b96900c773f680cd5b2bd13665257efd7cb2aa
|
7
|
+
data.tar.gz: 76012951b4740779a78732b3585244faffed3a61185a4e3ea3a4a73cc3ed6435d74360ab04685788666e453cc7556f826b3d35afa5d9e8bd46f6db0e8b6a0d30
|
File without changes
|
data/plugin/jholiday.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'holiday_japan'
|
2
2
|
require 'date'
|
3
3
|
unless Time::new.respond_to?( :strftime_holiday_backup )
|
4
4
|
then
|
@@ -7,8 +7,8 @@ then
|
|
7
7
|
alias strftime_holiday_backup strftime
|
8
8
|
def strftime( format )
|
9
9
|
holiday = ""
|
10
|
-
day =
|
11
|
-
holiday = day
|
10
|
+
day = Date.new(self.year, self.month, self.day)
|
11
|
+
holiday = HolidayJapan.name(day) if HolidayJapan.check(day)
|
12
12
|
strftime_holiday_backup( format.gsub( /%K/, holiday ) )
|
13
13
|
end
|
14
14
|
end
|
data/plugin/my_hotentry.rb
CHANGED
data/plugin/ogp.rb
CHANGED
@@ -41,6 +41,7 @@ def ogp_tag
|
|
41
41
|
section_index = @cgi.params['p'][0] || sections.size
|
42
42
|
begin
|
43
43
|
section = sections[section_index.to_i - 1].body_to_html
|
44
|
+
@image_date = @date.strftime("%Y%m%d") # hack for image plugin
|
44
45
|
section_html = apply_plugin(section)
|
45
46
|
|
46
47
|
headers['og:description'] = ogp_description(section_html)
|
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.1.
|
4
|
+
version: 5.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tDiary contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tdiary
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: holiday_japan
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: coderay
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|