rifle 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,13 +5,16 @@ require_relative 'settings'
5
5
  # This simple resque job pings the search server with a payload.
6
6
 
7
7
  class RifleResque
8
- @queue = Rifle.settings.resque_queue
9
8
 
10
9
  def initialize(urn, payload)
11
10
  @urn = urn
12
11
  @payload = payload
13
12
  end
14
13
 
14
+ def self.queue
15
+ Rifle.settings.resque_queue
16
+ end
17
+
15
18
  def store
16
19
  RestClient.post("#{Rifle.settings.server}/store/#{@urn}", @payload)
17
20
  end
@@ -1,3 +1,3 @@
1
1
  module Rifle
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rifle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: