basmoura 0.2.3 → 0.3

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: 89529dfe768d9b7b70f03d1f31a0555abb796cde
4
- data.tar.gz: 1b18d0ba43bb0ae31110642bd85eacef286919d3
3
+ metadata.gz: be63c6116f7faf80bf6dcbcbf9bf60f60e64c6c6
4
+ data.tar.gz: 64e798552fec113694f7e9ec070ab0627f1397f2
5
5
  SHA512:
6
- metadata.gz: e1c149dbae0dec09e265678213a9064d8d2d8a104310037b65567fe04f091e9cc3935803263c19d77eb50dcaa39de42f9a885b77ddc5fdbe6baeca29f01a50af
7
- data.tar.gz: 22bc390497c8096af5b053e14de881bbe38e248f30851b97004b7f2913a2c2e429c487dc1b5debfdbd5fc9764423af5673f093ecb8fdafde4c43c0d0cf010a14
6
+ metadata.gz: dbe8ebbd0f93a621bb7fac14fe44661735577f223aaf72cb59dc15a33340c8a7e37b42d914622c48cb962f12126b958c750fec8b9a965513559c37fa15daf359
7
+ data.tar.gz: 5fd38be5530c7fa28a9bbf023eb053c0a84bb695371bb9f4d5ba2af27967e1ee1933dfbc40983539679a74b717e7395647e57ee85d0a649709cb4ef4d15414d5
data/README.md CHANGED
@@ -12,7 +12,7 @@ This is a simple gem to show my professional informations.
12
12
  ## Usage
13
13
 
14
14
 
15
- Type `basmoura -s` on the console to see it.
15
+ Type `basmoura` on the console to see it; `basmoura -p` to export to a pdf file.
16
16
 
17
17
  ## Contributing
18
18
 
@@ -37,8 +37,21 @@ module Basmoura
37
37
  end
38
38
  end
39
39
  end
40
+ detect_os
41
+ end
40
42
 
41
- system('open basmoura.pdf')
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
+ )
42
55
  end
43
56
  end
44
57
  end
@@ -1,3 +1,3 @@
1
1
  module Basmoura
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3"
3
3
  end
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.2.3
4
+ version: '0.3'
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-04-26 00:00:00.000000000 Z
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake