which_osx 1.0.0 → 1.0.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/History.txt +6 -0
- data/README.txt +15 -8
- data/Rakefile +3 -1
- metadata +1 -1
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -13,13 +13,20 @@ A simple ruby program for returning the version number of the current Mac OS X s
|
|
13
13
|
|
14
14
|
== SYNOPSIS:
|
15
15
|
|
16
|
-
|
16
|
+
which_osx can be imported into a project and used to return the current version of OS X (as of writing, my computer returns "10.7.3"):
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
require 'which_osx'
|
19
|
+
|
20
|
+
module ForTheREADME
|
21
|
+
def self.test
|
22
|
+
who_am_i = WhichOSX.version
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
It also can be used from the command-line:
|
27
|
+
|
28
|
+
`$ which_osx`
|
29
|
+
`10.7.3`
|
23
30
|
|
24
31
|
== REQUIREMENTS:
|
25
32
|
|
@@ -27,7 +34,7 @@ A simple ruby program for returning the version number of the current Mac OS X s
|
|
27
34
|
|
28
35
|
== INSTALL:
|
29
36
|
|
30
|
-
|
37
|
+
sudo gem install which_osx
|
31
38
|
|
32
39
|
== DEVELOPERS:
|
33
40
|
|
@@ -61,4 +68,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
61
68
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
62
69
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
63
70
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
64
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
71
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED