hashtags 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 33fc78eb48ce5269728d1563af3c3b11ee111bef
4
- data.tar.gz: 0058045a7c502225c75d5aed8ff55d9a5877f99a
3
+ metadata.gz: 9d8e2d5d74f8166dbeb87095bdc2bef3cea0031c
4
+ data.tar.gz: 8cdfbed18bdbe0f351562560ea54fda4fdb11a5a
5
5
  SHA512:
6
- metadata.gz: bcaaf2905df844fd53b1924e48a600e08a3fbcf35d32d961fedcb876fc2c761d86a52db3cf7fd2d07277ab9f029478f3bb358457f046a3ef43bd8eec729e9aab
7
- data.tar.gz: cf7962a04cf7bbae1281f4fb8426471d62d85d32d645c120f1fd650472dde90bf606d6e58da938ada8c32b1056cb845dec8330e5a768cf94bb8a40525cc44ffb
6
+ metadata.gz: 1ff3581da657b002f6157e560d8fe4baba02c5c2dadeac6154fd197badf19e3ef0c2f2cc8a0c82a53ad385b82adf346ef953b2f911cf00bfb262651f2315490c
7
+ data.tar.gz: 7c2b96e6412a9fb7388ee3321df59e8adf2dc222fdb09d72922ddbce48462d4c4d011cd65145eafd979bcfd6cb346dc6cffe5af4c387a7f8e035029fbb3a1a0e
@@ -22,10 +22,14 @@ Mongoid::Fields.option :hashtags do |cls, field, value|
22
22
  field.define_singleton_method :demongoize do |*args|
23
23
  res = super(*args)
24
24
  res.define_singleton_method :to_markup do
25
- Hashtags::Builder.to_markup(res.to_s, options).html_safe
25
+ field.type.new(
26
+ Hashtags::Builder.to_markup(res.to_s, options).html_safe
27
+ )
26
28
  end
27
29
  res.define_singleton_method :to_hashtag do
28
- Hashtags::Builder.to_hashtag(res.to_s, options).html_safe
30
+ field.type.new(
31
+ Hashtags::Builder.to_hashtag(res.to_s, options).html_safe
32
+ )
29
33
  end
30
34
  res
31
35
  end
@@ -1,3 +1,3 @@
1
1
  module Hashtags
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashtags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna