dispatch-rider 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmQxNzNiMDU5MDE0Mzg2MDBkZjBiNDYxMmU2ODczZjEwYzk2MjE0Mw==
5
- data.tar.gz: !binary |-
6
- NTUwNzY1NzJlM2I0ODMwYWVjMDdjNmJjMzNmNTFhNTk3MmFmZmU3MA==
2
+ SHA1:
3
+ metadata.gz: 794e69e1aeb873f71eea40527cb830b2dc4d9fd6
4
+ data.tar.gz: 7afbde2ebdfedabaf1092118f8dd46cd44cd1352
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDY1OWI3YmZlMGQ4YjM2MzNlZTg4NTJkN2RhYWI3ODVkYzZmZDFmZTgyOWE5
10
- NzQ3NjFmMmM0NjA0NjVmMWZlOWFjNTAwODdjOTlmZTEyNmNkN2YyYTk1MTNh
11
- M2NmNTBhMmEzYjViM2U3YTg2MmNhMGUyZjNkYjg3NzVlODZmN2I=
12
- data.tar.gz: !binary |-
13
- NDg3YTNiNjIzMjBmNzkxNDk2ZTIyYjMzMjZlMTZkNjgzMjUzN2E3YWM4MGM1
14
- MjZlN2Y5OGM1YjVjMzM5NDlkMDIzZDMxYzljOTQ2NzgzNjczNzMxMGRiMjE1
15
- MzBjZjU4YmZkMDExN2NjZTVjNzk0MDc1MmU5YWFkMjQ5YzViNDA=
6
+ metadata.gz: 5682aa63deda18be4606c298eb8cd357b57791ab7c5f47b0c24012e567c4008e3f6de625d468dfe795b280bf7c9b145d970570f56f383dc5e621ae1b9e1556b9
7
+ data.tar.gz: 6eb9c0c45e3d20a352f5f2e2401bdd3ec12c9694cd69f3197f955da029706ee98d73b9be235f2635d939d3432c4044ae5bf1f2a95a660dcb8e4d1ae76eae6269
@@ -7,11 +7,16 @@ module DispatchRider
7
7
 
8
8
  def assign_storage(attrs)
9
9
  begin
10
- AWS::SQS.new(:logger => nil).queues.named(attrs.fetch(:name))
10
+ sqs = AWS::SQS.new(:logger => nil)
11
+ if attrs[:name]
12
+ sqs.queues.named(attrs[:name])
13
+ elsif attrs[:url]
14
+ sqs.queues[attrs[:url]]
15
+ else
16
+ raise RecordInvalid.new(self, ["Either name or url have to be specified"])
17
+ end
11
18
  rescue NameError
12
19
  raise AdapterNotFoundError.new(self.class.name, 'aws-sdk')
13
- rescue IndexError
14
- raise RecordInvalid.new(self, ["Name can not be blank"])
15
20
  end
16
21
  end
17
22
 
@@ -1,4 +1,4 @@
1
1
  # This file specifies the current version of the gem.
2
2
  module DispatchRider
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
metadata CHANGED
@@ -1,69 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dispatch-rider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suman Mukherjee
8
+ - Dane Natoli
9
+ - Piotr Banasik
10
+ - Ronald Maravilla
8
11
  autorequire:
9
12
  bindir: bin
10
13
  cert_chain: []
11
- date: 2013-11-20 00:00:00.000000000 Z
14
+ date: 2013-11-22 00:00:00.000000000 Z
12
15
  dependencies:
13
16
  - !ruby/object:Gem::Dependency
14
17
  name: activesupport
15
18
  requirement: !ruby/object:Gem::Requirement
16
19
  requirements:
17
- - - ! '>='
20
+ - - '>='
18
21
  - !ruby/object:Gem::Version
19
22
  version: '0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ! '>='
27
+ - - '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: activemodel
29
32
  requirement: !ruby/object:Gem::Requirement
30
33
  requirements:
31
- - - ! '>='
34
+ - - '>='
32
35
  - !ruby/object:Gem::Version
33
36
  version: '0'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - ! '>='
41
+ - - '>='
39
42
  - !ruby/object:Gem::Version
40
43
  version: '0'
41
44
  - !ruby/object:Gem::Dependency
42
45
  name: daemons
43
46
  requirement: !ruby/object:Gem::Requirement
44
47
  requirements:
45
- - - ! '>='
48
+ - - '>='
46
49
  - !ruby/object:Gem::Version
47
50
  version: '0'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - ! '>='
55
+ - - '>='
53
56
  - !ruby/object:Gem::Version
54
57
  version: '0'
55
58
  - !ruby/object:Gem::Dependency
56
59
  name: bundler
57
60
  requirement: !ruby/object:Gem::Requirement
58
61
  requirements:
