talkie 0.3.3 → 0.3.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: ba37055c39c23236989d83d0d40db2311bc98c2d2a62400e77faa217204bb3ee
4
- data.tar.gz: b0e91a5fe3ffc493c1e45d05dd8606884d2873b950c4bc53bf75a18ce736f1e6
3
+ metadata.gz: 8a01a3f9c9f742db1c064b1010574fd992b89404a1d892656946d81dabd4088f
4
+ data.tar.gz: 990a27ed26e2b62bfbe21464b37987bd76f69720d158e224771afd1bea439c3d
5
5
  SHA512:
6
- metadata.gz: 91d8de542ade12cc0eef07773c4d4323b5d31ed18885032014afb4551ab4efb7c09216eae10be59feb1098d6e6c9abeb5abb9add4df1406b5b5d089adcefa2d4
7
- data.tar.gz: 067e44b67f841d675706fd8b34ff65fdf4c740840924398e1f77e8de0159a544cf8324d5efdbc88b2c9b1e36170ded8f8fa7eafd58c9d966392b2a0dcbb54edb
6
+ metadata.gz: 1db6ae4e638c9232e80b1be59ba0222a8dea94aa8686965fe98a818659f0ee9d6661c53716706e6c8b00147010b01112ac040d59e09d1b5d74e448c6e5e93ef8
7
+ data.tar.gz: 81c85e73937dfef0903625b1c6ca05b9751f3541e1a26401e2abc5bfd198c01000761a685ad1812f52123b9c58f7abdcedbcac0b6288c5644921220d048ce7aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- talkie (0.3.3)
4
+ talkie (0.3.4)
5
5
  awesome_nested_set (~> 3.1)
6
6
  blueprinter (~> 0.18.0)
7
7
  oj (~> 3.7)
@@ -18,7 +18,9 @@ $( document ).on('ready turbolinks:load', function() {
18
18
  $commentsForm = $(this);
19
19
 
20
20
  $commentsForm.find('textarea.talkie-comment-body-textarea').mentionsInput('getMentions', function(data) {
21
- $commentsForm.find(".comment-mentions").val(JSON.stringify(data));
21
+ if(data.length > 0) {
22
+ $commentsForm.find(".comment-mentions").val(JSON.stringify(data));
23
+ }
22
24
  });
23
25
 
24
26
  })
@@ -2,16 +2,15 @@
2
2
 
3
3
  module Talkie
4
4
  class NilMentionTokens
5
-
6
5
  def self.find(ids = [])
7
6
  []
8
7
  end
9
8
 
10
9
  def to_s
11
- %Q{#{[
10
+ %{#{[
12
11
  {
13
- type: self.class.to_s
14
- }
12
+ type: self.class.to_s,
13
+ },
15
14
  ].to_json}}
16
15
  end
17
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Talkie
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talkie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abraham Kuri