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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7589d91925dead78181297d0bfb4e994d79d2d362cbc822084367b85a593b56
4
- data.tar.gz: 424a594824fad56caf9c40825d96c1c7eac62857dd0b04bad7028f4a7a7a5685
3
+ metadata.gz: 5c6c19593df443182f317dd5f95221f5d60a40f31f9f5f651d92658f317be523
4
+ data.tar.gz: d23ef645cdd7b6d991debef467c842a267c4881c90d5d9bf19282c4c3bea9a32
5
5
  SHA512:
6
- metadata.gz: 656e6bdfc9982c2744c0a323e7b46037dbcf0eab0750add8b4b84807cf1ba99e6ce82f6f130c1e26139ee74dff629bdc7a14390f23537741680a0185ecef7925
7
- data.tar.gz: '0463607988a55b8575c9fa62e16786e7f51e139f3f3cf9c461a7b3930d2efa9b782afaf52a08279e499bcc027399e4040f9a4f221cb306bcfcc7dba1d56e84a8'
6
+ metadata.gz: 59a4d79e22875821acbc05f0ba56130adaaa1e06add567e69a5dc745c98a541c01fb638e8fd0303cdeed6f4945b96900c773f680cd5b2bd13665257efd7cb2aa
7
+ data.tar.gz: 76012951b4740779a78732b3585244faffed3a61185a4e3ea3a4a73cc3ed6435d74360ab04685788666e453cc7556f826b3d35afa5d9e8bd46f6db0e8b6a0d30
@@ -1,5 +1,5 @@
1
1
  module TDiary
2
2
  class Contrib
3
- VERSION = "5.1.4"
3
+ VERSION = "5.1.5"
4
4
  end
5
5
  end
File without changes
data/plugin/jholiday.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'Calendar.rb'
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 = Day.new(self.day,self.month,self.year,self.wday)
11
- holiday = day.holiday_name_jp if day.holiday?
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
@@ -44,7 +44,7 @@ class MyHotEntry
44
44
  begin
45
45
  Timeout.timeout(5) do
46
46
  # convert Tempfile to String because REXML can't accept Tempfile
47
- open(rss_url) do |f|
47
+ URI.open(rss_url) do |f|
48
48
  rss = REXML::Document.new(f.readlines.join("\n"))
49
49
  end
50
50
  end
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
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: 2020-11-29 00:00:00.000000000 Z
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