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 +4 -4
- data/lib/arbitrary_mock/base.rb +5 -1
- data/lib/arbitrary_mock/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51fd3ef760f1637a1f34274ac71785cc0df14761
|
4
|
+
data.tar.gz: d5fb38bdb74cc2244ac5f551b473f4bdaa57dee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693d069eaa4662a4b3adf2415572db25a4ac07a191a0c2bbc96b8545e37126292880df53783ca841fb830d38c8a71041f7c460243a62afc4a92b3a114d3d596a
|
7
|
+
data.tar.gz: 2b9d4f15a90e74b9e33711e9845bacfc4b84505957e061c4b1c4beb5d7e71497e5d6911b8b2616fcc969936a4d7157eaf61e337126dd0ccc9e6d61b59b13cea4
|
data/lib/arbitrary_mock/base.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module ArbitraryMock
|
2
|
-
class Base
|
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
|
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.
|
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:
|
91
|
+
version: 1.3.1
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
94
|
rubygems_version: 2.0.3
|