solid_assert 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -29,7 +29,7 @@ Assertions are disabled by default.
29
29
  Use `assert` for testing conditions. You can optionally provide a message
30
30
 
31
31
  assert some_string != "some value"
32
- assert clients_list.empty?, "Isn't the clients list empty?"
32
+ assert clients.empty?, "Isn't the clients list empty?"
33
33
 
34
34
  Use `invariant` for testing blocks of code. This comes handy when testing your assumptions requires several lines of code. You can provide an optional message if you want
35
35
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -2,3 +2,8 @@ Dir[File.dirname(__FILE__) + '/solid_assert/**/*.rb'].each do |file|
2
2
  require file
3
3
  end
4
4
 
5
+ Object.class_eval do
6
+ include SolidAssert::NullAssert
7
+ end
8
+
9
+
@@ -6,9 +6,6 @@ module SolidAssert
6
6
  end
7
7
  end
8
8
 
9
- Object.class_eval do
10
- include NullAssert
11
- end
12
9
  end
13
10
 
14
11
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{solid_assert}
8
- s.version = "0.7.1"
8
+ s.version = "0.7.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Jorge Manrubia}]
12
- s.date = %q{2011-09-18}
12
+ s.date = %q{2011-09-19}
13
13
  s.description = %q{Assert utility for ruby. It let you code your assumptions and code invariants, so they are checked automatically. It can be deactivated, so you it doesn't affect to your program performance (for example, in production)'}
14
14
  s.email = %q{jorge.manrubia@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_assert
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 1
10
- version: 0.7.1
9
+ - 2
10
+ version: 0.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jorge Manrubia
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-18 00:00:00 Z
18
+ date: 2011-09-19 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :development