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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31469c5e6dab32e05273dd8577a8fb79eee95778
4
- data.tar.gz: 870f637577676a3a7143110970e90ee4d3462668
3
+ metadata.gz: b092f4e678d520d0d35cccf5431782d6d6d9aefd
4
+ data.tar.gz: 85c3d3ebe5c194bfde45383a35bbe75d77eeb4f8
5
5
  SHA512:
6
- metadata.gz: 43e2a62abe9619fc9b479384bd7eb4dd09cfc56623904a01858c56115bcecbea532fbac2874f53b3d3bf61b76850314d083f4687b24c6ec379edfe95fd5f9fc3
7
- data.tar.gz: 177af35e6b74ec09fb84e1faddfb1ddef66b016c19b39504054e34b9661900797b918ea8af472ed27eb865744f7af6bd18ceac815f4aa18d71c38b98e5d89b11
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
- use:
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 --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`).
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 the options:
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 start showing. Defaults to today. YYYY-MM-DD
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
 
Binary file
@@ -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 start showing. Defaults to today. YYYY-MM-DD"
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
 
@@ -1,3 +1,3 @@
1
1
  module PrintableCalendar
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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
- - bin/setup
125
+ - docs/screenshot.png
126
126
  - exe/printable_calendar
127
127
  - lib/printable_calendar.rb
128
128
  - lib/printable_calendar/calendar.rb
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here