cmis_rabbit_queue 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,8 +7,8 @@ module CmisRabbitQueue
7
7
  attr_reader :reply_queue
8
8
  attr_accessor :response, :call_id
9
9
  attr_reader :lock, :condition
10
- def initialize(server_queue, url, port)
11
- conn = Bunny.new(:automatically_recover => false, :hostname => url, :port => port)
10
+ def initialize(server_queue, url, port, user, password)
11
+ conn = Bunny.new(:automatically_recover => false, :hostname => url, :port => port, :user => user, :password => password)
12
12
  conn.start
13
13
  ch = conn.create_channel
14
14
  @ch = ch
@@ -6,8 +6,8 @@ module CmisRabbitQueue
6
6
  attr_reader :connection
7
7
 
8
8
  # constructor
9
- def initialize(url, port, queue)
10
- @connection = Connection.new(queue,url, port)
9
+ def initialize(url, port, queue, user, password)
10
+ @connection = Connection.new(queue,url, port, user, password)
11
11
  end
12
12
 
13
13
 
@@ -22,6 +22,7 @@ module CmisRabbitQueue
22
22
  return response
23
23
  end
24
24
 
25
+ # This method is used to retrieve all the sub-folders or documents present in the given path
25
26
  def find_folders(folder)
26
27
  @connection.get_folders(folder)
27
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmis_rabbit_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-07 00:00:00.000000000 Z
12
+ date: 2014-10-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler