scrivito_sdk 0.90.0 → 1.0.0.rc1

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: 39df1e2c69861f6a8ea242c5712bb6f203b39b59
4
- data.tar.gz: 3c79110e0ed9edc61faa7152cd59b7db738130d1
3
+ metadata.gz: 0c877ff99dcddc12bcd3e67159e27662cb7cde92
4
+ data.tar.gz: 72e6113f7f6a85b981740bfee45c6bd639bab45e
5
5
  SHA512:
6
- metadata.gz: 92145b9e07efb65aef1f24efcba510bd8f9a2ef7aec745e7ed4e55180dfa7448d1d1c2140e8dc38eea495fb1cec1fe2f8bc1941a9fb55ab6b78e0a41574ac4f8
7
- data.tar.gz: 3f4c0179035c7f4fd5645cd00861f129608baa13c0aede3da1f3dc13a01a8ab21cc99654bde02d1236e0cd55966bfa3b12009e9abae947b3be1f155cdcaf56eb
6
+ metadata.gz: de494a337010d147bbd36057d9be326b0607760cf3f06ef66234ec2a780eec837ec6f885592b85e054e9940bbdda56f84ef788f4bf0b57c035e04f98fe574c62
7
+ data.tar.gz: 646603d7a7a7b60fbf06291089e9082f4ea34d7456b5a5ed22bf1908f24f0e8b265f52e188e31f7337a8f915475b43ca93847c4196305c5fd6d727ae28a78461
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## Bundle of CA Root Certificates
3
3
  ##
4
- ## Certificate data from Mozilla as of: Thu Nov 12 12:55:32 2015
4
+ ## Certificate data from Mozilla as of: Tue Nov 24 12:44:37 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
@@ -68,11 +68,12 @@ module Scrivito
68
68
 
69
69
  def self.upload_future_binary(binary, obj_id)
70
70
  if binary.id_to_be_copied
71
- {
72
- content_type: binary.content_type,
71
+ id = normalize_path_component(binary.id_to_be_copied)
72
+ put("blobs/#{id}/copy", {
73
+ destination_obj_id: obj_id,
73
74
  filename: binary.filename,
74
- id: binary.id_to_be_copied,
75
- }
75
+ content_type: binary.content_type,
76
+ })
76
77
  else
77
78
  upload_permission = get('blobs/upload_permission')
78
79
  upload = perform_file_upload(
@@ -83,7 +83,7 @@ module ControllerActions
83
83
  #
84
84
  # @param widget [Scrivito::BasicWidget] the flawed widget
85
85
  # @param error [StandardError] the error that occurred
86
- # @raise [StandardError] if this method is not overridden, the +error+ passed to it
86
+ # @raise [StandardError] if this method is not overridden, the +error+ passed to it
87
87
  # is reraised.
88
88
  #
89
89
  # @example Notify external service about widget error and render an HTML placeholder:
@@ -133,7 +133,6 @@ module ControllerActions
133
133
  end
134
134
 
135
135
  def load_object
136
- CmsEnv.new(request.env).load
137
136
  loaded_obj = request.env[CmsEnv::OBJ_ENV_KEY]
138
137
  raise loaded_obj if loaded_obj.is_a?(StandardError)
139
138
  @obj = loaded_obj
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
4
+ version: 1.0.0.rc1
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-12 00:00:00.000000000 Z
11
+ date: 2015-11-24 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: '0'
406
+ version: 1.3.1
407
407
  requirements: []
408
408
  rubyforge_project:
409
409
  rubygems_version: 2.4.5