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 +4 -4
- data/config/ca-bundle.crt +1 -1
- data/lib/assets/javascripts/scrivito_ui.js +2 -1
- data/lib/scrivito/basic_obj.rb +2 -1
- data/lib/scrivito/binary.rb +5 -4
- 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: cf6f6eeb2b370c0b1c082d72ab79945fc5e6e829
|
4
|
+
data.tar.gz: 951c6bf4700f0b98d2ae83bb8d21b7fb180ef65c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
-
|
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);
|
data/lib/scrivito/basic_obj.rb
CHANGED
@@ -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
|
396
|
+
json = workspace.api_request(:post, '/objs', obj: attributes_for_copy)
|
396
397
|
self.class.find(json['_id'])
|
397
398
|
end
|
398
399
|
|
data/lib/scrivito/binary.rb
CHANGED
@@ -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 +:
|
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 +:
|
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 +:
|
184
|
+
# given width and height. Valid values are +:resize:+ and +:crop+. The default value is
|
185
|
+
# +:resize+.
|
185
186
|
#
|
186
|
-
# If set to +:
|
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.
|
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-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|