philotic 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 839559e1f390f9d5630b32dc07f3ed01c36156c5
4
- data.tar.gz: 3e096414cf3ae1a59b30eeb9620a3832858dd44f
3
+ metadata.gz: df70b771262ad8d0ebef59e3f09dcd22ecc6ef9d
4
+ data.tar.gz: b788804402bc0963c091df0b153254dabe05081e
5
5
  SHA512:
6
- metadata.gz: fc124cc549906ae789b422d0fc65b6eb2575e0e349b420da051db9f6e387d534fa3450d36429871d41f6e88512e00e9563404b933f01dbc3818fd1688edeccc0
7
- data.tar.gz: 69108c3e0b3d30839f61ffdd2c8bf6bf32ef8878e6781605b73eba9c0fc359dd990d3caca074ad7a59400bb8af52b54e502075d1f51361d68af6300445a476e3
6
+ metadata.gz: 253dadb5be3316478a52198fb0167a1cc5d714072e7811e66bd71651f107a50e85f290d82d01a4ee558ee55fac28fda86af711ac92f9d5453e89363baf54c027
7
+ data.tar.gz: 462b239a98e5fe4f5fc4acfe73026659c3ee26baab2b1b5ed4994153dead92780d91097871e30dcb2d06e4ea3374ae6f75e30a7ab39eb95227b10d9b73e041bc
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
+ before_install: gem install bundler -v 1.10.6
2
3
  rvm:
3
4
  - 2.0.0
4
5
  - 2.1
@@ -114,7 +114,7 @@ module Philotic
114
114
  end
115
115
 
116
116
  def initialize_named_queue!(queue_name, config)
117
- raise 'Philotic.config.initialize_named_queues must be true to run Philotic.initialize_named_queue!' unless self.config.initialize_named_queues
117
+ raise RuntimeError.new 'Philotic.config.initialize_named_queues must be true to run Philotic.initialize_named_queue!' unless self.config.initialize_named_queues
118
118
 
119
119
  connect!
120
120
  queue_exists = connection.queue_exists? queue_name
@@ -1,3 +1,3 @@
1
1
  module Philotic
2
- VERSION = '1.0.3'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -16,17 +16,17 @@ Gem::Specification.new do |gem|
16
16
  gem.version = Philotic::VERSION
17
17
  gem.licenses = ['MIT']
18
18
 
19
- gem.add_development_dependency 'codeclimate-test-reporter'
20
- gem.add_development_dependency 'bundler', '>= 1.6'
21
- gem.add_development_dependency 'pry', '>= 0.10'
22
- gem.add_development_dependency 'rake', '>= 10.3'
23
- gem.add_development_dependency 'rspec', '>= 3.1'
24
- gem.add_development_dependency 'rspec-its', '>= 1.1'
25
- gem.add_development_dependency 'timecop', '>= 0.7'
26
- gem.add_development_dependency 'simplecov'
19
+ gem.add_development_dependency 'awesome_print', '~> 1.6'
20
+ gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
21
+ gem.add_development_dependency 'bundler', '~> 1.10'
22
+ gem.add_development_dependency 'pry', '~> 0.10'
23
+ gem.add_development_dependency 'rake', '~> 10.4'
24
+ gem.add_development_dependency 'rspec', '~> 3.3'
25
+ gem.add_development_dependency 'rspec-its', '~> 1.2'
26
+ gem.add_development_dependency 'timecop', '~> 0.8'
27
+ gem.add_development_dependency 'simplecov', '~> 0.10'
27
28
 
28
29
  gem.add_dependency 'activesupport', '>= 3.2'
29
- gem.add_dependency 'awesome_print', '>= 1.2'
30
- gem.add_dependency 'bunny', '>= 1.6'
30
+ gem.add_dependency 'bunny', '~> 2.2'
31
31
  gem.add_dependency 'json', '>= 1.8'
32
32
  end
@@ -105,7 +105,7 @@ describe Philotic::Connection do
105
105
  queue_name = test_queues.keys.first
106
106
  config = test_queues[queue_name]
107
107
  expect(subject).not_to receive(:connect!)
108
- expect { subject.initialize_named_queue! queue_name, config }.to raise_error
108
+ expect { subject.initialize_named_queue! queue_name, config }.to raise_error(RuntimeError)
109
109
 
110
110
  end
111
111
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: philotic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Keyes
@@ -10,118 +10,132 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: awesome_print
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: codeclimate-test-reporter
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ">="
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '0'
33
+ version: '0.4'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ">="
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '0'
40
+ version: '0.4'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ">="
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '1.6'
47
+ version: '1.10'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ">="
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '1.6'
54
+ version: '1.10'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: pry
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ">="
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0.10'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ">="
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0.10'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ">="
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '10.3'
75
+ version: '10.4'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ">="
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '10.3'
82
+ version: '10.4'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ">="
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '3.1'
89
+ version: '3.3'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ">="
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '3.1'
96
+ version: '3.3'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rspec-its
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - ">="
101
+ - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '1.1'
103
+ version: '1.2'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - ">="
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '1.1'
110
+ version: '1.2'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: timecop
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ">="
115
+ - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '0.7'
117
+ version: '0.8'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ">="
122
+ - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '0.7'
124
+ version: '0.8'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: simplecov
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0'
131
+ version: '0.10'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '0'
138
+ version: '0.10'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: activesupport
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -136,34 +150,20 @@ dependencies:
136
150
  - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '3.2'
139
- - !ruby/object:Gem::Dependency
140
- name: awesome_print
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '1.2'
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '1.2'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: bunny
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.6'
159
+ version: '2.2'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '1.6'
166
+ version: '2.2'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: json
169
169
  requirement: !ruby/object:Gem::Requirement