hawatel_search_jobs 0.2.0 → 0.2.1

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.
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 2.1.0
5
- - 2.2.1
6
- - 2.2.4
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.0
5
+ - 2.2.1
6
+ - 2.2.4
7
7
  before_install: gem install bundler -v 1.10.6
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,13 +1,13 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/CONTRIBUTING.md CHANGED
@@ -1,70 +1,70 @@
1
- # Contributing
2
-
3
- Bug reports and pull requests are welcome on GitHub at https://github.com/Hawatel/hawatel_search_jobs. This project is intended to be a safe, welcoming space for collaboration, and contributors.
4
-
5
- 1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork,
6
- and configure the remotes:
7
-
8
- ```sh
9
- # Clone your fork of the repo into the current directory
10
- git clone https://github.com/<your-username>/hawatel_search_jobs
11
- # Navigate to the newly cloned directory
12
- cd hawatel_search_jobs
13
- # Assign the original repo to a remote called "upstream"
14
- git remote add upstream https://github.com/Hawatel/hawatel_search_jobs
15
- ```
16
-
17
- 2. If you cloned a while ago, get the latest changes from upstream:
18
-
19
- ```bash
20
- git checkout master
21
- git pull upstream master
22
- ```
23
-
24
- 3. Create a new topic branch (off of `master`) to contain your feature, change,
25
- or fix.
26
-
27
- **IMPORTANT**: Making changes in `master` is discouraged. You should always
28
- keep your local `master` in sync with upstream `master` and make your
29
- changes in topic branches.
30
-
31
- ```sh
32
- git checkout -b <topic-branch-name>
33
- ```
34
-
35
- 4. Commit your changes in logical chunks. Keep your commit messages organized,
36
- with a short description in the first line and more detailed information on
37
- the following lines. Feel free to use Git's
38
- [interactive rebase](https://help.github.com/articles/about-git-rebase/)
39
- feature to tidy up your commits before making them public.
40
-
41
- 5. Make sure all the tests are still passing.
42
-
43
- ```sh
44
- rake
45
- ```
46
-
47
- 6. Push your topic branch up to your fork:
48
-
49
- ```sh
50
- git push origin <topic-branch-name>
51
- ```
52
-
53
- 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
54
- with a clear title and description.
55
-
56
- 8. If you haven't updated your pull request for a while, you should consider
57
- rebasing on master and resolving any conflicts.
58
-
59
- **IMPORTANT**: _Never ever_ merge upstream `master` into your branches. You
60
- should always `git rebase` on `master` to bring your changes up to date when
61
- necessary.
62
-
63
- ```sh
64
- git checkout master
65
- git pull upstream master
66
- git checkout <your-topic-branch>
67
- git rebase master
68
- ```
69
-
1
+ # Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Hawatel/hawatel_search_jobs. This project is intended to be a safe, welcoming space for collaboration, and contributors.
4
+
5
+ 1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork,
6
+ and configure the remotes:
7
+
8
+ ```sh
9
+ # Clone your fork of the repo into the current directory
10
+ git clone https://github.com/<your-username>/hawatel_search_jobs
11
+ # Navigate to the newly cloned directory
12
+ cd hawatel_search_jobs
13
+ # Assign the original repo to a remote called "upstream"
14
+ git remote add upstream https://github.com/Hawatel/hawatel_search_jobs
15
+ ```
16
+
17
+ 2. If you cloned a while ago, get the latest changes from upstream:
18
+
19
+ ```bash
20
+ git checkout master
21
+ git pull upstream master
22
+ ```
23
+
24
+ 3. Create a new topic branch (off of `master`) to contain your feature, change,
25
+ or fix.
26
+
27
+ **IMPORTANT**: Making changes in `master` is discouraged. You should always
28
+ keep your local `master` in sync with upstream `master` and make your
29
+ changes in topic branches.
30
+
31
+ ```sh
32
+ git checkout -b <topic-branch-name>
33
+ ```
34
+
35
+ 4. Commit your changes in logical chunks. Keep your commit messages organized,
36
+ with a short description in the first line and more detailed information on
37
+ the following lines. Feel free to use Git's
38
+ [interactive rebase](https://help.github.com/articles/about-git-rebase/)
39
+ feature to tidy up your commits before making them public.
40
+
41
+ 5. Make sure all the tests are still passing.
42
+
43
+ ```sh
44
+ rake
45
+ ```
46
+
47
+ 6. Push your topic branch up to your fork:
48
+
49
+ ```sh
50
+ git push origin <topic-branch-name>
51
+ ```
52
+
53
+ 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
54
+ with a clear title and description.
55
+
56
+ 8. If you haven't updated your pull request for a while, you should consider
57
+ rebasing on master and resolving any conflicts.
58
+
59
+ **IMPORTANT**: _Never ever_ merge upstream `master` into your branches. You
60
+ should always `git rebase` on `master` to bring your changes up to date when
61
+ necessary.
62
+
63
+ ```sh
64
+ git checkout master
65
+ git pull upstream master
66
+ git checkout <your-topic-branch>
67
+ git rebase master
68
+ ```
69
+
70
70
  Thank you for your contributions!
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in hawatel_search_jobs.gemspec
4
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in hawatel_search_jobs.gemspec
4
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Daniel Iwaniuk
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
13
- all 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
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Daniel Iwaniuk
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
13
+ all 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
21
+ THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -1,32 +1,32 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'hawatel_search_jobs/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "hawatel_search_jobs"
8
- spec.version = HawatelSearchJobs::VERSION
9
- spec.authors = ['Przemyslaw Mantaj','Daniel Iwaniuk']
10
- spec.email = ['przemyslaw.mantaj@hawatel.com', 'daniel.iwaniuk@hawatel.com']
11
-
12
- spec.summary = %q{Hawatel_search_jobs, it is gem which provides ease access to API from popular job websites to get current job offers.}
13
- spec.description = %q{Hawatel_search_jobs, it is gem which provides ease access to API from popular job websites
14
- to get current job offers. At this moment, supported backends are indeed.com, careerjet.com,
15
- xing.com, careerbuilder.com and reed.co.uk.}
16
- spec.homepage = "http://github.com/Hawatel/hawatel_search_jobs"
17
- spec.license = "MIT"
18
-
19
- spec.files = `git ls-files`.split($/)
20
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
- spec.require_paths = ["lib"]
23
-
24
- spec.required_ruby_version = '>= 2.0.0'
25
-
26
- spec.add_runtime_dependency 'xing_api'
27
- spec.add_runtime_dependency 'activesupport'
28
-
29
- spec.add_development_dependency "bundler", "~> 1.10"
30
- spec.add_development_dependency "rake", "~> 10.0"
31
- spec.add_development_dependency "rspec"
32
- end
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'hawatel_search_jobs/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "hawatel_search_jobs"
8
+ spec.version = HawatelSearchJobs::VERSION
9
+ spec.authors = ['Przemyslaw Mantaj','Daniel Iwaniuk']
10
+ spec.email = ['przemyslaw.mantaj@hawatel.com', 'daniel.iwaniuk@hawatel.com']
11
+
12
+ spec.summary = %q{Hawatel_search_jobs, it is gem which provides ease access to API from popular job websites to get current job offers.}
13
+ spec.description = %q{Hawatel_search_jobs, it is gem which provides ease access to API from popular job websites
14
+ to get current job offers. At this moment, supported backends are indeed.com, careerjet.com,
15
+ xing.com, careerbuilder.com and reed.co.uk.}
16
+ spec.homepage = "http://github.com/Hawatel/hawatel_search_jobs"
17
+ spec.license = "MIT"
18
+
19
+ spec.files = `git ls-files`.split($/)
20
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.required_ruby_version = '>= 2.0.0'
25
+
26
+ spec.add_runtime_dependency 'xing_api'
27
+ spec.add_runtime_dependency 'activesupport'
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.10"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rspec"
32
+ end
@@ -1,64 +1,64 @@
1
- ##
2
- # = Hawatel Search Jobs
3
- # More details how to use it was described here {HawatelSearchJobs::Client}
4
- module HawatelSearchJobs
5
- require 'hawatel_search_jobs/helpers'
6
- require 'hawatel_search_jobs/api'
7
- require 'hawatel_search_jobs/client'
8
-
9
- class << self
10
- attr_accessor :indeed, :xing, :reed, :careerbuilder, :careerjet
11
-
12
- ##
13
- # How to configure APIs go to example {HawatelSearchJobs::Client#search_jobs}
14
- def configure
15
- @indeed = default_indeed(Hash.new)
16
- @xing = default_xing(Hash.new)
17
- @reed = default_reed(Hash.new)
18
- @careerbuilder = default_careerbuilder(Hash.new)
19
- @careerjet = default_careerjet(Hash.new)
20
- yield self
21
- true
22
- end
23
-
24
- private
25
-
26
- def default_xing(settings)
27
- settings[:activated] = false
28
- settings[:consumer_key] = ''
29
- settings[:consumer_secret] = ''
30
- settings[:oauth_token] = ''
31
- settings[:oauth_token_secret] = ''
32
- return settings
33
- end
34
-
35
- def default_indeed(settings)
36
- settings[:activated] = false
37
- settings[:api] = 'api.indeed.com'
38
- settings[:version] = '2'
39
- settings[:publisher] = ''
40
- return settings
41
- end
42
-
43
- def default_careerjet(settings)
44
- settings[:activated] = false
45
- settings[:api] = 'public.api.careerjet.net'
46
- return settings
47
- end
48
-
49
- def default_reed(settings)
50
- settings[:activated] = false
51
- settings[:api] = 'reed.co.uk/api'
52
- settings[:version] = '1.0'
53
- return settings
54
- end
55
-
56
- def default_careerbuilder(settings)
57
- settings[:activated] = false
58
- settings[:api] = 'api.careerbuilder.com'
59
- settings[:version] = 'v2'
60
- return settings
61
- end
62
- end
63
-
64
- end
1
+ ##
2
+ # = Hawatel Search Jobs
3
+ # More details how to use it was described here {HawatelSearchJobs::Client}
4
+ module HawatelSearchJobs
5
+ require 'hawatel_search_jobs/helpers'
6
+ require 'hawatel_search_jobs/api'
7
+ require 'hawatel_search_jobs/client'
8
+
9
+ class << self
10
+ attr_accessor :indeed, :xing, :reed, :careerbuilder, :careerjet
11
+
12
+ ##
13
+ # How to configure APIs go to example {HawatelSearchJobs::Client#search_jobs}
14
+ def configure
15
+ @indeed = default_indeed(Hash.new)
16
+ @xing = default_xing(Hash.new)
17
+ @reed = default_reed(Hash.new)
18
+ @careerbuilder = default_careerbuilder(Hash.new)
19
+ @careerjet = default_careerjet(Hash.new)
20
+ yield self if block_given?
21
+ true
22
+ end
23
+
24
+ private
25
+
26
+ def default_xing(settings)
27
+ settings[:activated] = false
28
+ settings[:consumer_key] = ''
29
+ settings[:consumer_secret] = ''
30
+ settings[:oauth_token] = ''
31
+ settings[:oauth_token_secret] = ''
32
+ return settings
33
+ end
34
+
35
+ def default_indeed(settings)
36
+ settings[:activated] = false
37
+ settings[:api] = 'api.indeed.com'
38
+ settings[:version] = '2'
39
+ settings[:publisher] = ''
40
+ return settings
41
+ end
42
+
43
+ def default_careerjet(settings)
44
+ settings[:activated] = false
45
+ settings[:api] = 'public.api.careerjet.net'
46
+ return settings
47
+ end
48
+
49
+ def default_reed(settings)
50
+ settings[:activated] = false
51
+ settings[:api] = 'reed.co.uk/api'
52
+ settings[:version] = '1.0'
53
+ return settings
54
+ end
55
+
56
+ def default_careerbuilder(settings)
57
+ settings[:activated] = false
58
+ settings[:api] = 'api.careerbuilder.com'
59
+ settings[:version] = 'v2'
60
+ return settings
61
+ end
62
+ end
63
+
64
+ end
@@ -1,9 +1,9 @@
1
- module HawatelSearchJobs
2
- module Api
3
- require 'hawatel_search_jobs/api/indeed'
4
- require 'hawatel_search_jobs/api/reed'
5
- require 'hawatel_search_jobs/api/xing'
6
- require 'hawatel_search_jobs/api/careerbuilder'
7
- require 'hawatel_search_jobs/api/careerjet'
8
- end
9
- end
1
+ module HawatelSearchJobs
2
+ module Api
3
+ require 'hawatel_search_jobs/api/indeed'
4
+ require 'hawatel_search_jobs/api/reed'
5
+ require 'hawatel_search_jobs/api/xing'
6
+ require 'hawatel_search_jobs/api/careerbuilder'
7
+ require 'hawatel_search_jobs/api/careerjet'
8
+ end
9
+ end