timedoctor 0.3.2 → 0.3.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 +5 -5
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.simplecov +0 -0
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bin/console +2 -40
- data/bin/setup +0 -0
- data/lib/timedoctor.rb +0 -0
- data/lib/timedoctor/auth.rb +0 -0
- data/lib/timedoctor/client.rb +0 -0
- data/lib/timedoctor/config.rb +0 -0
- data/lib/timedoctor/core/absent_late.rb +0 -0
- data/lib/timedoctor/core/base.rb +0 -0
- data/lib/timedoctor/core/companies.rb +0 -0
- data/lib/timedoctor/core/payrolls.rb +0 -0
- data/lib/timedoctor/core/poortime.rb +0 -0
- data/lib/timedoctor/core/projects.rb +0 -0
- data/lib/timedoctor/core/tasks.rb +0 -0
- data/lib/timedoctor/core/users.rb +0 -0
- data/lib/timedoctor/core/web_app.rb +0 -0
- data/lib/timedoctor/core/worklogs.rb +0 -0
- data/lib/timedoctor/exceptions.rb +0 -0
- data/lib/timedoctor/token.rb +0 -0
- data/lib/timedoctor/worker.rb +0 -0
- data/lib/version.rb +1 -1
- data/timedoctor.gemspec +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d27cf788e2c4368ca33e00bf57f04c7ad8131ea3
|
4
|
+
data.tar.gz: e82537066687e88a49bb039609574caa19dd576f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5331cb4885dfb17b6753f45dbcf84116781c0439a82867804c16829131c0fe832727bb899a6936e2f2cd7d8027295f6bba63787a9255cfcfaedd0551dffe6090
|
7
|
+
data.tar.gz: 8415fa59247b177b9d417e1136f5bbace5114589930e67d88ce0803f2816e3324a07aa5d054c334c0ea8345ef3d7aa2efc5da7ba62edde53f87d781985120963
|
data/.gitignore
CHANGED
File without changes
|
data/.rspec
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.simplecov
CHANGED
File without changes
|
data/.travis.yml
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/bin/console
CHANGED
@@ -10,43 +10,5 @@ require 'timedoctor'
|
|
10
10
|
# require "pry"
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
#
|
16
|
-
config = {
|
17
|
-
client_id: '1091_4hnloyc6pqqscckokws808o8soocko4c44owwws404g8k4sgos',
|
18
|
-
client_secret: '7wvmks0khckcw40s00cssg4w8s404o8g0g8k00cgo8kow0cow',
|
19
|
-
|
20
|
-
# access_token:
|
21
|
-
# "Y2ZkMGY5OTA1NGI3NmJjZTZlYWJlYjczNGM4N2E2NTYwZjFmNzhjZGVhMGY3ZmU0MTIyZjQ5NTNkOGIzYWI3ZA",
|
22
|
-
access_token:
|
23
|
-
"Y2ZkMGY5OTA1NGI3NmJjZTZlYWJlYjczNGM4N2E2NTYwZjFmNzhjZGVhMGY3ZmU0MTIyZjQ5NTNkOGIzYWI3ZA",
|
24
|
-
refresh_token:
|
25
|
-
"ZmM3OTg1NjZmYjgwYmZlYzM2NzAwMjFlZmFhZmU4MDk1Y2ZhZWNlYjMyYTg0NzlmMzRmNzBiOWM5NTUxNjY4MA",
|
26
|
-
user_id: 1188995,
|
27
|
-
company_id: 587525,
|
28
|
-
|
29
|
-
# on_token_refresh: ->(data, conf) do
|
30
|
-
# p 'SUCCESS'
|
31
|
-
#
|
32
|
-
# p data
|
33
|
-
#
|
34
|
-
# conf[:access_token] = data[:access_token]
|
35
|
-
# conf[:refresh_token] = data[:refresh_token]
|
36
|
-
# end,
|
37
|
-
#
|
38
|
-
# on_token_refresh_error: ->(data, conf) { p "FAILURE" }
|
39
|
-
# on_token_authorize_error: ->(data, conf) { p "FAILURE" }
|
40
|
-
}
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
# TimeDoctor::Auth.new(config).fetch_token
|
45
|
-
p TimeDoctor::Client.new(config).companies.list
|
46
|
-
#
|
47
|
-
# # p client.companies.list
|
48
|
-
#
|
49
|
-
# # worker = client.instance_variable_get(:@worker)
|
50
|
-
# # p config = client.instance_variable_get(:@config).inspect
|
51
|
-
# #
|
52
|
-
# TimeDoctor::Token.refresh(config)
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
CHANGED
File without changes
|
data/lib/timedoctor.rb
CHANGED
File without changes
|
data/lib/timedoctor/auth.rb
CHANGED
File without changes
|
data/lib/timedoctor/client.rb
CHANGED
File without changes
|
data/lib/timedoctor/config.rb
CHANGED
File without changes
|
File without changes
|
data/lib/timedoctor/core/base.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/timedoctor/token.rb
CHANGED
File without changes
|
data/lib/timedoctor/worker.rb
CHANGED
File without changes
|
data/lib/version.rb
CHANGED
data/timedoctor.gemspec
CHANGED
@@ -5,11 +5,11 @@ require 'version'
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'timedoctor'
|
7
7
|
spec.version = TimeDoctor::VERSION
|
8
|
-
spec.authors = ['
|
9
|
-
spec.email = ['
|
8
|
+
spec.authors = ['Roonyx']
|
9
|
+
spec.email = ['go@roonyx.tech']
|
10
10
|
|
11
11
|
spec.summary = 'Client for TimeDoctor API'
|
12
|
-
spec.homepage = 'https://github.com/
|
12
|
+
spec.homepage = 'https://github.com/roonyx/timedoctor'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timedoctor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Roonyx
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -124,7 +124,7 @@ dependencies:
|
|
124
124
|
version: '3.3'
|
125
125
|
description:
|
126
126
|
email:
|
127
|
-
-
|
127
|
+
- go@roonyx.tech
|
128
128
|
executables: []
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
@@ -160,7 +160,7 @@ files:
|
|
160
160
|
- lib/timedoctor/worker.rb
|
161
161
|
- lib/version.rb
|
162
162
|
- timedoctor.gemspec
|
163
|
-
homepage: https://github.com/
|
163
|
+
homepage: https://github.com/roonyx/timedoctor
|
164
164
|
licenses:
|
165
165
|
- MIT
|
166
166
|
metadata: {}
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.6.14
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Client for TimeDoctor API
|