qusion 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,11 +1,5 @@
1
1
  source "http://rubygems.org"
2
+ source "http://gems.github.com"
2
3
 
3
- gem "rake", ">= 0.8.7"
4
- gem "bundler", "~> 1.0.0"
5
- gem "amqp", "0.7.0", :require => 'mq'
4
+ gemspec
6
5
 
7
- group :development do
8
- gem "jeweler", "~> 1.5.1" # adds Bundler support for gemspec generation
9
- gem "cucumber", ">=0.9.4"
10
- gem "rspec", "~>1.3.0"
11
- end
@@ -1,26 +1,34 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ qusion (0.1.7)
5
+ amqp (= 0.7.1)
6
+ bundler (~> 1.0.0)
7
+ rake (>= 0.8.7)
8
+
1
9
  GEM
2
10
  remote: http://rubygems.org/
11
+ remote: http://gems.github.com/
3
12
  specs:
4
- amqp (0.7.0)
13
+ amqp (0.7.1)
5
14
  eventmachine (>= 0.12.4)
6
15
  builder (3.0.0)
7
- cucumber (0.10.0)
16
+ cucumber (0.10.2)
8
17
  builder (>= 2.1.2)
9
- diff-lcs (~> 1.1.2)
10
- gherkin (~> 2.3.2)
11
- json (~> 1.4.6)
12
- term-ansicolor (~> 1.0.5)
18
+ diff-lcs (>= 1.1.2)
19
+ gherkin (>= 2.3.5)
20
+ json (>= 1.4.6)
21
+ term-ansicolor (>= 1.0.5)
13
22
  diff-lcs (1.1.2)
14
23
  eventmachine (0.12.10)
15
- gherkin (2.3.2)
16
- json (~> 1.4.6)
17
- term-ansicolor (~> 1.0.5)
24
+ gherkin (2.3.5)
25
+ json (>= 1.4.6)
18
26
  git (1.2.5)
19
- jeweler (1.5.1)
27
+ jeweler (1.5.2)
20
28
  bundler (~> 1.0.0)
21
29
  git (>= 1.2.5)
22
30
  rake
23
- json (1.4.6)
31
+ json (1.5.1)
24
32
  rake (0.8.7)
25
33
  rspec (1.3.1)
26
34
  term-ansicolor (1.0.5)
@@ -29,9 +37,7 @@ PLATFORMS
29
37
  ruby
30
38
 
31
39
  DEPENDENCIES
32
- amqp (= 0.7.0)
33
- bundler (~> 1.0.0)
34
40
  cucumber (>= 0.9.4)
35
41
  jeweler (~> 1.5.1)
