blobsterix 0.0.12 → 0.0.13

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: deb829b40753a003b15e442d2616a0b049ef3f0b
4
- data.tar.gz: 6eb09a7c8506cd34215589210161378719f4bf67
3
+ metadata.gz: 61c63e268a35487d1180f80f6f9865fd0c0cb0e2
4
+ data.tar.gz: 648c1525917b0577eb25bcfe5dbc1b7e24df3366
5
5
  SHA512:
6
- metadata.gz: 058c5d531944081803992583ff92ba56d55a6cd1b9dc88d70efe618325c49b73d49451ba3bc619d3c401c2b5a8c78e7409a72e6f42cf064b1e2498325ca263a6
7
- data.tar.gz: 66aec0dbeb53da84c935cb93aa9f43a2c4dd785961c5c62e3c0a6cf5ac0b343a65139a8e3c8d81bb273ef446eb2dd366b8539e292a62c4a061506785791ff16c
6
+ metadata.gz: 023f0e53440327eaa1fc5cbc63136b9684d09ff7d799dc32dd456b3e96f9f0de34309ce92c13f9b392b51d1f31a1138e640ba9aae984c62d806d40fff85b0c50
7
+ data.tar.gz: d2fd9b85f3d99303f8cdb40961d061c40916234a04f611cacd6ccc95abd0b8c3e9b46a8191f5221ee5165fe4fad0e8714e72cfe53030f31870fd78b092721968
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,5 @@
1
+ = 0.0.13
2
+ * fixing getters for 0.0.12
1
3
  = 0.0.12
2
4
  * added global config option to activate X-Sendfile via config. Now it can not be activated anymore by a reverse proxy
3
5
  * added global config option to activate or deactivate chunked streaming of files
@@ -1,3 +1,3 @@
1
1
  module Blobsterix
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
data/lib/blobsterix.rb CHANGED
@@ -130,20 +130,21 @@ module Blobsterix
130
130
  end
131
131
 
132
132
  def self.use_x_send_file
133
- @use_x_send_file||=false
133
+ !!@use_x_send_file
134
134
  end
135
135
 
136
136
  def self.use_x_send_file=(obj)
137
137
  @use_x_send_file=obj
138
138
  end
139
-
139
+
140
140
  def self.allow_chunked_stream
141
- @allow_chunked_stream||=true
141
+ !!@allow_chunked_stream
142
142
  end
143
143
 
144
144
  def self.allow_chunked_stream=(obj)
145
145
  @allow_chunked_stream=obj
146
146
  end
147
+ self.allow_chunked_stream=true #for backwards compatibility
147
148
 
148
149
  def self.decrypt_trafo=(obj)
149
150
  @decrypt_trafo=obj
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+
4
+ describe Blobsterix do
5
+ it "should allow_chunked_stream for backward comp. by default" do
6
+ Blobsterix.allow_chunked_stream.should == true
7
+ end
8
+
9
+ it "should set allow_chunked_stream" do
10
+ Blobsterix.allow_chunked_stream=false
11
+ Blobsterix.allow_chunked_stream.should == false
12
+ #set it back as this is global!
13
+ Blobsterix.allow_chunked_stream=true
14
+ Blobsterix.allow_chunked_stream.should == true
15
+ end
16
+
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blobsterix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Sudmann
@@ -251,6 +251,7 @@ files:
251
251
  - scripts/download.rb
252
252
  - scripts/test
253
253
  - spec/lib/blob/blob_api_spec.rb
254
+ - spec/lib/blobsterix_spec.rb
254
255
  - spec/lib/helper/blob_access_spec.rb
255
256
  - spec/lib/s3/s3_api_spec.rb
256
257
  - spec/lib/service_spec.rb
@@ -296,6 +297,7 @@ specification_version: 4
296
297
  summary: Blobsterix is a transcoding, caching, storage server.
297
298
  test_files:
298
299
  - spec/lib/blob/blob_api_spec.rb
300
+ - spec/lib/blobsterix_spec.rb
299
301
  - spec/lib/helper/blob_access_spec.rb
300
302
  - spec/lib/s3/s3_api_spec.rb
301
303
  - spec/lib/service_spec.rb