propono 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 332f5ce412b16d17e9bf30d7c2615386817e1377
4
- data.tar.gz: 983a95b42d7666f55880715e23546dcc2bf7d18f
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ODkyOTdiMzJiMzg3ZGVhYmVhYTk5NTA5Y2NjN2ZlNDA5ZTE3MDVjMQ==
5
+ data.tar.gz: !binary |-
6
+ NGU3MGE4NzU1MGYzOWY5MDIxNjZjY2JlZjk0NjNjNGE1OWIyNjliZA==
5
7
  SHA512:
6
- metadata.gz: ae13b56849678876c35881f3d89c1bc0883a0d52820cc1a618fe9d009fea5ff0e4030849aaf84ba0a1fe64cccbd7642bf5a81fc8f67e3f307dedf109a0f5ce27
7
- data.tar.gz: d7cc08ad314c40b8b37c0e7ccf3f34ba4d213f75c08c55fa20881eb21462e65e35f574edfe9cbfe3d23515407aa04e2129605849710681ddfa96b2e44c698863
8
+ metadata.gz: !binary |-
9
+ YzA4OTQzZWU2YzgzOTI1MjA3MGUxYzQwNGI5MzAyOGQ4NWY3OGFkODgxMjQ3
10
+ YjQxNGI4YmU5NWRiYTE4Y2YwZmEzYTY4NTQ5ZmE4Zjg2ZjM5ZDdmZmVkYTQx
11
+ OGZiODI4OGQxMWE0NTE1OGNlOWRmMmRkNGYzZWVkZDZmNWQ5MzM=
12
+ data.tar.gz: !binary |-
13
+ NTM0OGVkZmIzMmI3MDBlMGE4ZGIxMzJhMmE2NmU5Y2YzMzcxNGQ1MDE5Y2Ni
14
+ OTQ4MDMwOTU3Zjc5NGIxOTBkZTJlZGYwY2VjOGVmMTllZTA0MzFiZmVlNDBj
15
+ OTVmYzhhYWI0NDQ5OWVhN2MxNjRhYjg0NjQxYjA2MjBmODc0YWY=
@@ -13,8 +13,8 @@ module Propono
13
13
  raise PublisherError.new("Topic is nil") if topic_id.nil?
14
14
  raise PublisherError.new("Message is nil") if message.nil?
15
15
 
16
- topic_arn = TopicCreator.find_or_create(topic_id)
17
- sns.publish(topic_arn, message)
16
+ topic = TopicCreator.find_or_create(topic_id)
17
+ sns.publish(topic.arn, message)
18
18
  end
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Propono
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
data/lib/propono.rb CHANGED
@@ -35,4 +35,7 @@ module Propono
35
35
  QueueListener.listen(*args, &block)
36
36
  end
37
37
 
38
+ def self.listen_to_sqs(*args, &block)
39
+ SqsListener.listen(*args, &block)
40
+ end
38
41
  end
data/propono.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "fog"
21
+ spec.add_dependency "fog", "~> 1.15.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
@@ -0,0 +1,17 @@
1
+ require File.expand_path('../test_helper', __FILE__)
2
+
3
+ module Propono
4
+ class ProponoTest < Minitest::Test
5
+
6
+ def setup
7
+ super
8
+ @var1 = "Foobar"
9
+ @var2 = 123
10
+ end
11
+
12
+ def test_publish_calls_publisher_public
13
+ Publisher.expects(:publish).with(@var1, @var2)
14
+ Propono.publish(@var1, @var2)
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MalcyL
@@ -15,16 +15,16 @@ dependencies:
15
15
  name: fog
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: 1.15.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: 1.15.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -43,28 +43,28 @@ dependencies:
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ! '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ! '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: mocha
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
@@ -114,6 +114,7 @@ files:
114
114
  - propono.gemspec
115
115
  - test/configuration_test.rb
116
116
  - test/post_subscription_test.rb
117
+ - test/propono_test.rb
117
118
  - test/publisher_test.rb
118
119
  - test/queue_creator_test.rb
119
120
  - test/queue_listener_test.rb
@@ -136,12 +137,12 @@ require_paths:
136
137
  - lib
137
138
  required_ruby_version: !ruby/object:Gem::Requirement
138
139
  requirements:
139
- - - '>='
140
+ - - ! '>='
140
141
  - !ruby/object:Gem::Version
141
142
  version: '0'
142
143
  required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  requirements:
144
- - - '>='
145
+ - - ! '>='
145
146
  - !ruby/object:Gem::Version
146
147
  version: '0'
147
148
  requirements: []
@@ -153,6 +154,7 @@ summary: General purpose pub/sub library built on top of AWS SNS and SQS
153
154
  test_files:
154
155
  - test/configuration_test.rb
155
156
  - test/post_subscription_test.rb
157
+ - test/propono_test.rb
156
158
  - test/publisher_test.rb
157
159
  - test/queue_creator_test.rb
158
160
  - test/queue_listener_test.rb