arbitrary_mock 0.1.1 → 0.1.2.rc1

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: f0f56daa5e6eead25a443ef2e4907c7e468fd98b
4
- data.tar.gz: 629e448c6fd14a37db14d37b3d1a7f10f3984f6d
3
+ metadata.gz: 51fd3ef760f1637a1f34274ac71785cc0df14761
4
+ data.tar.gz: d5fb38bdb74cc2244ac5f551b473f4bdaa57dee9
5
5
  SHA512:
6
- metadata.gz: 61f229dca96015fce90d8856101afaf5ae6386feac0170a329cb5cc23bd0befff2041968993f1783d61c4967fdc76124810fc3943f2130445c3fdbed1744f153
7
- data.tar.gz: 49e4170ed80826372a5a7fec32ccad3fbc8aa793e7401abed0f8434bb7ec6485b4c3278ae1ac574fe642eef7e0a2da440fe077662a09d9c3a1b68f0bce57fe7a
6
+ metadata.gz: 693d069eaa4662a4b3adf2415572db25a4ac07a191a0c2bbc96b8545e37126292880df53783ca841fb830d38c8a71041f7c460243a62afc4a92b3a114d3d596a
7
+ data.tar.gz: 2b9d4f15a90e74b9e33711e9845bacfc4b84505957e061c4b1c4beb5d7e71497e5d6911b8b2616fcc969936a4d7157eaf61e337126dd0ccc9e6d61b59b13cea4
@@ -1,5 +1,5 @@
1
1
  module ArbitraryMock
2
- class Base < BasicObject
2
+ class Base
3
3
 
4
4
  def initialize(property_hash={})
5
5
  @property_hash = property_hash
@@ -21,5 +21,9 @@ module ArbitraryMock
21
21
  setter_method = setter_method_match.captures.first.to_sym
22
22
  @property_hash[setter_method] = args[arg_position]
23
23
  end
24
+
25
+ def try(*args)
26
+ self.send *args
27
+ end
24
28
  end
25
29
  end
@@ -1,3 +1,3 @@
1
1
  module ArbitraryMock
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2.rc1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbitrary_mock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert White
@@ -86,9 +86,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - '>='
89
+ - - '>'
90
90
  - !ruby/object:Gem::Version
91
- version: '0'
91
+ version: 1.3.1
92
92
  requirements: []
93
93
  rubyforge_project:
94
94
  rubygems_version: 2.0.3