smooth_rails 0.0.11 → 0.0.12

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 "smooth" %>
3
+ <% end %>
4
+ <% content_for :stylesheets do %>
5
+ <%= stylesheet_link_tag "smooth" %>
6
+ <% end %>
@@ -1,6 +1,10 @@
1
1
  module SmoothRails
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
+ isolate_namespace SmoothRails
5
+ initializer "smooth_rails_initializers" do |app|
6
+ ActionView::Base.send :include, SmoothRails::Helper
7
+ end
4
8
  end
5
9
  end
6
10
  end
@@ -0,0 +1,8 @@
1
+ # coding: utf-8
2
+ module SmoothRails
3
+ module Helper
4
+ def smooth
5
+ render "shared/smooth"
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module SmoothRails
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
data/lib/smooth_rails.rb CHANGED
@@ -1,5 +1,6 @@
1
+ require "smooth_rails/helper"
1
2
  require "smooth_rails/version"
2
3
 
3
4
  if defined? Rails
4
- require 'smooth_rails/engine'
5
+ require "smooth_rails/engine"
5
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooth_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
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-04-18 00:00:00.000000000 Z
12
+ date: 2013-07-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Jquery slider for Rails app with assets
15
15
  email:
@@ -23,8 +23,10 @@ files:
23
23
  - LICENSE.txt
24
24
  - README.md
25
25
  - Rakefile
26
+ - app/views/shared/_smooth.html.erb
26
27
  - lib/smooth_rails.rb
27
28
  - lib/smooth_rails/engine.rb
29
+ - lib/smooth_rails/helper.rb
28
30
  - lib/smooth_rails/version.rb
29
31
  - smooth_rails.gemspec
30
32
  - vendor/assets/images/smooth/arrow_left.gif