fancybox 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ <% content_for :javascripts do %>
2
+ <%= javascript_include_tag "fancybox" %>
3
+ <% end %>
4
+ <% content_for :stylesheets do %>
5
+ <%= stylesheet_link_tag "fancybox" %>
6
+ <% end %>
@@ -1,6 +1,9 @@
1
+ # coding: utf-8
1
2
  module Fancybox
2
- module Rails
3
- class Engine < ::Rails::Engine
3
+ class Engine < ::Rails::Engine
4
+ isolate_namespace Fancybox
5
+ initializer "fancybox_initializers" do |app|
6
+ ActionView::Base.send :include, Fancybox::Helper
4
7
  end
5
8
  end
6
9
  end
@@ -0,0 +1,7 @@
1
+ module Fancybox
2
+ module Helper
3
+ def fancybox
4
+ render "shared/fancybox"
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Fancybox
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
data/lib/fancybox.rb CHANGED
@@ -1,5 +1,2 @@
1
+ require "fancybox/engine"
1
2
  require "fancybox/version"
2
-
3
- if defined? Rails
4
- require 'fancybox/engine'
5
- end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fancybox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-06 00:00:00.000000000 Z
12
+ date: 2013-05-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Fancybox 2 for Rails
15
15
  email:
@@ -23,9 +23,11 @@ files:
23
23
  - LICENSE.txt
24
24
  - README.md
25
25
  - Rakefile
26
+ - app/views/shared/_fancybox.html.erb
26
27
  - fancybox.gemspec
27
28
  - lib/fancybox.rb
28
29
  - lib/fancybox/engine.rb
30
+ - lib/fancybox/helper.rb
29
31
  - lib/fancybox/version.rb
30
32
  - vendor/assets/images/fancybox/2.1.3/blank.gif
31
33
  - vendor/assets/images/fancybox/2.1.3/fancybox_loading.gif
@@ -59,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
61
  version: '0'
60
62
  requirements: []
61
63
  rubyforge_project:
62
- rubygems_version: 1.8.23
64
+ rubygems_version: 1.8.19
63
65
  signing_key:
64
66
  specification_version: 3
65
67
  summary: Fancybox 2 for Rails