todoist-ruby 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: d36fbf13110d44679219837d5b8e7fa0b9f0f079
4
- data.tar.gz: 7b6ed748aaadf0b41a5387ce597201eb5c1187fd
3
+ metadata.gz: 7daad29d7cd0d65b9368bd878565885bcd2a6f32
4
+ data.tar.gz: b50c774800956866d824b8ec19f65821ccde9a29
5
5
  SHA512:
6
- metadata.gz: 12ddbea8f9a2663df0322e42bf804799b8fec78b0914f7171b3cb0e99c884d91793e9f5579ca2de8140c83fa0e87574cc8e2740cf451db47445ff4069dec0b27
7
- data.tar.gz: 8d26cf0c27ad96dc3195d07ef04dbde27330903f729098253b823f27cf55317a1da5c744701096866875d8c23e4002605c2a3e0d67a53f80899474dd20fdc166
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
 
@@ -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 filter
21
- def update(filter)
22
- return ApiHelper.command(filter.to_h, "filter_update")
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
@@ -13,9 +13,9 @@ module Todoist
13
13
  return ApiHelper.add(args, "item_add")
14
14
  end
15
15
 
16
- # Update item given a item
17
- def update(item)
18
- return ApiHelper.command(item.to_h, "item_update")
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
@@ -13,9 +13,9 @@ module Todoist
13
13
  return ApiHelper.add(args, "label_add")
14
14
  end
15
15
 
16
- # Update label given a label
17
- def update(label)
18
- return ApiHelper.command(label.to_h, "label_update")
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
@@ -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 note
19
- def update(note)
20
- return ApiHelper.command(note.to_h, "note_update")
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 project
40
- def update(project)
41
- return ApiHelper.command(project.to_h, "project_update")
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 reminder
19
- def update(reminder)
20
- return ApiHelper.command(reminder.to_h, "reminder_update")
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
@@ -1,3 +1,3 @@
1
1
  module Todoist
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-25 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler