wotc 0.1.10 → 0.1.12
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/lib/wotc/client/employees.rb +2 -2
- data/lib/wotc/request.rb +2 -2
- data/lib/wotc/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40b2f5d3b40a4d09a5ac321b7ca1697ba970690d669e627e99ac3855807bad9f
|
|
4
|
+
data.tar.gz: 6cd03c59035d38e16ef6d27d2ceacb24ae0b0eef0eb4474c26942f33f6e0ebe3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 211cabbf1e94504240bf04ded656d1cc3c910d0566fa80a9d24931c4e6dd1926d578d860366b85856b80aaa2182cadb1e981d708447c4dbcda4e5894de924f29
|
|
7
|
+
data.tar.gz: 92733dc6ef01aa4cd77286df40478c09e810bd038f6a2837c2dd1e21722c0e0726362f2c6f88cfb2e881cd705aa22a629d5757e728c5a32605f5f0b44b3710af
|
|
@@ -24,7 +24,7 @@ module WOTC
|
|
|
24
24
|
|
|
25
25
|
# Get employee's WOTC status
|
|
26
26
|
def employee_wotc_status(employee_id)
|
|
27
|
-
get("employees
|
|
27
|
+
get("employees/#{employee_id}/wotc/status")
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# Get wotc info for specific employee
|
|
@@ -54,4 +54,4 @@ module WOTC
|
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
|
-
end
|
|
57
|
+
end
|
data/lib/wotc/request.rb
CHANGED
|
@@ -30,8 +30,8 @@ module WOTC
|
|
|
30
30
|
# return just one page when auto_paginate is set false.
|
|
31
31
|
def paginate(path, options={})
|
|
32
32
|
per_page = options[:per_page] || options["per_page"] || @per_page
|
|
33
|
-
page = options[:page] || options["page"]
|
|
34
|
-
response = get(path+"?page
|
|
33
|
+
page = options[:page] || options["page"] || 1
|
|
34
|
+
response = get(path+"?page=#{page}&per_page=#{per_page}")
|
|
35
35
|
|
|
36
36
|
# return one page results without pagination.
|
|
37
37
|
return response if !@auto_paginate
|
data/lib/wotc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wotc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- workstream.us
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -168,7 +168,7 @@ metadata:
|
|
|
168
168
|
homepage_uri: https://github.com/helloworld1812/wotc-ruby-gem
|
|
169
169
|
source_code_uri: https://github.com/helloworld1812/wotc-ruby-gem
|
|
170
170
|
changelog_uri: https://github.com/helloworld1812/wotc-ruby-gem/CHANGELOG.md
|
|
171
|
-
post_install_message:
|
|
171
|
+
post_install_message:
|
|
172
172
|
rdoc_options: []
|
|
173
173
|
require_paths:
|
|
174
174
|
- lib
|
|
@@ -183,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
183
183
|
- !ruby/object:Gem::Version
|
|
184
184
|
version: '0'
|
|
185
185
|
requirements: []
|
|
186
|
-
rubygems_version: 3.
|
|
187
|
-
signing_key:
|
|
186
|
+
rubygems_version: 3.2.33
|
|
187
|
+
signing_key:
|
|
188
188
|
specification_version: 4
|
|
189
189
|
summary: Ruby wrapper for wotc.com APIs
|
|
190
190
|
test_files: []
|