amqp-spec 0.1.8 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/HISTORY +8 -0
  2. data/VERSION +1 -1
  3. data/lib/amqp-spec/rspec.rb +5 -11
  4. metadata +3 -3
data/HISTORY CHANGED
@@ -41,3 +41,11 @@
41
41
  == 0.1.8 / 2010-10-15
42
42
 
43
43
  * Add AMQP as a dependency
44
+
45
+ == 0.1.9 / 2010-10-15
46
+
47
+ * SpecHelper class methods refactored
48
+
49
+ == 0.1.10 / 2010-10-15
50
+
51
+ * Cleanup
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.10
@@ -62,21 +62,15 @@ module AMQP
62
62
  @@_em_default_timeout = nil
63
63
 
64
64
  def self.default_spec_timeout(spec_timeout=nil)
65
- if spec_timeout
66
- @@_em_default_timeout = spec_timeout
67
- else
68
- @@_em_default_timeout
69
- end
65
+ @@_em_default_timeout = spec_timeout if spec_timeout
66
+ @@_em_default_timeout
70
67
  end
71
68
 
72
69
  alias default_timeout default_spec_timeout
73
70
 
74
71
  def self.default_options(opts=nil)
75
- if opts
76
- @@_em_default_options = opts
77
- else
78
- @@_em_default_options
79
- end
72
+ @@_em_default_options = opts if opts
73
+ @@_em_default_options
80
74
  end
81
75
  end
82
76
  end
@@ -92,7 +86,7 @@ module AMQP
92
86
  #
93
87
  # In addition to EM and AMQP options, :spec_timeout option (in seconds) is used to force spec to timeout
94
88
  # if something goes wrong and EM/AMQP loop hangs for some reason. SpecTimeoutExceededError is raised.
95
-
89
+ #
96
90
  def amqp opts={}, &block
97
91
  opts = @@_em_default_options.merge opts
98
92
  begin
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp-spec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arvicco