shiftplanning 0.0.3 → 0.0.4
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/lib/shiftplanning/config.rb +2 -1
- data/lib/shiftplanning/request.rb +2 -1
- metadata +20 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bec8384e728d4a44267064efdd142827ed49adc41bd26059a58e83fe52e92f6c
|
4
|
+
data.tar.gz: 6aff97815c0f75c3d72c39263f1ee8ebbbd8fd2ad45bcaab99c13d171a90fd21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76a29f645476cd8f2c3599fafee7d4dd3a43757c556f6e59a6175fabb61de07649d52ad4ed526f84bb0f3b5373288417c44e209443550cc7a4cce54bb13c5cd8
|
7
|
+
data.tar.gz: 4fa639cdf40c773b54869ad9ec1b10c34a2857dcc978d0ae0fc6c5ceac5477e7cd795528d9534db85b7a5570a5fba4fd1865ac20c0c53a17d335a13b6e21ee46
|
data/lib/shiftplanning/config.rb
CHANGED
@@ -24,8 +24,9 @@ require 'net/http'
|
|
24
24
|
class ShiftPlanning
|
25
25
|
class Config
|
26
26
|
# Setup class variables
|
27
|
-
@@uri = URI.parse("
|
27
|
+
@@uri = URI.parse("https://www.humanity.com/api/")
|
28
28
|
@@http = Net::HTTP.new(@@uri.host, @@uri.port)
|
29
|
+
@@http.use_ssl = true
|
29
30
|
@@api_path = @@uri.path
|
30
31
|
@@return_types = %w(json xml html)
|
31
32
|
|
@@ -129,6 +129,7 @@ class ShiftPlanning
|
|
129
129
|
@staff = _staff.new(
|
130
130
|
SPModule.new('staff.login', 'GET', {}, %w(GET), {:GET => %w(username password)}),
|
131
131
|
SPModule.new('staff.logout', 'GET', {}, %w(GET), {:GET => %w(token)}),
|
132
|
+
SPModule.new('staff.me', 'GET', {}, %w(GET), {:GET => %w(token)}),
|
132
133
|
SPModule.new('staff.employees', 'GET', {}, %w(GET CREATE), {:GET => %w(token), :CREATE => %w(token)}),
|
133
134
|
SPModule.new('staff.employee', 'GET', {}, %w(GET CREATE UPDATE DELETE), {
|
134
135
|
:GET => %w(token), :CREATE => %w(token), :UPDATE => %w(token id), :DELETE => %w(token id)
|
@@ -205,7 +206,7 @@ class ShiftPlanning
|
|
205
206
|
def _messaging; Struct.new(:messages, :message, :shift, :wall, :notice, :notices) end
|
206
207
|
def _reports; Struct.new(:schedule, :budget, :timesheets, :employee, :custom, :daily_peak_hours_new, :daily_peak_hours) end
|
207
208
|
def _payroll; Struct.new(:report, :ratecards, :ratecard) end
|
208
|
-
def _staff; Struct.new(:login, :logout, :employees, :employee, :skills, :skill, :customfields, :customfield, :ping) end
|
209
|
+
def _staff; Struct.new(:login, :logout, :me, :employees, :employee, :skills, :skill, :customfields, :customfield, :ping) end
|
209
210
|
def _availability; Struct.new(:available, :weekly, :future, :approve) end
|
210
211
|
def _location; Struct.new(:locations, :location) end
|
211
212
|
def _group; Struct.new(:accounts, :account, :accountsplit, :reports) end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shiftplanning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FractalPenguin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -24,16 +24,22 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description:
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
27
|
+
description: |2
|
28
|
+
Copyright (C) 2013 Kyle Richardson
|
29
|
+
|
30
|
+
This program is free software; you can redistribute it and/or
|
31
|
+
modify it under the terms of the GNU General Public License
|
32
|
+
as published by the Free Software Foundation; either version 2
|
33
|
+
of the License, or (at your option) any later version.
|
34
|
+
|
35
|
+
This program is distributed in the hope that it will be useful,
|
36
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
37
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
38
|
+
GNU General Public License for more details.
|
39
|
+
|
40
|
+
You should have received a copy of the GNU General Public License
|
41
|
+
along with this program; if not, write to the Free Software
|
42
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
37
43
|
email: kylerchrdsn@gmail.com
|
38
44
|
executables: []
|
39
45
|
extensions: []
|
@@ -66,9 +72,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
72
|
version: '0'
|
67
73
|
requirements: []
|
68
74
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
75
|
+
rubygems_version: 2.7.6
|
70
76
|
signing_key:
|
71
77
|
specification_version: 4
|
72
|
-
summary: Aids in interacting with ShiftPlanning API.
|
78
|
+
summary: Aids in interacting with ShiftPlanning API. Their site has SDKs for Javascript,
|
73
79
|
PHP, C#, ASP.NET, and Python, but not Ruby @.@
|
74
80
|
test_files: []
|