add_to_calendar 0.5.0 → 0.5.1
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/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/add_to_calendar.gemspec +1 -1
- data/lib/add_to_calendar/version.rb +1 -1
- data/lib/add_to_calendar.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1032e0d4e1d32a36159cb698a0fa81f0c43f16445876728329f1862a1be54215
|
|
4
|
+
data.tar.gz: 90fcded49ce3b3b7da0633b8576396bbd016cef3fd04bc6c09b5aa5971b6fc9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 131a9fa2f5597e902c075bb3d67da89a1113fa1b0422a43babcd2e7447fbc740a47b3a6ab944a001859967bde8ac6d48f2a03fe731d0bd4f051bde0344b45f01
|
|
7
|
+
data.tar.gz: 6e003cf5f607b768a220427e94b04c0ff4df5ede2db2da4b2af3358b3ee0872903f55f056c5a5e5237648f546cb344665b0612ea0f6979315395954b41587042
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -45,11 +45,11 @@ Or install it yourself as:
|
|
|
45
45
|
#=> "https://app.hey.com/calendar/ical_events/new?ical_source=BEGIN%3AVCALENDAR%0AVERSION%3A2.0%0APRODID%3A-//AddToCalendar//RubyGem//EN%0ABEGIN%3AVEVENT%0ASUMMARY%3AHolly%27s%209th%20birthday%21%0ADTSTAMP%3A20240913T151029Z%0ADTSTART%3A20240906T123000Z%0ADTEND%3A20240906T133000Z%0AUID%3A-20240906T123000Z-Holly%27s%209th%20birthday%21%0AEND%3AVEVENT%0AEND%3AVCALENDAR"
|
|
46
46
|
|
|
47
47
|
@cal.office365_url
|
|
48
|
-
#=> "https://outlook.office.com/calendar/0/
|
|
48
|
+
#=> "https://outlook.office.com/calendar/0/action/compose?rru=addevent&subject=Christmas%20party%21&startdt=2020-12-12T13:30:00Z&enddt=2020-12-12T14:30:00Z"
|
|
49
49
|
|
|
50
50
|
# For outlook.com, different to Outlook the desktop application below
|
|
51
51
|
@cal.outlook_com_url
|
|
52
|
-
#=> "https://outlook.live.com/calendar/0/
|
|
52
|
+
#=> "https://outlook.live.com/calendar/0/action/compose?rru=addevent&subject=Christmas%20party%21&startdt=2020-12-12T13:30:00Z&enddt=2020-12-12T14:30:00Z"
|
|
53
53
|
|
|
54
54
|
# ical provides a data-uri which will download a properly formatted *.ics file (see 'Creating HTML links' section)
|
|
55
55
|
@cal.ical_url
|
data/add_to_calendar.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.authors = ["Jared Turner"]
|
|
9
9
|
spec.email = ["jaredlt01@gmail.com"]
|
|
10
10
|
|
|
11
|
-
spec.summary = "Generate 'Add To Calendar' URLs for Android, Apple, Google, Office 365, Outlook, Outlook.com and Yahoo calendars"
|
|
11
|
+
spec.summary = "Generate 'Add To Calendar' URLs for Android, Apple, Google, Hey, Office 365, Outlook, Outlook.com and Yahoo calendars"
|
|
12
12
|
# spec.description = %q{TODO: Write a longer description or delete this line.}
|
|
13
13
|
spec.homepage = "https://github.com/jaredlt/add_to_calendar"
|
|
14
14
|
spec.license = "MIT"
|
data/lib/add_to_calendar.rb
CHANGED
|
@@ -146,12 +146,12 @@ module AddToCalendar
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
def office365_url
|
|
149
|
-
# Eg. https://outlook.
|
|
149
|
+
# Eg. https://outlook.office.com/calendar/0/action/compose?rru=addevent&subject=Holly%27s%208th%20Birthday%21&startdt=2020-05-12T12:30:00Z&enddt=2020-05-12T16:00:00Z&body=Come%20join%20us%20for%20lots%20of%20fun%20%26%20cake%21%0A%0Ahttps%3A%2F%2Fwww.example.com%2Fevent-details&location=Flat%204%2C%20The%20Edge%2C%2038%20Smith-Dorrien%20St%2C%20London%2C%20N1%207GU
|
|
150
150
|
microsoft("office365")
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
def outlook_com_url
|
|
154
|
-
# Eg. https://outlook.live.com/calendar/0/
|
|
154
|
+
# Eg. https://outlook.live.com/calendar/0/action/compose?rru=addevent&subject=Holly%27s%208th%20Birthday%21&startdt=2020-05-12T12:30:00Z&enddt=2020-05-12T16:00:00Z&body=Come%20join%20us%20for%20lots%20of%20fun%20%26%20cake%21%0A%0Ahttps%3A%2F%2Fwww.example.com%2Fevent-details&location=Flat%204%2C%20The%20Edge%2C%2038%20Smith-Dorrien%20St%2C%20London%2C%20N1%207GU
|
|
155
155
|
microsoft("outlook.com")
|
|
156
156
|
end
|
|
157
157
|
|
|
@@ -252,9 +252,9 @@ module AddToCalendar
|
|
|
252
252
|
def microsoft(service)
|
|
253
253
|
# Eg.
|
|
254
254
|
if service == "outlook.com"
|
|
255
|
-
calendar_url = "https://outlook.live.com/calendar/0/
|
|
255
|
+
calendar_url = "https://outlook.live.com/calendar/0/action/compose?rru=addevent"
|
|
256
256
|
elsif service == "office365"
|
|
257
|
-
calendar_url = "https://outlook.office.com/calendar/0/
|
|
257
|
+
calendar_url = "https://outlook.office.com/calendar/0/action/compose?rru=addevent"
|
|
258
258
|
else
|
|
259
259
|
raise MicrosoftServiceError, ":service must be 'outlook.com' or 'office365'. '#{service}' given"
|
|
260
260
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: add_to_calendar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jared Turner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tzinfo
|
|
@@ -160,6 +160,6 @@ requirements: []
|
|
|
160
160
|
rubygems_version: 3.5.6
|
|
161
161
|
signing_key:
|
|
162
162
|
specification_version: 4
|
|
163
|
-
summary: Generate 'Add To Calendar' URLs for Android, Apple, Google, Office 365,
|
|
164
|
-
Outlook.com and Yahoo calendars
|
|
163
|
+
summary: Generate 'Add To Calendar' URLs for Android, Apple, Google, Hey, Office 365,
|
|
164
|
+
Outlook, Outlook.com and Yahoo calendars
|
|
165
165
|
test_files: []
|