simple_cells 0.0.4 → 0.0.5

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: 993eacf9178c60f36e0129999b6b9cde11a2bf0d
4
- data.tar.gz: d09dcb47aba5bacd963fac20699cb9c2b4024c7f
3
+ metadata.gz: b5f06fdafd9e84f85dddeeb3b68b830b0a07001c
4
+ data.tar.gz: 8a265c496a7f9e436812d426f49c2282888f93bc
5
5
  SHA512:
6
- metadata.gz: 1c4ad9c24f463a0bdf43912225d9ae792466ceb8647c65ab593dbd217d0764c91c3eb0fcbd5bc6a0f68d67bcca2f9bc46330acb4db17f62863d0e803e3860353
7
- data.tar.gz: db0767bd42b0e7534a99fc8185fb934a3faeb4e6a3203348adb331061facc2ee56b64eca985afda2cfc8619b37c7ae3032923ff6deddebd231f74ea6a2181e50
6
+ metadata.gz: 91b3391dc3aeff3ced88565847a957443c378c5fb939391111bc469aaccde673cf2dac6b7ac5f15a5853f5366bf7e1103bbb0b49d253c2ee76ac34f7c5103956
7
+ data.tar.gz: 5eab72256c85a928ff6244ffcac8a81283bd311fbcfa762fa672d832d10b03dcf468ce185ec34cc74c233fe13102f94f3b79ab03b07307a59f68c0c7bc08c6d8
data/README.md CHANGED
@@ -14,6 +14,11 @@ module ApplicationHelper
14
14
  end
15
15
  ```
16
16
 
17
+ Autoload the simple cells through "application.rb":
18
+ ```ruby
19
+ config.autoload_paths << Rails.root.join("app", "simple_cells")
20
+ ```
21
+
17
22
  ## Usage
18
23
 
19
24
  Add a cells-class to your application in "app/simple_cells/users_simple_cell.rb":
@@ -21,7 +26,7 @@ Add a cells-class to your application in "app/simple_cells/users_simple_cell.rb"
21
26
  class UsersSimpleCell < SimpleCells::BaseCell
22
27
  def my_action
23
28
  end
24
-
29
+
25
30
  def helper_method
26
31
  "Hello from helper method"
27
32
  end
@@ -3,10 +3,6 @@ module SimpleCells::ViewsHelper
3
3
  cell_class_name = StringCases.snake_to_camel(cell_name)
4
4
  cell_class_name << "SimpleCell"
5
5
 
6
- cell_file_path = Rails.root.join("app", "simple_cells", "#{cell_name}_simple_cell").to_s
7
-
8
- require cell_file_path
9
-
10
6
  cell_instance = StringCases.constantize(cell_class_name).new(view_context: self, simple_cell_arguments: simple_cell_arguments)
11
7
  cell_instance.__send__(action_name)
12
8
  cell_instance.render_simple_cell_view(cell_name, action_name)
@@ -1,3 +1,3 @@
1
1
  module SimpleCells
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.5".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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-04 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,118 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.0.4
55
- - !ruby/object:Gem::Dependency
56
- name: sqlite3
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 1.3.11
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '='
67
- - !ruby/object:Gem::Version
68
- version: 1.3.11
69
- - !ruby/object:Gem::Dependency
70
- name: rspec-rails
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '='
74
- - !ruby/object:Gem::Version
75
- version: 3.4.2
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '='
81
- - !ruby/object:Gem::Version
82
- version: 3.4.2
83
- - !ruby/object:Gem::Dependency
84
- name: best_practice_project
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '='
88
- - !ruby/object:Gem::Version
89
- version: 0.0.9
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '='
95
- - !ruby/object:Gem::Version
96
- version: 0.0.9
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 0.36.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 0.36.0
111
- - !ruby/object:Gem::Dependency
112
- name: capybara
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '='
116
- - !ruby/object:Gem::Version
117
- version: 2.6.2
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 2.6.2
125
- - !ruby/object:Gem::Dependency
126
- name: capybara-webkit
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 1.8.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 1.8.0
139
- - !ruby/object:Gem::Dependency
140
- name: factory_girl_rails
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - '='
144
- - !ruby/object:Gem::Version
145
- version: 4.7.0
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '='
151
- - !ruby/object:Gem::Version
152
- version: 4.7.0
153
- - !ruby/object:Gem::Dependency
154
- name: forgery
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '='
158
- - !ruby/object:Gem::Version
159
- version: 0.6.0
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '='
165
- - !ruby/object:Gem::Version
166
- version: 0.6.0
167
55
  description: An attempt at writing a very simple cells gem.
168
56
  email:
169
57
  - k@spernj.org
@@ -206,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
94
  version: '0'
207
95
  requirements: []
208
96
  rubyforge_project:
209
- rubygems_version: 2.4.0
97
+ rubygems_version: 2.6.8
210
98
  signing_key:
211
99
  specification_version: 4
212
100
  summary: An attempt at writing a very simple cells gem.