toggl_api 0.0.2
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 +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/LICENSE.txt +22 -0
- data/README.md +48 -0
- data/Rakefile +1 -0
- data/lib/toggl_api.rb +7 -0
- data/lib/toggl_api/api/client.rb +42 -0
- data/lib/toggl_api/api/project.rb +46 -0
- data/lib/toggl_api/api/project_user.rb +38 -0
- data/lib/toggl_api/api/tag.rb +24 -0
- data/lib/toggl_api/api/task.rb +38 -0
- data/lib/toggl_api/api/time_entry.rb +73 -0
- data/lib/toggl_api/api/user.rb +46 -0
- data/lib/toggl_api/api/workspace.rb +36 -0
- data/lib/toggl_api/api/workspace_user.rb +32 -0
- data/lib/toggl_api/base.rb +39 -0
- data/lib/toggl_api/error.rb +8 -0
- data/lib/toggl_api/report.rb +30 -0
- data/lib/toggl_api/request.rb +100 -0
- data/lib/toggl_api/version.rb +3 -0
- data/test/base_test.rb +38 -0
- data/test/fixtures/authentication.json +44 -0
- data/test/fixtures/bulk_update_tasks.json +24 -0
- data/test/fixtures/bulk_update_time_entries.json +29 -0
- data/test/fixtures/client.json +11 -0
- data/test/fixtures/client_projects.json +21 -0
- data/test/fixtures/clients.json +15 -0
- data/test/fixtures/create_client.json +8 -0
- data/test/fixtures/create_project.json +13 -0
- data/test/fixtures/create_project_user.json +0 -0
- data/test/fixtures/create_tag.json +7 -0
- data/test/fixtures/create_task.json +10 -0
- data/test/fixtures/create_time_entry.json +13 -0
- data/test/fixtures/invite_users_to_workspace.json +12 -0
- data/test/fixtures/project.json +13 -0
- data/test/fixtures/project_users.json +18 -0
- data/test/fixtures/relations_of_workspace_and_user.json +22 -0
- data/test/fixtures/report_failure.json +8 -0
- data/test/fixtures/report_success.json +6 -0
- data/test/fixtures/reset_api_token.json +2 -0
- data/test/fixtures/signup.json +19 -0
- data/test/fixtures/start_time_entry.json +13 -0
- data/test/fixtures/stop_time_entry.json +13 -0
- data/test/fixtures/task.json +10 -0
- data/test/fixtures/time_entries.json +24 -0
- data/test/fixtures/time_entry.json +15 -0
- data/test/fixtures/update_client.json +9 -0
- data/test/fixtures/update_project.json +12 -0
- data/test/fixtures/update_project_user.json +0 -0
- data/test/fixtures/update_tag.json +7 -0
- data/test/fixtures/update_task.json +13 -0
- data/test/fixtures/update_time_entry.json +15 -0
- data/test/fixtures/update_user.json +31 -0
- data/test/fixtures/update_workspace_user.json +9 -0
- data/test/fixtures/workspace_clients.json +19 -0
- data/test/fixtures/workspace_projects.json +21 -0
- data/test/fixtures/workspace_tasks.json +29 -0
- data/test/fixtures/workspace_users.json +47 -0
- data/test/fixtures/workspaces.json +12 -0
- data/test/helper.rb +10 -0
- data/test/test_client.rb +51 -0
- data/test/test_project.rb +94 -0
- data/test/test_report.rb +53 -0
- data/test/test_tag.rb +30 -0
- data/test/test_task.rb +51 -0
- data/test/test_time_entry.rb +69 -0
- data/test/test_user.rb +53 -0
- data/test/test_workspace.rb +72 -0
- data/toggl_api.gemspec +30 -0
- metadata +260 -0
data/toggl_api.gemspec
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'toggl_api/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "toggl_api"
|
|
8
|
+
spec.version = Toggl::VERSION
|
|
9
|
+
spec.authors = ["Kang Wen"]
|
|
10
|
+
spec.email = ["ysorigin@gmail.com"]
|
|
11
|
+
spec.description = %q{A Ruby interface to the Toggl API https://github.com/toggl/toggl_api_docs}
|
|
12
|
+
spec.summary = %q{A Ruby interface to the Toggl API}
|
|
13
|
+
spec.homepage = ""
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler"
|
|
22
|
+
spec.add_development_dependency "rake"
|
|
23
|
+
|
|
24
|
+
spec.add_dependency "faraday"
|
|
25
|
+
spec.add_dependency "hashie"
|
|
26
|
+
spec.add_dependency 'multi_json'
|
|
27
|
+
|
|
28
|
+
spec.add_development_dependency "minitest"
|
|
29
|
+
spec.add_development_dependency "rack-test"
|
|
30
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: toggl_api
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Kang Wen
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '>='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: faraday
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: hashie
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: multi_json
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - '>='
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: minitest
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - '>='
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - '>='
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rack-test
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - '>='
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - '>='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
description: A Ruby interface to the Toggl API https://github.com/toggl/toggl_api_docs
|
|
112
|
+
email:
|
|
113
|
+
- ysorigin@gmail.com
|
|
114
|
+
executables: []
|
|
115
|
+
extensions: []
|
|
116
|
+
extra_rdoc_files: []
|
|
117
|
+
files:
|
|
118
|
+
- .gitignore
|
|
119
|
+
- Gemfile
|
|
120
|
+
- LICENSE
|
|
121
|
+
- LICENSE.txt
|
|
122
|
+
- README.md
|
|
123
|
+
- Rakefile
|
|
124
|
+
- lib/toggl_api.rb
|
|
125
|
+
- lib/toggl_api/api/client.rb
|
|
126
|
+
- lib/toggl_api/api/project.rb
|
|
127
|
+
- lib/toggl_api/api/project_user.rb
|
|
128
|
+
- lib/toggl_api/api/tag.rb
|
|
129
|
+
- lib/toggl_api/api/task.rb
|
|
130
|
+
- lib/toggl_api/api/time_entry.rb
|
|
131
|
+
- lib/toggl_api/api/user.rb
|
|
132
|
+
- lib/toggl_api/api/workspace.rb
|
|
133
|
+
- lib/toggl_api/api/workspace_user.rb
|
|
134
|
+
- lib/toggl_api/base.rb
|
|
135
|
+
- lib/toggl_api/error.rb
|
|
136
|
+
- lib/toggl_api/report.rb
|
|
137
|
+
- lib/toggl_api/request.rb
|
|
138
|
+
- lib/toggl_api/version.rb
|
|
139
|
+
- test/base_test.rb
|
|
140
|
+
- test/fixtures/authentication.json
|
|
141
|
+
- test/fixtures/bulk_update_tasks.json
|
|
142
|
+
- test/fixtures/bulk_update_time_entries.json
|
|
143
|
+
- test/fixtures/client.json
|
|
144
|
+
- test/fixtures/client_projects.json
|
|
145
|
+
- test/fixtures/clients.json
|
|
146
|
+
- test/fixtures/create_client.json
|
|
147
|
+
- test/fixtures/create_project.json
|
|
148
|
+
- test/fixtures/create_project_user.json
|
|
149
|
+
- test/fixtures/create_tag.json
|
|
150
|
+
- test/fixtures/create_task.json
|
|
151
|
+
- test/fixtures/create_time_entry.json
|
|
152
|
+
- test/fixtures/invite_users_to_workspace.json
|
|
153
|
+
- test/fixtures/project.json
|
|
154
|
+
- test/fixtures/project_users.json
|
|
155
|
+
- test/fixtures/relations_of_workspace_and_user.json
|
|
156
|
+
- test/fixtures/report_failure.json
|
|
157
|
+
- test/fixtures/report_success.json
|
|
158
|
+
- test/fixtures/reset_api_token.json
|
|
159
|
+
- test/fixtures/signup.json
|
|
160
|
+
- test/fixtures/start_time_entry.json
|
|
161
|
+
- test/fixtures/stop_time_entry.json
|
|
162
|
+
- test/fixtures/task.json
|
|
163
|
+
- test/fixtures/time_entries.json
|
|
164
|
+
- test/fixtures/time_entry.json
|
|
165
|
+
- test/fixtures/update_client.json
|
|
166
|
+
- test/fixtures/update_project.json
|
|
167
|
+
- test/fixtures/update_project_user.json
|
|
168
|
+
- test/fixtures/update_tag.json
|
|
169
|
+
- test/fixtures/update_task.json
|
|
170
|
+
- test/fixtures/update_time_entry.json
|
|
171
|
+
- test/fixtures/update_user.json
|
|
172
|
+
- test/fixtures/update_workspace_user.json
|
|
173
|
+
- test/fixtures/workspace_clients.json
|
|
174
|
+
- test/fixtures/workspace_projects.json
|
|
175
|
+
- test/fixtures/workspace_tasks.json
|
|
176
|
+
- test/fixtures/workspace_users.json
|
|
177
|
+
- test/fixtures/workspaces.json
|
|
178
|
+
- test/helper.rb
|
|
179
|
+
- test/test_client.rb
|
|
180
|
+
- test/test_project.rb
|
|
181
|
+
- test/test_report.rb
|
|
182
|
+
- test/test_tag.rb
|
|
183
|
+
- test/test_task.rb
|
|
184
|
+
- test/test_time_entry.rb
|
|
185
|
+
- test/test_user.rb
|
|
186
|
+
- test/test_workspace.rb
|
|
187
|
+
- toggl_api.gemspec
|
|
188
|
+
homepage: ''
|
|
189
|
+
licenses:
|
|
190
|
+
- MIT
|
|
191
|
+
metadata: {}
|
|
192
|
+
post_install_message:
|
|
193
|
+
rdoc_options: []
|
|
194
|
+
require_paths:
|
|
195
|
+
- lib
|
|
196
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
|
+
requirements:
|
|
198
|
+
- - '>='
|
|
199
|
+
- !ruby/object:Gem::Version
|
|
200
|
+
version: '0'
|
|
201
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
|
+
requirements:
|
|
203
|
+
- - '>='
|
|
204
|
+
- !ruby/object:Gem::Version
|
|
205
|
+
version: '0'
|
|
206
|
+
requirements: []
|
|
207
|
+
rubyforge_project:
|
|
208
|
+
rubygems_version: 2.0.3
|
|
209
|
+
signing_key:
|
|
210
|
+
specification_version: 4
|
|
211
|
+
summary: A Ruby interface to the Toggl API
|
|
212
|
+
test_files:
|
|
213
|
+
- test/base_test.rb
|
|
214
|
+
- test/fixtures/authentication.json
|
|
215
|
+
- test/fixtures/bulk_update_tasks.json
|
|
216
|
+
- test/fixtures/bulk_update_time_entries.json
|
|
217
|
+
- test/fixtures/client.json
|
|
218
|
+
- test/fixtures/client_projects.json
|
|
219
|
+
- test/fixtures/clients.json
|
|
220
|
+
- test/fixtures/create_client.json
|
|
221
|
+
- test/fixtures/create_project.json
|
|
222
|
+
- test/fixtures/create_project_user.json
|
|
223
|
+
- test/fixtures/create_tag.json
|
|
224
|
+
- test/fixtures/create_task.json
|
|
225
|
+
- test/fixtures/create_time_entry.json
|
|
226
|
+
- test/fixtures/invite_users_to_workspace.json
|
|
227
|
+
- test/fixtures/project.json
|
|
228
|
+
- test/fixtures/project_users.json
|
|
229
|
+
- test/fixtures/relations_of_workspace_and_user.json
|
|
230
|
+
- test/fixtures/report_failure.json
|
|
231
|
+
- test/fixtures/report_success.json
|
|
232
|
+
- test/fixtures/reset_api_token.json
|
|
233
|
+
- test/fixtures/signup.json
|
|
234
|
+
- test/fixtures/start_time_entry.json
|
|
235
|
+
- test/fixtures/stop_time_entry.json
|
|
236
|
+
- test/fixtures/task.json
|
|
237
|
+
- test/fixtures/time_entries.json
|
|
238
|
+
- test/fixtures/time_entry.json
|
|
239
|
+
- test/fixtures/update_client.json
|
|
240
|
+
- test/fixtures/update_project.json
|
|
241
|
+
- test/fixtures/update_project_user.json
|
|
242
|
+
- test/fixtures/update_tag.json
|
|
243
|
+
- test/fixtures/update_task.json
|
|
244
|
+
- test/fixtures/update_time_entry.json
|
|
245
|
+
- test/fixtures/update_user.json
|
|
246
|
+
- test/fixtures/update_workspace_user.json
|
|
247
|
+
- test/fixtures/workspace_clients.json
|
|
248
|
+
- test/fixtures/workspace_projects.json
|
|
249
|
+
- test/fixtures/workspace_tasks.json
|
|
250
|
+
- test/fixtures/workspace_users.json
|
|
251
|
+
- test/fixtures/workspaces.json
|
|
252
|
+
- test/helper.rb
|
|
253
|
+
- test/test_client.rb
|
|
254
|
+
- test/test_project.rb
|
|
255
|
+
- test/test_report.rb
|
|
256
|
+
- test/test_tag.rb
|
|
257
|
+
- test/test_task.rb
|
|
258
|
+
- test/test_time_entry.rb
|
|
259
|
+
- test/test_user.rb
|
|
260
|
+
- test/test_workspace.rb
|