liquid-ext 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ class WeightedSelector
39
39
  end
40
40
 
41
41
  def pick_one
42
- pick_one_with_index[0]
42
+ pick_one_with_index[0] unless empty?
43
43
  end
44
44
 
45
45
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "liquid-ext"
5
- spec.version = "1.2.1"
5
+ spec.version = "1.2.2"
6
6
  spec.authors = ["LiquidM, Inc."]
7
7
  spec.email = ["opensource@liquidm.com"]
8
8
  spec.description = %q{Ruby core extensions and helper libraries}
@@ -25,6 +25,12 @@ describe WeightedSelector do
25
25
 
26
26
  describe '#pick_one' do
27
27
 
28
+ context do
29
+
30
+ its(:pick_one){ should == nil }
31
+
32
+ end
33
+
28
34
  context do
29
35
 
30
36
  before do
metadata CHANGED
@@ -1,113 +1,128 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - LiquidM, Inc.
8
- autorequire:
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-12-17 00:00:00.000000000 Z
12
+ date: 2013-12-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activesupport
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ none: false
15
22
  requirement: !ruby/object:Gem::Requirement
16
23
  requirements:
17
- - - ! '>='
24
+ - - '>='
18
25
  - !ruby/object:Gem::Version
19
26
  version: '0'
20
- type: :runtime
27
+ none: false
21
28
  prerelease: false
29
+ type: :runtime
30
+ - !ruby/object:Gem::Dependency
31
+ name: erubis
22
32
  version_requirements: !ruby/object:Gem::Requirement
23
33
  requirements:
24
- - - ! '>='
34
+ - - '>='
25
35
  - !ruby/object:Gem::Version
26
36
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: erubis
37
+ none: false
29
38
  requirement: !ruby/object:Gem::Requirement
30
39
  requirements:
31
- - - ! '>='
40
+ - - '>='
32
41
  - !ruby/object:Gem::Version
33
42
  version: '0'
34
- type: :runtime
43
+ none: false
35
44
  prerelease: false
45
+ type: :runtime
46
+ - !ruby/object:Gem::Dependency
47
+ name: ffi
36
48
  version_requirements: !ruby/object:Gem::Requirement
37
49
  requirements:
38
- - - ! '>='
50
+ - - '>='
39
51
  - !ruby/object:Gem::Version
40
52
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: ffi
53
+ none: false
43
54
  requirement: !ruby/object:Gem::Requirement
44
55
  requirements:
45
- - - ! '>='
56
+ - - '>='
46
57
  - !ruby/object:Gem::Version
47
58
  version: '0'
48
- type: :runtime
59
+ none: false
49
60
  prerelease: false
61
+ type: :runtime
62
+ - !ruby/object:Gem::Dependency
63
+ name: liquid-logging
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ! '>='
66
+ - - '>='
53
67
  - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: liquid-logging
68
+ version: 2.0.0
69
+ none: false
57
70
  requirement: !ruby/object:Gem::Requirement
58
71
  requirements:
59
- - - ! '>='
72
+ - - '>='
60
73
  - !ruby/object:Gem::Version
61
74
  version: 2.0.0
62
- type: :runtime
75
+ none: false
63
76
  prerelease: false
77
+ type: :runtime
78
+ - !ruby/object:Gem::Dependency
79
+ name: metriks
64
80
  version_requirements: !ruby/object:Gem::Requirement
65
81
  requirements:
66
- - - ! '>='
82
+ - - '>='
67
83
  - !ruby/object:Gem::Version
68
- version: 2.0.0
69
- - !ruby/object:Gem::Dependency
70
- name: metriks
84
+ version: '0'
85
+ none: false
71
86
  requirement: !ruby/object:Gem::Requirement
72
87
  requirements:
73
- - - ! '>='
88
+ - - '>='
74
89
  - !ruby/object:Gem::Version
75
90
  version: '0'
76
- type: :runtime
91
+ none: false
77
92
  prerelease: false
93
+ type: :runtime
94
+ - !ruby/object:Gem::Dependency
95
+ name: mixlib-cli
78
96
  version_requirements: !ruby/object:Gem::Requirement
