schedule-cli 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: e7f5856a18a1c3b88cfa3303b4becb495617bacdd061bb96eaa83d470272273d
4
- data.tar.gz: 1e9f64117af1d689c63094668c7a337b51c7329e310c9df823b72f04fdf648c9
3
+ metadata.gz: 639560b9143fd939dd209d25cb0cfeccf082409b184fca2c9113706c3e52dfd6
4
+ data.tar.gz: f5fd5acf3eeb15e850d43126f13aa77f6f4f7f9e14187b7443502ae66703ca4d
5
5
  SHA512:
6
- metadata.gz: bda9a3ead7125b766b539f9a19ea7a288c7c57243612f4da125606de365b2942f330836f5ad3fd18f005a05a755a2bc9c8bfc0728c6ce150f947c631ced5dd7d
7
- data.tar.gz: 43dfe7775c369c3cd837cfaa56c9c53de45c4537720d17d83c9cdec21ee0c927efa913f312f2ad27b6ef7e050433de569c070c97c29b15b428f31e9b93b86c77
6
+ metadata.gz: 460746f66daa4e96106bf2a0cc549a9289b2e844eea0817eb7d8705b75a2a55211c0dca43dbc0908ea3c05378770506d7024d1207f93bb394f0794ba5b695bbf
7
+ data.tar.gz: 81b71502db26f47e20720b450ed58f1b494775e4422564ce6029c86882c2d964b8fdc18d90b3b1fd43b70a402788868182d61eb863b06df80716bf2cc8a01887
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- schedule-cli (0.1.2)
4
+ schedule-cli (0.1.3)
5
5
  activesupport (~> 5.2)
6
6
  chronic
7
7
  google-api-client (~> 0.11)
@@ -13,7 +13,7 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (5.2.0)
16
+ activesupport (5.2.1)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
@@ -27,14 +27,14 @@ GEM
27
27
  declarative-option (0.1.0)
28
28
  faraday (0.15.2)
29
29
  multipart-post (>= 1.2, < 3)
30
- google-api-client (0.23.4)
30
+ google-api-client (0.23.5)
31
31
  addressable (~> 2.5, >= 2.5.1)
32
32
  googleauth (>= 0.5, < 0.7.0)
33
33
  httpclient (>= 2.8.1, < 3.0)
34
34
  mime-types (~> 3.0)
35
35
  representable (~> 3.0)
36
36
  retriable (>= 2.0, < 4.0)
37
- googleauth (0.6.3)
37
+ googleauth (0.6.6)
38
38
  faraday (~> 0.12)
39
39
  jwt (>= 1.4, < 3.0)
40
40
  memoist (~> 0.12)
@@ -42,15 +42,15 @@ GEM
42
42
  os (>= 0.9, < 2.0)
43
43
  signet (~> 0.7)
44
44
  httpclient (2.8.3)
45
- i18n (1.0.1)
45
+ i18n (1.1.0)
46
46
  concurrent-ruby (~> 1.0)
47
47
  jwt (2.1.0)
48
48
  launchy (2.4.3)
49
49
  addressable (~> 2.3)
50
50
  memoist (0.16.0)
51
- mime-types (3.1)
51
+ mime-types (3.2.2)
52
52
  mime-types-data (~> 3.2015)
53
- mime-types-data (3.2016.0521)
53
+ mime-types-data (3.2018.0812)
54
54
  mini_portile2 (2.3.0)
55
55
  minitest (5.11.3)
56
56
  multi_json (1.13.1)
@@ -59,14 +59,14 @@ GEM
59
59
  mini_portile2 (~> 2.3.0)
60
60
  os (1.0.0)
61
61
  parallel (1.12.1)
62
- public_suffix (3.0.2)
62
+ public_suffix (3.0.3)
63
63
  rake (10.5.0)
64
64
  representable (3.0.4)
65
65
  declarative (< 0.1.0)
66
66
  declarative-option (< 0.2.0)
67
67
  uber (< 0.2.0)
68
68
  retriable (3.1.2)
69
- signet (0.8.1)
69
+ signet (0.9.0)
70
70
  addressable (~> 2.3)
71
71
  faraday (~> 0.9)
72
72
  jwt (>= 1.5, < 3.0)
data/lib/schedule/cli.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'active_support/core_ext/hash/deep_merge'
4
+
3
5
  require 'thor'
4
6
  require 'nokogiri'
5
7
  require 'chronic'
@@ -24,7 +26,8 @@ module Schedule
24
26
  if /\A\d+\z/.match?(type)
25
27
  config[:duration] = type.to_i
26
28
  else
27
- config.merge!(Config.value(:events, type&.to_sym) || {})
29
+ event_config = Config.value(:events, type&.to_sym)
30
+ config = config.deep_merge(event_config) if event_config.present?
28
31
  end
29
32
  if offset_string.present?
30
33
  config[:day][:offset] = parse_offset offset_string.join(' ')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Schedule
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schedule-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasyf Mohamedali
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-07 00:00:00.000000000 Z
11
+ date: 2018-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler