polivalente 0.5.1 → 0.5.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 015f16377d9116c4e41fe6d31635e530e416f0edd53fcb123310e2d18281585b
|
4
|
+
data.tar.gz: a2fdd33dbd1d15c85421636bc3578bb9cc0afab4f82db7a310e4025bc2d95fff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00060c4ab19051dc3ca5202ee0c6827e496feb010c0e4495de51bef8fb0b4c37b9a5d5f91c3fd0935c759ae52b5a32a8a508e11cd8299f2c49b87834cd43410a
|
7
|
+
data.tar.gz: 98a4ac7172c92736199b6036a2c302eac0be2bc18a531ee2500e7dbbd4847d2f8fbbe28db7eeb557d78e5f3ac3dfeba481634c6e8fb244a35162622f5a7ed6b6
|
@@ -26,7 +26,11 @@ module Polivalente
|
|
26
26
|
|
27
27
|
def tag_list=(names)
|
28
28
|
self.tags = names.split(",").map do |name|
|
29
|
-
|
29
|
+
name.strip!
|
30
|
+
tag = name.downcase
|
31
|
+
tag = name.delete_prefix("#")
|
32
|
+
|
33
|
+
Tag.where(name: tag).first_or_create! if tag.length >= 3
|
30
34
|
end.compact
|
31
35
|
end
|
32
36
|
end
|
data/lib/polivalente/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polivalente
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leo Neto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|