ballast 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/doc/Ballast.html +1 -1
- data/doc/Ballast/AjaxResponse.html +5 -5
- data/doc/Ballast/Concerns.html +1 -1
- data/doc/Ballast/Concerns/AjaxHandling.html +1 -1
- data/doc/Ballast/Concerns/Common.html +1 -1
- data/doc/Ballast/Concerns/ErrorsHandling.html +1 -1
- data/doc/Ballast/Concerns/View.html +1 -1
- data/doc/Ballast/Configuration.html +1 -1
- data/doc/Ballast/Emoji.html +1 -1
- data/doc/Ballast/Emoji/Character.html +1 -1
- data/doc/Ballast/Emoji/Utils.html +1 -1
- data/doc/Ballast/Errors.html +1 -1
- data/doc/Ballast/Errors/Base.html +1 -1
- data/doc/Ballast/Errors/Failure.html +1 -1
- data/doc/Ballast/Errors/InvalidDomain.html +1 -1
- data/doc/Ballast/Errors/ValidationFailure.html +1 -1
- data/doc/Ballast/Middlewares.html +1 -1
- data/doc/Ballast/Middlewares/DefaultHost.html +1 -1
- data/doc/Ballast/RequestDomainMatcher.html +1 -1
- data/doc/Ballast/Service.html +1 -1
- data/doc/Ballast/Service/Response.html +1 -1
- data/doc/Ballast/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/ballast/ajax_response.rb +1 -1
- data/lib/ballast/version.rb +1 -1
- data/spec/ballast/ajax_response_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab3b5445456de7873112be52247f96a826b82a3a
|
4
|
+
data.tar.gz: 237670785aa2d988c5206085965a045434cd8cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 644a01c292dd60e11a5b870e2de94edc58a9db55e290ba97e2bae136608447dd797447e425b8ddf4604e5337122122f5b17cbbf7a128331c1e31a3dc1e623cc2
|
7
|
+
data.tar.gz: be2b64700f7f625a2838f48f78e703fd28cb8bcbbe0f8340113d18dc24facfc228cb1ad4a57590712a927c18a50cc4d53b4cb4692e5ba649149b00feed6016cd
|
data/CHANGELOG.md
CHANGED
data/doc/Ballast.html
CHANGED
@@ -256,7 +256,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
256
256
|
</div>
|
257
257
|
|
258
258
|
<div id="footer">
|
259
|
-
Generated on
|
259
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
260
260
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
261
261
|
0.8.7.6 (ruby-2.2.0).
|
262
262
|
</div>
|
@@ -632,7 +632,7 @@
|
|
632
632
|
|
633
633
|
<span class='comment val'># :nodoc:</span>
|
634
634
|
<span class='rubyid_def def kw'>def</span> <span class='rubyid_payload identifier id'>payload</span>
|
635
|
-
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_status identifier id'>status</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
635
|
+
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='rubyid_Utils constant id'>Utils</span><span class='dot token'>.</span><span class='rubyid_status_code identifier id'>status_code</span><span class='lparen token'>(</span><span class='rubyid_status identifier id'>status</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
636
636
|
<span class='rubyid_end end kw'>end</span>
|
637
637
|
<span class='rubyid_end end kw'>end</span>
|
638
638
|
</pre>
|
@@ -824,7 +824,7 @@
|
|
824
824
|
|
825
825
|
<span class='comment val'># :nodoc:</span>
|
826
826
|
<span class='rubyid_def def kw'>def</span> <span class='rubyid_payload identifier id'>payload</span>
|
827
|
-
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_status identifier id'>status</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
827
|
+
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='rubyid_Utils constant id'>Utils</span><span class='dot token'>.</span><span class='rubyid_status_code identifier id'>status_code</span><span class='lparen token'>(</span><span class='rubyid_status identifier id'>status</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
828
828
|
<span class='rubyid_end end kw'>end</span>
|
829
829
|
<span class='rubyid_end end kw'>end</span>
|
830
830
|
</pre>
|
@@ -1016,7 +1016,7 @@
|
|
1016
1016
|
|
1017
1017
|
<span class='comment val'># :nodoc:</span>
|
1018
1018
|
<span class='rubyid_def def kw'>def</span> <span class='rubyid_payload identifier id'>payload</span>
|
1019
|
-
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_status identifier id'>status</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
1019
|
+
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='rubyid_Utils constant id'>Utils</span><span class='dot token'>.</span><span class='rubyid_status_code identifier id'>status_code</span><span class='lparen token'>(</span><span class='rubyid_status identifier id'>status</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
1020
1020
|
<span class='rubyid_end end kw'>end</span>
|
1021
1021
|
<span class='rubyid_end end kw'>end</span>
|
1022
1022
|
</pre>
|
@@ -1208,7 +1208,7 @@
|
|
1208
1208
|
|
1209
1209
|
<span class='comment val'># :nodoc:</span>
|
1210
1210
|
<span class='rubyid_def def kw'>def</span> <span class='rubyid_payload identifier id'>payload</span>
|
1211
|
-
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_status identifier id'>status</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
1211
|
+
<span class='lbrace token'>{</span><span class='label val'>status:</span> <span class='rubyid_Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='rubyid_Utils constant id'>Utils</span><span class='dot token'>.</span><span class='rubyid_status_code identifier id'>status_code</span><span class='lparen token'>(</span><span class='rubyid_status identifier id'>status</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='label val'>data:</span> <span class='rubyid_data identifier id'>data</span><span class='comma token'>,</span> <span class='label val'>error:</span> <span class='rubyid_error identifier id'>error</span><span class='rbrace token'>}</span>
|
1212
1212
|
<span class='rubyid_end end kw'>end</span>
|
1213
1213
|
<span class='rubyid_end end kw'>end</span>
|
1214
1214
|
</pre>
|
@@ -1459,7 +1459,7 @@
|
|
1459
1459
|
</div>
|
1460
1460
|
|
1461
1461
|
<div id="footer">
|
1462
|
-
Generated on
|
1462
|
+
Generated on Fri Feb 6 13:24:22 2015 by
|
1463
1463
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1464
1464
|
0.8.7.6 (ruby-2.2.0).
|
1465
1465
|
</div>
|
data/doc/Ballast/Concerns.html
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on
|
121
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
123
|
0.8.7.6 (ruby-2.2.0).
|
124
124
|
</div>
|
@@ -658,7 +658,7 @@
|
|
658
658
|
</div>
|
659
659
|
|
660
660
|
<div id="footer">
|
661
|
-
Generated on
|
661
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
662
662
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
663
663
|
0.8.7.6 (ruby-2.2.0).
|
664
664
|
</div>
|
@@ -956,7 +956,7 @@ and <code>%:Z</code> for the zone name considering also DST.</p>
|
|
956
956
|
</div>
|
957
957
|
|
958
958
|
<div id="footer">
|
959
|
-
Generated on
|
959
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
960
960
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
961
961
|
0.8.7.6 (ruby-2.2.0).
|
962
962
|
</div>
|
@@ -274,7 +274,7 @@
|
|
274
274
|
</div>
|
275
275
|
|
276
276
|
<div id="footer">
|
277
|
-
Generated on
|
277
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
278
278
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
279
279
|
0.8.7.6 (ruby-2.2.0).
|
280
280
|
</div>
|
@@ -881,7 +881,7 @@
|
|
881
881
|
</div>
|
882
882
|
|
883
883
|
<div id="footer">
|
884
|
-
Generated on
|
884
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
885
885
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
886
886
|
0.8.7.6 (ruby-2.2.0).
|
887
887
|
</div>
|
@@ -451,7 +451,7 @@ Subfolders are not supported.</p>
|
|
451
451
|
</div>
|
452
452
|
|
453
453
|
<div id="footer">
|
454
|
-
Generated on
|
454
|
+
Generated on Fri Feb 6 13:24:22 2015 by
|
455
455
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
456
456
|
0.8.7.6 (ruby-2.2.0).
|
457
457
|
</div>
|
data/doc/Ballast/Emoji.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.7.6 (ruby-2.2.0).
|
122
122
|
</div>
|
@@ -405,7 +405,7 @@
|
|
405
405
|
</div>
|
406
406
|
|
407
407
|
<div id="footer">
|
408
|
-
Generated on
|
408
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
409
409
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
410
410
|
0.8.7.6 (ruby-2.2.0).
|
411
411
|
</div>
|
@@ -790,7 +790,7 @@
|
|
790
790
|
</div>
|
791
791
|
|
792
792
|
<div id="footer">
|
793
|
-
Generated on
|
793
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
794
794
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
795
795
|
0.8.7.6 (ruby-2.2.0).
|
796
796
|
</div>
|
data/doc/Ballast/Errors.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.7.6 (ruby-2.2.0).
|
122
122
|
</div>
|
@@ -346,7 +346,7 @@
|
|
346
346
|
</div>
|
347
347
|
|
348
348
|
<div id="footer">
|
349
|
-
Generated on
|
349
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
350
350
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
351
351
|
0.8.7.6 (ruby-2.2.0).
|
352
352
|
</div>
|
@@ -152,7 +152,7 @@
|
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div id="footer">
|
155
|
-
Generated on
|
155
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
156
156
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
157
157
|
0.8.7.6 (ruby-2.2.0).
|
158
158
|
</div>
|
@@ -148,7 +148,7 @@
|
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div id="footer">
|
151
|
-
Generated on
|
151
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
153
153
|
0.8.7.6 (ruby-2.2.0).
|
154
154
|
</div>
|
@@ -156,7 +156,7 @@
|
|
156
156
|
</div>
|
157
157
|
|
158
158
|
<div id="footer">
|
159
|
-
Generated on
|
159
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
160
160
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
161
161
|
0.8.7.6 (ruby-2.2.0).
|
162
162
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.7.6 (ruby-2.2.0).
|
122
122
|
</div>
|
@@ -347,7 +347,7 @@
|
|
347
347
|
</div>
|
348
348
|
|
349
349
|
<div id="footer">
|
350
|
-
Generated on
|
350
|
+
Generated on Fri Feb 6 13:24:22 2015 by
|
351
351
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
352
352
|
0.8.7.6 (ruby-2.2.0).
|
353
353
|
</div>
|
@@ -914,7 +914,7 @@
|
|
914
914
|
</div>
|
915
915
|
|
916
916
|
<div id="footer">
|
917
|
-
Generated on
|
917
|
+
Generated on Fri Feb 6 13:24:22 2015 by
|
918
918
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
919
919
|
0.8.7.6 (ruby-2.2.0).
|
920
920
|
</div>
|
data/doc/Ballast/Service.html
CHANGED
@@ -1301,7 +1301,7 @@
|
|
1301
1301
|
</div>
|
1302
1302
|
|
1303
1303
|
<div id="footer">
|
1304
|
-
Generated on
|
1304
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
1305
1305
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1306
1306
|
0.8.7.6 (ruby-2.2.0).
|
1307
1307
|
</div>
|
@@ -1269,7 +1269,7 @@
|
|
1269
1269
|
</div>
|
1270
1270
|
|
1271
1271
|
<div id="footer">
|
1272
|
-
Generated on
|
1272
|
+
Generated on Fri Feb 6 13:24:22 2015 by
|
1273
1273
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1274
1274
|
0.8.7.6 (ruby-2.2.0).
|
1275
1275
|
</div>
|
data/doc/Ballast/Version.html
CHANGED
@@ -151,7 +151,7 @@
|
|
151
151
|
|
152
152
|
</div>
|
153
153
|
</dt>
|
154
|
-
<dd><pre class="code"><span class='integer val'>
|
154
|
+
<dd><pre class="code"><span class='integer val'>3</span>
|
155
155
|
</pre></dd>
|
156
156
|
|
157
157
|
<dt id="STRING-constant" class="">STRING =
|
@@ -184,7 +184,7 @@
|
|
184
184
|
</div>
|
185
185
|
|
186
186
|
<div id="footer">
|
187
|
-
Generated on
|
187
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
188
188
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
189
189
|
0.8.7.6 (ruby-2.2.0).
|
190
190
|
</div>
|
data/doc/_index.html
CHANGED
@@ -339,7 +339,7 @@
|
|
339
339
|
</div>
|
340
340
|
|
341
341
|
<div id="footer">
|
342
|
-
Generated on
|
342
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
343
343
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
344
344
|
0.8.7.6 (ruby-2.2.0).
|
345
345
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
</div></div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on
|
109
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
111
|
0.8.7.6 (ruby-2.2.0).
|
112
112
|
</div>
|
data/doc/index.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
</div></div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on
|
109
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
111
|
0.8.7.6 (ruby-2.2.0).
|
112
112
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Fri Feb 6 13:24:21 2015 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.7.6 (ruby-2.2.0).
|
109
109
|
</div>
|
data/lib/ballast/version.rb
CHANGED
@@ -38,7 +38,7 @@ describe Ballast::AjaxResponse do
|
|
38
38
|
@transport = OpenStruct.new(request: OpenStruct.new(format: :json), params: {}, performed?: false)
|
39
39
|
end
|
40
40
|
|
41
|
-
subject { Ballast::AjaxResponse.new(status:
|
41
|
+
subject { Ballast::AjaxResponse.new(status: :ok, data: "DATA", error: "ERROR", transport: @transport) }
|
42
42
|
|
43
43
|
it "should setup the right content type for text" do
|
44
44
|
expect(@transport).to receive(:render).with(text: "{\"status\":200,\"data\":\"DATA\",\"error\":\"ERROR\"}", status: 200, callback: nil, content_type: "text/plain")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ballast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shogun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|