todoist_rest_client 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 599001423d712e315184e5ce3b5bad778d95c9b4ea7cbd16e867f040eaadcc1a
4
- data.tar.gz: eb3fbdbd38a3b8d7a080aaf36119375f22c10db8158147e250c59d96ed965ffd
3
+ metadata.gz: dfcad32535ea9f8e8e08a56cc5e596dc9ac805942d298a703d56619441658d3e
4
+ data.tar.gz: 3c2f6744553d3f3d65973075394b01070334ceceb75fa4751eae25a02adea6b6
5
5
  SHA512:
6
- metadata.gz: 4f136159a0b8814302c469e0fe0d99e075d83a78a9749ea1abf3395ffc2f48877a34ff81837af83c2c38cb8c95459a37a666c8d48960570f85f2e9ce7fbe0361
7
- data.tar.gz: c6890c8bf08ea4852141a437da075885abe1706c75afa9da522f25cc871fc4238c6d22411a795851d74a8efbb06f1e68dfd31231b2130b54e906a2d465311851
6
+ metadata.gz: ce5222dd9d7dcdb76b9f72525ac69e1f4085729580ab3cc7e53fb04c3fc735de761517c1ce4c4d5282f35d5e8d6d55292d7cd3687670fc956a929a596f0cf70d
7
+ data.tar.gz: bbb5f6b867f7b2957a2f529cf331b49a38441fbcda9d8b52b9c7d9866c98d3672dbfe1b1da95a33fa4dbf923f4eab6abc88428c79a6b6b30a894c33a5d57cd77
data/lib/todoist/due.rb CHANGED
@@ -30,12 +30,12 @@ class Todoist
30
30
 
31
31
  def bump
32
32
  if string.blank?
33
- TodoistClient.logger.error { "You can only bump recurring tasks" }
33
+ TodoistRestClient.logger.error { "You can only bump recurring tasks" }
34
34
  return nil
35
35
  end
36
36
  mm = string.match(RECURRING_REGEX)
37
37
  unless mm
38
- TodoistClient.logger.error { "Cannot parse the string of this due obj: #{string}" }
38
+ TodoistRestClient.logger.error { "Cannot parse the string of this due obj: #{string}" }
39
39
  return nil
40
40
  end
41
41
  hours = mm[1].to_i * HOURS_PER_UNIT.fetch(mm[2].downcase)
@@ -0,0 +1,3 @@
1
+ class TodoistRestClient
2
+ VERSION = "0.2.0"
3
+ end
@@ -7,7 +7,7 @@ require "date"
7
7
  require "time"
8
8
  require "rest_requestor"
9
9
 
10
- require_relative "todoist_client/version"
10
+ require_relative "todoist_rest_client/version"
11
11
  require_relative "todoist/current_time"
12
12
  require_relative "todoist/struct_cleanup"
13
13
  require_relative "todoist/due"
@@ -21,7 +21,7 @@ require_relative "todoist/sync"
21
21
  require_relative "todoist/date_parser"
22
22
  require_relative "todoist/utilities"
23
23
 
24
- class TodoistClient
24
+ class TodoistRestClient
25
25
  DAYS = %i[sun mon tue wed thu fri sat].freeze
26
26
  BASE = {
27
27
  rest: {v1: "https://api.todoist.com/api/v1/", legacy: "https://api.todoist.com/rest/v2/"},
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: todoist_rest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Wright
@@ -129,9 +129,9 @@ files:
129
129
  - lib/todoist/sync.rb
130
130
  - lib/todoist/task.rb
131
131
  - lib/todoist/utilities.rb
132
- - lib/todoist_client.rb
133
- - lib/todoist_client/version.rb
134
- homepage: https://codeberg.org/jswright61/todoist_client
132
+ - lib/todoist_rest_client.rb
133
+ - lib/todoist_rest_client/version.rb
134
+ homepage: https://codeberg.org/jswright61/todoist_rest_client
135
135
  licenses:
136
136
  - MIT
137
137
  metadata: {}
@@ -1,3 +0,0 @@
1
- class TodoistClient
2
- VERSION = "0.1.0"
3
- end