wco_models 3.1.0.171 → 3.1.0.173

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: 66737c644955f970c966767c341218bb5653237c02aef76ac85e6414b570cef0
4
- data.tar.gz: b2cad5216e5b01e85866c156ac24595788045191b7dc401e6748dc049dff6a86
3
+ metadata.gz: cd705af408f7a2df9270b4fb75723b1c657a2df5c38437468a59a490028c249e
4
+ data.tar.gz: d9fbba6082924957cbc409c08a87dc60042890e2b70d538885a83f52ed3a40ab
5
5
  SHA512:
6
- metadata.gz: eadbacdec9622b2a3d41c99e08fa81c8b60a87f21712474605b00f857d91a7f647e8f9fc7f27a28adeb87aac4ab9149bcf0417386a61485dcc6e7ec39932d7e3
7
- data.tar.gz: '018ba6ad23b019bb30c1e73fda6c74d9cf509dd841817697df3c89c137b587b0b0c658aa504afdcf59eb49114256fce72fea0b4135ad45cc5ba97b9a6e8e3358'
6
+ metadata.gz: 4ab8a576afb201f905788bd567a828bb8a7f4f347079fa292b9a93d00dcac16dc8ec72a7625370ea11579f9d99c4597903d60809855ecf27488269c2c158b074
7
+ data.tar.gz: 92decb4e332e25045a29ca87b90f7da3eabac5eaba969efdb2818b5d48e02bce135b6243b05414a9f02d2b6ad99f013b531890d27783cae2ce4ba33f399d600c
@@ -20,7 +20,7 @@ class Wco::SitemapPath
20
20
 
21
21
  def check
22
22
  self.status = 'NOT_OK'
23
- if self[:selector]
23
+ if self[:selector].present?
24
24
  begin
25
25
  body = HTTParty.get( "#{site.origin}#{self[:path]}" ).body
26
26
  rescue OpenSSL::SSL::SSLError => err
@@ -46,7 +46,7 @@ class Wco::SitemapPath
46
46
  end
47
47
  end
48
48
 
49
- elsif self[:redirect_to]
49
+ elsif self[:redirect_to].present?
50
50
  out = HTTParty.get( "#{site.origin}#{self[:path]}", follow_redirects: false )
51
51
  if( out.headers[:location] == self[:redirect_to] ||
52
52
  out.headers[:location] == "#{site.origin}#{self[:redirect_to]}" )
@@ -1,11 +1,12 @@
1
1
 
2
+ - config ||= {}
2
3
 
3
4
  -# <b>Tags (#{tags.length}):</b>
4
5
  -# - cache cache_key do
5
- .Tags.chips.mb-2
6
+ .Tags.chips.mb-2.d-inline-block
6
7
  - tags.each do |tag|
7
8
  .Chip{ data: { tag: { id: tag.id.to_s } } }
8
- - if !config&.without_checkbox
9
+ - unless config[:skip_checkbox]
9
10
  = check_box_tag 'tag_ids[]', tag.id
10
11
  = link_to tag.slug, wco.tag_path( tag )
11
12
  - if defined? resource
@@ -45,7 +45,7 @@
45
45
  -# = render '/wco_email/contexts/form_reply_mini', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to&.downcase, subject: msg.subject, email_template_id: ET.find_by( slug: 'blank').id })
46
46
 
47
47
  %td.tags.mini
48
- = render '/wco/tags/list_chips', tags: conv.tags, cache_key: conv.cache_key, config: OpenStruct.new( without_checkbox: true )
48
+ = render '/wco/tags/list_chips', tags: conv.tags, cache_key: conv.cache_key, config: { skip_checkbox: true }
49
49
  %td.latest-at
50
50
  = pp_date conv.latest_at
51
51
  = pp_time conv.latest_at
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.171
4
+ version: 3.1.0.173
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-20 00:00:00.000000000 Z
11
+ date: 2024-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ahoy_matey