arachni-rpc 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,9 @@
1
1
  # ChangeLog
2
2
 
3
- ## Version 0.1.2 _(Under development)_
3
+ ## Version 0.1.3
4
+ - Removed ```Arachni::RPC::Request#do_not_defer``` and ```Arachni::RPC::Request#defer?```.
5
+ - All RPC exceptions now inherit from ```RuntimeError``` instead of ```Exception```.
4
6
 
5
- - Code cleanup
7
+ ## Version 0.1.2
8
+ - Code cleanup.
6
9
  - Arachni::RPC::Request#do_not_defer! => Arachni::RPC::Request#do_not_defer
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ begin
17
17
  rescue
18
18
  end
19
19
 
20
- task default: [ :spec ]
20
+ task default: [ :build, :spec ]
21
21
 
22
22
  desc "Generate docs"
23
23
  task :docs do
@@ -48,7 +48,9 @@ task :install => [ :build ] do
48
48
  sh "gem install arachni-rpc-#{Arachni::RPC::VERSION}.gem"
49
49
  end
50
50
 
51
- desc "Push a new version to Gemcutter"
51
+ desc "Push a new version to Rubygems"
52
52
  task :publish => [ :build ] do
53
+ sh "git tag -a v#{Arachni::RPC::VERSION} -m 'Version #{Arachni::RPC::VERSION}'"
53
54
  sh "gem push arachni-rpc-#{Arachni::RPC::VERSION}.gem"
54
55
  end
56
+ task :release => [ :publish ]
@@ -7,7 +7,6 @@
7
7
  =end
8
8
 
9
9
  require 'set'
10
- require 'yaml'
11
10
 
12
11
  require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'version' )
13
12
  require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'exceptions' )
@@ -74,7 +74,7 @@ module Exceptions
74
74
  e
75
75
  end
76
76
 
77
- class Base < ::Exception
77
+ class Base < ::RuntimeError
78
78
  #
79
79
  # @return [Bool] true
80
80
  #
@@ -17,7 +17,7 @@ module RPC
17
17
  #
18
18
  # You start like:
19
19
  #
20
- # server = Arachni::RPC::EM::Client.new( :host => 'localhost', :port => 7331 )
20
+ # server = Arachni::RPC::EM::Client.new( host: 'localhost', port: 7331 )
21
21
  # bench = Arachni::RPC::EM::Client::Mapper.new( server, 'bench' )
22
22
  #
23
23
  # And it allows you to do this:
@@ -38,7 +38,7 @@ module RPC
38
38
  # end
39
39
  # end
40
40
  #
41
- # server = Arachni::RPC::EM::Server.new( :host => 'localhost', :port => 7331 )
41
+ # server = Arachni::RPC::EM::Server.new( host: 'localhost', port: 7331 )
42
42
  # server.add_handler( 'bench', Bench.new )
43
43
  #
44
44
  # @author: Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
@@ -67,18 +67,10 @@ class Request < Message
67
67
  super
68
68
  end
69
69
 
70
- def do_not_defer
71
- @defer = false
72
- end
73
-
74
- def defer?
75
- @defer.nil? ? true : @defer
76
- end
77
-
78
70
  private
79
71
 
80
72
  def transmit?( attr )
81
- ![ :@defer, :@callback ].include?( attr )
73
+ ![ :@callback ].include?( attr )
82
74
  end
83
75
 
84
76
  end
@@ -8,6 +8,6 @@
8
8
 
9
9
  module Arachni
10
10
  module RPC
11
- VERSION = '0.1.2'
11
+ VERSION = '0.1.3'
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arachni-rpc
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.2
4
+ version: 0.1.3
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tasos Laskos
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-18 00:00:00.000000000 Z
12
+ date: 2012-11-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: ! " Arachni-RPC is a simple and lightweight Remote Procedure Call\
15
- \ protocol\n used to provide the basis for Arachni's Grid infrastructure.\n"
14
+ description: ! " Arachni-RPC is a simple and lightweight Remote Procedure Call
15
+ protocol\n used to provide the basis for Arachni's Grid infrastructure.\n"
16
16
  email: tasos.laskos@gmail.com
17
17
  executables: []
18
18
  extensions: []
@@ -25,45 +25,36 @@ files:
25
25
  - Rakefile
26
26
  - LICENSE.md
27
27
  - CHANGELOG.md
28
- - !binary |-
29
- bGliL2FyYWNobmkvcnBjLnJi
30
- - !binary |-
31
- bGliL2FyYWNobmkvcnBjL3JlcXVlc3QucmI=
32
- - !binary |-
33
- bGliL2FyYWNobmkvcnBjL3JlbW90ZV9vYmplY3RfbWFwcGVyLnJi
34
- - !binary |-
35
- bGliL2FyYWNobmkvcnBjL3ZlcnNpb24ucmI=
36
- - !binary |-
37
- bGliL2FyYWNobmkvcnBjL2V4Y2VwdGlvbnMucmI=
38
- - !binary |-
39
- bGliL2FyYWNobmkvcnBjL3Jlc3BvbnNlLnJi
40
- - !binary |-
41
- bGliL2FyYWNobmkvcnBjL21lc3NhZ2UucmI=
28
+ - lib/arachni/rpc.rb
29
+ - lib/arachni/rpc/message.rb
30
+ - lib/arachni/rpc/response.rb
31
+ - lib/arachni/rpc/request.rb
32
+ - lib/arachni/rpc/version.rb
33
+ - lib/arachni/rpc/remote_object_mapper.rb
34
+ - lib/arachni/rpc/exceptions.rb
42
35
  homepage: https://github.com/Arachni/arachni-rpc
43
36
  licenses: []
44
- post_install_message:
37
+ post_install_message:
45
38
  rdoc_options:
46
39
  - --charset=UTF-8
47
40
  require_paths:
48
41
  - lib
49
42
  required_ruby_version: !ruby/object:Gem::Requirement
43
+ none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
53
- version: !binary |-
54
- MA==
55
- none: false
47
+ version: '0'
56
48
  required_rubygems_version: !ruby/object:Gem::Requirement
49
+ none: false
57
50
  requirements:
58
51
  - - ! '>='
59
52
  - !ruby/object:Gem::Version
60
- version: !binary |-
61
- MA==
62
- none: false
53
+ version: '0'
63
54
  requirements: []
64
- rubyforge_project:
55
+ rubyforge_project:
65
56
  rubygems_version: 1.8.24
66
- signing_key:
57
+ signing_key:
67
58
  specification_version: 3
68
59
  summary: The RPC protocol specification of the Arachni WebAppSec scanner Grid.
69
60
  test_files: []