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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubyment.rb +26 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1af01ed82dd69412c3b2bb67c4d4563a12c8866f
4
- data.tar.gz: f2b77d810d636178b2e474d8e20d2df83801d80b
3
+ metadata.gz: 6c84f2638cb5c7384c5fbe3dda410b4a7a3fb68e
4
+ data.tar.gz: a2afc9c7797578ecec3348c5bfe88a5e1144e531
5
5
  SHA512:
6
- metadata.gz: 45908cb4f83297a21fb499e2f87bba89c87f42a1a54ec7617f75c7754b791a1736cd2e840cf0fd0ac2c2808df86f8706a0f82f259d5c67e2a66dcfed5721a1d7
7
- data.tar.gz: 6b202da96a5f35e602441ed1f285896c774e3257607245fb3d8dd059cf49711443b0501a5a06b8bc7dba5fcc691a25808eb5ff99a7a43b6a2707cee2a5d7aa11
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
- updates the current @memory with a new hash m
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.25622871
4
+ version: 0.6.25684806
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribamar Santarosa