seminima 0.1.6 → 0.1.7

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/seminima/calendar.rb +8 -7
  3. metadata +2 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3efa0cd80e6c60bf2a4a0bdaa99c8a0513447e92ad25a09a1575dfef8ad93a8
4
- data.tar.gz: 9d65f2f60cecbfafb23d81f01d7d19bfe440ba2730394c54ed666dcd629bd340
3
+ metadata.gz: 6cc276c197e45aa40f5ad6f8d159d79264d1c5b556523a435603a788e6b6c02b
4
+ data.tar.gz: 6a0271fd675c86aee7ba5bb4b6462dce0e4a342cc02c065e86cb6627f46f95b9
5
5
  SHA512:
6
- metadata.gz: faeaabbbf807d608dbd2615b1af96e6d69d399e1536c75d8ea6300c880a36044b4954621d9fbdc3139ff82aee445b945536bb2b5adca381a5e10a3ceacf55112
7
- data.tar.gz: 230a47e19e007a180583ac1c0cd9e6cfbc3fc359c89728d28a07699c52d604d788e9c56f4d6245f015be9c1cf6c22773d94b55791adb9c01666a0ea13a1a076b
6
+ metadata.gz: d978dfa150acb62bd8f1840cf9e9c39d582c1231ca0088ef995dfda9326cd6f975be023cebca53f82c39c49678bcc2ab830439f0f224d5b520c7ed29efc4e0ff
7
+ data.tar.gz: 230273f210274bf7f90ff52f0a4b46436f37db0970240e9657285d0efe59beea0494d44422fbe9c32ec41c262080107feefa38fc3649d20377969c1f0ce402de
@@ -25,16 +25,17 @@ module Jekyll
25
25
  end
26
26
  upcoming_talks.each do |talk|
27
27
  cal.event do |e|
28
- date = talk.date
29
- if date.is_a?(String)
30
- date = Date.parse(date)
28
+ start_time = talk.date
29
+ if start_time.is_a?(String)
30
+ start_time = Date.parse(start_time)
31
31
  end
32
32
  e.uid = SecureRandom.uuid
33
33
  zone = TZInfo::Timezone.get("Europe/Amsterdam")
34
- start_hour, start_min = talk.data["start_time"].split(":").map(&:to_i)
35
- end_hour, end_min = talk.data["end_time"].split(":").map(&:to_i)
36
- start_time = Time.new(date.year, date.month, date.day, start_hour, start_min, 0)
37
- end_time = Time.new(date.year, date.month, date.day, end_hour, end_min, 0)
34
+ end_time = talk.data["end_time"]
35
+ if end_time.is_a?(String)
36
+ end_hour, end_min = talk.data["end_time"].split(":").map(&:to_i)
37
+ end_time = Time.new(date.year, date.month, date.day, end_hour, end_min, 0)
38
+ end
38
39
  e.dtstart = Icalendar::Values::DateTime.new start_time, 'tzid' => tzid
39
40
  e.dtend = Icalendar::Values::DateTime.new end_time, 'tzid' => tzid
40
41
  e.summary = talk.data['speaker'] + ": " + talk.data['title']
metadata CHANGED
@@ -1,11 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seminima
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douwe Hoekstra
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
10
  date: 1980-01-01 00:00:00.000000000 Z
@@ -72,7 +71,6 @@ dependencies:
72
71
  - - "~>"
73
72
  - !ruby/object:Gem::Version
74
73
  version: '2.12'
75
- description:
76
74
  email:
77
75
  - dev@dhoekstra.xyz
78
76
  executables: []
@@ -122,7 +120,6 @@ homepage: https://github.com/seminar-tools/seminima
122
120
  licenses:
123
121
  - MIT
124
122
  metadata: {}
125
- post_install_message:
126
123
  rdoc_options: []
127
124
  require_paths:
128
125
  - lib
@@ -137,8 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
134
  - !ruby/object:Gem::Version
138
135
  version: '0'
139
136
  requirements: []
140
- rubygems_version: 3.3.26
141
- signing_key:
137
+ rubygems_version: 3.7.2
142
138
  specification_version: 4
143
139
  summary: A Jekyll-theme for seminar sites based on Minima.
144
140
  test_files: []