i2gcal 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: 2ff69b51f728ee1cd941363b9376c48c38a9476b
4
- data.tar.gz: 773925facf1db43e0006017f919a5f980401897b
3
+ metadata.gz: 43bb9631ae1385c6f04533fdebbed5d024da9e67
4
+ data.tar.gz: 962ccda8e302f4117f40a991f5c5fa1aa346f617
5
5
  SHA512:
6
- metadata.gz: a2240e16c51f28cfb15c9911e99ed5f2aee1c4fd1c3d0fa47e4c4c5cd4f04218ceb5b422207a0636b5836950a38dcfa83f53e3784e2ea650ebbe6cfb0fc42a45
7
- data.tar.gz: 03b86b0c2e683c9806ce920b2b3a9464db5a98c8137e86675e3f2901db2c825a258f5c2f1d8aee38ce710c95a3f6f445562d35497d9595b82b5576a2c1cdc36b
6
+ metadata.gz: 4cb1a8f545fd3fc67210a3495e23ab88d74e4f02ac77991f739061fbe09b54da241abe071a5596e821104f8d040beb47dc60e93a8cd8b68db914373fa35ae892
7
+ data.tar.gz: 4e1bf286eeaf21edbd1afe6360d2cf5f4679d9b8eaf3909d54d9136c81ef930b5edf818870abb20abcbc939a576b9686ad945a112b3f204c744ed1475b5a989a
@@ -1,3 +1,3 @@
1
1
  module I2GCal
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.3'.freeze
3
3
  end
@@ -6,7 +6,7 @@ class CatToColFilter
6
6
 
7
7
  def call(ical_event, representation)
8
8
  @mapping.each_pair do |cat, col|
9
- representation['colorId'] = col.to_s if ical_event.categories.any? {|c| c.to_sym == cat}
9
+ representation['colorId'] = col.to_s if ical_event.categories.flatten.any? {|c| c.to_sym == cat}
10
10
  end
11
11
  representation
12
12
  end
@@ -7,6 +7,8 @@ module Icalendar
7
7
  wz = File.read(wz_path)
8
8
  WINDOWS_TZID_MAP = Hash[wz.scan(regex)]
9
9
 
10
+ puts WINDOWS_TZID_MAP
11
+
10
12
  def tzinfo
11
13
  return time_zone.tzinfo if self.respond_to? :time_zone
12
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i2gcal
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
  - Adam Watkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-31 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -123,4 +123,3 @@ signing_key:
123
123
  specification_version: 4
124
124
  summary: One-way sync an iCalendar file to Google Calendar
125
125
  test_files: []
126
- has_rdoc: