tramway-core 1.17.4.1 → 1.17.4.2

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
  SHA256:
3
- metadata.gz: 57df1e172fb15f98f9ab50d1ae0bef18e19d0e163b8f0255e9aeaeaa58fc4b22
4
- data.tar.gz: 20c663842281a6e479c84d729c2ebd1f36cb9a1b67d99b8c914d2e3f144d255a
3
+ metadata.gz: de93e7e3470ae4475e2562917ada23727724ed9f5d3a9e8629bb79abdc9abba3
4
+ data.tar.gz: 6eb2a75350e87dfcc01c80da40090ac4c14a7ef4d6d713a1e1ec6ad6fba36e8f
5
5
  SHA512:
6
- metadata.gz: 32af3b950613212b2b5d0e7eaec1ca66e5630235303dc178d8d0837135e382bea64a4b5bad3763510847d0b82b0cb0d3363c14bb3efafe8c5bd38080fb78d375
7
- data.tar.gz: ae8206f0a248457834f8d6befbc089d94638f692e43682f212a637ca76e58261b42d564761cebf12051bc2acd7e01535402020c858e4614ebbe1f676ed5012f0
6
+ metadata.gz: 70846eaa98acc8df08009b4c5b0ee6e954c885e87342eaa17f0cbce2cb4fa25f78a51604b234170ee0502c33195e74095a5a27b14565cf04ae6612630896092a
7
+ data.tar.gz: 020e281d3e91424d0af2ccf2e4f8554b2f1295b399433f7ce5238fe181d1d1fb4ec999773bd408a57af12e7386d5bd39211bc15d32e1562b3dc1d0de61e124cd
data/README.md CHANGED
@@ -132,7 +132,7 @@ end
132
132
 
133
133
  ### CopyToClipboardHelper
134
134
 
135
- [app/helpers/tramway/core/copy_to_clipboard_helper.rb](https://github.com/ulmic/tramway-dev/blob/develop/tramway-core/app/helpers/tramway/core/copy_to_clipboard_helper.rb)
135
+ [app/helpers/tramway/core/copy_to_clipboard_helper.rb] (https://github.com/ulmic/tramway-dev/blob/develop/tramway-core/app/helpers/tramway/core/copy_to_clipboard_helper.rb)
136
136
 
137
137
  #### Install
138
138
 
@@ -96,7 +96,7 @@ class Tramway::Core::ApplicationForm < ::Reform::Form
96
96
  @@model_class = model_class_name.constantize
97
97
  rescue StandardError
98
98
  Tramway::Error.raise_error :tramway, :core, :application_form, :model_class, :there_is_not_model_class,
99
- name: name, model_class_name: model_class_name
99
+ name: name, model_class_name: model_class_name
100
100
  end
101
101
  end
102
102
  end
@@ -127,6 +127,6 @@ class Tramway::Core::ApplicationForm < ::Reform::Form
127
127
  Tramway::Error.raise_error :tramway, :core, :application_form, :save, :argument_error, message: e.message
128
128
  rescue StandardError => e
129
129
  Tramway::Error.raise_error :tramway, :core, :application_form, :save, :looks_like_you_have_method,
130
- method_name: e.name.to_s.gsub('=', ''), model_class: @@model_class, class_name: self.class
130
+ method_name: e.name.to_s.gsub('=', ''), model_class: @@model_class, class_name: self.class
131
131
  end
132
132
  end
@@ -17,7 +17,7 @@ module Tramway::Core::ApplicationForms::AssociationObjectHelpers
17
17
  association_class = association_class.constantize if association_class.is_a? String
18
18
  if association_class.nil?
19
19
  Tramway::Error.raise_error :tramway, :core, :application_form, :initialize, :polymorphic_class_is_nil,
20
- association_name: association
20
+ association_name: association
21
21
  else
22
22
  super association_class.find value.split('_')[-1]
23
23
  send "#{association}_type=", association_class.to_s
@@ -16,6 +16,10 @@ class PhotoUploader < ApplicationUploader
16
16
  end
17
17
  end
18
18
 
19
+ def present?
20
+ super && width.present? && height.present?
21
+ end
22
+
19
23
  version :medium do
20
24
  process resize_to_fill: [400, 400]
21
25
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '1.17.4.1'
5
+ VERSION = '1.17.4.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.4.1
4
+ version: 1.17.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-29 00:00:00.000000000 Z
12
+ date: 2020-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: audited