biovision-testimonials 0.1.190607.1 → 0.3.200627.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/biovision/components/testimonials_component.rb +5 -0
- data/app/views/admin/components/links/_testimonials.html.erb +1 -0
- data/db/migrate/20190606000000_create_testimonials.rb +3 -1
- data/lib/biovision/testimonials/version.rb +1 -1
- metadata +4 -32
- data/app/views/admin/index/dashboard/_biovision_testimonials.html.erb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e11b2c5720caa2b676038c280974ec7e27a9a36e9871f9ae92d7fa13225c5f8f
|
4
|
+
data.tar.gz: d19b1362b5009e4f1e448d96da4ce78c0e88b2417bd00e99781d3a3cfce2b57b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06f12fafd024778731a852ee486789f4d8e830c57b224c0223459d332a15cbdf750169e9a53948243fd2bbb5ea481946dafe7ddb0254c4d6101b37b29e79adc3
|
7
|
+
data.tar.gz: 499838d7702038ad0c4c0ad2fdef10130ea1347e5a0bd5535a6e517671c7554962d843b7499482cc3f7cb0649fd9b7fc8f9ea5447fb6a3f8d2793b07495e77e9
|
@@ -4,6 +4,11 @@ module Biovision
|
|
4
4
|
module Components
|
5
5
|
# Handler for testimonials component
|
6
6
|
class TestimonialsComponent < BaseComponent
|
7
|
+
SLUG = 'testimonials'
|
8
|
+
|
9
|
+
def allow?(options = {})
|
10
|
+
UserPrivilege.user_has_privilege?(user, :testimonials_manager)
|
11
|
+
end
|
7
12
|
end
|
8
13
|
end
|
9
14
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<li><%= render 'admin/testimonials/nav_item' %></li>
|
@@ -30,7 +30,9 @@ class CreateTestimonials < ActiveRecord::Migration[5.2]
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def create_component
|
33
|
-
|
33
|
+
criteria = { slug: Biovision::Components::TestimonialsComponent::SLUG }
|
34
|
+
|
35
|
+
BiovisionComponent.create!(criteria) unless BiovisionComponent.where(criteria).exists?
|
34
36
|
end
|
35
37
|
|
36
38
|
def create_privilege
|
metadata
CHANGED
@@ -1,43 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biovision-testimonials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.200627.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Khan-Magomedov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rails
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.3
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 5.2.3
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rails-i18n
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '5.0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '5.0'
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: biovision-base
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,7 +96,7 @@ files:
|
|
124
96
|
- app/helpers/testimonials_helper.rb
|
125
97
|
- app/models/testimonial.rb
|
126
98
|
- app/services/biovision/components/testimonials_component.rb
|
127
|
-
- app/views/admin/
|
99
|
+
- app/views/admin/components/links/_testimonials.html.erb
|
128
100
|
- app/views/admin/testimonials/_nav_item.html.erb
|
129
101
|
- app/views/admin/testimonials/entity/_in_list.html.erb
|
130
102
|
- app/views/admin/testimonials/index.html.erb
|
@@ -162,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
134
|
- !ruby/object:Gem::Version
|
163
135
|
version: '0'
|
164
136
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
137
|
+
rubygems_version: 3.1.4
|
166
138
|
signing_key:
|
167
139
|
specification_version: 4
|
168
140
|
summary: Testimonials component for biovision-based applications
|