lazybox 1.1.0 → 1.1.1

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: 14ba4ad8d9f02ddba95764fc533c30d8fad8d2da
4
- data.tar.gz: 3df0f542f3d540f5143bc602aa4d84d16b856350
3
+ metadata.gz: 182f11f45966690f7900c90832787624db2fa82d
4
+ data.tar.gz: 0a050dd9345c89ed99fb19b6b08c1bab21859e22
5
5
  SHA512:
6
- metadata.gz: 4e79db94d9770028368d53b3533a3b58866da7c52b99f0cdf3f4215760b7aede668bfc2ebe9ed189864d67bd34de00f2afee46d8caa13b9973e8df184dbd92cc
7
- data.tar.gz: 9f6fa44ffb06c4c6b77a124f080667572862198a62427c1ed8fcab842a775ce2a1734fc849526df74cdb8e6e8098012bc258eb61e11d101ab7f2a3574d4ccc99
6
+ metadata.gz: e13e1b69c41054c6fdd84b9704173809ce17120bc998b57851f361f3fc991e402e0249f5b0c6441d6bd0e9c54e266a6a3610f2d0bfeadbe51d8887338f725970
7
+ data.tar.gz: bd005ce3603688589f450f9792ebd03e4293a337a2c1e1c1ea8eca62102272ae8592b07b0303393604224a4f6a6e13427ce3be3d7f31beb10b9c61e1dca2579b
data/README.md CHANGED
@@ -32,7 +32,7 @@ Add to your layout helper `render_lazybox`:
32
32
 
33
33
  ```slim
34
34
  ...
35
- render_lazybox
35
+ render_lazybox(active: true)
36
36
  body
37
37
  html
38
38
  ```
@@ -5,8 +5,8 @@ module Lazybox
5
5
 
6
6
  module Helper
7
7
 
8
- def render_lazybox
9
- content_tag(:div, '', id: :lazy_overlay, class: ('active' if content_for(:lazybox))) +
8
+ def render_lazybox(options = {})
9
+ content_tag(:div, '', id: :lazy_overlay, class: ('active' if options[:active] && content_for?(:lazybox))) +
10
10
  content_tag(:div, id: :lazybox) do
11
11
  button_tag('', id: :lazy_close, class: :visible) +
12
12
  content_tag(:div, id: :lazy_body) do
@@ -1,3 +1,3 @@
1
1
  module Lazybox
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazybox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Galushka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails