ruby-todoist-api 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.kick +18 -0
  4. data/.rspec +3 -0
  5. data/.travis.yml +6 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +45 -0
  9. data/Rakefile +2 -0
  10. data/lib/todoist.rb +27 -0
  11. data/lib/todoist/client.rb +94 -0
  12. data/lib/todoist/command.rb +24 -0
  13. data/lib/todoist/error.rb +0 -0
  14. data/lib/todoist/filter.rb +16 -0
  15. data/lib/todoist/item.rb +54 -0
  16. data/lib/todoist/label.rb +15 -0
  17. data/lib/todoist/note.rb +19 -0
  18. data/lib/todoist/project.rb +32 -0
  19. data/lib/todoist/query.rb +47 -0
  20. data/lib/todoist/queue.rb +39 -0
  21. data/lib/todoist/reminder.rb +16 -0
  22. data/lib/todoist/request.rb +37 -0
  23. data/lib/todoist/resource.rb +73 -0
  24. data/lib/todoist/service/base_service.rb +77 -0
  25. data/lib/todoist/service/filter.rb +9 -0
  26. data/lib/todoist/service/item.rb +24 -0
  27. data/lib/todoist/service/label.rb +9 -0
  28. data/lib/todoist/service/note.rb +9 -0
  29. data/lib/todoist/service/project.rb +9 -0
  30. data/lib/todoist/service/reminder.rb +9 -0
  31. data/lib/todoist/user.rb +10 -0
  32. data/lib/todoist/version.rb +3 -0
  33. data/ruby-todoist-api.gemspec +22 -0
  34. data/spec/lib/todoist/client_spec.rb +58 -0
  35. data/spec/lib/todoist/filter_spec.rb +19 -0
  36. data/spec/lib/todoist/item_spec.rb +39 -0
  37. data/spec/lib/todoist/label_spec.rb +12 -0
  38. data/spec/lib/todoist/note_spec.rb +12 -0
  39. data/spec/lib/todoist/project_spec.rb +12 -0
  40. data/spec/lib/todoist/query_spec.rb +26 -0
  41. data/spec/lib/todoist/reminder_spec.rb +12 -0
  42. data/spec/lib/todoist/service/filter_spec.rb +33 -0
  43. data/spec/lib/todoist/service/item_spec.rb +46 -0
  44. data/spec/lib/todoist/service/label_spec.rb +33 -0
  45. data/spec/lib/todoist/service/note_spec.rb +33 -0
  46. data/spec/lib/todoist/service/project_spec.rb +33 -0
  47. data/spec/lib/todoist/service/reminder_spec.rb +33 -0
  48. data/spec/lib/todoist_spec.rb +7 -0
  49. data/spec/spec_helper.rb +8 -0
  50. data/spec/support/json_response_helper.rb +17 -0
  51. data/spec/support/responses/filter.json +9 -0
  52. data/spec/support/responses/item.json +25 -0
  53. data/spec/support/responses/label.json +8 -0
  54. data/spec/support/responses/note.json +18 -0
  55. data/spec/support/responses/project.json +14 -0
  56. data/spec/support/responses/query.json +88 -0
  57. data/spec/support/responses/reminder.json +9 -0
  58. metadata +153 -0
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": 128501470,
3
+ "user_id": 1855589,
4
+ "name": "Project1",
5
+ "color": 1,
6
+ "indent": 1,
7
+ "item_order": 36,
8
+ "collapsed": 0,
9
+ "shared": false,
10
+ "is_deleted": 0,
11
+ "is_archived": 0,
12
+ "archived_date": null,
13
+ "archived_timestamp": 0
14
+ }
@@ -0,0 +1,88 @@
1
+ [
2
+ {
3
+ "query": "tomorrow",
4
+ "type": "date",
5
+ "data": [
6
+ { "due_date": "Wed 08 Oct 2014 20:59:59 +0000",
7
+ "is_deleted": 0,
8
+ "assigned_by_uid": 1855589,
9
+ "is_archived": 0,
10
+ "labels": [],
11
+ "sync_id": null,
12
+ "day_order": 0,
13
+ "postpone_count": 0,
14
+ "in_history": 0,
15
+ "has_notifications": 0,
16
+ "indent": 1,
17
+ "date_added": "Tue 07 Oct 2014 06:11:06 +0000",
18
+ "user_id": 1855589,
19
+ "children": null,
20
+ "priority": 1,
21
+ "complete_count": 0,
22
+ "checked": 0,
23
+ "id": 35825425,
24
+ "content": "Task2",
25
+ "item_order": 2,
26
+ "seq_no": 2306453653,
27
+ "responsible_uid": null,
28
+ "project_id": 128501470,
29
+ "collapsed": 0,
30
+ "date_string": "8 Oct" },
31
+ { "due_date": "Wed 08 Oct 2014 20:59:59 +0000",
32
+ "is_deleted": 0,
33
+ "assigned_by_uid": 1855589,
34
+ "is_archived": 0,
35
+ "labels": [],
36
+ "sync_id": null,
37
+ "day_order": 1,
38
+ "postpone_count": 0,
39
+ "in_history": 0,
40
+ "has_notifications": 0,
41
+ "indent": 1,
42
+ "date_added": "Tue 07 Oct 2014 06:20:48 +0000",
43
+ "user_id": 1855589,
44
+ "children": null,
45
+ "priority": 1,
46
+ "complete_count": 0,
47
+ "checked": 0,
48
+ "id": 35826737,
49
+ "content": "Task 3",
50
+ "item_order": 3,
51
+ "seq_no": 2306541514,
52
+ "responsible_uid": null,
53
+ "project_id": 128501470,
54
+ "collapsed": 0,
55
+ "date_string": "8 Oct"}
56
+ ]
57
+ },
58
+ {
59
+ "query": "p1",
60
+ "type": "priority",
61
+ "data": [
62
+ { "due_date": null,
63
+ "is_deleted": 0,
64
+ "assigned_by_uid": 1855589,
65
+ "is_archived": 0,
66
+ "labels": [],
67
+ "sync_id": null,
68
+ "postpone_count": 5,
69
+ "in_history": 0,
70
+ "has_notifications": 0,
71
+ "indent": 1,
72
+ "date_added": "Fri 26 Sep 2014 11:54:48 +0000",
73
+ "user_id": 1855589,
74
+ "children": null,
75
+ "priority": 4,
76
+ "complete_count": 1,
77
+ "checked": 0,
78
+ "id": 33548400,
79
+ "content": "Task1",
80
+ "item_order": 1,
81
+ "seq_no": 2306454606,
82
+ "responsible_uid": null,
83
+ "project_id": 128501470,
84
+ "collapsed": 0,
85
+ "date_string": "" }
86
+ ]
87
+ }
88
+ ]
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": 4638878,
3
+ "user_id": 1855589,
4
+ "name": "Priority 1",
5
+ "query": "priority 1",
6
+ "color": 6,
7
+ "item_order": 3,
8
+ "is_deleted": 0
9
+ }
metadata ADDED
@@ -0,0 +1,153 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-todoist-api
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.3'
5
+ platform: ruby
6
+ authors:
7
+ - Maarten van Vliet
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-10-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: webmock
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.21'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.21'
41
+ description: Wrapper for todoist api v6.
42
+ email:
43
+ - maartenvanvliet@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".kick"
50
+ - ".rspec"
51
+ - ".travis.yml"
52
+ - Gemfile
53
+ - LICENSE.txt
54
+ - README.md
55
+ - Rakefile
56
+ - lib/todoist.rb
57
+ - lib/todoist/client.rb
58
+ - lib/todoist/command.rb
59
+ - lib/todoist/error.rb
60
+ - lib/todoist/filter.rb
61
+ - lib/todoist/item.rb
62
+ - lib/todoist/label.rb
63
+ - lib/todoist/note.rb
64
+ - lib/todoist/project.rb
65
+ - lib/todoist/query.rb
66
+ - lib/todoist/queue.rb
67
+ - lib/todoist/reminder.rb
68
+ - lib/todoist/request.rb
69
+ - lib/todoist/resource.rb
70
+ - lib/todoist/service/base_service.rb
71
+ - lib/todoist/service/filter.rb
72
+ - lib/todoist/service/item.rb
73
+ - lib/todoist/service/label.rb
74
+ - lib/todoist/service/note.rb
75
+ - lib/todoist/service/project.rb
76
+ - lib/todoist/service/reminder.rb
77
+ - lib/todoist/user.rb
78
+ - lib/todoist/version.rb
79
+ - ruby-todoist-api.gemspec
80
+ - spec/lib/todoist/client_spec.rb
81
+ - spec/lib/todoist/filter_spec.rb
82
+ - spec/lib/todoist/item_spec.rb
83
+ - spec/lib/todoist/label_spec.rb
84
+ - spec/lib/todoist/note_spec.rb
85
+ - spec/lib/todoist/project_spec.rb
86
+ - spec/lib/todoist/query_spec.rb
87
+ - spec/lib/todoist/reminder_spec.rb
88
+ - spec/lib/todoist/service/filter_spec.rb
89
+ - spec/lib/todoist/service/item_spec.rb
90
+ - spec/lib/todoist/service/label_spec.rb
91
+ - spec/lib/todoist/service/note_spec.rb
92
+ - spec/lib/todoist/service/project_spec.rb
93
+ - spec/lib/todoist/service/reminder_spec.rb
94
+ - spec/lib/todoist_spec.rb
95
+ - spec/spec_helper.rb
96
+ - spec/support/json_response_helper.rb
97
+ - spec/support/responses/filter.json
98
+ - spec/support/responses/item.json
99
+ - spec/support/responses/label.json
100
+ - spec/support/responses/note.json
101
+ - spec/support/responses/project.json
102
+ - spec/support/responses/query.json
103
+ - spec/support/responses/reminder.json
104
+ homepage: https://github.com/maartenvanvliet/ruby-todoist-api
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.2.2
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Wrapper for todoist api.
128
+ test_files:
129
+ - spec/lib/todoist/client_spec.rb
130
+ - spec/lib/todoist/filter_spec.rb
131
+ - spec/lib/todoist/item_spec.rb
132
+ - spec/lib/todoist/label_spec.rb
133
+ - spec/lib/todoist/note_spec.rb
134
+ - spec/lib/todoist/project_spec.rb
135
+ - spec/lib/todoist/query_spec.rb
136
+ - spec/lib/todoist/reminder_spec.rb
137
+ - spec/lib/todoist/service/filter_spec.rb
138
+ - spec/lib/todoist/service/item_spec.rb
139
+ - spec/lib/todoist/service/label_spec.rb
140
+ - spec/lib/todoist/service/note_spec.rb
141
+ - spec/lib/todoist/service/project_spec.rb
142
+ - spec/lib/todoist/service/reminder_spec.rb
143
+ - spec/lib/todoist_spec.rb
144
+ - spec/spec_helper.rb
145
+ - spec/support/json_response_helper.rb
146
+ - spec/support/responses/filter.json
147
+ - spec/support/responses/item.json
148
+ - spec/support/responses/label.json
149
+ - spec/support/responses/note.json
150
+ - spec/support/responses/project.json
151
+ - spec/support/responses/query.json
152
+ - spec/support/responses/reminder.json
153
+ has_rdoc: