wallaby-core 0.1.1 → 0.1.2

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: ff2b4585a53f23921eae482722fde429421811305f463cd66fcfb74476ee1339
4
- data.tar.gz: 34736b322ef447ce571c251f6adddb2544de93c336420f93d2213d51d1a3d7e6
3
+ metadata.gz: 8395907973df19277e9cb9a726b2c0ec37ea3ad7cbea4ea009447c9c71c17f4a
4
+ data.tar.gz: c4a7d6d916973748ab861950818697a834a28c0ef1b614ce11ef6ba377a56847
5
5
  SHA512:
6
- metadata.gz: e34c066dea44077a351540704c6324c0c8314b4872686d555a25f72aec4947ed7418af447f46ca8075c8119c2440f0be0c96518550d885e8fc21de156cd51f35
7
- data.tar.gz: d47d5ed0a609d2bfe6b2415ff64d59d1ebed6640bff8227ce1a68e59dd7885d1c29f73751fe509cfafd8104294f4d60ba2328524a4ce4ca84dc57cdb15a0ebb3
6
+ metadata.gz: 77cbf958df5073c15ee4a20c00c2f9aaba1898136294e84b54ddeb82257c82d7c29f40084a5fa5c9f4788d65bb132a336033ff47dc2302f3ae7543f7ccaeb6e9
7
+ data.tar.gz: 4b3ba5ff82410c0e63996be5358e2a9f33084f65ed45331531957431e3eb5ec36e8fb140e845ae4c6615d7ab67d5dc1efb0cc0ac34510e770819a08e8f8419a1
@@ -10,7 +10,7 @@ module Wallaby
10
10
  # @param locals [Hash]
11
11
  # @return [String] output
12
12
  def render(context, file_name, locals = {}, &block)
13
- snake_class = file_name[%r{(?<=app/).+(?=\.rb)}].split(SLASH, 2).last
13
+ snake_class = file_name[%r{(?<=app/views/).+(?=\.rb)}]
14
14
  cell_class = snake_class.camelize.constantize
15
15
  Rails.logger.info " Rendered [cell] #{file_name}"
16
16
  cell_class.new(context, locals).render_complete(&block)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Wallaby
4
4
  module Core
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wallaby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tian Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-11 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  - !ruby/object:Gem::Version
216
216
  version: '0'
217
217
  requirements: []
218
- rubygems_version: 3.0.6
218
+ rubygems_version: 3.0.3
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: The core of Wallaby