printable_calendar 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a8d8ded10c1bc88f6a8091ad74257e6d5089ed0
4
- data.tar.gz: 165174a4136e719bdc5122546c4c43bb32619a3b
3
+ metadata.gz: 31469c5e6dab32e05273dd8577a8fb79eee95778
4
+ data.tar.gz: 870f637577676a3a7143110970e90ee4d3462668
5
5
  SHA512:
6
- metadata.gz: 2518be111d5df3b65172613e607c9922b7ed2415f43ff6a3280d33da232466785bf670de4b68dfd52717ccfe6018df7b9023e7057db41b1fa5aaed654d67b88c
7
- data.tar.gz: 385487c0218db4bc0b75d11d971928ae10f7d17f73a78590764f77debbcce6b79236c5244d0a5f73aede1a22d3100ca063c17ff657e663c3162a791f59d7ba3f
6
+ metadata.gz: 43e2a62abe9619fc9b479384bd7eb4dd09cfc56623904a01858c56115bcecbea532fbac2874f53b3d3bf61b76850314d083f4687b24c6ec379edfe95fd5f9fc3
7
+ data.tar.gz: 177af35e6b74ec09fb84e1faddfb1ddef66b016c19b39504054e34b9661900797b918ea8af472ed27eb865744f7af6bd18ceac815f4aa18d71c38b98e5d89b11
data/README.md CHANGED
@@ -27,13 +27,14 @@ There are a few other options. They're available in both the JSON file and as co
27
27
  usage: printable_calendar [options]
28
28
  -g, --generate generate a token
29
29
  -h, --help print help
30
+ -v, --version print version info
30
31
  -c, --config use a JSON config file
31
32
  --client-id Google client id
32
33
  --client-secret Google client secret
33
34
  --refresh-token Google refresh token
34
- --period Time period to use
35
- --title Title for this calendar
36
- --starting-from Date to start showing. Defaults to today. YYYY-MM-DD
35
+ --period time period to use
36
+ --title title for this calendar
37
+ --starting-from date to start showing. Defaults to today. YYYY-MM-DD
37
38
  --calendar-ids Google calendar IDs
38
39
  ```
39
40
 
@@ -1,3 +1,3 @@
1
1
  module PrintableCalendar
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -73,7 +73,9 @@ module PrintableCalendar
73
73
  end
74
74
 
75
75
  def format_time(date_time)
76
+ zone = Time.now.getlocal.zone
76
77
  date_time = DateTime.iso8601(date_time) if date_time.is_a?(String)
78
+ date_time = date_time.in_time_zone(zone)
77
79
  date_time.strftime("%I:%M%P")
78
80
  end
79
81
 
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "printable_calendar/version"
4
+ require_relative "lib/printable_calendar/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "printable_calendar"
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Cambron
@@ -129,7 +129,6 @@ files:
129
129
  - lib/printable_calendar/range.rb
130
130
  - lib/printable_calendar/version.rb
131
131
  - lib/printable_calendar/view.rb
132
- - lib/version.rb
133
132
  - printable_calendar.gemspec
134
133
  - sample-config.json
135
134
  - vendor/bootstrap.min.css
data/lib/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module PrintableCalendar
2
- VERSION = "0.0.2"
3
- end