36
- rake (>= 0.8.7)
42
+ qusion!
37
43
  rspec (~> 1.3.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  require "eventmachine"
3
- require "mq"
3
+ require "amqp"
4
4
 
5
5
  require "qusion/channel_pool"
6
6
  require "qusion/amqp_config"
@@ -75,4 +75,4 @@ module Qusion
75
75
  def self.ready_to_dispatch?
76
76
  EM.reactor_running? && AMQP.conn && AMQP.conn.connected?
77
77
  end
78
- end
78
+ end
@@ -49,7 +49,7 @@ module Qusion
49
49
  end
50
50
 
51
51
  def pool
52
- @pool ||= Array.new(pool_size) { MQ.new }
52
+ @pool ||= Array.new(pool_size) { AMQP::Channel.new }
53
53
  end
54
54
 
55
55
  def reset
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{qusion}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan DeLeo", "Christopher R. Murphy"]
12
- s.date = %q{2011-02-04}
12
+ s.date = %q{2011-03-25}
13
13
  s.description = %q{Makes AMQP work with Ruby on Rails with no fuss.}
14
14
  s.email = %q{cmurphy@customink.com}
15
15
  s.extra_rdoc_files = [
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  ]
40
40
  s.homepage = %q{http://github.com/customink/qusion}
41
41
  s.require_paths = ["lib"]
42
- s.rubygems_version = %q{1.3.7}
42
+ s.rubygems_version = %q{1.5.0}
43
43
  s.summary = %q{Makes AMQP work with Ruby on Rails with no fuss.}
44
44
  s.test_files = [
45
45
  "spec/spec_helper.rb",
@@ -50,28 +50,21 @@ Gem::Specification.new do |s|
50
50
  ]
51
51
 
52
52
  if s.respond_to? :specification_version then
53
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
54
53
  s.specification_version = 3
55
54
 
56
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
- s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
58
- s.add_runtime_dependency(%q<bundler>, ["~> 1.0.0"])
59
- s.add_runtime_dependency(%q<amqp>, ["= 0.7.0"])
56
+ s.add_runtime_dependency(%q<qusion>, [">= 0"])
60
57
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
61
58
  s.add_development_dependency(%q<cucumber>, [">= 0.9.4"])
62
59
  s.add_development_dependency(%q<rspec>, ["~> 1.3.0"])
63
60
  else
64
- s.add_dependency(%q<rake>, [">= 0.8.7"])
65
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
66
- s.add_dependency(%q<amqp>, ["= 0.7.0"])
61
+ s.add_dependency(%q<qusion>, [">= 0"])
67
62
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
68
63
  s.add_dependency(%q<cucumber>, [">= 0.9.4"])
69
64
  s.add_dependency(%q<rspec>, ["~> 1.3.0"])
70
65
  end
71
66
  else
72
- s.add_dependency(%q<rake>, [">= 0.8.7"])
73
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
74
- s.add_dependency(%q<amqp>, ["= 0.7.0"])
67
+ s.add_dependency(%q<qusion>, [">= 0"])
75
68
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
76
69
  s.add_dependency(%q<cucumber>, [">= 0.9.4"])
77
70
  s.add_dependency(%q<rspec>, ["~> 1.3.0"])
@@ -25,12 +25,12 @@ describe ChannelPool do
25
25
 
26
26
  it "should create a pool of AMQP channels" do
27
27
  ChannelPool.pool_size = 3
28
- ::MQ.should_receive(:new).exactly(3).times
28
+ ::AMQP::Channel.should_receive(:new).exactly(3).times
29
29
  @channel_pool.pool
30
30
  end
31
31
 
32
32
  it "should default to a pool size of 5" do
33
- ::MQ.should_receive(:new).exactly(5).times.and_return("swanky")
33
+ ::AMQP::Channel.should_receive(:new).exactly(5).times.and_return("swanky")
34
34
  @channel_pool.pool
35
35
  @channel_pool.instance_variable_get(:@pool).should == %w{ swanky swanky swanky swanky swanky}
36
36
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qusion
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 6
9
- version: 0.1.6
4
+ prerelease:
5
+ version: 0.1.7
10
6
  platform: ruby
11
7
  authors:
12
8
  - Dan DeLeo
@@ -15,99 +11,53 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2011-02-04 00:00:00 -05:00
14
+ date: 2011-03-25 00:00:00 -04:00
19
15
  default_executable:
20
16
  dependencies:
21
17
  - !ruby/object:Gem::Dependency
22
- name: rake
18
+ name: qusion
23
19
  requirement: &id001 !ruby/object:Gem::Requirement
24
20
  none: false
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 8
31
- - 7
32
- version: 0.8.7
24
+ version: "0"
33
25
  type: :runtime
34
26
  prerelease: false
35
27
  version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: bundler
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 0
46
- - 0
47
- version: 1.0.0
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: amqp
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - "="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 7
61
- - 0
62
- version: 0.7.0
63
- type: :runtime
64
- prerelease: false
65
- version_requirements: *id003
66
28
  - !ruby/object:Gem::Dependency
67
29
  name: jeweler
68
- requirement: &id004 !ruby/object:Gem::Requirement
30
+ requirement: &id002 !ruby/object:Gem::Requirement
69
31
  none: false
70
32
  requirements:
71
33
  - - ~>
72
34
  - !ruby/object:Gem::Version
73
- segments:
74
- - 1
75
- - 5
76
- - 1
77
35
  version: 1.5.1
78
36
  type: :development
79
37
  prerelease: false
80
- version_requirements: *id004
38
+ version_requirements: *id002
81
39
  - !ruby/object:Gem::Dependency
82
40
  name: cucumber
83
- requirement: &id005 !ruby/object:Gem::Requirement
41
+ requirement: &id003 !ruby/object:Gem::Requirement
84
42
  none: false
85
43
  requirements:
86
44
  - - ">="
87
45
  - !ruby/object:Gem::Version
88
- segments:
89
- - 0
90
- - 9
91
- - 4
92
46
  version: 0.9.4
93
47
  type: :development
94
48
  prerelease: false
95
- version_requirements: *id005
49
+ version_requirements: *id003
96
50
  - !ruby/object:Gem::Dependency
97
51
  name: rspec
98
- requirement: &id006 !ruby/object:Gem::Requirement
52
+ requirement: &id004 !ruby/object:Gem::Requirement
99
53
  none: false
100
54
  requirements:
101
55
  - - ~>
102
56
  - !ruby/object:Gem::Version
103
- segments:
104
- - 1
105
- - 3
106
- - 0
107
57
  version: 1.3.0
108
58
  type: :development
109
59
  prerelease: false
110
- version_requirements: *id006
60
+ version_requirements: *id004
111
61
  description: Makes AMQP work with Ruby on Rails with no fuss.
112
62
  email: cmurphy@customink.com
113
63
  executables: []
@@ -151,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
101
  requirements:
152
102
  - - ">="
153
103
  - !ruby/object:Gem::Version
154
- hash: -2172339912323946260
104
+ hash: 3007807995450840742
155
105
  segments:
156
106
  - 0
157
107
  version: "0"
@@ -160,13 +110,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
110
  requirements:
161
111
  - - ">="
162
112
  - !ruby/object:Gem::Version
163
- segments:
164
- - 0
165
113
  version: "0"
166
114
  requirements: []
167
115
 
168
116
  rubyforge_project:
169
- rubygems_version: 1.3.7
117
+ rubygems_version: 1.5.0
170
118
  signing_key:
171
119
  specification_version: 3
172
120
  summary: Makes AMQP work with Ruby on Rails with no fuss.