cmor_tags 0.0.55.pre → 0.0.60.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: 0776225322c26586d83ad4f2474d3f17a7d32028610334e6869a024a88c6d121
4
- data.tar.gz: 401539ff883d481fa4543c86c42194674347344e10126b86af3e746874f242d8
3
+ metadata.gz: 7952a92fd914a409a62ffe1edae74f90d1b549b1d3cac98f8295895c2505c9fd
4
+ data.tar.gz: 3edda0d9a03008d3fec7e5d5244ebddad045ea5e0ee0391b89d87375e1eab69c
5
5
  SHA512:
6
- metadata.gz: f819eaabe7e02e9fdcccb20113f6d84a7569ffa24b110578c08835feff3e0f74b477ce4ec5b3069477f875b28f04ad8f74f1633ff7d3d8ec93eb666bb98823ab
7
- data.tar.gz: 6dc7502415fa0df4ca002ecc9bfc7d6b2333c3ccf24eb2f4350bba411aaef02bd9f2ecef26dafb9461558805a553d473dcdca610fbeecad1f686e863a3b9c337
6
+ metadata.gz: 21ea6fdec87b97b70026ce7b3d8e89fb4a4b5d08739a3616ec81854d26620235c1c2361f30f4cc260ca4d08252103010ed1c05908b98a048c111fb40598c7181
7
+ data.tar.gz: 9fa4702be7b20676c632a76f85edd25c8b1016eba9ccca467705bceb3a15d8fb94c40a27797be5aeb263dbf5c0f482d6b5bced1e661e12711985ddd75be1feea
@@ -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.55.pre
4
+ version: 0.0.60.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-06-28 00:00:00.000000000 Z
11
+ date: 2020-10-21 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.55.pre
33
+ version: 0.0.60.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.55.pre
40
+ version: 0.0.60.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.55.pre
47
+ version: 0.0.60.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.55.pre
54
+ version: 0.0.60.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement