payroll_hero-api 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff3e33b56f61307b1c5b85e5c4aa23b82264947d
4
- data.tar.gz: 95204abd47ed1dcade540684df2ee6d9234296f3
3
+ metadata.gz: 8e32c2c0d9a279c2920d28bdc7381bd519509403
4
+ data.tar.gz: 645950da3a28519f975ac35af21f3da6dbe51b24
5
5
  SHA512:
6
- metadata.gz: 82609744800bb3fa8a0317b50201edcfb12ee07988e7aab3c1bf924a0dd046926fbba716ac389b87285484dc0786581b4bfc14632fde8ffba61408096592614a
7
- data.tar.gz: 20663067152c8ead1d1de43d05c927c736d595d2ad1cd68c658b8aef56e43fa235c8910aec02b6a106d996f716d79451680b620ff7f84a40d4539ad83a1626d6
6
+ metadata.gz: 12bd3ff2751a759d00056de9be3f0fb52c689ce96f34746f29cc73423406116c10394d9d98c21a5d2a41184fb57fab0c8a9a727fba22bf24c22ae311b20f8d9e
7
+ data.tar.gz: 89b234c3f0d9913b63372998f23f031f3d7b1ffbf61778b72ef7f9bf8f22ffc4e1958d77142daab5bf21b94aaea0d3a9d4e5e5f1ba62a5389a87a5b3bf89ec45
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.0.1](https://github.com/payrollhero/payroll_hero-api/tree/v1.0.1) (2016-05-16)
4
+ [Full Changelog](https://github.com/payrollhero/payroll_hero-api/compare/v1.0.0...v1.0.1)
5
+
6
+ - Add attendance days [\#7](https://github.com/payrollhero/payroll_hero-api/pull/7) ([vincentpaca](https://github.com/vincentpaca))
7
+
3
8
  ## [v1.0.0](https://github.com/payrollhero/payroll_hero-api/tree/v1.0.0) (2016-04-18)
4
9
  - Add api/v4 employees list interface [\#6](https://github.com/payrollhero/payroll_hero-api/pull/6) ([nicosuria](https://github.com/nicosuria))
5
10
  - Add delete leave call. [\#5](https://github.com/payrollhero/payroll_hero-api/pull/5) ([mykola-kyryk](https://github.com/mykola-kyryk))
data/DEPLOYING.md CHANGED
@@ -16,7 +16,7 @@ somewhere in your shell init. (ie .zshrc or simillar)
16
16
 
17
17
  ## Deploying
18
18
 
19
- 1. Update `lib/ph_utility/version.rb`
19
+ 1. Update `lib/payroll_hero/api/version.rb`
20
20
  2. Commit the changed files with the version number eg: `1.8.0`
21
21
  3. Push this to git
22
22
  4. Run `rake release`
@@ -3,16 +3,17 @@ module PayrollHero
3
3
 
4
4
  module Errors
5
5
 
6
- class GenericError < Exception
6
+ class GenericError < StandardError
7
7
  end
8
8
 
9
9
  class ServerReturnedError < GenericError
10
10
  def initialize(code, message)
11
11
  @code = code
12
+ @error_details = message
12
13
  super("#{code}: #{message}")
13
14
  end
14
15
 
15
- attr_reader :code
16
+ attr_reader :code, :error_details
16
17
  end
17
18
 
18
19
  class BadRequest < ServerReturnedError
@@ -0,0 +1,11 @@
1
+ module PayrollHero
2
+ module Api
3
+ module V4
4
+ class Shifts < BaseGroup
5
+ def list
6
+ client.get('/api/v4/shifts')
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module PayrollHero
2
2
  module Api
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -22,6 +22,7 @@ module PayrollHero
22
22
  employees: V4::Employees.new(token),
23
23
  leaves: V4::Leaves.new(token),
24
24
  permissions: V4::Permissions.new(token),
25
+ shifts: V4::Shifts.new(token),
25
26
  }
26
27
  }
27
28
  Hashie::Mash.new(sections)
@@ -45,3 +46,4 @@ require_relative 'api/v3/attendance_days'
45
46
  require_relative 'api/v4/employees'
46
47
  require_relative 'api/v4/leaves'
47
48
  require_relative 'api/v4/permissions'
49
+ require_relative 'api/v4/shifts'
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'minitest-reporters'
31
31
  spec.add_development_dependency 'vcr'
32
32
  spec.add_development_dependency 'webmock'
33
+ spec.add_development_dependency 'rack', '< 2.0.0' # requires ruby >= 2.2.2 for 2.0
33
34
  # Version locked as 1.10.4 has known installation issues
34
35
  spec.add_development_dependency 'github_changelog_generator', '1.10.1'
35
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payroll_hero-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Banasik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rack
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: 2.0.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "<"
165
+ - !ruby/object:Gem::Version
166
+ version: 2.0.0
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: github_changelog_generator
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -191,6 +205,7 @@ files:
191
205
  - lib/payroll_hero/api/v4/employees.rb
192
206
  - lib/payroll_hero/api/v4/leaves.rb
193
207
  - lib/payroll_hero/api/v4/permissions.rb
208
+ - lib/payroll_hero/api/v4/shifts.rb
194
209
  - lib/payroll_hero/api/version.rb
195
210
  - payroll_hero-api.gemspec
196
211
  homepage: http://github.com/payrollhero/