contracts 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ def with_enabled_no_contracts
2
+ no_contracts = ENV["NO_CONTRACTS"]
3
+ ENV["NO_CONTRACTS"] = "true"
4
+ yield
5
+ ENV["NO_CONTRACTS"] = no_contracts
6
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contracts
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditya Bhargava
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-08 00:00:00.000000000 Z
11
+ date: 2015-02-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This library provides contracts for Ruby. Contracts let you clearly express
14
14
  how your code behaves, and free you from writing tons of boilerplate, defensive
@@ -32,8 +32,13 @@ files:
32
32
  - contracts.gemspec
33
33
  - lib/contracts.rb
34
34
  - lib/contracts/builtin_contracts.rb
35
+ - lib/contracts/core_ext.rb
35
36
  - lib/contracts/decorators.rb
37
+ - lib/contracts/eigenclass.rb
38
+ - lib/contracts/errors.rb
36
39
  - lib/contracts/invariants.rb
40
+ - lib/contracts/method_reference.rb
41
+ - lib/contracts/modules.rb
37
42
  - lib/contracts/support.rb
38
43
  - lib/contracts/testable.rb
39
44
  - lib/contracts/version.rb
@@ -43,6 +48,7 @@ files:
43
48
  - spec/invariants_spec.rb
44
49
  - spec/module_spec.rb
45
50
  - spec/spec_helper.rb
51
+ - spec/support.rb
46
52
  homepage: http://github.com/egonSchiele/contracts.ruby
47
53
  licenses: []
48
54
  metadata: {}