specs 0.16 → 0.17

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 +4 -4
  2. data/lib/specs.rb +14 -9
  3. data/lib/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e45780a220ced75edef04c80b3e2a8660a1fd23
4
- data.tar.gz: 733b7bf53a99a1a2989234c3ec3d1bfc67aea9f5
3
+ metadata.gz: edf42f629096c97c681a40b5d0b48f4186680baa
4
+ data.tar.gz: 6fa05b7a5443ba10ad9182e2b61d38b0ea6b482b
5
5
  SHA512:
6
- metadata.gz: 5522fc0ab7a759922ba33e4809b5856946774d0d993dce42b726187f41f1d9bb14e86c9b1b556b257fe8bf3daf80d96fb6e827505a5dcd44592718a6a19c0cc0
7
- data.tar.gz: a6c38744c98616c5f62b16507acda50f8416bb31fbb897ee1810b6857e8f9e4db32f6db9908089c16c69d806a988d4fc9fe1894052f6b6a41a41aad342c23b20
6
+ metadata.gz: d0241a5f8391808ea670118d2047e486a4ea8c93c688a5eef31b69a1ea713aff4370258fae33860c1ad2c9764afe3c1d49dd1221f6ff410f24b49ba38e16d67e
7
+ data.tar.gz: be89ef719d6ffd12bdbb00d78ed01152672603189a351c2f30454bdb8322544fba648e961badc832abbf05122780d10042c88adf2a739e5662cce7e67379769b
@@ -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 => Bool
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 => Bool
65
+ Contract nil => Or[Fixnum, nil]
64
66
  def self.mingw?
65
67
  raw =~ /cygwin|mingw/
66
68
  end
67
69
 
68
- Contract nil => Bool
70
+ Contract nil => Or[Fixnum, nil]
69
71
  def self.mac?
70
72
  raw =~ /darwin/
71
73
  end
72
74
 
73
- Contract nil => Bool
75
+ Contract nil => Or[Fixnum, nil]
74
76
  def self.unix?
75
77
  !self.windows?
76
78
  end
77
79
 
78
- Contract nil => Bool
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 => Bool
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 => Bool
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 => Bool
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 => Bool
182
+ Contract nil => Or[Fixnum, nil]
178
183
  def self.ruby2?
179
184
  RUBY_VERSION =~ /^2/
180
185
  end
@@ -2,5 +2,5 @@
2
2
  # Specs
3
3
  #
4
4
  module Specs
5
- VERSION = '0.16'
5
+ VERSION = '0.17'
6
6
  end
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.16'
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.4'
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.4'
26
+ version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement