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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfcad32535ea9f8e8e08a56cc5e596dc9ac805942d298a703d56619441658d3e
|
|
4
|
+
data.tar.gz: 3c2f6744553d3f3d65973075394b01070334ceceb75fa4751eae25a02adea6b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
|
@@ -7,7 +7,7 @@ require "date"
|
|
|
7
7
|
require "time"
|
|
8
8
|
require "rest_requestor"
|
|
9
9
|
|
|
10
|
-
require_relative "
|
|
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
|
|
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.
|
|
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/
|
|
133
|
-
- lib/
|
|
134
|
-
homepage: https://codeberg.org/jswright61/
|
|
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: {}
|