printable_calendar 0.0.5 → 0.0.6

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: 8e8fb99c08f3caffd178871c00f9babb4b1d2acb
4
- data.tar.gz: cffef9e42bc08938773cac99d5e09f5305e17453
3
+ metadata.gz: b3dcce62800d249dace8dcebc8ad6d5e9f5eb482
4
+ data.tar.gz: b452a354825167c2102f3062ab33f0a2405c87fd
5
5
  SHA512:
6
- metadata.gz: f0567d2b04fa5bd6dec284b4119862cd70d0080b4f38ae734f1a2ab88dbee64178668f75c244be9dddc8b9eaac5aae5131574826dabf7ab8251a0329dda7ad79
7
- data.tar.gz: 1d3f9cb69a71041cb2e0de4ead581051b153c6ea516afda96cb856d7175713bcb2d1ca944b07968b99925aba16ca4ef5b72a2b785bcecb25215a10edd2aec3b7
6
+ metadata.gz: 8b4d03b250c4cecc7be95c9dcb299e220b670352bee79a40329544e8a191efbc473b8087c1abef7046540f44b0fab595ca4d73639327b3b9f582381286b2ceab
7
+ data.tar.gz: 3ee3ff91f36ad87a77449111fd424c485c8cc29b5cbd0ccdf595c4e31d936a611c76b2fb02dace6cba6029f1f3d66942dd1eb175404bd5a1ad395643d8186b8b
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Generate printable agendas from Google Calendars.
4
4
 
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.
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, work week, 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
 
@@ -32,7 +32,7 @@ usage: printable_calendar [options]
32
32
  --client-id Google client id
33
33
  --client-secret Google client secret
34
34
  --refresh-token Google refresh token
35
- -p, --period Time period to use. Accepts workweek, american_week, intl_week, month, day
35
+ -p, --period Time period to use. Accepts work_week, american_week, intl_week, month, day
36
36
  --title Title for this calendar
37
37
  --starting-from Date to anchor on. Defaults to today. Format as YYYY-MM-DD
38
38
  --calendar-ids Google calendar IDs
@@ -17,7 +17,7 @@ module PrintableCalendar
17
17
  end
18
18
 
19
19
  def run
20
- starts, ends = Range.compute(@settings[:period] || "workweek", @settings[:starting_from] || Date.today)
20
+ starts, ends = Range.compute(@settings[:period] || "work_week", @settings[:starting_from] || Date.today)
21
21
  data = Calendar.new(client_id, client_secret).fetch(starts: starts, ends: ends, refresh_token: refresh_token, calendar_ids: calendar_ids)
22
22
  html = View.new(@settings, starts, ends, data).to_html
23
23
  tempfile = write_tempfile(html)
@@ -7,7 +7,7 @@ module PrintableCalendar
7
7
 
8
8
  def self.range_map
9
9
  {
10
- workweek: ->(t){[t.beginning_of_week(:monday), t.beginning_of_week(:monday) + 4]},
10
+ work_week: ->(t){[t.beginning_of_week(:monday), t.beginning_of_week(:monday) + 4]},
11
11
  american_week: ->(t){[t.beginning_of_week(:sunday), t.end_of_week(:sunday)]},
12
12
  intl_week: ->(t){[t.beginning_of_week(:monday), t.end_of_week(:sunday)]},
13
13
  month: ->(t){[t.beginning_of_month, t.end_of_month]},
@@ -1,3 +1,3 @@
1
1
  module PrintableCalendar
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/sample-config.json CHANGED
@@ -6,6 +6,6 @@
6
6
  "asdfasdfe43e4@group.calendar.google.com",
7
7
  "a3dfasdfee443e4@group.calendar.google.com"
8
8
  ],
9
- "period": "workweek",
9
+ "period": "work_week",
10
10
  "title": "Things to do"
11
11
  }
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Cambron