wheniwork_ext 0.0.14 → 0.0.15

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
2
  SHA1:
3
- metadata.gz: 13e79663cda76510f16034afc3f65596fbdc8782
4
- data.tar.gz: 7d039420e8ca6cc3e74a7ba1dda8532e6f65a2b4
3
+ metadata.gz: cba114d3f629001ed750ec47b49b4491f0e032e5
4
+ data.tar.gz: 1aacc9c640bd0112522b66a0903972e649b6686c
5
5
  SHA512:
6
- metadata.gz: f946049fb3e1487d47fb2b65b44eb10ff6866066293289a41ec9df05f7e9b9057363ed80fab7a1c6b533d7584c89f7be32fb11b0fb9643a5c75d3b7db148f33e
7
- data.tar.gz: 177109e32d0412180999f86026542656793c30015febf6db0e443ed526393e3e38828238051d639ac13d49ef15bce5a54ceb2fc001afd00716cf0ec55dd3835f
6
+ metadata.gz: a433da8d4f3624c9294c5afe555df8bd397e232f425a090596b13ebad54c9618388164369377e4e8aba14242dcd236da897823fa53923161b758fe873ce42051
7
+ data.tar.gz: e5cb8ca7a22750aac48b859c30eba53172fbc64bec4e154ad67de891a674be510f2ab729bb82433a26b10801b6a021f9121d581567ea2e7b37f5863676461d26
data/.gitignore CHANGED
@@ -14,4 +14,5 @@ rdoc
14
14
  tmp
15
15
  tmtags
16
16
  test.rb
17
- .idea/
17
+ .idea/
18
+
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
@@ -97,3 +97,6 @@ Copyright (c) 2013 Forward Labs. See [LICENSE][] for details.
97
97
  [branch]: http://learn.github.com/p/branching.html
98
98
  [pr]: http://help.github.com/send-pull-requests/
99
99
  [wheniwork]: http://dev.wheniwork.com/
100
+
101
+ wheniwork_ext
102
+
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Wheniwork
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
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.14
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