jquery-tmpl-rails 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "jquery-tmpl-rails"
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
  s.authors = ["Jimmy Cuadra"]
7
7
  s.email = ["jimmy@jimmycuadra.com"]
8
8
  s.homepage = ""
@@ -1,2 +1,2 @@
1
1
  require "jquery-tmpl-rails/jquery_template"
2
- require "jquery-tmpl-rails/railtie"
2
+ require "jquery-tmpl-rails/engine"
@@ -1,7 +1,7 @@
1
1
  require "active_support/ordered_options"
2
2
 
3
3
  module JqueryTmplRails
4
- class Railtie < Rails::Railtie
4
+ class Railtie < Rails::Engine
5
5
  initializer "sprockets.jquery_templates", :after => "sprockets.environment", :group => :all do |app|
6
6
  next unless app.assets
7
7
 
@@ -3,6 +3,10 @@ require "spec_helper"
3
3
  describe JqueryTmplRails::JqueryTemplate do
4
4
  before { Rails.application.assets.cache = {} }
5
5
 
6
+ it "adds the jQuery Templates plugin to the load path" do
7
+ Rails.application.assets["jquery-tmpl"].should_not be_nil
8
+ end
9
+
6
10
  it "compiles templates with the .tmpl extension" do
7
11
  template = Rails.application.assets["templates/test"]
8
12
  template.to_s.should == %{jQuery.template("templates/test", "<div class=\\\"test\\\">{{test}}<\\/div>\\n");}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-tmpl-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
12
+ date: 2012-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70254225183020 !ruby/object:Gem::Requirement
16
+ requirement: &70282947797020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70254225183020
24
+ version_requirements: *70282947797020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70254225182620 !ruby/object:Gem::Requirement
27
+ requirement: &70282947796620 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70254225182620
35
+ version_requirements: *70282947796620
36
36
  description: Adds the jQuery Templates plugin and a corresponding Sprockets engine
37
37
  to the asset pipeline in Rails applications.
38
38
  email:
@@ -48,8 +48,8 @@ files:
48
48
  - Rakefile
49
49
  - jquery-tmpl-rails.gemspec
50
50
  - lib/jquery-tmpl-rails.rb
51
+ - lib/jquery-tmpl-rails/engine.rb
51
52
  - lib/jquery-tmpl-rails/jquery_template.rb
52
- - lib/jquery-tmpl-rails/railtie.rb
53
53
  - lib/jquery-tmpl-rails/version.rb
54
54
  - spec/dummy/README.rdoc
55
55
  - spec/dummy/Rakefile