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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5f06fdafd9e84f85dddeeb3b68b830b0a07001c
4
- data.tar.gz: 8a265c496a7f9e436812d426f49c2282888f93bc
3
+ metadata.gz: 408ec9e853d22b0a61a012930cc9dba54de2aedf
4
+ data.tar.gz: 9d32201a79e4b737ca0e7c3f748275114269a1a3
5
5
  SHA512:
6
- metadata.gz: 91b3391dc3aeff3ced88565847a957443c378c5fb939391111bc469aaccde673cf2dac6b7ac5f15a5853f5366bf7e1103bbb0b49d253c2ee76ac34f7c5103956
7
- data.tar.gz: 5eab72256c85a928ff6244ffcac8a81283bd311fbcfa762fa672d832d10b03dcf468ce185ec34cc74c233fe13102f94f3b79ab03b07307a59f68c0c7bc08c6d8
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 = StringCases.snake_to_camel(cell_name)
4
- cell_class_name << "SimpleCell"
3
+ cell_class_name = "#{cell_name.to_s.camelize}SimpleCell"
5
4
 
6
- cell_instance = StringCases.constantize(cell_class_name).new(view_context: self, simple_cell_arguments: simple_cell_arguments)
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
@@ -1,3 +1,3 @@
1
1
  module SimpleCells
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.6".freeze
3
3
  end
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.5
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: 2017-01-27 00:00:00.000000000 Z
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
- - !ruby/object:Gem::Dependency
28
- name: auto_autoloader
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
30
+ - - "<"
32
31
  - !ruby/object:Gem::Version
33
- version: 0.0.4
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: string-cases
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.8
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.