lawyer 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9417f6d465de3ba5d89b5a2c4f296c9e5f597b93
4
- data.tar.gz: bd222e59bfb602d59c35df1b661235922d136699
3
+ metadata.gz: d4dbbfd3ee37e37672ccc73e5ef501e88db69321
4
+ data.tar.gz: ec171d5980b1301545ebf03eda89fcdb6e294199
5
5
  SHA512:
6
- metadata.gz: a3c6d46c93ab74a229181ecf39eac71cdf96661e432d8704083270357cf73517774e56d355679b6d9d206e252166e0f2603e78cf1b76f45f16d5571f22ce5265
7
- data.tar.gz: 7c0956931d5f270f57cc2600a9435eef3011d9f37b5d1b4a011c07d522b3cfd2f24d8712228e552096baaad60a635eb9540fbfd9cb0e831e5b1429645fc5e002
6
+ metadata.gz: ce307fc1467871f51be728fcaa1320ef4be5203467ab99405e26f34de76236f259e4b63bfdb91c2861cde8c3afe8ef9bd5534147896278f02a3c93ba0dd9cafd
7
+ data.tar.gz: a0c54a40b9d872988afb698c8d1d8cdc5228932c3f89c0b12fa29be4ebefdc2fdc56d5c0489d490860ac0f2ac61d31af46934fdcb1a7db484a13d09149b3721a
@@ -4,6 +4,8 @@ module Lawyer
4
4
  def contract_double(contract, return_values = {})
5
5
  methods = {}
6
6
  contract.clauses.each do |clause|
7
+ next if clause.name.to_sym == :initialize
8
+
7
9
  return_value = if return_values.has_key?(clause.name.to_sym)
8
10
  return_values[clause.name.to_sym]
9
11
  else
@@ -1,3 +1,3 @@
1
1
  module Lawyer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lawyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cinnamond
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-05 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler