basmoura 0.3 → 0.4
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 +4 -4
- data/bin/basmoura +23 -12
- data/lib/basmoura/api.rb +85 -0
- data/lib/basmoura/console.rb +39 -0
- data/lib/basmoura/pdf.rb +64 -0
- data/lib/basmoura/version.rb +1 -1
- data/lib/basmoura.rb +3 -3
- metadata +7 -10
- data/.gitignore +0 -19
- data/Gemfile +0 -7
- data/Rakefile +0 -1
- data/basmoura.gemspec +0 -29
- data/lib/basmoura/basmoura_api.rb +0 -122
- data/lib/basmoura/basmoura_pdf.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9d023aedeecc2421ac749f614430d717bb77fd1
|
4
|
+
data.tar.gz: 189b49f2fdc37b32963cd9f8f9db4833995e7b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0356b1b76959ee79b70a464c5abe9c0eba587bab2b23850e091e9c24ce64586d67fa123ca5cc7ce9b689d30289686cac3b3ac9d8bc7165b442fa83cc4d131c0e
|
7
|
+
data.tar.gz: abc33154ebf77de42e9e3be06ce3bee7a8c295c6cf235d4547b6129d840ab56f1406c84c434e69b80138a16f9e2d8dd802fa2aa9e3bb7df26c921e194c4f62b7
|
data/bin/basmoura
CHANGED
@@ -1,19 +1,30 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
2
|
+
# coding: utf-8
|
3
|
+
|
3
4
|
require 'basmoura'
|
4
5
|
|
5
|
-
|
6
|
+
readme = <<-HELP
|
7
|
+
Usage: basmoura <command>
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
Commands:
|
10
|
+
console Shows my CV at the console
|
11
|
+
eg: basmoura console
|
12
|
+
|
13
|
+
pdf Generates a PDF and opens automatically
|
14
|
+
eg: basmoura pdf
|
15
|
+
HELP
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
+
unless ARGV.empty?
|
18
|
+
case ARGV.first
|
19
|
+
when "console"
|
20
|
+
Basmoura::Console.show
|
21
|
+
when "pdf"
|
22
|
+
Basmoura::Pdf.generate
|
23
|
+
else
|
24
|
+
puts readme
|
25
|
+
end
|
17
26
|
else
|
18
|
-
|
27
|
+
puts readme
|
19
28
|
end
|
29
|
+
|
30
|
+
|
data/lib/basmoura/api.rb
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
require "Date"
|
4
|
+
|
5
|
+
module Basmoura
|
6
|
+
class Api
|
7
|
+
def basic_info
|
8
|
+
"Brazilian, Single, #{age_calculate} year old"
|
9
|
+
end
|
10
|
+
|
11
|
+
def contact_info
|
12
|
+
contact = { :phone => "+55 (79) 8835-3428",
|
13
|
+
:github => "http://github.com/basmoura",
|
14
|
+
:email => "basmoura@gmail.com" }
|
15
|
+
end
|
16
|
+
|
17
|
+
def skill_sumary
|
18
|
+
%w(Ruby\ /\ Ruby\ on\ Rails C#\ /\ ASP.NET HTML\ /\ CSS\ /\ JavaScript GIT Scrum)
|
19
|
+
end
|
20
|
+
|
21
|
+
def professional_exp
|
22
|
+
jobs = { :pop => { :role => "Ruby on Rails Developer",
|
23
|
+
:tasks => ["- Full application development using Ruby on Rails",
|
24
|
+
"- Full webservice development and integration with push notifications server for Android and iOS systems"],
|
25
|
+
:period => "Nov 2013 - Today",
|
26
|
+
:company => "Popcode Mobile Solutions" },
|
27
|
+
|
28
|
+
:swx => { :role => "Ruby on Rails Developer Trainee",
|
29
|
+
:tasks => ["- Creation and improvement of features", "- Code refactoring"],
|
30
|
+
:period => "Oct 2013 - Nov 2013",
|
31
|
+
:company => "SWX Softwares" },
|
32
|
+
|
33
|
+
:grow => { :role => "Web Developer Trainee",
|
34
|
+
:tasks => ["- Websites development using HTML, CSS and JavaScript"],
|
35
|
+
:period => "Apr 2013 - Oct 2013",
|
36
|
+
:company => "GrowBit Business Technology" },
|
37
|
+
|
38
|
+
:code => { :role => "C# and ASP.NET Trainee",
|
39
|
+
:tasks => ["- Development of websites and systems using ASP.NET;",
|
40
|
+
"- Development of desktop applications and plugins using C#"],
|
41
|
+
:period => "Jun 2011 - Mar 2013",
|
42
|
+
:company => "Code2" } }
|
43
|
+
end
|
44
|
+
|
45
|
+
def projects
|
46
|
+
projects = { "Ruby on Rails" => { :css => { :project => "Css3-progress-bar-rails",
|
47
|
+
:info => "https://github.com/yrgoldteeth/css3-progress-bar-rails/commits?author=basmoura" },
|
48
|
+
|
49
|
+
:publify => { :project => "Publify",
|
50
|
+
:info => "https://github.com/publify/publify/commits?author=basmoura" },
|
51
|
+
|
52
|
+
:solutio => { :project => "Solutio",
|
53
|
+
:info => "https://github.com/coolmeia/solutio/commits?author=basmoura" },
|
54
|
+
|
55
|
+
:postmon_ruby => { :project => "PostmonRuby",
|
56
|
+
:info => "https://github.com/PostmonAPI/postmon-ruby/commits?author=basmoura" },
|
57
|
+
|
58
|
+
:postmon_cli => { :project => "PostmonCLI",
|
59
|
+
:info => "https://github.com/PostmonAPI/postmon-cli/commits?author=basmoura" },
|
60
|
+
|
61
|
+
:tdd => { :project => "TDD-Ruby",
|
62
|
+
:info => "https://github.com/basmoura/TDD-Ruby" },
|
63
|
+
|
64
|
+
:basmoura => { :project => "Basmoura CV Generator",
|
65
|
+
:info => "https://github.com/basmoura/TDD-Ruby" } } }
|
66
|
+
end
|
67
|
+
|
68
|
+
def languages
|
69
|
+
languages = { :inglês => "Fluent",
|
70
|
+
:espanhol => "Basic",
|
71
|
+
:português => "Fluent" }
|
72
|
+
end
|
73
|
+
|
74
|
+
def age_calculate
|
75
|
+
today = Date.today
|
76
|
+
birthdate = Date.parse("27/09/1988")
|
77
|
+
age = today.year - birthdate.year
|
78
|
+
age = age - 1 if birthdate.month > today.month
|
79
|
+
end
|
80
|
+
|
81
|
+
def clear
|
82
|
+
system('clear')
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
require "colorize"
|
4
|
+
require "basmoura/api"
|
5
|
+
|
6
|
+
module Basmoura
|
7
|
+
class Console
|
8
|
+
def self.show
|
9
|
+
api = Api.new
|
10
|
+
api.clear
|
11
|
+
puts "Breno Augusto Santana Moura".yellow
|
12
|
+
puts "=" * 40
|
13
|
+
|
14
|
+
api.contact_info.each { |k, v| puts "#{k.capitalize}: #{v}" }
|
15
|
+
puts ""
|
16
|
+
|
17
|
+
puts "Skills Summary".green
|
18
|
+
api.skill_sumary.each { |v| puts v }
|
19
|
+
puts ""
|
20
|
+
|
21
|
+
puts "Employment History".green
|
22
|
+
api.professional_exp.each do |k, v|
|
23
|
+
puts "#{v[:company].blue} #{v[:period].red}"
|
24
|
+
puts v[:role]
|
25
|
+
puts ""
|
26
|
+
end
|
27
|
+
|
28
|
+
puts "Open Source Projects".green
|
29
|
+
api.projects.each do |k, v|
|
30
|
+
puts k.yellow
|
31
|
+
v.values.each do |key, value|
|
32
|
+
puts key[:project].blue
|
33
|
+
puts key[:info]
|
34
|
+
puts ""
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
data/lib/basmoura/pdf.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
require "basmoura/api"
|
4
|
+
require "prawn"
|
5
|
+
|
6
|
+
module Basmoura
|
7
|
+
class Pdf
|
8
|
+
def self.generate
|
9
|
+
Prawn::Document.generate("basmoura.pdf", page_size: "A4") do
|
10
|
+
api = Api.new
|
11
|
+
text "Breno Augusto Santana Moura", size: 18, style: :bold, align: :center
|
12
|
+
|
13
|
+
move_down 10
|
14
|
+
api.contact_info.each { |k, v| text "#{v}", align: :center }
|
15
|
+
|
16
|
+
move_down 20
|
17
|
+
text "Skill Summary", style: :bold, size: 12
|
18
|
+
move_down 3
|
19
|
+
api.skill_sumary.each { |v| text "- #{v}", size: 10 }
|
20
|
+
|
21
|
+
move_down 20
|
22
|
+
text "Employment History", style: :bold, size: 12
|
23
|
+
move_down 3
|
24
|
+
api.professional_exp.each do |k, v|
|
25
|
+
text_box "#{v[:period]}", style: :bold, at: [415, cursor], size: 10, align: :right
|
26
|
+
text "#{v[:company]}", style: :bold, size: 10
|
27
|
+
text v[:role], style: :italic, size: 9
|
28
|
+
move_down 2
|
29
|
+
v[:tasks].map do |task|
|
30
|
+
text task, size: 8, indent_paragraphs: 5
|
31
|
+
end
|
32
|
+
move_down 10
|
33
|
+
end
|
34
|
+
|
35
|
+
move_down 20
|
36
|
+
text "Open Source Projects", style: :bold, size: 12
|
37
|
+
api.projects.each do |k, v|
|
38
|
+
text "#{k}", style: :bold, size: 10
|
39
|
+
move_down 3
|
40
|
+
v.values.each do |key, value|
|
41
|
+
text "#{key[:project]}", style: :bold, size: 9, indent_paragraphs: 5
|
42
|
+
text "#{key[:info]}", size: 9, indent_paragraphs: 5
|
43
|
+
move_down 5
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
detect_os
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.detect_os
|
51
|
+
@os ||= (
|
52
|
+
host_os = RbConfig::CONFIG['host_os']
|
53
|
+
case host_os
|
54
|
+
when /darwin|mac os/
|
55
|
+
system('open basmoura.pdf')
|
56
|
+
when /linux/
|
57
|
+
system('xdg-open basmoura.pdf')
|
58
|
+
else
|
59
|
+
raise Error::WebDriverError, "unknown os: #{host_os.inspect}"
|
60
|
+
end
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
data/lib/basmoura/version.rb
CHANGED
data/lib/basmoura.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
require "basmoura/version"
|
4
|
-
require "basmoura/
|
5
|
-
require "basmoura/
|
4
|
+
require "basmoura/console"
|
5
|
+
require "basmoura/pdf"
|
6
6
|
|
7
7
|
module Basmoura
|
8
8
|
def self.show
|
9
|
-
|
9
|
+
Console.new.curriculum
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.pdf
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basmoura
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Breno Moura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -75,23 +75,20 @@ executables:
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
- ".gitignore"
|
79
|
-
- Gemfile
|
80
78
|
- LICENSE.txt
|
81
79
|
- README.md
|
82
|
-
- Rakefile
|
83
|
-
- basmoura.gemspec
|
84
80
|
- bin/basmoura
|
85
81
|
- lib/basmoura.rb
|
86
|
-
- lib/basmoura/
|
87
|
-
- lib/basmoura/
|
82
|
+
- lib/basmoura/api.rb
|
83
|
+
- lib/basmoura/console.rb
|
84
|
+
- lib/basmoura/pdf.rb
|
88
85
|
- lib/basmoura/version.rb
|
89
|
-
homepage:
|
86
|
+
homepage: https://github.com/basmoura
|
90
87
|
licenses:
|
91
88
|
- MIT
|
92
89
|
metadata: {}
|
93
90
|
post_install_message: This is a simple gem to show my professional informations. Type
|
94
|
-
basmoura
|
91
|
+
basmoura.
|
95
92
|
rdoc_options: []
|
96
93
|
require_paths:
|
97
94
|
- lib
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
data/basmoura.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'basmoura/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "basmoura"
|
8
|
-
spec.version = Basmoura::VERSION
|
9
|
-
spec.authors = ["Breno Moura"]
|
10
|
-
spec.email = ["basmoura@gmail.com"]
|
11
|
-
spec.summary = %q{Provide informations about me}
|
12
|
-
spec.description = %q{I believe in one simple thing: if you are a developer, do all you can as a developer}
|
13
|
-
spec.homepage = ""
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files -z`.split("\x0")
|
17
|
-
spec.executables = 'basmoura'
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_dependency 'rake', '>= 10.0.0'
|
22
|
-
spec.add_dependency 'colorize', '~> 0.7.0'
|
23
|
-
spec.add_dependency 'prawn', '~> 1.0.0'
|
24
|
-
|
25
|
-
spec.add_development_dependency "bundler", "~> 1.5"
|
26
|
-
|
27
|
-
spec.post_install_message = "This is a simple gem to show my professional informations."\
|
28
|
-
" Type basmoura -h."
|
29
|
-
end
|
@@ -1,122 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
require "Date"
|
4
|
-
require "colorize"
|
5
|
-
|
6
|
-
module Basmoura
|
7
|
-
class BasmouraApi
|
8
|
-
def curriculum
|
9
|
-
clear
|
10
|
-
puts " Breno Augusto Santana Moura".yellow
|
11
|
-
|
12
|
-
puts "-" * 80
|
13
|
-
puts "Informações Básicas".green
|
14
|
-
basic_info
|
15
|
-
contact_info.each { |k, v| puts "#{k.capitalize}: #{v}" }
|
16
|
-
puts ""
|
17
|
-
|
18
|
-
puts "Síntese de Qualificações".green
|
19
|
-
qualifications
|
20
|
-
puts ""
|
21
|
-
|
22
|
-
puts "Idiomas".green
|
23
|
-
languages.each { |k, v| puts "#{k.capitalize}: #{v}" }
|
24
|
-
puts ""
|
25
|
-
|
26
|
-
puts "Experiência Profissional".green
|
27
|
-
professional_exp.each do |k, v|
|
28
|
-
puts "#{v[:company].blue} #{v[:period].red}"
|
29
|
-
puts v[:role]
|
30
|
-
puts ""
|
31
|
-
end
|
32
|
-
|
33
|
-
puts "Projetos".green
|
34
|
-
projects.each do |k, v|
|
35
|
-
puts k.yellow
|
36
|
-
v.values.each do |key, value|
|
37
|
-
puts key[:project].blue
|
38
|
-
puts key[:info]
|
39
|
-
puts ""
|
40
|
-
end
|
41
|
-
end
|
42
|
-
puts "-" * 80
|
43
|
-
end
|
44
|
-
|
45
|
-
def basic_info
|
46
|
-
"Brasileiro, Solteiro, #{age_calculate} anos"
|
47
|
-
end
|
48
|
-
|
49
|
-
def contact_info
|
50
|
-
contact = { :telefone => "+55 (79) 8835-3428",
|
51
|
-
:github => "http://github.com/basmoura",
|
52
|
-
:email => "basmoura@gmail.com" }
|
53
|
-
end
|
54
|
-
|
55
|
-
def qualifications
|
56
|
-
q = ["- Cursando o sexto período da graduação em sistemas de informação;",
|
57
|
-
"- Bons conhecimentos em Ruby on Rails, Java, C#, ASP.NET, HTML5, CSS3 e Scrum;",
|
58
|
-
"- Experiência em desenvolvimento de sistemas em Ruby on Rails, ASP.NET e C#"]
|
59
|
-
end
|
60
|
-
|
61
|
-
def professional_exp
|
62
|
-
jobs = { :pop => { :role => "Estágio na área de desenvolvimento com Ruby on Rails",
|
63
|
-
:period => "Nov 2013 - Atualmente",
|
64
|
-
:company => "Popcode Mobile Solutions" },
|
65
|
-
|
66
|
-
:swx => { :role => "Estágio na área de desenvolvimento com Ruby on Rails",
|
67
|
-
:period => "Out 2013 - Nov 2013",
|
68
|
-
:company => "SWX Softwares" },
|
69
|
-
|
70
|
-
:grow => { :role => "Estágio na área de desenvolvimento com Java e GWT",
|
71
|
-
:period => "Maio 2013 - Out 2013",
|
72
|
-
:company => "GrowBit Business Technology" },
|
73
|
-
|
74
|
-
:code => { :role => "Estágio na área de desenvolvimento com C# e ASP.NET",
|
75
|
-
:period => "Jul 2011 - Mar 2013",
|
76
|
-
:company => "Code2 Informática" },
|
77
|
-
|
78
|
-
:tj => { :role => "Estágio na área de redes e suporte",
|
79
|
-
:period => "Abr 2011 - Jun 2011",
|
80
|
-
:company => "Tribunal de Justiça do Estado de Sergipe" } }
|
81
|
-
|
82
|
-
end
|
83
|
-
|
84
|
-
def projects
|
85
|
-
projects = { "Ruby on Rails" => { :dpu => { :project => "Controle de patrimônio, contas e documentos.",
|
86
|
-
:info => "Defensoria Pública da União de Sergipe" },
|
87
|
-
|
88
|
-
:ufs => { :project => "Dia do Nutricionista - http://diadonutricionista.com.br/",
|
89
|
-
:info => "Universidade Federal de Sergipe" },
|
90
|
-
|
91
|
-
:css => { :project => "Contribuição para a gem 'css3-progress-bar-rails'",
|
92
|
-
:info => "https://github.com/yrgoldteeth/css3-progress-bar-rails/commits?author=basmoura" },
|
93
|
-
|
94
|
-
:publify => { :project => "Contribuição para a gem 'Publify'",
|
95
|
-
:info => "https://github.com/publify/publify/commits?author=basmoura" },
|
96
|
-
|
97
|
-
:solutio => { :project => "Contribuição para o projeto 'Solutio'",
|
98
|
-
:info => "https://github.com/coolmeia/solutio/commits?author=basmoura" } },
|
99
|
-
|
100
|
-
"ASP.NET C#" => { :cultura => { :project => "Sistema de Controle Acadêmico",
|
101
|
-
:info => "Cultura Inglesa de Sergipe" } } }
|
102
|
-
end
|
103
|
-
|
104
|
-
def languages
|
105
|
-
languages = { :inglês => "Avançado",
|
106
|
-
:espanhol => "Básico",
|
107
|
-
:português => "Avançado" }
|
108
|
-
end
|
109
|
-
|
110
|
-
def age_calculate
|
111
|
-
today = Date.today
|
112
|
-
birthdate = Date.parse("27/09/1988")
|
113
|
-
age = today.year - birthdate.year
|
114
|
-
age = age - 1 if birthdate.month > today.month
|
115
|
-
end
|
116
|
-
|
117
|
-
def clear
|
118
|
-
system('clear')
|
119
|
-
end
|
120
|
-
|
121
|
-
end
|
122
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
require "basmoura/basmoura_api"
|
4
|
-
require "prawn"
|
5
|
-
|
6
|
-
module Basmoura
|
7
|
-
class BasmouraPdf
|
8
|
-
def generate
|
9
|
-
Prawn::Document.generate("basmoura.pdf", page_size: "A4") do
|
10
|
-
basmoura = BasmouraApi.new
|
11
|
-
text "Breno Augusto Santana Moura", size: 18, style: :bold, align: :center
|
12
|
-
|
13
|
-
move_down 10
|
14
|
-
basmoura.contact_info.each { |k, v| text "#{v}", align: :center }
|
15
|
-
|
16
|
-
move_down 20
|
17
|
-
text "Síntese de Qualificações", style: :bold, size: 12
|
18
|
-
basmoura.qualifications.each { |v| text "#{v}", size: 10 }
|
19
|
-
|
20
|
-
move_down 20
|
21
|
-
text "Experiência Profissional", style: :bold, size: 12
|
22
|
-
basmoura.professional_exp.each do |k, v|
|
23
|
-
text "#{v[:company]}", style: :bold, size: 10
|
24
|
-
text_box "#{v[:period]}", style: :bold, at: [380, cursor], size: 10
|
25
|
-
text v[:role], size: 10
|
26
|
-
move_down 5
|
27
|
-
end
|
28
|
-
|
29
|
-
move_down 20
|
30
|
-
text "Projetos", style: :bold, size: 12
|
31
|
-
basmoura.projects.each do |k, v|
|
32
|
-
text "#{k}", style: :bold, size: 11
|
33
|
-
v.values.each do |key, value|
|
34
|
-
text "#{key[:project]}", style: :bold, size: 10
|
35
|
-
text "#{key[:info]}", size: 10
|
36
|
-
move_down 5
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
detect_os
|
41
|
-
end
|
42
|
-
|
43
|
-
def self.detect_os
|
44
|
-
@os ||= (
|
45
|
-
host_os = RbConfig::CONFIG['host_os']
|
46
|
-
case host_os
|
47
|
-
when /darwin|mac os/
|
48
|
-
system('open basmoura.pdf')
|
49
|
-
when /linux/
|
50
|
-
system('xdg-open basmoura.pdf')
|
51
|
-
else
|
52
|
-
raise Error::WebDriverError, "unknown os: #{host_os.inspect}"
|
53
|
-
end
|
54
|
-
)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|