buby 1.5.1-java → 1.5.2-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 5
4
- :patch: 1
4
+ :patch: 2
5
5
  :build:
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "buby"
8
- s.version = "1.5.1"
8
+ s.version = "1.5.2"
9
9
  s.platform = "java"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Eric Monti, tduehr"]
13
- s.date = "2013-04-25"
13
+ s.date = "2013-04-29"
14
14
  s.description = "Buby is a mashup of JRuby with the popular commercial web security testing tool Burp Suite from PortSwigger. Burp is driven from and tied to JRuby with a Java extension using the BurpExtender API. This extension aims to add Ruby scriptability to Burp Suite with an interface comparable to the Burp's pure Java extension interface."
15
15
  s.email = "td@matasano.com"
16
16
  s.executables = ["buby"]
Binary file
@@ -22,26 +22,6 @@ class Buby
22
22
  # Internal reference to ruby handler class (usually {Buby})
23
23
  @@handler = nil
24
24
 
25
- # Returns the internal Ruby handler reference.
26
- #
27
- # The handler is the ruby class or module used for proxying BurpExtender
28
- # events into a ruby runtime. Usually, this is Buby or a subclass.
29
- #
30
- def self.handler
31
- @@handler
32
- end
33
-
34
- # Sets an internal reference to the ruby handler class or module to use for
35
- # proxied BurpExtender events into a ruby runtime.
36
- #
37
- # Generally, this should probably be called in {#registerExtenderCallbacks}.
38
- # However, it is also possible to set this afterwards and even swap in new
39
- # objects during runtime.
40
- #
41
- def self.handler=(hndlr)
42
- @@handler = hndlr
43
- end
44
-
45
25
  def handler
46
26
  @@handler
47
27
  end
@@ -152,5 +132,31 @@ class Buby
152
132
  def scopeChanged
153
133
  @@handler.scope_changed if @@handler.respond_to? :scope_changed
154
134
  end
135
+
136
+ def self.included klass
137
+ klass.extend ExtenderMethods
138
+ end
139
+
140
+ module ExtenderMethods
141
+ # Returns the internal Ruby handler reference.
142
+ #
143
+ # The handler is the ruby class or module used for proxying BurpExtender
144
+ # events into a ruby runtime. Usually, this is Buby or a subclass.
145
+ #
146
+ def handler
147
+ @@handler
148
+ end
149
+
150
+ # Sets an internal reference to the ruby handler class or module to use for
151
+ # proxied BurpExtender events into a ruby runtime.
152
+ #
153
+ # Generally, this should probably be called in {#registerExtenderCallbacks}.
154
+ # However, it is also possible to set this afterwards and even swap in new
155
+ # objects during runtime.
156
+ #
157
+ def handler=(hndlr)
158
+ @@handler = hndlr
159
+ end
160
+ end
155
161
  end
156
162
  end
@@ -1,9 +1,9 @@
1
1
  class Buby
2
2
  module Version
3
- STRING = "1.5.1"
3
+ STRING = "1.5.2"
4
4
  MAJOR = 1
5
5
  MINOR = 5
6
- PATCH = 1
6
+ PATCH = 2
7
7
  BUILD = nil
8
8
  end
9
9
  end
Binary file
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: buby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.5.1
5
+ version: 1.5.2
6
6
  platform: java
7
7
  authors:
8
8
  - Eric Monti, tduehr
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-25 00:00:00.000000000 Z
12
+ date: 2013-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler