scrivito_sdk 0.90.0.rc3 → 0.90.0

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: a1f4a7aa1ca9b87dfda169c68a328ac3815dde9f
4
- data.tar.gz: 52eff6fc495d7531658691810c28ccacc7d5b5e9
3
+ metadata.gz: 39df1e2c69861f6a8ea242c5712bb6f203b39b59
4
+ data.tar.gz: 3c79110e0ed9edc61faa7152cd59b7db738130d1
5
5
  SHA512:
6
- metadata.gz: a580d4ef40f7dc65011db0607628b7f203e7cfe19bfd12e435966cfa979a5b7715b474a7706df891353e3547ba0a34bef570bc34ba658ccca4c5537af3efa2e3
7
- data.tar.gz: 9ccfa59a0c32cf6d04ebd144da53cff12310735670c335074e37814f5983b4c116398090aba5342b6a65104940bb5b66955fd581646de4eb31d91ae54ef872fb
6
+ metadata.gz: 92145b9e07efb65aef1f24efcba510bd8f9a2ef7aec745e7ed4e55180dfa7448d1d1c2140e8dc38eea495fb1cec1fe2f8bc1941a9fb55ab6b78e0a41574ac4f8
7
+ data.tar.gz: 3f4c0179035c7f4fd5645cd00861f129608baa13c0aede3da1f3dc13a01a8ab21cc99654bde02d1236e0cd55966bfa3b12009e9abae947b3be1f155cdcaf56eb
data/config/ca-bundle.crt CHANGED
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## Bundle of CA Root Certificates
3
3
  ##
4
- ## Certificate data from Mozilla as of: Tue Nov 10 10:18:35 2015
4
+ ## Certificate data from Mozilla as of: Thu Nov 12 12:55:32 2015
5
5
  ##
6
6
  ## This is a bundle of X.509 certificates of public Certificate Authorities
7
7
  ## (CA). These were automatically extracted from Mozilla's root certificates
@@ -107,14 +107,20 @@ class Binary
107
107
  # @api public
108
108
  # The content type of this binary data, for example "image/jpeg".
109
109
  # @return [String] content type
110
+ #
111
+ # @raise [Scrivito::ScrivitoError] If the binary is the result of a transformation.
110
112
  def content_type
113
+ raise_field_not_available('Content type') if transformed?
111
114
  headers[:content_type]
112
115
  end
113
116
 
114
117
  # @api public
115
118
  # The length of this binary data, in bytes.
116
119
  # @return [Integer] number of bytes
120
+ #
121
+ # @raise [Scrivito::ScrivitoError] If the binary is the result of a transformation.
117
122
  def content_length
123
+ raise_field_not_available('Content length') if transformed?
118
124
  headers[:content_length].to_i
119
125
  end
120
126
 
@@ -253,7 +259,7 @@ class Binary
253
259
  #
254
260
  # @raise [Scrivito::ScrivitoError] If the binary is the result of a transformation.
255
261
  def meta_data
256
- raise_meta_data_not_available if transformed?
262
+ raise_field_not_available('Meta data') if transformed?
257
263
 
258
264
  @meta_data ||= begin
259
265
  deserialized_meta_data = deserialize_meta_data(CmsBackend.instance.find_binary_meta_data(id))
@@ -267,8 +273,8 @@ class Binary
267
273
  !!@public_content
268
274
  end
269
275
 
270
- def raise_meta_data_not_available
271
- raise ScrivitoError, 'Meta data is not available for transformed images'
276
+ def raise_field_not_available(field_name)
277
+ raise ScrivitoError, "#{field_name} is not available for transformed images"
272
278
  end
273
279
 
274
280
  def headers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.90.0.rc3
4
+ version: 0.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -401,9 +401,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
401
401
  version: 2.1.0
402
402
  required_rubygems_version: !ruby/object:Gem::Requirement
403
403
  requirements:
404
- - - ">"
404
+ - - ">="
405
405
  - !ruby/object:Gem::Version
406
- version: 1.3.1
406
+ version: '0'
407
407
  requirements: []
408
408
  rubyforge_project:
409
409
  rubygems_version: 2.4.5