ruby_contracts 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,7 +94,7 @@ module Contracts
94
94
 
95
95
  code << "if !#{contract_method_name}(*__args) then\n"
96
96
  code << " self.class.__contract_failure!('#{name}', \"invalid precondition: #{args[0]}\", nil, *__args)\n"
97
- code << "end"
97
+ code << "end\n"
98
98
  code
99
99
  else
100
100
  code
@@ -116,7 +116,7 @@ module Contracts
116
116
 
117
117
  code << "if !#{contract_method_name}(result, *__args) then\n"
118
118
  code << " self.class.__contract_failure!('#{name}', \"invalid postcondition: #{args[0]}\", result, *__args)\n"
119
- code << "end"
119
+ code << "end\n"
120
120
  code
121
121
  else
122
122
  code
@@ -1,3 +1,3 @@
1
1
  module RubyContracts
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_contracts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: