specs 0.16 → 0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specs.rb +14 -9
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edf42f629096c97c681a40b5d0b48f4186680baa
|
4
|
+
data.tar.gz: 6fa05b7a5443ba10ad9182e2b61d38b0ea6b482b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0241a5f8391808ea670118d2047e486a4ea8c93c688a5eef31b69a1ea713aff4370258fae33860c1ad2c9764afe3c1d49dd1221f6ff410f24b49ba38e16d67e
|
7
|
+
data.tar.gz: be89ef719d6ffd12bdbb00d78ed01152672603189a351c2f30454bdb8322544fba648e961badc832abbf05122780d10042c88adf2a739e5662cce7e67379769b
|
data/lib/specs.rb
CHANGED
@@ -46,6 +46,8 @@ SPECS_DIR = Pathname.new(File.dirname(__FILE__))
|
|
46
46
|
# 'firefox --version' in Unix
|
47
47
|
#
|
48
48
|
module Os
|
49
|
+
include Contracts::Modules
|
50
|
+
|
49
51
|
Contract nil => String
|
50
52
|
def self.raw
|
51
53
|
# Config deprecated in Ruby 1.9
|
@@ -55,27 +57,27 @@ module Os
|
|
55
57
|
# A series of OS descriptions.
|
56
58
|
# Not all of these are mutually exclusive.
|
57
59
|
|
58
|
-
Contract nil =>
|
60
|
+
Contract nil => Or[Fixnum, nil]
|
59
61
|
def self.windows?
|
60
62
|
raw =~ /cygwin|mswin|mingw|bccwin|wince|emx/
|
61
63
|
end
|
62
64
|
|
63
|
-
Contract nil =>
|
65
|
+
Contract nil => Or[Fixnum, nil]
|
64
66
|
def self.mingw?
|
65
67
|
raw =~ /cygwin|mingw/
|
66
68
|
end
|
67
69
|
|
68
|
-
Contract nil =>
|
70
|
+
Contract nil => Or[Fixnum, nil]
|
69
71
|
def self.mac?
|
70
72
|
raw =~ /darwin/
|
71
73
|
end
|
72
74
|
|
73
|
-
Contract nil =>
|
75
|
+
Contract nil => Or[Fixnum, nil]
|
74
76
|
def self.unix?
|
75
77
|
!self.windows?
|
76
78
|
end
|
77
79
|
|
78
|
-
Contract nil =>
|
80
|
+
Contract nil => Or[Fixnum, nil]
|
79
81
|
def self.haiku?
|
80
82
|
raw =~ /haiku/
|
81
83
|
end
|
@@ -85,7 +87,7 @@ module Os
|
|
85
87
|
self.unix? && !(self.mac? || self.haiku?)
|
86
88
|
end
|
87
89
|
|
88
|
-
Contract nil =>
|
90
|
+
Contract nil => Or[Fixnum, nil]
|
89
91
|
def self.x86_64?
|
90
92
|
RbConfig::CONFIG['arch'] =~ /64/
|
91
93
|
end
|
@@ -115,10 +117,13 @@ end
|
|
115
117
|
# Recipe
|
116
118
|
#
|
117
119
|
module Recipe
|
120
|
+
include Contracts::Modules
|
121
|
+
|
118
122
|
#
|
119
123
|
# Package
|
120
124
|
#
|
121
125
|
module Package
|
126
|
+
include Contracts::Modules
|
122
127
|
end
|
123
128
|
|
124
129
|
Contract nil => String
|
@@ -164,17 +169,17 @@ module Recipe
|
|
164
169
|
RUBY_VERSION
|
165
170
|
end
|
166
171
|
|
167
|
-
Contract nil =>
|
172
|
+
Contract nil => Or[Fixnum, nil]
|
168
173
|
def self.ruby1_8?
|
169
174
|
RUBY_VERSION =~ /^1\.8/
|
170
175
|
end
|
171
176
|
|
172
|
-
Contract nil =>
|
177
|
+
Contract nil => Or[Fixnum, nil]
|
173
178
|
def self.ruby1_9?
|
174
179
|
RUBY_VERSION =~ /^1\.9/
|
175
180
|
end
|
176
181
|
|
177
|
-
Contract nil =>
|
182
|
+
Contract nil => Or[Fixnum, nil]
|
178
183
|
def self.ruby2?
|
179
184
|
RUBY_VERSION =~ /^2/
|
180
185
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.17'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Pennebaker
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|