cyborg 0.0.3 → 0.0.4

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: 93a7ec338a79451053063c103bf3841971ed4e17
4
- data.tar.gz: b19854df52affbbba3f667acbb26d1babf0db94c
3
+ metadata.gz: d9b736c806174778c62362942829c5d701b301fd
4
+ data.tar.gz: b0f2b1a68ee00ddd316d52d58f6e5a123c71d97b
5
5
  SHA512:
6
- metadata.gz: c2ff8d3086dfa8e4f0e386a521de465a92f7ee1b398c14df3a76bcad2bae3aef80bbf8f7426b9b7abd4af5994715d2b9682b6bed5404cddd9ade1299e871d019
7
- data.tar.gz: 499b870c10f6848aabb2b4b88df2e7d23d1bb639fc19deed72d7707b7e16447a9fc9df7d7966ab59a3216c076f46d182327eb2195c5616a0c85b853dff7c4edc
6
+ metadata.gz: ff489c2af513708ec98a5aa7eb790601277a375c672c9fb1562f5ea4c444967e46a585a9d9cca39e3b26f7df0be250c53b6f0204dff12eb47615ade350a8dc47
7
+ data.tar.gz: e3b85dc800f7b5052d52b4809596728d6baf03c28ddd2c5559dc1e34c1b1c280c1b3a7485fae87ead283186fe79c31d86e7ee2007167987711f6ec88c2133c50
@@ -1,10 +1,10 @@
1
1
  module Cyborg
2
2
  module Helpers
3
3
  module LayoutHelper
4
- def layout(name, options={}, &block)
5
- layout = options.delete(:layout) || 'application'
4
+ def layout(name=nil, options={}, &block)
5
+ layout = name || options.delete(:layout) || 'application'
6
6
  yield
7
- render template: "layouts/#{name}/#{layout}"
7
+ render template: "layouts/#{Cyborg.plugin.name}/#{layout}"
8
8
  end
9
9
 
10
10
  def javascripts(&block)
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyborg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass