explore_rb 1.0.0 → 1.1.0
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/README.md +6 -0
- data/lib/explore_rb.rb +7 -1
- data/lib/explore_rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea82e3992fe7e42e11bc80a5bedab92e5d638fc0
|
|
4
|
+
data.tar.gz: 9d07b20067af72a8779f46a00fbbe6804e358900
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0b2d49828659513fb111a1fc37b17f942333b884bd57bf7eef8722146b88862ff1c6c16eb03f237060aa526a5a4084c635a61d7394aacd0f0d986664da28688
|
|
7
|
+
data.tar.gz: f9f9ef6614a6082bb1a0a110763b3e50b3a40911f8f503a17968f175947ad068901b81ffa3e92682325ff65e79d17d0643d25078d8a38f46568401a129304ac2
|
data/README.md
CHANGED
|
@@ -43,6 +43,12 @@ As you might expect, list gems with:
|
|
|
43
43
|
|
|
44
44
|
$ gems
|
|
45
45
|
|
|
46
|
+
### Showing the load path
|
|
47
|
+
|
|
48
|
+
Get an array (rather than a reference) of the current load paths with:
|
|
49
|
+
|
|
50
|
+
$ load_paths
|
|
51
|
+
|
|
46
52
|
### Listing Symbols
|
|
47
53
|
|
|
48
54
|
You can get an array of all existing symbols with:
|
data/lib/explore_rb.rb
CHANGED
|
@@ -7,7 +7,7 @@ module ExploreRb
|
|
|
7
7
|
puts "Use the following commands to look around:"
|
|
8
8
|
puts " classes, objects, get_objects, symbols, gems,"
|
|
9
9
|
puts " local_variables, draw_this, start_garbage_collection"
|
|
10
|
-
puts " stop_garbage_collection, help"
|
|
10
|
+
puts " stop_garbage_collection, load_paths, help"
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def classes
|
|
@@ -52,6 +52,12 @@ module ExploreRb
|
|
|
52
52
|
GC.stress=false
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
def load_paths
|
|
56
|
+
# $: returns a reference.
|
|
57
|
+
# For demo purposes we want a value.
|
|
58
|
+
Array.new $:
|
|
59
|
+
end
|
|
60
|
+
|
|
55
61
|
end
|
|
56
62
|
|
|
57
63
|
# add exploreRb methods to the main object
|
data/lib/explore_rb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: explore_rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Williamson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-04-
|
|
11
|
+
date: 2013-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: traceur
|