sourcerer 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/examples/simple_test.rb +10 -6
- data/lib/sourcerer/source_code.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTRmMTIwMDg5YjMzODUyMWYwOWJlMDg0MTI1MTdkZWVlZWRmN2JjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmQ1ZDgwZjcxNWEyZjIzYTNmOTI0NmYwMzljYWUzMDY2MWQ4Yjc5MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzdjNzVlYmM1Zjc3YTEyY2NmM2IzNDMyYjJjMDk0ZmE4NjRmMWQ0NGJmMDdi
|
10
|
+
MjlkYzFkNzU4ZDhkZjQwMzNjNjg3N2MxYTNkYzRkZmExOWY5MTgxMTA0NWU5
|
11
|
+
YWRmZjlkMzg3YWIzNDYxMDJlMjA3OWFjMWJiODExNDIyOWJkNTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzcxNmE2ZmUyMjE2ZWRmOGI5MjNmNjUyMzljZmNmZGZmMjlmNjI5NmQ2YThl
|
14
|
+
MjIzMmQ0YzY1YjY3Y2M2ZDU5YzdjYTM1N2M3NDJmOTI5NGYzMGIxZDQ0MTQy
|
15
|
+
MzA5ZDgyNzg3MGU3NjYxNjZmNjAzMjY2OTYzODViMDMxMGU1OGY=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
data/examples/simple_test.rb
CHANGED
@@ -10,15 +10,19 @@ end # Proc
|
|
10
10
|
#puts method(:hello_this).source
|
11
11
|
#puts test.source
|
12
12
|
|
13
|
-
|
13
|
+
class HelloWorld
|
14
14
|
|
15
|
-
|
15
|
+
def self.hello sym,sym2= "#{sym}", options={},*params,&block # the params
|
16
16
|
|
17
|
-
|
17
|
+
[1,2,3].each do |do_|
|
18
18
|
|
19
|
-
|
19
|
+
puts do_ # comment
|
20
|
+
|
21
|
+
end
|
20
22
|
|
21
|
-
|
23
|
+
puts "some code" # some comment
|
24
|
+
|
25
|
+
end
|
22
26
|
|
23
27
|
end
|
24
28
|
|
@@ -26,4 +30,4 @@ require 'debugger'
|
|
26
30
|
#debugger
|
27
31
|
|
28
32
|
#TODO finish up method reader
|
29
|
-
puts method(:hello).source
|
33
|
+
puts HelloWorld.method(:hello).source
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcerer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ! ' DSL for for simple to use proc source generating from methods, unbound
|
14
14
|
methods and of course Proc/lambda. It will allow you to play with the source or
|