nora 0.4 → 0.5

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: 576acba53fed80d628718adfea8faf75309b495f
4
- data.tar.gz: 4002a59d76cb16b8c2585ce2646348a11a072c85
3
+ metadata.gz: e39fef7732f4c1e9f80e5871912333e63ad2dd9c
4
+ data.tar.gz: ca0ad2c69141c0d958f4862b60f5fc6828431342
5
5
  SHA512:
6
- metadata.gz: e08f3d6a8d80d7fb9e2213a0781fe960e4e607f03a55ffcd58415612db45425fb18e8953300e9bb41573f68df4972e4af9e5eddec3a534628466e6ef65c2a448
7
- data.tar.gz: 24ef9c645145c6b7e22b065e7e4b8d20a1f212a844708da11d4b75d2d772c744ac5724f05fadcd93275cc0953feba82b784ed02dbf29f5b2f6acb120aa4bf5ca
6
+ metadata.gz: 8f0aeea7d94c490577c98698ca86e91cc1ac96ec1e54f6a260a9b5a804eb6a56ca50629184a48c76a7176faa18c050f9acf70fe6ca9e1d36c81d5f28c59e4fee
7
+ data.tar.gz: 32921ec2f0c477b397da1c3cf48ff272a919419592e6c41586340cc9e8f7e1ac22ebcf475db83c0057f5c59b143020b89034a52256525082d9a4168646fb632f
@@ -93,6 +93,7 @@ module Nora
93
93
  # calendar in the configuration file without us
94
94
  # having to manually add them in the UI.
95
95
  def load_calendars!
96
+ @emails = CONFIGURATION["people"].map { |p| p["email"] }.shuffle
96
97
  @emails.each do |email|
97
98
  @service.insert_calendar_list(
98
99
  Google::Apis::CalendarV3::CalendarListEntry.new(id: email)
@@ -121,7 +122,6 @@ module Nora
121
122
  end
122
123
 
123
124
  def create_groups!
124
- @emails = CONFIGURATION["people"].map { |p| p["email"] }.shuffle
125
125
  @emails.each_slice(group_size).each do |emails|
126
126
  return create_groups! unless (@history & emails.combination(2)).empty?
127
127
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nora
4
- VERSION = "0.4"
4
+ VERSION = "0.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nora
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Evelyn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-18 00:00:00.000000000 Z
11
+ date: 2018-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler