nora 0.7 → 0.8

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nora/core.rb +10 -3
  3. data/lib/nora/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fccab401ac7eb09b7078c9c8cb94e1be04e2b7bd
4
- data.tar.gz: 5fb238bea537fc61cb54b57a27651d5f8d0dd7dc
3
+ metadata.gz: f489b522ee593bfba2e454facb6ee96cca9a6c59
4
+ data.tar.gz: e69fdfdd63b93b7f46bfd6ce537f8443fc5a3dc9
5
5
  SHA512:
6
- metadata.gz: 674557ebf7c90291761f684d521713a44b746ffd8a0a600784807616f00f3a97fd130af2832f4e2e1923305b77ab359df6009e972f79028e38fb0d971068a79c
7
- data.tar.gz: 88c5b8b0ca68a77046bf60ba91b79c4cc1dd7cf1867c1a74546b318666e6f4b7fbc92845ce6255c09e8297a1abb3ea0a04ec5c3825fa7733faaf0ff9734e3831
6
+ metadata.gz: 627975b00784b00875e88b31508d6ccac83bd070b6ec4771cb0d7c69e5c1dcd174d7a1f0096fcc07a1a2c4c09d3387689ccb1613bc3eae6ce25b05bdbdf0e4c1
7
+ data.tar.gz: 0a0d5cfe13c64e7eaf61a68bde5f1e3aacf556f93f8ecdcd063f88017e0e885a65ace03271cd0ea4cf1b8e64d4004bcf1ced00166a85698249f9642b203e2b1e
@@ -46,8 +46,6 @@ module Nora
46
46
  }
47
47
 
48
48
  def initialize(weeks_ahead:, test:)
49
- puts
50
-
51
49
  @weeks_ahead = weeks_ahead
52
50
  @test = test
53
51
 
@@ -93,7 +91,16 @@ module Nora
93
91
  def load_calendars!
94
92
  puts "Loading calendars..."
95
93
  @emails = CONFIGURATION["people"].map { |p| p["email"] }
96
- (Set.new(@emails) - @history).each do |email|
94
+
95
+ emails_in_history = []
96
+ File.open(PAIRINGS_FILE).each do |line|
97
+ line.split(PAIRINGS_FILE_SEPARATOR).each do |email|
98
+ emails_in_history << email
99
+ end
100
+ end
101
+
102
+ # Load all calendars that aren't in our history.
103
+ (@emails - emails_in_history).each do |email|
97
104
  puts "Loading calendar: #{email}"
98
105
  @service.insert_calendar_list(
99
106
  Google::Apis::CalendarV3::CalendarListEntry.new(id: email)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nora
4
- VERSION = "0.7"
4
+ VERSION = "0.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nora
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: '0.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Evelyn