which_osx 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/version.rb +1 -1
  3. data/lib/which_osx.rb +6 -1
  4. metadata +7 -14
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5e9eb1c9070553e630fb31a954a4b68f4649269a
4
+ data.tar.gz: e76e9d321ad06e4d122fd91e67581eb09770e21f
5
+ SHA512:
6
+ metadata.gz: 1964909291baa909104bf12013c12d28f8788fcd99a9970b1a47c28071963954f81f7b2093a70ed9cb74c41cf7d0ba92faf4bbb7a2695ae0c9c9ab1d65aba046
7
+ data.tar.gz: 252794d19100575ff4b071e5ecfbfa27e1fb969fedf6ee56c0f9d1234e1d11e87004870e8b83c79319eb90d6a311e5adb9bc55481c20ea2e2f75cdea2f400aaa
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module WhichOsx
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
data/lib/which_osx.rb CHANGED
@@ -1,7 +1,12 @@
1
1
  # A simple tool to determine the current version of Mac OS X.
2
2
 
3
3
  # Regex for "##.#.#"
4
- output = `sw_vers`.scan(/\d\d\.\d\.\d/).first
4
+ def output
5
+ `sw_vers`.scan(/\d\d\.\d(?:.\d)?/).first
6
+ rescue Errno::ENOENT => e
7
+ puts "This computer is not running Mac OS X. This gem won't work! Sorry :("
8
+ end
9
+
5
10
  VERSION = output
6
11
 
7
12
  class WhichOSX
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: which_osx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
5
- prerelease:
4
+ version: 1.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kristian Freeman
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -62,28 +57,26 @@ files:
62
57
  - bin/which_osx
63
58
  homepage: http://github.com/imkmf/which_osx
64
59
  licenses: []
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
- - - ! '>='
67
+ - - '>='
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
- - - ! '>='
72
+ - - '>='
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.25
77
+ rubygems_version: 2.0.3
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: A simple ruby program for returning the version number of the current Mac
87
81
  OS X system.
88
82
  test_files: []
89
- has_rdoc: false