simple_cells 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/simple_cells/views_helper.rb +2 -3
- data/lib/simple_cells/version.rb +1 -1
- metadata +9 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 408ec9e853d22b0a61a012930cc9dba54de2aedf
|
4
|
+
data.tar.gz: 9d32201a79e4b737ca0e7c3f748275114269a1a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1946a8c43157a9b9e46a324a94d42fbaeb942dd9d9c8d1c1329ebdfa9a5471514970a1ba1a1ea17c7ba2d4beca2acf5d7aa7abcd318918e59d3c6d30fd3dfaf
|
7
|
+
data.tar.gz: 33b3c870fb2bd0de4b5afc19aba94564575bfa287a239db363963fd4fd56da2837e6f57ee10b81123a7d08b2e325933b00cbd49c683658ecd603f8f78b9e35d2
|
@@ -1,9 +1,8 @@
|
|
1
1
|
module SimpleCells::ViewsHelper
|
2
2
|
def render_simple_cell(cell_name, action_name, simple_cell_arguments = {})
|
3
|
-
cell_class_name =
|
4
|
-
cell_class_name << "SimpleCell"
|
3
|
+
cell_class_name = "#{cell_name.to_s.camelize}SimpleCell"
|
5
4
|
|
6
|
-
cell_instance =
|
5
|
+
cell_instance = cell_class_name.constantize.new(view_context: self, simple_cell_arguments: simple_cell_arguments)
|
7
6
|
cell_instance.__send__(action_name)
|
8
7
|
cell_instance.render_simple_cell_view(cell_name, action_name)
|
9
8
|
end
|
data/lib/simple_cells/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_cells
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.0.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,22 +27,11 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 4.0.0
|
27
|
-
-
|
28
|
-
name: auto_autoloader
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
30
|
+
- - "<"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.4
|
32
|
+
version: 5.0.0
|
41
33
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
34
|
+
name: auto_autoloader
|
43
35
|
requirement: !ruby/object:Gem::Requirement
|
44
36
|
requirements:
|
45
37
|
- - ">="
|
@@ -94,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
86
|
version: '0'
|
95
87
|
requirements: []
|
96
88
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.6.
|
89
|
+
rubygems_version: 2.6.13
|
98
90
|
signing_key:
|
99
91
|
specification_version: 4
|
100
92
|
summary: An attempt at writing a very simple cells gem.
|