todoist-ruby 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +1 -0
- data/lib/todoist/sync/filters.rb +3 -3
- data/lib/todoist/sync/items.rb +3 -3
- data/lib/todoist/sync/labels.rb +3 -3
- data/lib/todoist/sync/notes.rb +3 -3
- data/lib/todoist/sync/projects.rb +3 -3
- data/lib/todoist/sync/reminders.rb +3 -3
- data/lib/todoist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7daad29d7cd0d65b9368bd878565885bcd2a6f32
|
4
|
+
data.tar.gz: b50c774800956866d824b8ec19f65821ccde9a29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9bccb4c9920626e43af53b1171f404c91c60813aaf422f77ddcebfd2a19448dad04a4599b8b993c356503c4827dde6b87bf0e0b4b00ef2c73af0d12b82bb1ab
|
7
|
+
data.tar.gz: 31fa4e9e42d0ed96829fb107ad2323832f70c774f8ae0cccde9d800b5dcab9d0cb09df9999c828b4ed614be0181c7410d762c1a8be54d66c3867afb9cd1ee472
|
data/README.md
CHANGED
@@ -192,6 +192,7 @@ Once tests pass cleanly, subsquent runs that do not change the network requests
|
|
192
192
|
|
193
193
|
## Version History
|
194
194
|
|
195
|
+
* 0.1.3: Changed Todoist::Sync managers so that the update method uses a hash instead of an OpenStruct. The OpenStruct creates errors when an OpenStruct passed from a previous call is used. The hash helps the caller make fewer mistakes.
|
195
196
|
* 0.1.2: Renamed method ```Todoist::Util::ParseHelper.make_objects_as_array``` to ```Todoist::Util::ParseHelper.make_objects_as_hash``` to reflect the fact that it was actually returning hashes. Added the aforementioned deleted method to return arrays and finally altered ```Todoist::Misc::Completed``` to return objects as arrays instead of hashes due to the fact that recurring completed items were being de-duped unintentionally and data was being lost as a result.
|
196
197
|
* 0.1.1: Initial release.
|
197
198
|
|
data/lib/todoist/sync/filters.rb
CHANGED
@@ -17,9 +17,9 @@ module Todoist
|
|
17
17
|
return ApiHelper.add(args, "filter_add")
|
18
18
|
end
|
19
19
|
|
20
|
-
# Update a filter given a
|
21
|
-
def update(
|
22
|
-
return ApiHelper.command(
|
20
|
+
# Update a filter given a hash of attributes
|
21
|
+
def update(args)
|
22
|
+
return ApiHelper.command(args, "filter_update")
|
23
23
|
end
|
24
24
|
|
25
25
|
# Delete filter given an array of filters
|
data/lib/todoist/sync/items.rb
CHANGED
@@ -13,9 +13,9 @@ module Todoist
|
|
13
13
|
return ApiHelper.add(args, "item_add")
|
14
14
|
end
|
15
15
|
|
16
|
-
# Update item given a
|
17
|
-
def update(
|
18
|
-
return ApiHelper.command(
|
16
|
+
# Update item given a hash of attributes
|
17
|
+
def update(args)
|
18
|
+
return ApiHelper.command(args, "item_update")
|
19
19
|
end
|
20
20
|
|
21
21
|
# Delete items given an array of items
|
data/lib/todoist/sync/labels.rb
CHANGED
@@ -13,9 +13,9 @@ module Todoist
|
|
13
13
|
return ApiHelper.add(args, "label_add")
|
14
14
|
end
|
15
15
|
|
16
|
-
# Update label given a
|
17
|
-
def update(
|
18
|
-
return ApiHelper.command(
|
16
|
+
# Update label given a hash of attributes
|
17
|
+
def update(args)
|
18
|
+
return ApiHelper.command(args, "label_update")
|
19
19
|
end
|
20
20
|
|
21
21
|
# Delete a label given a label
|
data/lib/todoist/sync/notes.rb
CHANGED
@@ -15,9 +15,9 @@ module Todoist
|
|
15
15
|
return ApiHelper.add(args, "note_add")
|
16
16
|
end
|
17
17
|
|
18
|
-
# Update a note given a
|
19
|
-
def update(
|
20
|
-
return ApiHelper.command(
|
18
|
+
# Update a note given a hash of attributes
|
19
|
+
def update(args)
|
20
|
+
return ApiHelper.command(args, "note_update")
|
21
21
|
end
|
22
22
|
|
23
23
|
# Delete notes given an a note
|
@@ -36,9 +36,9 @@ module Todoist
|
|
36
36
|
return ApiHelper.command(args, "project_unarchive")
|
37
37
|
end
|
38
38
|
|
39
|
-
# Update project given a
|
40
|
-
def update(
|
41
|
-
return ApiHelper.command(
|
39
|
+
# Update project given a hash of attributes
|
40
|
+
def update(args)
|
41
|
+
return ApiHelper.command(args, "project_update")
|
42
42
|
end
|
43
43
|
|
44
44
|
# Update orders and indents for an array of projects
|
@@ -15,9 +15,9 @@ module Todoist
|
|
15
15
|
return ApiHelper.add(args, "reminder_add")
|
16
16
|
end
|
17
17
|
|
18
|
-
# Update a reminder given a
|
19
|
-
def update(
|
20
|
-
return ApiHelper.command(
|
18
|
+
# Update a reminder given a hash of attributes
|
19
|
+
def update(args)
|
20
|
+
return ApiHelper.command(args, "reminder_update")
|
21
21
|
end
|
22
22
|
|
23
23
|
# Delete reminder given an array of reminders
|
data/lib/todoist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: todoist-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Han Yuan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|