printable_calendar 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/screenshot.png +0 -0
- data/exe/printable_calendar +1 -1
- data/lib/printable_calendar/version.rb +1 -1
- metadata +2 -2
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b092f4e678d520d0d35cccf5431782d6d6d9aefd
|
4
|
+
data.tar.gz: 85c3d3ebe5c194bfde45383a35bbe75d77eeb4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8256ad2d5af74eeeb1d8249337ede3027a462d970013dc2d2ccfba44698fa767aaef1c7d71d853e3fc0edca8a4108257ca2e2d9d3a30073e0564458ddbfe23c7
|
7
|
+
data.tar.gz: 381e6ac7180d3d47f54bcedb69eaf4de23a4e8bf397c18b5a23822bcd9cb4665a3dd9a6fa081271b22765c1cfd33d97347743ae8e22b9932f22505d68b89967c
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Generate printable agendas from Google Calendars.
|
|
4
4
|
|
5
5
|
I got sick of Google Calendar's terrible print dialog and decided to code around it. This command line utility will download a week, workweek, or month of agenda items and render them in your default browser so you can print them easily.
|
6
6
|
|
7
|
-
|
7
|
+
![Screenshot](docs/screenshot.png)
|
8
8
|
|
9
9
|
## Installation and Setup
|
10
10
|
|
@@ -13,15 +13,15 @@ I got sick of Google Calendar's terrible print dialog and decided to code around
|
|
13
13
|
```
|
14
14
|
|
15
15
|
0. Copy the sample-config.json file.
|
16
|
-
1. You need a Google OAuth client ID and secret. You get those [here](https://console.developers.google.com/)). Make sure you add the Calendar API. Put the client ID and secret into the json file (You may also stash them in env vars: `PRINTABLE_CALENDAR_CLIENT_ID` and `PRINTABLE_CALENDAR_CLIENT_SECRET`. Just remove the keys from your JSON file if you do.)
|
17
|
-
2. You need a refresh token. Having saved your partially filled out JSON file, run `printable_calendar
|
16
|
+
1. You need a Google OAuth client ID and secret. You get those [here](https://console.developers.google.com/). First, you have to create a project, then add some OAuth credentials (cselect "OAuth client ID" under the "Create credentials" dropdown). Make sure you add the Calendar API to the project. Put the client ID and secret into the json file (You may also stash them in env vars: `PRINTABLE_CALENDAR_CLIENT_ID` and `PRINTABLE_CALENDAR_CLIENT_SECRET`. Just remove the keys from your JSON file if you do.)
|
17
|
+
2. You need a refresh token. Having saved your partially filled out JSON file, run `printable_calendar -g`. That will open a dialog asking you to accept that your app can have access to your data. Just follow the instructions in the terminal. Paste that refresh token into the JSON file. (You can also use an env var for this: `PRINTABLE_CALENDAR_REFRESH_TOKEN`).
|
18
18
|
3. Finally you need the calendars you want to pull in info from; grab their IDs through the Google Calendar UI by finding them in the left sidebar, clicking the little down arrow, clicking "settings", and then copying the email-looking thing next to "Calendar ID".
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
22
|
Run `printable_calendar -c your-config-file.json`. The application will download your events, create an HTML file in your temp dir, and open it in your default browser. All you have to do is print it.
|
23
23
|
|
24
|
-
There are a few other options. They're available in both the JSON file and as command line switches. Here are all
|
24
|
+
There are a few other options. They're available in both the JSON file and as command line switches. Here are all them:
|
25
25
|
|
26
26
|
```
|
27
27
|
usage: printable_calendar [options]
|
@@ -34,7 +34,7 @@ usage: printable_calendar [options]
|
|
34
34
|
--refresh-token Google refresh token
|
35
35
|
--period time period to use
|
36
36
|
--title title for this calendar
|
37
|
-
--starting-from date to
|
37
|
+
--starting-from date to anchor on. Defaults to today. Format as YYYY-MM-DD
|
38
38
|
--calendar-ids Google calendar IDs
|
39
39
|
```
|
40
40
|
|
data/docs/screenshot.png
ADDED
Binary file
|
data/exe/printable_calendar
CHANGED
@@ -23,7 +23,7 @@ opts = Slop.parse do |o|
|
|
23
23
|
o.string "--refresh-token", "Google refresh token"
|
24
24
|
o.string "--period", "time period to use"
|
25
25
|
o.string "--title", "title for this calendar"
|
26
|
-
o.string "--starting-from", "date to
|
26
|
+
o.string "--starting-from", "date to anchor on. Defaults to today. Format as YYYY-MM-DD"
|
27
27
|
o.array "--calendar-ids", "Google calendar IDs"
|
28
28
|
end
|
29
29
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: printable_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Cambron
|
@@ -122,7 +122,7 @@ files:
|
|
122
122
|
- README.md
|
123
123
|
- Rakefile
|
124
124
|
- bin/console
|
125
|
-
-
|
125
|
+
- docs/screenshot.png
|
126
126
|
- exe/printable_calendar
|
127
127
|
- lib/printable_calendar.rb
|
128
128
|
- lib/printable_calendar/calendar.rb
|