79
97
  requirements:
80
- - - ! '>='
98
+ - - '>='
81
99
  - !ruby/object:Gem::Version
82
100
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: mixlib-cli
101
+ none: false
85
102
  requirement: !ruby/object:Gem::Requirement
86
103
  requirements:
87
- - - ! '>='
104
+ - - '>='
88
105
  - !ruby/object:Gem::Version
89
106
  version: '0'
90
- type: :runtime
107
+ none: false
91
108
  prerelease: false
109
+ type: :runtime
110
+ - !ruby/object:Gem::Dependency
111
+ name: terminal-table
92
112
  version_requirements: !ruby/object:Gem::Requirement
93
113
  requirements:
94
- - - ! '>='
114
+ - - '>='
95
115
  - !ruby/object:Gem::Version
96
116
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: terminal-table
117
+ none: false
99
118
  requirement: !ruby/object:Gem::Requirement
100
119
  requirements:
101
- - - ! '>='
120
+ - - '>='
102
121
  - !ruby/object:Gem::Version
103
122
  version: '0'
104
- type: :runtime
123
+ none: false
105
124
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
125
+ type: :runtime
111
126
  description: Ruby core extensions and helper libraries
112
127
  email:
113
128
  - opensource@liquidm.com
@@ -172,30 +187,31 @@ files:
172
187
  homepage: https://github.com/liquidm/ext
173
188
  licenses:
174
189
  - MIT
175
- metadata: {}
176
- post_install_message:
190
+ post_install_message:
177
191
  rdoc_options: []
178
192
  require_paths:
179
193
  - lib
180
194
  required_ruby_version: !ruby/object:Gem::Requirement
181
195
  requirements:
182
- - - ! '>='
196
+ - - '>='
183
197
  - !ruby/object:Gem::Version
184
198
  version: '0'
199
+ none: false
185
200
  required_rubygems_version: !ruby/object:Gem::Requirement
186
201
  requirements:
187
- - - ! '>='
202
+ - - '>='
188
203
  - !ruby/object:Gem::Version
189
204
  version: '0'
205
+ none: false
190
206
  requirements: []
191
- rubyforge_project:
192
- rubygems_version: 2.1.9
193
- signing_key:
194
- specification_version: 4
207
+ rubyforge_project:
208
+ rubygems_version: 1.8.24
209
+ signing_key:
210
+ specification_version: 3
195
211
  summary: Ruby core extensions and helper libraries
196
212
  test_files:
197
213
  - spec/lib/liquid/ext/enumerable_spec.rb
198
214
  - spec/lib/liquid/router_spec.rb
199
215
  - spec/lib/liquid/weighted_selector_spec.rb
200
216
  - spec/spec_helper.rb
201
- has_rdoc:
217
+ has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDFlZGZhYjMxMmQwOGU2YTk0ZTMxMzBiODRkZjEyMWRmNjA3ZTY4Mw==
5
- data.tar.gz: !binary |-
6
- OGU1MWVmYmFlZWNmNmNmY2U1MTBiYzQ3ZWE2Y2E2OWVhOGQ4OGRkMA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- MWU5M2Y3Y2I0NWUyNTRiNWI3NmM5MmFlMmJjZDIxZGRhNGI5ZDc5MzNiNTI4
10
- MDBjNWY3NDFhYWU2ZDg1M2I4MGE3ZGU5YzM5MDlmYzJhODA2N2UxODQ5NDQ1
11
- MzQ5MDBhMGMxYmY2NGM0YWNjODJmYjMxMzY1OTE2MzU1ZTZjOTE=
12
- data.tar.gz: !binary |-
13
- YzQ1NTEyZTNjZTE5NDk3ZTIzOTFjODU0YzczMWVhZjYzMGEzZGQ0MTE5MWI1
14
- ZTllMzU0MjZkZWI1NmRkY2JjZmVjZjViOGI2NzFlMDg5NzA1MmE2N2Y5M2Rj
15
- OWZhMGMyMjFlZjgyZjMzM2U0Yzg2Yjg3YTEzMTY1NTM0YTM0ZDY=