59
- - - ! '>='
62
+ - - '>='
60
63
  - !ruby/object:Gem::Version
61
64
  version: '0'
62
65
  type: :development
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - ! '>='
69
+ - - '>='
67
70
  - !ruby/object:Gem::Version
68
71
  version: '0'
69
72
  - !ruby/object:Gem::Dependency
@@ -72,76 +75,77 @@ dependencies:
72
75
  requirements:
73
76
  - - ~>
74
77
  - !ruby/object:Gem::Version
75
- version: !binary |-
76
- MS44LjQ=
78
+ version: 1.8.4
77
79
  type: :development
78
80
  prerelease: false
79
81
  version_requirements: !ruby/object:Gem::Requirement
80
82
  requirements:
81
83
  - - ~>
82
84
  - !ruby/object:Gem::Version
83
- version: !binary |-
84
- MS44LjQ=
85
+ version: 1.8.4
85
86
  - !ruby/object:Gem::Dependency
86
87
  name: rake
87
88
  requirement: !ruby/object:Gem::Requirement
88
89
  requirements:
89
- - - ! '>='
90
+ - - '>='
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  type: :development
93
94
  prerelease: false
94
95
  version_requirements: !ruby/object:Gem::Requirement
95
96
  requirements:
96
- - - ! '>='
97
+ - - '>='
97
98
  - !ruby/object:Gem::Version
98
99
  version: '0'
99
100
  - !ruby/object:Gem::Dependency
100
101
  name: travis-lint
101
102
  requirement: !ruby/object:Gem::Requirement
102
103
  requirements:
103
- - - ! '>='
104
+ - - '>='
104
105
  - !ruby/object:Gem::Version
105
106
  version: '0'
106
107
  type: :development
107
108
  prerelease: false
108
109
  version_requirements: !ruby/object:Gem::Requirement
109
110
  requirements:
110
- - - ! '>='
111
+ - - '>='
111
112
  - !ruby/object:Gem::Version
112
113
  version: '0'
113
114
  - !ruby/object:Gem::Dependency
114
115
  name: rspec
115
116
  requirement: !ruby/object:Gem::Requirement
116
117
  requirements:
117
- - - ! '>='
118
+ - - '>='
118
119
  - !ruby/object:Gem::Version
119
120
  version: '0'
120
121
  type: :development
121
122
  prerelease: false
122
123
  version_requirements: !ruby/object:Gem::Requirement
123
124
  requirements:
124
- - - ! '>='
125
+ - - '>='
125
126
  - !ruby/object:Gem::Version
126
127
  version: '0'
127
128
  - !ruby/object:Gem::Dependency
128
129
  name: debugger
129
130
  requirement: !ruby/object:Gem::Requirement
130
131
  requirements:
131
- - - ! '>='
132
+ - - '>='
132
133
  - !ruby/object:Gem::Version
133
134
  version: '0'
134
135
  type: :development
135
136
  prerelease: false
136
137
  version_requirements: !ruby/object:Gem::Requirement
137
138
  requirements:
138
- - - ! '>='
139
+ - - '>='
139
140
  - !ruby/object:Gem::Version
140
141
  version: '0'
141
142
  description: Messaging system that is customizable based on which queueing system
142
143
  we are using.
143
144
  email:
144
- - sumanmukherjee03@gmail.com
145
+ - suman@payrollhero.com
146
+ - dnatoli@payrollhero.com
147
+ - piotr@payrollhero.com
148
+ - rmaravilla@payrollhero.com
145
149
  executables: []
146
150
  extensions: []
147
151
  extra_rdoc_files:
@@ -197,7 +201,7 @@ files:
197
201
  - lib/generators/dispatch_rider/install/install_generator.rb
198
202
  - LICENSE.txt
199
203
  - README.md
200
- homepage: ''
204
+ homepage: https://github.com/payrollhero/dispatch-rider
201
205
  licenses:
202
206
  - MIT
203
207
  metadata: {}
@@ -207,17 +211,17 @@ require_paths:
207
211
  - lib
208
212
  required_ruby_version: !ruby/object:Gem::Requirement
209
213
  requirements:
210
- - - ! '>='
214
+ - - '>='
211
215
  - !ruby/object:Gem::Version
212
216
  version: '0'
213
217
  required_rubygems_version: !ruby/object:Gem::Requirement
214
218
  requirements:
215
- - - ! '>='
219
+ - - '>='
216
220
  - !ruby/object:Gem::Version
217
221
  version: '0'
218
222
  requirements: []
219
223
  rubyforge_project:
220
- rubygems_version: 2.1.10
224
+ rubygems_version: 2.1.11
221
225
  signing_key:
222
226
  specification_version: 4
223
227
  summary: Messaging system based on the reactor patter. You can publish messages to