rubyment 0.6.25622871 → 0.6.25684806
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubyment.rb +26 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c84f2638cb5c7384c5fbe3dda410b4a7a3fb68e
|
4
|
+
data.tar.gz: a2afc9c7797578ecec3348c5bfe88a5e1144e531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8acc5caa6980bfdc9230ae653eb0ac498198b2c43f19b2bbe110b5c30f597dddc177be477ab4aa629b9f94b9a8f7be2f58c79c51fb8af090983a858096c04bda
|
7
|
+
data.tar.gz: 49f0c32fb97be2bb0bd9f7675a989a8b006c28999f8a137cf8607a0a925225a1b2768822a2978b48f5d028580c52f8a52142464c481cf2470fa4e47557693f58
|
data/lib/rubyment.rb
CHANGED
@@ -123,13 +123,29 @@ module InternalRubymentModule
|
|
123
123
|
|
124
124
|
|
125
125
|
=begin
|
126
|
-
|
126
|
+
sets the current @memory with a new hash m
|
127
127
|
=end
|
128
128
|
def rubyment_memory__set m
|
129
129
|
@memory = m
|
130
130
|
end
|
131
131
|
|
132
132
|
|
133
|
+
=begin
|
134
|
+
set the current @memory[k] with v
|
135
|
+
=end
|
136
|
+
def rubyment_memory__set_key k, v
|
137
|
+
@memory[k] = v
|
138
|
+
end
|
139
|
+
|
140
|
+
|
141
|
+
=begin
|
142
|
+
get the current @memory[k]
|
143
|
+
=end
|
144
|
+
def rubyment_memory__get_key k
|
145
|
+
@memory[k]
|
146
|
+
end
|
147
|
+
|
148
|
+
|
133
149
|
end
|
134
150
|
|
135
151
|
|
@@ -2844,7 +2860,8 @@ module RubymentTestModule
|
|
2844
2860
|
|
2845
2861
|
|
2846
2862
|
def test_cases__template args=[]
|
2847
|
-
# current best example: test_cases__send_enumerator
|
2863
|
+
# current best example: test_cases__send_enumerator, but it
|
2864
|
+
# still doesn't use the tester_with_bled.
|
2848
2865
|
# testing_method = :send_enumerator
|
2849
2866
|
test_cases ||= [
|
2850
2867
|
# [ :id, :expectation, :actual_params ],
|
@@ -3254,6 +3271,13 @@ module RubymentModule
|
|
3254
3271
|
Thread.current.backtrace.join("\n")
|
3255
3272
|
end
|
3256
3273
|
|
3274
|
+
|
3275
|
+
# returns a string having the current backtrace, for debugging.
|
3276
|
+
def backtrace__reversed
|
3277
|
+
Thread.current.backtrace.reverse.join("\n")
|
3278
|
+
end
|
3279
|
+
|
3280
|
+
|
3257
3281
|
def caller_labels begin_range=1, range_size=1
|
3258
3282
|
caller_locations(begin_range, range_size).map(&:label)
|
3259
3283
|
end
|