evalhook 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +4 -4
  2. data/lib/evalhook/tree_processor.rb +12 -1
  3. metadata +6 -6
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
+ require 'rdoc/task'
4
+ require 'rubygems/package_task'
3
5
  require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/gempackagetask'
6
6
 
7
7
  spec = Gem::Specification.new do |s|
8
8
  s.name = 'evalhook'
9
- s.version = '0.5.1'
9
+ s.version = '0.5.2'
10
10
  s.author = 'Dario Seminara'
11
11
  s.email = 'robertodarioseminara@gmail.com'
12
12
  s.platform = Gem::Platform::RUBY
@@ -38,7 +38,7 @@ Rake::RDocTask.new :rdoc do |rd|
38
38
  end
39
39
 
40
40
  desc 'Build Gem'
41
- Rake::GemPackageTask.new spec do |pkg|
41
+ Gem::PackageTask.new spec do |pkg|
42
42
  pkg.need_tar = true
43
43
  end
44
44
 
@@ -85,7 +85,18 @@ module EvalHook
85
85
  )
86
86
  end
87
87
 
88
- s(:call, firstcall, :call, process(tree[3]) || s(:arglist))
88
+ arglist = s(:arglist)
89
+ if tree[3]
90
+ if tree[3][0] == :arglist
91
+ arglist = tree[3]
92
+ else
93
+ tree[3..-1].each do |st|
94
+ arglist << st
95
+ end
96
+ end
97
+ end
98
+
99
+ s(:call, firstcall, :call, process(arglist) || s(:arglist))
89
100
  end
90
101
 
91
102
  def process_cdecl(tree)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evalhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000Z
12
+ date: 2013-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: partialruby
16
- requirement: &84634220 !ruby/object:Gem::Requirement
16
+ requirement: &71403420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *84634220
24
+ version_requirements: *71403420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby_parser
27
- requirement: &84633980 !ruby/object:Gem::Requirement
27
+ requirement: &71403020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.0.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *84633980
35
+ version_requirements: *71403020
36
36
  description:
37
37
  email: robertodarioseminara@gmail.com
38
38
  executables: []