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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjI0ODg5YWM2NzMwODFiNmY5MDAwYTEzYWJjMGQyNjg4YTQ2N2Q0Ng==
4
+ YTRmMTIwMDg5YjMzODUyMWYwOWJlMDg0MTI1MTdkZWVlZWRmN2JjMw==
5
5
  data.tar.gz: !binary |-
6
- YzQ3Mzk4YzVhMTMwYTVmZjI2NzExYTk1YWRmZWRkODA4NDhkZjg5OA==
6
+ MmQ1ZDgwZjcxNWEyZjIzYTNmOTI0NmYwMzljYWUzMDY2MWQ4Yjc5MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDQwYTkwMzI2MThjYzEzMjIwODcwZDNjMmVjZTNmNDUzNjFiNTVjMmE3NDBk
10
- NzQ4N2Q0MGZjMDcxYzE0NjBhNzZjYTE4NTM5NzdiOTc3MTgyZjJiMTZmN2Y2
11
- NmUyZTBkYmY4MjRkNDc1ZThjZDIzNmUxNjVmOWUzMjg1MDUyZmI=
9
+ YzdjNzVlYmM1Zjc3YTEyY2NmM2IzNDMyYjJjMDk0ZmE4NjRmMWQ0NGJmMDdi
10
+ MjlkYzFkNzU4ZDhkZjQwMzNjNjg3N2MxYTNkYzRkZmExOWY5MTgxMTA0NWU5
11
+ YWRmZjlkMzg3YWIzNDYxMDJlMjA3OWFjMWJiODExNDIyOWJkNTM=
12
12
  data.tar.gz: !binary |-
13
- YzI4M2ZlOWZhM2FlM2QzNWIzNmM0YTI2MDZiMDllZDUzNGFmOTEwYjQ4MGQ2
14
- NmU1NTg2MGQwNGI1MDYzNDQ5Y2I4OGYxOWU0NTkzZjNiNTAyNjMxNGMyNzlj
15
- MzYxN2VjMTU1MTQ1NjQxZGFhYTU1ZWRkYjczNDBkYThhMWU5MTM=
13
+ YzcxNmE2ZmUyMjE2ZWRmOGI5MjNmNjUyMzljZmNmZGZmMjlmNjI5NmQ2YThl
14
+ MjIzMmQ0YzY1YjY3Y2M2ZDU5YzdjYTM1N2M3NDJmOTI5NGYzMGIxZDQ0MTQy
15
+ MzA5ZDgyNzg3MGU3NjYxNjZmNjAzMjY2OTYzODViMDMxMGU1OGY=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -10,15 +10,19 @@ end # Proc
10
10
  #puts method(:hello_this).source
11
11
  #puts test.source
12
12
 
13
- def hello sym,sym2= "#{sym}", options={},*params,&block # the params
13
+ class HelloWorld
14
14
 
15
- [1,2,3].each do |do_|
15
+ def self.hello sym,sym2= "#{sym}", options={},*params,&block # the params
16
16
 
17
- puts do_ # comment
17
+ [1,2,3].each do |do_|
18
18
 
19
- end
19
+ puts do_ # comment
20
+
21
+ end
20
22
 
21
- puts "some code" # some comment
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
@@ -37,9 +37,7 @@ module Sourcerer
37
37
 
38
38
  def convert_from_method!
39
39
 
40
- #self.sub!
41
- the_params= self.scan(/ *def *[\w]*[\( ] *(.*)/)[0][0]
42
- puts the_params.inspect
40
+ the_params= self.scan(/ *def *[\w\.]*[\( ] *(.*)/)[0][0]
43
41
 
44
42
  self.sub!(
45
43
  self.split("\n")[0],
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.1
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-26 00:00:00.000000000 Z
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