petromindo 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8248ed206cb562c8db9e4b53b0d4cd165a7fca65
4
+ data.tar.gz: d85522d6ebd093829f35b7dcbb3d792cbdb6248c
5
+ SHA512:
6
+ metadata.gz: 07fed649033db2bad8131e0e4f21c845225dfed8608d643bed76036d138b4afc4fa5e8feb6414d55422a45e3c4af03fbceb0736f411c8d9fd972f5d5eb9ce4f1
7
+ data.tar.gz: 62b782bf9a1693aabed9f1d5f03db3ee115ff373be2aff35568562282c5111cc20941c7ca35b6fac3383ae38921d0c018508dcbaa514c5ec60703cbad8ebfe48
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2015 Adrian Setyadi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ # Petromindo
2
+ ## Description
3
+ A ruby library to access [Petromindo](https://www.petromindo.com), especially the job gallery.
4
+
5
+ ## Installation
6
+ Install the X virtual framebuffer that we will use to run the Watir::Browser
7
+
8
+ sudo apt-get install xvfb
9
+
10
+ and then:
11
+
12
+ gem install petromindo
13
+
14
+ ## Usage
15
+ Put this code wherever you're going to use it:
16
+
17
+ require 'petromindo'
18
+
19
+ In `Gemfile`:
20
+
21
+ gem 'petromindo'
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # @author Adrian Setyadi
3
+ # Copyright 2016
4
+ #
5
+ require 'pstore'
6
+ require 'watir'
7
+ require 'headless'
8
+ require_relative 'petromindo/jobs'
9
+ require_relative 'petromindo/job'
10
+ require_relative 'petromindo/company'
11
+
12
+ module Petromindo
13
+ # A bunch of Petromindo constants.
14
+ BASE_URL = "https://www.petromindo.com"
15
+ JOBS_URL = File.join(BASE_URL, "jobgallery")
16
+ DATA_DIR = ENV['HOME'] + "/.petromindo"
17
+ end
@@ -0,0 +1,3 @@
1
+ module Petromindo
2
+ VERSION = "0.0.0"
3
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'petromindo/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "petromindo"
8
+ spec.version = Petromindo::VERSION
9
+ spec.date = Time.now.strftime("%Y-%m-%d")
10
+
11
+ spec.authors = ["Adrian Setyadi"]
12
+ spec.email = ["a.styd@yahoo.com"]
13
+ spec.summary = %q{Unofficial Petromindo access wrapper gem.}
14
+ spec.description = %q{A gem to access Petromindo web, especially the job gallery, using watir gem and X virtual framebuffer wrapped by headless gem.}
15
+ spec.homepage = "https://github.com/styd/kaspay"
16
+ spec.license = "MIT"
17
+
18
+ spec.files = `git ls-files -z`.split("\x0")
19
+ # spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ # spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ["lib"]
22
+ spec.add_runtime_dependency 'watir', '~> 5.0', '>= 5.0.0'
23
+ spec.add_runtime_dependency 'headless', '~> 2.2', '>= 2.2.0'
24
+ end
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: petromindo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Adrian Setyadi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: watir
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '5.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: headless
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.2'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.2.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '2.2'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.2.0
53
+ description: A gem to access Petromindo web, especially the job gallery, using watir
54
+ gem and X virtual framebuffer wrapped by headless gem.
55
+ email:
56
+ - a.styd@yahoo.com
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - LICENSE.txt
62
+ - README.md
63
+ - lib/petromindo.rb
64
+ - lib/petromindo/version.rb
65
+ - petromindo.gemspec
66
+ homepage: https://github.com/styd/kaspay
67
+ licenses:
68
+ - MIT
69
+ metadata: {}
70
+ post_install_message:
71
+ rdoc_options: []
72
+ require_paths:
73
+ - lib
74
+ required_ruby_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubyforge_project:
86
+ rubygems_version: 2.4.8
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Unofficial Petromindo access wrapper gem.
90
+ test_files: []