preconditions 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Rakefile +6 -0
- data/VERSION +1 -1
- metadata +39 -11
data/Gemfile
CHANGED
@@ -7,8 +7,10 @@ source "http://rubygems.org"
|
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
8
8
|
group :development do
|
9
9
|
gem "yard", "~> 0.6.0"
|
10
|
+
gem "bluecloth"
|
10
11
|
gem "bundler", "~> 1.0.0"
|
11
12
|
gem "jeweler", "~> 1.5.2"
|
12
13
|
gem "rcov", ">= 0"
|
13
14
|
gem "rspec", ">= 2.6.0"
|
15
|
+
gem "ci_reporter"
|
14
16
|
end
|
data/Rakefile
CHANGED
@@ -39,6 +39,12 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
|
|
39
39
|
spec.rcov = true
|
40
40
|
end
|
41
41
|
|
42
|
+
# Task for CI reporting for Jenkins build
|
43
|
+
require 'ci/reporter/rake/rspec'
|
44
|
+
RSpec::Core::RakeTask.new(:ci_spec => ["ci:setup:rspec"]) do |spec|
|
45
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
46
|
+
end
|
47
|
+
|
42
48
|
task :default => :spec
|
43
49
|
|
44
50
|
require 'yard'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: preconditions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- tucker
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -35,6 +35,20 @@ dependencies:
|
|
35
35
|
requirement: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
name: bluecloth
|
47
|
+
prerelease: false
|
48
|
+
type: :development
|
49
|
+
requirement: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
38
52
|
none: false
|
39
53
|
requirements:
|
40
54
|
- - ~>
|
@@ -48,9 +62,9 @@ dependencies:
|
|
48
62
|
name: bundler
|
49
63
|
prerelease: false
|
50
64
|
type: :development
|
51
|
-
requirement: *
|
65
|
+
requirement: *id003
|
52
66
|
- !ruby/object:Gem::Dependency
|
53
|
-
version_requirements: &
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
54
68
|
none: false
|
55
69
|
requirements:
|
56
70
|
- - ~>
|
@@ -64,9 +78,9 @@ dependencies:
|
|
64
78
|
name: jeweler
|
65
79
|
prerelease: false
|
66
80
|
type: :development
|
67
|
-
requirement: *
|
81
|
+
requirement: *id004
|
68
82
|
- !ruby/object:Gem::Dependency
|
69
|
-
version_requirements: &
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
70
84
|
none: false
|
71
85
|
requirements:
|
72
86
|
- - ">="
|
@@ -78,9 +92,9 @@ dependencies:
|
|
78
92
|
name: rcov
|
79
93
|
prerelease: false
|
80
94
|
type: :development
|
81
|
-
requirement: *
|
95
|
+
requirement: *id005
|
82
96
|
- !ruby/object:Gem::Dependency
|
83
|
-
version_requirements: &
|
97
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
84
98
|
none: false
|
85
99
|
requirements:
|
86
100
|
- - ">="
|
@@ -94,7 +108,21 @@ dependencies:
|
|
94
108
|
name: rspec
|
95
109
|
prerelease: false
|
96
110
|
type: :development
|
97
|
-
requirement: *
|
111
|
+
requirement: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
122
|
+
name: ci_reporter
|
123
|
+
prerelease: false
|
124
|
+
type: :development
|
125
|
+
requirement: *id007
|
98
126
|
description: |
|
99
127
|
The Preconditions library provides a simple set of methods for checking arguments being passed into a method. Instead of writing custom checks and raising exceptions directly in your code you can use Preconditions to verify basic properties of your arguments (not-nil, satisfying a boolean expression, being of a certain type/duck-type) and raise the appropriate exception for you.
|
100
128
|
|