when-i-work 0.0.1 → 0.2.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: 1243ec4bde1e758d118b68c12bb4f98fa806abda
4
- data.tar.gz: 74bc30fdd8e93b0f0dcf78b8b37d6375f2dec28f
3
+ metadata.gz: f57220311944a37896ad65038251c3a9a699802b
4
+ data.tar.gz: 5ea8f6d27df0918ee1894e5cc4921af680cfcdef
5
5
  SHA512:
6
- metadata.gz: 8fec02a93a0f75baff0a121a07324e78ac0bb680d5da03aaacb3aaa360d923fa66590bddeeea7be51310d71b8c0f3caa3c53ab9d8643f41d4d7da48cf6823721
7
- data.tar.gz: 2ff855a8e783709f46e460e9599ac811d3f6572bc86668d3db59387d281c8e4c5d103fefec1b27264bf7f97929ccf6d24da825007a30f339c578ba06581687da
6
+ metadata.gz: cb5aef9fe17336ed5520bf6dc5f222a27b9f86e56017a8164cb17881ddfa2944f1bc11cb5baa0e4946773c85406a3f8397eac8844f5e98f9ecee174bb5c939c4
7
+ data.tar.gz: 5c39464bed10da1a9b22e25d218aa0f7d5eab7a10d4f1d31053fc701ffc0e18443a26541bb8f6db8bb0d6019c62af92ee00b7c14ec1715b1e8f743851cd769af
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "faraday", "~> 0.9"
4
+ gem "faraday_middleware", "~> 0.9"
5
+
6
+ group :development do
7
+ gem "rspec", "~> 3.2"
8
+ gem "rdoc", "~> 3.12"
9
+ gem "bundler", "~> 1.0"
10
+ gem "jeweler", "~> 2.0.1"
11
+ gem "simplecov", ">= 0"
12
+
13
+ gem "webmock", "~> 1.20"
14
+ gem "vcr", "~> 2.9"
15
+ gem "pry"
16
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,99 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ addressable (2.3.7)
5
+ builder (3.2.2)
6
+ coderay (1.1.0)
7
+ crack (0.4.2)
8
+ safe_yaml (~> 1.0.0)
9
+ descendants_tracker (0.0.4)
10
+ thread_safe (~> 0.3, >= 0.3.1)
11
+ diff-lcs (1.2.5)
12
+ docile (1.1.5)
13
+ faraday (0.9.1)
14
+ multipart-post (>= 1.2, < 3)
15
+ faraday_middleware (0.9.1)
16
+ faraday (>= 0.7.4, < 0.10)
17
+ git (1.2.9.1)
18
+ github_api (0.12.3)
19
+ addressable (~> 2.3)
20
+ descendants_tracker (~> 0.0.4)
21
+ faraday (~> 0.8, < 0.10)
22
+ hashie (>= 3.3)
23
+ multi_json (>= 1.7.5, < 2.0)
24
+ nokogiri (~> 1.6.3)
25
+ oauth2
26
+ hashie (3.4.0)
27
+ highline (1.7.1)
28
+ jeweler (2.0.1)
29
+ builder
30
+ bundler (>= 1.0)
31
+ git (>= 1.2.5)
32
+ github_api
33
+ highline (>= 1.6.15)
34
+ nokogiri (>= 1.5.10)
35
+ rake
36
+ rdoc
37
+ json (1.8.2)
38
+ jwt (1.4.1)
39
+ method_source (0.8.2)
40
+ mini_portile (0.6.2)
41
+ multi_json (1.11.0)
42
+ multi_xml (0.5.5)
43
+ multipart-post (2.0.0)
44
+ nokogiri (1.6.6.2)
45
+ mini_portile (~> 0.6.0)
46
+ oauth2 (1.0.0)
47
+ faraday (>= 0.8, < 0.10)
48
+ jwt (~> 1.0)
49
+ multi_json (~> 1.3)
50
+ multi_xml (~> 0.5)
51
+ rack (~> 1.2)
52
+ pry (0.10.1)
53
+ coderay (~> 1.1.0)
54
+ method_source (~> 0.8.1)
55
+ slop (~> 3.4)
56
+ rack (1.6.0)
57
+ rake (10.4.2)
58
+ rdoc (3.12.2)
59
+ json (~> 1.4)
60
+ rspec (3.2.0)
61
+ rspec-core (~> 3.2.0)
62
+ rspec-expectations (~> 3.2.0)
63
+ rspec-mocks (~> 3.2.0)
64
+ rspec-core (3.2.2)
65
+ rspec-support (~> 3.2.0)
66
+ rspec-expectations (3.2.0)
67
+ diff-lcs (>= 1.2.0, < 2.0)
68
+ rspec-support (~> 3.2.0)
69
+ rspec-mocks (3.2.1)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.2.0)
72
+ rspec-support (3.2.2)
73
+ safe_yaml (1.0.4)
74
+ simplecov (0.9.2)
75
+ docile (~> 1.1.0)
76
+ multi_json (~> 1.0)
77
+ simplecov-html (~> 0.9.0)
78
+ simplecov-html (0.9.0)
79
+ slop (3.6.0)
80
+ thread_safe (0.3.5)
81
+ vcr (2.9.3)
82
+ webmock (1.20.4)
83
+ addressable (>= 2.3.6)
84
+ crack (>= 0.3.2)
85
+
86
+ PLATFORMS
87
+ ruby
88
+
89
+ DEPENDENCIES
90
+ bundler (~> 1.0)
91
+ faraday (~> 0.9)
92
+ faraday_middleware (~> 0.9)
93
+ jeweler (~> 2.0.1)
94
+ pry
95
+ rdoc (~> 3.12)
96
+ rspec (~> 3.2)
97
+ simplecov
98
+ vcr (~> 2.9)
99
+ webmock (~> 1.20)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2015 Ingmaras Keleras
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = when-i-work
2
+
3
+ WhenIWork API wrapper. Work in progress.
4
+
5
+ == Contributing to when-i-work
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2015 Ingmaras Keleras. See LICENSE.txt for
18
+ further details.
19
+
data/Rakefile ADDED
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
17
+ gem.name = "when-i-work"
18
+ gem.homepage = "http://github.com/ingmaras/when-i-work"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{WhenIWork API Wrapper}
21
+ gem.description = %Q{Lightweight Ruby wrapper around WhenIWork's V2 API}
22
+ gem.email = "hello@ingmaras.com"
23
+ gem.authors = ["Ingmaras Keleras"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ desc "Code coverage detail"
35
+ task :simplecov do
36
+ ENV['COVERAGE'] = "true"
37
+ Rake::Task['spec'].execute
38
+ end
39
+
40
+ task :default => :spec
41
+
42
+ require 'rdoc/task'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "when-i-work #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.0
data/lib/when-i-work.rb CHANGED
@@ -1 +1,34 @@
1
- require 'when-i-work/version'
1
+ require 'json'
2
+ require 'faraday'
3
+ require 'faraday_middleware'
4
+
5
+ require_relative 'when-i-work/error'
6
+ require_relative 'when-i-work/resource'
7
+ require_relative 'when-i-work/authentication'
8
+ require_relative 'when-i-work/shift'
9
+
10
+ module WhenIWork
11
+ class << self
12
+ attr_accessor :token
13
+
14
+ def api_url
15
+ "https://api.wheniwork.com/2/"
16
+ end
17
+
18
+ def configure(username, password, api_key)
19
+ @token = Authentication.login(username, password, api_key)
20
+ end
21
+
22
+ def client
23
+ Faraday.new(url: api_url) do |faraday|
24
+ #faraday.response :detailed_logger
25
+ faraday.request :json
26
+ faraday.response :json, :content_type => /\bjson$/
27
+ faraday.adapter Faraday.default_adapter
28
+ faraday.headers = { 'W-Token' => @token } if @token
29
+ end
30
+ end
31
+
32
+ end
33
+
34
+ end
@@ -0,0 +1,21 @@
1
+ module WhenIWork
2
+ class Authentication < Resource
3
+
4
+ class << self
5
+
6
+ def login(username, password, api_key)
7
+ response = client.post 'login' do |request|
8
+ request.body = { username: username, password: password, key: api_key }
9
+ end
10
+
11
+ if response.success? && response.body['token']
12
+ response.body['token']
13
+ else
14
+ raise Error::AuthenticationFailedError
15
+ end
16
+ end
17
+
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ module WhenIWork
2
+ module Error
3
+ class AuthenticationFailedError < StandardError; end
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ module WhenIWork
2
+ class Resource
3
+ def self.client
4
+ WhenIWork.client
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module WhenIWork
2
+ class Shift < Resource
3
+ def self.all(options = {})
4
+ client.get 'shifts', options
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module WhenIWork
2
+ class User < Resource
3
+ def self.all(options = {})
4
+ client.get 'users', options
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe WhenIWork::Shift do
4
+ describe "GET shifts" do
5
+ it "gets shifts" do
6
+ VCR.use_cassette("authenticate", match_requests_on: [:headers]) do
7
+ response = WhenIWork.configure(ENV['WHENIWORK_USERNAME'], ENV['WHENIWORK_PASSWORD'], ENV['WHENIWORK_API_KEY'])
8
+ expect(response).to_not be_nil
9
+ end
10
+
11
+ VCR.use_cassette("shifts", match_requests_on: [:headers]) do
12
+ response = WhenIWork::Shift.all
13
+ expect(response.body).to include('start', 'end', 'shifts')
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,36 @@
1
+ require 'simplecov'
2
+ require 'pry'
3
+ require 'vcr'
4
+
5
+ module SimpleCov::Configuration
6
+ def clean_filters
7
+ @filters = []
8
+ end
9
+ end
10
+
11
+ SimpleCov.configure do
12
+ clean_filters
13
+ load_adapter 'test_frameworks'
14
+ end
15
+
16
+ ENV["COVERAGE"] && SimpleCov.start do
17
+ add_filter "/.rvm/"
18
+ end
19
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
20
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
21
+
22
+ require 'rspec'
23
+ require 'when-i-work'
24
+
25
+ # Requires supporting files with custom matchers and macros, etc,
26
+ # in ./support/ and its subdirectories.
27
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
28
+
29
+ RSpec.configure do |config|
30
+
31
+ end
32
+
33
+ VCR.configure do |config|
34
+ config.cassette_library_dir = 'spec/fixtures/when-i-work_cassettes'
35
+ config.hook_into :webmock
36
+ end
@@ -0,0 +1 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
@@ -0,0 +1,85 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: when-i-work 0.2.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "when-i-work"
9
+ s.version = "0.2.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Ingmaras Keleras"]
14
+ s.date = "2015-04-06"
15
+ s.description = "Lightweight Ruby wrapper around WhenIWork's V2 API"
16
+ s.email = "hello@ingmaras.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".rspec",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "lib/when-i-work.rb",
31
+ "lib/when-i-work/authentication.rb",
32
+ "lib/when-i-work/error.rb",
33
+ "lib/when-i-work/resource.rb",
34
+ "lib/when-i-work/shift.rb",
35
+ "lib/when-i-work/user.rb",
36
+ "spec/resources/shift_spec.rb",
37
+ "spec/spec_helper.rb",
38
+ "spec/when-i-work_spec.rb",
39
+ "when-i-work.gemspec"
40
+ ]
41
+ s.homepage = "http://github.com/ingmaras/when-i-work"
42
+ s.licenses = ["MIT"]
43
+ s.rubygems_version = "2.4.2"
44
+ s.summary = "WhenIWork API Wrapper"
45
+
46
+ if s.respond_to? :specification_version then
47
+ s.specification_version = 4
48
+
49
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
+ s.add_runtime_dependency(%q<faraday>, ["~> 0.9"])
51
+ s.add_runtime_dependency(%q<faraday_middleware>, ["~> 0.9"])
52
+ s.add_development_dependency(%q<rspec>, ["~> 3.2"])
53
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
54
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
55
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
56
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
57
+ s.add_development_dependency(%q<webmock>, ["~> 1.20"])
58
+ s.add_development_dependency(%q<vcr>, ["~> 2.9"])
59
+ s.add_development_dependency(%q<pry>, [">= 0"])
60
+ else
61
+ s.add_dependency(%q<faraday>, ["~> 0.9"])
62
+ s.add_dependency(%q<faraday_middleware>, ["~> 0.9"])
63
+ s.add_dependency(%q<rspec>, ["~> 3.2"])
64
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
66
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
67
+ s.add_dependency(%q<simplecov>, [">= 0"])
68
+ s.add_dependency(%q<webmock>, ["~> 1.20"])
69
+ s.add_dependency(%q<vcr>, ["~> 2.9"])
70
+ s.add_dependency(%q<pry>, [">= 0"])
71
+ end
72
+ else
73
+ s.add_dependency(%q<faraday>, ["~> 0.9"])
74
+ s.add_dependency(%q<faraday_middleware>, ["~> 0.9"])
75
+ s.add_dependency(%q<rspec>, ["~> 3.2"])
76
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
77
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
78
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
79
+ s.add_dependency(%q<simplecov>, [">= 0"])
80
+ s.add_dependency(%q<webmock>, ["~> 1.20"])
81
+ s.add_dependency(%q<vcr>, ["~> 2.9"])
82
+ s.add_dependency(%q<pry>, [">= 0"])
83
+ end
84
+ end
85
+
metadata CHANGED
@@ -1,23 +1,182 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: when-i-work
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ingmaras Keleras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2015-04-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0.9'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rdoc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '3.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jeweler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 2.0.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 2.0.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '1.20'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '1.20'
125
+ - !ruby/object:Gem::Dependency
126
+ name: vcr
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: '2.9'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: '2.9'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
13
153
  description: Lightweight Ruby wrapper around WhenIWork's V2 API
14
154
  email: hello@ingmaras.com
15
155
  executables: []
16
156
  extensions: []
17
- extra_rdoc_files: []
157
+ extra_rdoc_files:
158
+ - LICENSE.txt
159
+ - README.rdoc
18
160
  files:
161
+ - .document
162
+ - .rspec
163
+ - Gemfile
164
+ - Gemfile.lock
165
+ - LICENSE.txt
166
+ - README.rdoc
167
+ - Rakefile
168
+ - VERSION
19
169
  - lib/when-i-work.rb
20
- homepage: https://github.com/ingmaras/when-i-work
170
+ - lib/when-i-work/authentication.rb
171
+ - lib/when-i-work/error.rb
172
+ - lib/when-i-work/resource.rb
173
+ - lib/when-i-work/shift.rb
174
+ - lib/when-i-work/user.rb
175
+ - spec/resources/shift_spec.rb
176
+ - spec/spec_helper.rb
177
+ - spec/when-i-work_spec.rb
178
+ - when-i-work.gemspec
179
+ homepage: http://github.com/ingmaras/when-i-work
21
180
  licenses:
22
181
  - MIT
23
182
  metadata: {}
@@ -40,6 +199,5 @@ rubyforge_project:
40
199
  rubygems_version: 2.4.2
41
200
  signing_key:
42
201
  specification_version: 4
43
- summary: Wrapper around WhenIWork API V2
202
+ summary: WhenIWork API Wrapper
44
203
  test_files: []
45
- has_rdoc: