cm_page_builder-rails 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 0502276d651000f9403732368e1f91f776620506e5f33e661038ea021cc6d098
4
- data.tar.gz: 69e14401f555d7cf169a1a98ffd5e4e182d9deb7e07e7277cfa24738f2ec8fce
3
+ metadata.gz: cb8cb60af95314796041dcb3636d626bce3225a851dc35a03b0f7fef2683ee7f
4
+ data.tar.gz: 275d1733d69c98325a37d78f2caa613539f93d2f90c5d44b54e388c6145a6727
5
5
  SHA512:
6
- metadata.gz: d1fb86f34c7c2d029047beede39dab80462a8ea6296f47abf958c7f8179bbd8a52e359c61fb520e4c2d2c97e44f8f495e811afe58927026cf47fba42aeacd1ab
7
- data.tar.gz: 5f5b17a4bc9ccf015bb67d59ddd7930e8adaa96c2536516bb4f9b262b45586566ae522ea765bc5ead2a3d826ac76e71d64bf6164c69a9237a18bcdb3c13d3544
6
+ metadata.gz: 15cff37e33a92c85155e0f3f1a0186441963fef8a5e9e5977d3c0eade95f2f3e2add98678b0a2d10434d9af5556c0793fd5dfd513c4a0f64aacb7d0aa54a5234
7
+ data.tar.gz: 0012f11661630abdddff3ec1d157ba339c934371205758b9a8ee1da31d2846688bfa6c7b0724958bc856adcb18341c5e7c090dfc406e722b24177e3ac4323f58
@@ -9,14 +9,12 @@ module CmPageBuilder::Rails
9
9
  self.page_components.with_attached_component_attachment.select(:id, :uuid, :component_type, :position, :content).map do |component|
10
10
  json_component = component.as_json.transform_keys! {|key| key.camelize(:lower)}
11
11
  attachment = component.component_attachment.attachment
12
- pp component.component_attachment
13
- pp attachment
14
- pp "======"
15
12
  json_component["id"] = component[:uuid]
16
13
  json_component["component_attachment"] = if attachment
17
14
  {
18
15
  filename: attachment.filename.to_s,
19
- url: attachment.service_url
16
+ url: attachment.service_url,
17
+ dimensions: attachment.blob.metadata
20
18
  }
21
19
  end
22
20
  json_component
@@ -1,5 +1,5 @@
1
1
  module CmPageBuilder
2
2
  module Rails
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm_page_builder-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Ernesto Forero Junco