cmor_tags 0.0.54.pre → 0.0.59.pre

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: 8d2861ae6a70c41a87e79f0d76220b2339238a8b450808167bc49644064d407c
4
- data.tar.gz: 9d5442bfc2e5343bff432b107239bcd4e3f7e0052442cde564ca7984e4ed9b1a
3
+ metadata.gz: 2f956452bb1ed7f09778fbd657ce012eeb99f55500ad32f3aea746ccb3da4ebc
4
+ data.tar.gz: 67b50a63105a033ca52eaf28ad6031e948a4d0725e41f1f949ac2558a02f5418
5
5
  SHA512:
6
- metadata.gz: ac4dc4870dd006558ab6e8f669829920388868861d04123b3ae0cb74466429598dec8cb40c3056f16b52833e82b807cb76b3e83145e2d4e923629457edb332f4
7
- data.tar.gz: e888eb99637312dc614e57eedc37f9f28ea83c2cb444c97f1a8b981e99ac4ce65eb2ac2f33cf5d7294f0ebc80c9afd6b820de438e89fefcf6895e4c27a54dc9e
6
+ metadata.gz: d12c82d11f4a492c88e06577b0a8e15cfd3e3379e97b191227f4531a284033efa02d8d50b82f8a223246605454a503dac8a0ab9f6bd3373e8c5c06759aef6450
7
+ data.tar.gz: 932488b9dc58df6c1ac5044ae5683a4ac28f2f10fff649d163d25662aa1f13c8ec3445c5bd15670358786fc4004dadece61a8430b05254258f661a2be186a932
@@ -1,4 +1,4 @@
1
1
  %span.tags-for-resource
2
2
  - resource.tags.each do |tag|
3
- = link_to(cmor_tags.tag_path(tag_list: CGI::escape(tag.name)), class: 'label label-default', style: "background-color: #{tag.color}") do
3
+ = link_to(cmor_tags.tag_path(tag_list: CGI::escape(tag.name)), class: 'badge badge-default', style: "background-color: #{tag.color}") do
4
4
  = tag.name
@@ -12,6 +12,7 @@ module Cmor
12
12
  mattr_accessor(:add_submit_button_to_search_box) { true }
13
13
  mattr_accessor(:tag_search_exact_default_value) { false }
14
14
  mattr_accessor(:taggable_class_names) { [] }
15
+ mattr_accessor(:taggable_factory_name) { :cmor_blog_post }
15
16
 
16
17
  def self.taggable_classes
17
18
  @@taggable_class_names.map(&:constantize)
@@ -22,4 +22,10 @@ Cmor::Tags.configure do |config|
22
22
  # Default: config.taggable_class_names = %w()
23
23
  #
24
24
  config.taggable_class_names = %w()
25
+
26
+ # Factory name to use for taggable objects.
27
+ #
28
+ # Default: config.taggable_factory_name = :post
29
+ #
30
+ config.taggable_factory_name = :post
25
31
  end
@@ -1,5 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :cmor_tags_tagging, class: Cmor::Tags::Tagging do
3
+ association :taggable, factory: Cmor::Tags::Configuration.taggable_factory_name
3
4
  association :tag, factory: :cmor_tags_tag, strategy: :create
4
5
  context { 'tags' }
5
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.54.pre
4
+ version: 0.0.59.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-20 00:00:00.000000000 Z
11
+ date: 2020-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.54.pre
33
+ version: 0.0.59.pre
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.54.pre
40
+ version: 0.0.59.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cmor_core_frontend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.54.pre
47
+ version: 0.0.59.pre
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.54.pre
54
+ version: 0.0.59.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: 1.3.1
428
428
  requirements: []
429
- rubygems_version: 3.1.3
429
+ rubygems_version: 3.1.4
430
430
  signing_key:
431
431
  specification_version: 4
432
432
  summary: CMOR Tags Module