wheniwork_ext 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/LICENSE +21 -0
- data/README.md +3 -0
- data/lib/wheniwork/client/shifts.rb +4 -0
- data/lib/wheniwork/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cba114d3f629001ed750ec47b49b4491f0e032e5
|
4
|
+
data.tar.gz: 1aacc9c640bd0112522b66a0903972e649b6686c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a433da8d4f3624c9294c5afe555df8bd397e232f425a090596b13ebad54c9618388164369377e4e8aba14242dcd236da897823fa53923161b758fe873ce42051
|
7
|
+
data.tar.gz: e5cb8ca7a22750aac48b859c30eba53172fbc64bec4e154ad67de891a674be510f2ab729bb82433a26b10801b6a021f9121d581567ea2e7b37f5863676461d26
|
data/.gitignore
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Imran Haider Ashraf
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -15,6 +15,10 @@ module WhenIWork
|
|
15
15
|
get 'shifts', params, options.merge(key: 'wheniwork_shifts')
|
16
16
|
end
|
17
17
|
|
18
|
+
def shifts_by_criteria(start_date, end_date, params = {}, options = {})
|
19
|
+
get "shifts?start=#{start_date}&end=#{end_date}", params, options.merge(key: 'wheniwork_shifts')
|
20
|
+
end
|
21
|
+
|
18
22
|
def shift(shift_id, params = {}, options = {})
|
19
23
|
get "shifts/#{shift_id}", params, options
|
20
24
|
end
|
data/lib/wheniwork/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wheniwork_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Imran Haider
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- .rspec
|
135
135
|
- .travis.yml
|
136
136
|
- Gemfile
|
137
|
+
- LICENSE
|
137
138
|
- LICENSE.txt
|
138
139
|
- README.md
|
139
140
|
- Rakefile
|