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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0296a4a6bf6caf9b428325373af5819366f39d71349b4a3a365cd77ca2c1831b'
4
- data.tar.gz: dad6547f9e014adc254d3530245ea07b29434d51f383d18f038917ef8db3d619
3
+ metadata.gz: 8e569594cdc40d761ee7eca41c960efc4d435508e7fa22571497f9693914a6c0
4
+ data.tar.gz: f8488f08e8db4e2b1e1a037a307781faf5c3dad73242fe206e9b70670ee16298
5
5
  SHA512:
6
- metadata.gz: 7444e059b3608e4a8cb9cbd231865240322417f36be12de33b0f09ec9d77d7d07191ef20abb9ca0440d5d4b94b1b48cdceecc6a65a87035df10dccfd968e3bed
7
- data.tar.gz: cd9b6e08ddcd646ea9660274423acc99f0db8dbae99f000ae39578872fb10632d62da4bdd19324eb40fbfce888954d3a38bae2d1fd38ba08364c71e1820d97dd
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
- [![Concourse CI](https://ci.nokogiri.org/api/v1/teams/calendar-assistants/pipelines/calendar-assistant/jobs/rake-spec/badge)](https://ci.nokogiri.org/teams/calendar-assistants/pipelines/calendar-assistant)
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 a [Concourse](https://concourse-ci.org) pipeline at [https://ci.nokogiri.org](https://ci.nokogiri.org/teams/calendar-assistants/pipelines/calendar-assistant).
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 flavorjones/calendar-assistant-test -f concourse/images/Dockerfile ."
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 flavorjones/calendar-assistant-test"
60
+ sh "docker push #{CALENDAR_ASSISTANT_TEST_IMAGE}"
65
61
  end
66
62
 
67
63
  desc "Build and push a docker image for testing"
@@ -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 :TOML, "toml"
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
- command_service.out.puts TOML::Generator.new({ CalendarAssistant::Config::Keys::SETTINGS => settings }).body
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
- TOML.load_file config_file_path
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 = TOML::Generator.new(user_config).body
42
+ content = TomlRB.dump(user_config)
43
43
 
44
44
  File.open(config_file_path, "w") do |f|
45
45
  f.write content
@@ -1,3 +1,3 @@
1
1
  class CalendarAssistant
2
- VERSION = "0.14.0"
2
+ VERSION = "0.15.0"
3
3
  end
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.14.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-02-24 00:00:00.000000000 Z
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: 0.2.0
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: 0.2.0
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.2.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.