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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f3f4e2133624d89e4c3237beac4513b86771e4d5
4
- data.tar.gz: 9a4e0e7e67a0272a2df6aa58125307eab9a65a4b
2
+ SHA256:
3
+ metadata.gz: bec8384e728d4a44267064efdd142827ed49adc41bd26059a58e83fe52e92f6c
4
+ data.tar.gz: 6aff97815c0f75c3d72c39263f1ee8ebbbd8fd2ad45bcaab99c13d171a90fd21
5
5
  SHA512:
6
- metadata.gz: 2e3185a4f3332c99900a36a3be53f021e704f05ef442fd47789ece707cecb8dc8f47cb35f9dfc9b33234a07735d83188d62457202a6acc247daeaaee3aa9d676
7
- data.tar.gz: f52a97146bcdf95b162f5540edebc8013624390d475455ad36b3919d61c92952a2b3aeb36d504e42a82103a5895d37bcf14ce307527a32c5e3702ac51f9e278a
6
+ metadata.gz: 76a29f645476cd8f2c3599fafee7d4dd3a43757c556f6e59a6175fabb61de07649d52ad4ed526f84bb0f3b5373288417c44e209443550cc7a4cce54bb13c5cd8
7
+ data.tar.gz: 4fa639cdf40c773b54869ad9ec1b10c34a2857dcc978d0ae0fc6c5ceac5477e7cd795528d9534db85b7a5570a5fba4fd1865ac20c0c53a17d335a13b6e21ee46
@@ -24,8 +24,9 @@ require 'net/http'
24
24
  class ShiftPlanning
25
25
  class Config
26
26
  # Setup class variables
27
- @@uri = URI.parse("http://www.shiftplanning.com/api/")
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.3
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: 2014-04-07 00:00:00.000000000 Z
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: " Copyright (C) 2013 Kyle Richardson\n\n This program is free
28
- software; you can redistribute it and/or\n modify it under the terms of the GNU
29
- General Public License\n as published by the Free Software Foundation; either
30
- version 2\n of the License, or (at your option) any later version.\n \n This
31
- program is distributed in the hope that it will be useful,\n but WITHOUT ANY
32
- WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR
33
- A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n
34
- \ \n You should have received a copy of the GNU General Public License\n along
35
- with this program; if not, write to the Free Software\n Foundation, Inc., 51
36
- Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n"
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.2.2
75
+ rubygems_version: 2.7.6
70
76
  signing_key:
71
77
  specification_version: 4
72
- summary: Aids in interacting with ShiftPlanning API. Their site has SDKs for Javascript,
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: []