scrivito_sdk 1.0.0.rc1 → 1.0.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c877ff99dcddc12bcd3e67159e27662cb7cde92
4
- data.tar.gz: 72e6113f7f6a85b981740bfee45c6bd639bab45e
3
+ metadata.gz: cf6f6eeb2b370c0b1c082d72ab79945fc5e6e829
4
+ data.tar.gz: 951c6bf4700f0b98d2ae83bb8d21b7fb180ef65c
5
5
  SHA512:
6
- metadata.gz: de494a337010d147bbd36057d9be326b0607760cf3f06ef66234ec2a780eec837ec6f885592b85e054e9940bbdda56f84ef788f4bf0b57c035e04f98fe574c62
7
- data.tar.gz: 646603d7a7a7b60fbf06291089e9082f4ea34d7456b5a5ed22bf1908f24f0e8b265f52e188e31f7337a8f915475b43ca93847c4196305c5fd6d727ae28a78461
6
+ metadata.gz: 0b610d0d3e736a780c64ec0f35f7ebddb32376dc1a62bdf4e8ff788199a63ad6e24459e10ac8e938f24c07454b37f94b884dff24ed675d3428419ffa18abbe94
7
+ data.tar.gz: 5bcac040e866182fe1e42162fef81c5d094d07f8a72000c7e808d4c017e535280fcb23e36a8b774a7f8c3cf7748f799f42dbbc67f775dc3a5e448dd6de3b9475
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 24 12:44:37 2015
4
+ ## Certificate data from Mozilla as of: Thu Nov 26 13:03:28 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
@@ -31500,7 +31500,8 @@ var scrivito = {};
31500
31500
  },
31501
31501
 
31502
31502
  create: function(attrs) {
31503
- return prepare_attrs(scrivito.random_id(), attrs).then(function(prepared_attrs) {
31503
+ attrs._id = scrivito.random_id();
31504
+ return prepare_attrs(attrs._id, attrs).then(function(prepared_attrs) {
31504
31505
  return scrivito.ajax('POST', 'objs', {data: {obj: prepared_attrs}}).then(function(data) {
31505
31506
  scrivito.obj_class_selection.store(prepared_attrs._obj_class);
31506
31507
  return scrivito.obj.create_instance(data);
@@ -390,9 +390,10 @@ module Scrivito
390
390
  def copy(options={})
391
391
  options = options.stringify_keys.assert_valid_keys('_path', '_id', '_permalink')
392
392
  attributes_for_copy = self.class.with_default_id_attribute(copyable_attributes)
393
+ attributes_for_copy = attributes_for_copy.with_indifferent_access.merge(options)
393
394
  attributes_for_copy = copy_binaries(attributes_for_copy)
394
395
 
395
- json = workspace.api_request(:post, '/objs', obj: attributes_for_copy.merge(options))
396
+ json = workspace.api_request(:post, '/objs', obj: attributes_for_copy)
396
397
  self.class.find(json['_id'])
397
398
  end
398
399
 
@@ -148,7 +148,7 @@ class Binary
148
148
  # If only this dimension has been specified, the other dimension is calculated automatically to
149
149
  # preserve the aspect ratio of the input image.
150
150
  #
151
- # If the +fit+ parameter is set to +:clip+, then either the actual output width or the output
151
+ # If the +fit+ parameter is set to +:resize+, then either the actual output width or the output
152
152
  # height may be less than the amount you specified to prevent distortion.
153
153
  #
154
154
  # If neither +width+ nor +height+ is given, the width and height of the input image
@@ -167,7 +167,7 @@ class Binary
167
167
  # If only this dimension has been specified, the other dimension is calculated automatically to
168
168
  # preserve the aspect ratio of the input image.
169
169
  #
170
- # If the +fit+ parameter is set to +:clip+, then either the actual output width or the output
170
+ # If the +fit+ parameter is set to +:resize+, then either the actual output width or the output
171
171
  # height may be less than the amount you specified to prevent distortion.
172
172
  #
173
173
  # If neither +width+ nor +height+ is given, the width and height of the input image
@@ -181,9 +181,10 @@ class Binary
181
181
  # If the given width and height are adjusted, the aspect ratio is preserved.
182
182
  #
183
183
  # @option definition [Symbol,String] :fit Controls how the transformed image is fitted to the
184
- # given width and height. Valid values are +:clip+ and +:crop+. The default value is +:clip+.
184
+ # given width and height. Valid values are +:resize:+ and +:crop+. The default value is
185
+ # +:resize+.
185
186
  #
186
- # If set to +:clip+, the image is resized so as to fit within the width and height boundaries
187
+ # If set to +:resize+, the image is resized so as to fit within the width and height boundaries
187
188
  # without cropping or distorting the image. The resulting image is assured to match one of the
188
189
  # constraining dimensions, while the other dimension is altered to maintain the same aspect
189
190
  # ratio of the input image.
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: 1.0.0.rc1
4
+ version: 1.0.0.rc2
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-24 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable