calendar-assistant 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/Rakefile +4 -8
- data/lib/calendar_assistant.rb +1 -1
- data/lib/calendar_assistant/cli/commands.rb +2 -1
- data/lib/calendar_assistant/cli/config.rb +2 -2
- data/lib/calendar_assistant/version.rb +1 -1
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e569594cdc40d761ee7eca41c960efc4d435508e7fa22571497f9693914a6c0
|
4
|
+
data.tar.gz: f8488f08e8db4e2b1e1a037a307781faf5c3dad73242fe206e9b70670ee16298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a0c5da7676bca3b1f21f8793f42c75007f38f108e5f3a85145074d28e9eb3f508cdea487857ed239e8cdeb378cf0f94c9e7f26d9304b650d9bb482b185241cb
|
7
|
+
data.tar.gz: ac39130b3c7be61f0b6718cee82441deb9ffb00fefc7adb7db7c24ff0a303cb13466946a1656c3e6bb4a03d332e15f1733bfe8a5f4ecb0c5eed3b3b52c7a0876
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
- book (and re-book) one-on-ones and other meetings automatically
|
11
11
|
|
12
12
|
[![Gem Version](https://badge.fury.io/rb/calendar-assistant.svg)](https://badge.fury.io/rb/calendar-assistant)
|
13
|
-
[![
|
13
|
+
[![Test suite](https://github.com/flavorjones/calendar-assistant/actions/workflows/test-suite.yml/badge.svg)](https://github.com/flavorjones/calendar-assistant/actions/workflows/test-suite.yml)
|
14
14
|
[![Maintainability](https://api.codeclimate.com/v1/badges/3525792e1feeccfd8875/maintainability)](https://codeclimate.com/github/flavorjones/calendar-assistant/maintainability)
|
15
15
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/3525792e1feeccfd8875/test_coverage)](https://codeclimate.com/github/flavorjones/calendar-assistant/test_coverage)
|
16
16
|
[![Join the chat at https://gitter.im/flavorjones/calendar-assistant](https://badges.gitter.im/flavorjones/calendar-assistant.svg)](https://gitter.im/flavorjones/calendar-assistant?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
@@ -572,7 +572,6 @@ The output is TOML, which is suitable for dumping into `~/.calendar-assistant` a
|
|
572
572
|
|
573
573
|
<pre>
|
574
574
|
<b>$</b> calendar-assistant config
|
575
|
-
|
576
575
|
[settings]
|
577
576
|
end-of-day = "6pm"
|
578
577
|
location-icon = "🌎"
|
@@ -620,7 +619,7 @@ bundle exec rake # Default task runs both feature and non feature tests
|
|
620
619
|
|
621
620
|
### Continuous Integration
|
622
621
|
|
623
|
-
CI is running in
|
622
|
+
CI is running in [Github Actions](https://github.com/flavorjones/calendar-assistant/actions/workflows/test-suite.yml).
|
624
623
|
|
625
624
|
|
626
625
|
### Code Quality
|
data/Rakefile
CHANGED
@@ -1,15 +1,9 @@
|
|
1
1
|
#require "bundler/gem_tasks"
|
2
2
|
require "rspec/core/rake_task"
|
3
|
-
require "concourse"
|
4
3
|
require "license_finder"
|
5
4
|
require "tempfile"
|
6
5
|
require "rainbow"
|
7
6
|
|
8
|
-
#
|
9
|
-
# concourse
|
10
|
-
#
|
11
|
-
Concourse.new("calendar-assistant", fly_target: "calendar-assistants").create_tasks!
|
12
|
-
|
13
7
|
#
|
14
8
|
# spec tasks
|
15
9
|
#
|
@@ -53,15 +47,17 @@ end
|
|
53
47
|
|
54
48
|
#
|
55
49
|
# docker docker docker
|
50
|
+
# keep in mind that we have a Github Action to generate this weekly
|
56
51
|
#
|
52
|
+
CALENDAR_ASSISTANT_TEST_IMAGE = "ghcr.io/flavorjones/calendar-assistant-test"
|
57
53
|
desc "Build a docker image for testing"
|
58
54
|
task "docker:build" do
|
59
|
-
sh "docker build -t
|
55
|
+
sh "docker build -t #{CALENDAR_ASSISTANT_TEST_IMAGE} -f ci/Dockerfile ."
|
60
56
|
end
|
61
57
|
|
62
58
|
desc "Push a docker image for testing"
|
63
59
|
task "docker:push" do
|
64
|
-
sh "docker push
|
60
|
+
sh "docker push #{CALENDAR_ASSISTANT_TEST_IMAGE}"
|
65
61
|
end
|
66
62
|
|
67
63
|
desc "Build and push a docker image for testing"
|
data/lib/calendar_assistant.rb
CHANGED
@@ -14,7 +14,7 @@ autoload :Chronic, "chronic"
|
|
14
14
|
autoload :ChronicDuration, "chronic_duration"
|
15
15
|
autoload :Google, "calendar_assistant/extensions/google_apis_extensions"
|
16
16
|
autoload :Launchy, "calendar_assistant/extensions/launchy_extensions"
|
17
|
-
autoload :
|
17
|
+
autoload :TomlRB, "toml-rb"
|
18
18
|
autoload :Thor, "thor"
|
19
19
|
require "calendar_assistant/extensions/rainbow_extensions" # Rainbow() doesn't trigger autoload
|
20
20
|
require "active_support/time" # Time doesn't trigger autoload
|
@@ -66,7 +66,8 @@ class CalendarAssistant
|
|
66
66
|
def config
|
67
67
|
return if handle_help_args
|
68
68
|
settings = CalendarAssistant::CLI::Config.new.settings
|
69
|
-
|
69
|
+
filtered_settings = settings.reject { |k, v| v.nil? }
|
70
|
+
command_service.out.puts TomlRB.dump({ CalendarAssistant::Config::Keys::SETTINGS => filtered_settings })
|
70
71
|
end
|
71
72
|
|
72
73
|
desc "setup",
|
@@ -18,7 +18,7 @@ class CalendarAssistant
|
|
18
18
|
user_config = if File.exist? config_file_path
|
19
19
|
begin
|
20
20
|
FileUtils.chmod 0600, config_file_path
|
21
|
-
|
21
|
+
TomlRB.load_file config_file_path
|
22
22
|
rescue Exception => e
|
23
23
|
raise TomlParseFailure, "could not parse TOML file '#{config_file_path}': #{e}"
|
24
24
|
end
|
@@ -39,7 +39,7 @@ class CalendarAssistant
|
|
39
39
|
raise NoConfigFileToPersist, "Cannot persist config when there's no config file"
|
40
40
|
end
|
41
41
|
|
42
|
-
content =
|
42
|
+
content = TomlRB.dump(user_config)
|
43
43
|
|
44
44
|
File.open(config_file_path, "w") do |f|
|
45
45
|
f.write content
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calendar-assistant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Dalessio
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -124,19 +124,19 @@ dependencies:
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 1.1.0
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name: toml
|
127
|
+
name: toml-rb
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 2.0.1
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
139
|
+
version: 2.0.1
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: thor_repl
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,20 +179,6 @@ dependencies:
|
|
179
179
|
- - "~>"
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '2.2'
|
182
|
-
- !ruby/object:Gem::Dependency
|
183
|
-
name: concourse
|
184
|
-
requirement: !ruby/object:Gem::Requirement
|
185
|
-
requirements:
|
186
|
-
- - ">="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: '0'
|
189
|
-
type: :development
|
190
|
-
prerelease: false
|
191
|
-
version_requirements: !ruby/object:Gem::Requirement
|
192
|
-
requirements:
|
193
|
-
- - ">="
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: '0'
|
196
182
|
- !ruby/object:Gem::Dependency
|
197
183
|
name: faker
|
198
184
|
requirement: !ruby/object:Gem::Requirement
|
@@ -344,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
344
330
|
- !ruby/object:Gem::Version
|
345
331
|
version: '0'
|
346
332
|
requirements: []
|
347
|
-
rubygems_version: 3.
|
333
|
+
rubygems_version: 3.1.4
|
348
334
|
signing_key:
|
349
335
|
specification_version: 4
|
350
336
|
summary: A command-line tool to help manage your Google Calendar.
|