haml_assets 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.rspec +1 -0
- data/Gemfile.lock +98 -2
- data/Rakefile +5 -0
- data/haml_assets.gemspec +6 -1
- data/lib/haml_assets.rb +6 -1
- data/lib/haml_assets/engine.rb +9 -1
- data/lib/haml_assets/haml_sprockets_engine.rb +24 -14
- data/lib/haml_assets/version.rb +1 -1
- data/spec/rails_app/.gitignore +5 -0
- data/spec/rails_app/Rakefile +7 -0
- data/spec/rails_app/app/assets/javascripts/empty.jst.ejs.haml +0 -0
- data/spec/rails_app/app/assets/javascripts/link_to.jst.ejs.haml +0 -0
- data/spec/rails_app/app/controllers/application_controller.rb +3 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/config/application.rb +50 -0
- data/spec/rails_app/config/boot.rb +6 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/test.rb +37 -0
- data/spec/rails_app/config/initializers/secret_token.rb +7 -0
- data/spec/rails_app/config/initializers/session_store.rb +8 -0
- data/spec/rails_app/config/initializers/wrap_parameters.rb +10 -0
- data/spec/rails_app/config/routes.rb +58 -0
- data/spec/rails_app/script/rails +6 -0
- data/spec/render_spec.rb +7 -0
- data/spec/spec_helper.rb +8 -0
- metadata +87 -7
data/.gitignore
CHANGED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,114 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
haml_assets (0.0.
|
4
|
+
haml_assets (0.0.4)
|
5
5
|
haml
|
6
6
|
tilt
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
11
|
+
actionmailer (3.1.0)
|
12
|
+
actionpack (= 3.1.0)
|
13
|
+
mail (~> 2.3.0)
|
14
|
+
actionpack (3.1.0)
|
15
|
+
activemodel (= 3.1.0)
|
16
|
+
activesupport (= 3.1.0)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
i18n (~> 0.6)
|
20
|
+
rack (~> 1.3.2)
|
21
|
+
rack-cache (~> 1.0.3)
|
22
|
+
rack-mount (~> 0.8.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.0.0)
|
25
|
+
activemodel (3.1.0)
|
26
|
+
activesupport (= 3.1.0)
|
27
|
+
bcrypt-ruby (~> 3.0.0)
|
28
|
+
builder (~> 3.0.0)
|
29
|
+
i18n (~> 0.6)
|
30
|
+
activerecord (3.1.0)
|
31
|
+
activemodel (= 3.1.0)
|
32
|
+
activesupport (= 3.1.0)
|
33
|
+
arel (~> 2.2.1)
|
34
|
+
tzinfo (~> 0.3.29)
|
35
|
+
activeresource (3.1.0)
|
36
|
+
activemodel (= 3.1.0)
|
37
|
+
activesupport (= 3.1.0)
|
38
|
+
activesupport (3.1.0)
|
39
|
+
multi_json (~> 1.0)
|
40
|
+
arel (2.2.1)
|
41
|
+
bcrypt-ruby (3.0.1)
|
42
|
+
builder (3.0.0)
|
43
|
+
diff-lcs (1.1.3)
|
44
|
+
ejs (1.0.0)
|
45
|
+
erubis (2.7.0)
|
46
|
+
haml (3.1.4)
|
47
|
+
hike (1.2.1)
|
48
|
+
i18n (0.6.0)
|
49
|
+
mail (2.3.0)
|
50
|
+
i18n (>= 0.4.0)
|
51
|
+
mime-types (~> 1.16)
|
52
|
+
treetop (~> 1.4.8)
|
53
|
+
mime-types (1.16)
|
54
|
+
multi_json (1.0.3)
|
55
|
+
polyglot (0.3.2)
|
56
|
+
rack (1.3.3)
|
57
|
+
rack-cache (1.0.3)
|
58
|
+
rack (>= 0.4)
|
59
|
+
rack-mount (0.8.3)
|
60
|
+
rack (>= 1.0.0)
|
61
|
+
rack-ssl (1.3.2)
|
62
|
+
rack
|
63
|
+
rack-test (0.6.1)
|
64
|
+
rack (>= 1.0)
|
65
|
+
rails (3.1.0)
|
66
|
+
actionmailer (= 3.1.0)
|
67
|
+
actionpack (= 3.1.0)
|
68
|
+
activerecord (= 3.1.0)
|
69
|
+
activeresource (= 3.1.0)
|
70
|
+
activesupport (= 3.1.0)
|
71
|
+
bundler (~> 1.0)
|
72
|
+
railties (= 3.1.0)
|
73
|
+
railties (3.1.0)
|
74
|
+
actionpack (= 3.1.0)
|
75
|
+
activesupport (= 3.1.0)
|
76
|
+
rack-ssl (~> 1.3.2)
|
77
|
+
rake (>= 0.8.7)
|
78
|
+
rdoc (~> 3.4)
|
79
|
+
thor (~> 0.14.6)
|
80
|
+
rake (0.9.2)
|
81
|
+
rdoc (3.9.4)
|
82
|
+
rspec (2.6.0)
|
83
|
+
rspec-core (~> 2.6.0)
|
84
|
+
rspec-expectations (~> 2.6.0)
|
85
|
+
rspec-mocks (~> 2.6.0)
|
86
|
+
rspec-core (2.6.4)
|
87
|
+
rspec-expectations (2.6.0)
|
88
|
+
diff-lcs (~> 1.1.2)
|
89
|
+
rspec-mocks (2.6.0)
|
90
|
+
rspec-rails (2.6.1)
|
91
|
+
actionpack (~> 3.0)
|
92
|
+
activesupport (~> 3.0)
|
93
|
+
railties (~> 3.0)
|
94
|
+
rspec (~> 2.6.0)
|
95
|
+
sprockets (2.0.0)
|
96
|
+
hike (~> 1.2)
|
97
|
+
rack (~> 1.0)
|
98
|
+
tilt (~> 1.1, != 1.3.0)
|
99
|
+
thor (0.14.6)
|
12
100
|
tilt (1.3.3)
|
101
|
+
treetop (1.4.10)
|
102
|
+
polyglot
|
103
|
+
polyglot (>= 0.3.1)
|
104
|
+
tzinfo (0.3.29)
|
13
105
|
|
14
106
|
PLATFORMS
|
15
107
|
ruby
|
16
108
|
|
17
109
|
DEPENDENCIES
|
110
|
+
ejs
|
18
111
|
haml_assets!
|
112
|
+
rails (~> 3.1.0)
|
113
|
+
rspec
|
114
|
+
rspec-rails
|
data/Rakefile
CHANGED
data/haml_assets.gemspec
CHANGED
@@ -20,4 +20,9 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.add_runtime_dependency "haml"
|
22
22
|
s.add_runtime_dependency "tilt"
|
23
|
-
|
23
|
+
|
24
|
+
s.add_development_dependency 'rails', '~> 3.1.0'
|
25
|
+
s.add_development_dependency 'rspec'
|
26
|
+
s.add_development_dependency 'rspec-rails'
|
27
|
+
s.add_development_dependency 'ejs'
|
28
|
+
end
|
data/lib/haml_assets.rb
CHANGED
data/lib/haml_assets/engine.rb
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
module HamlAssets
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
initializer "sprockets.haml", after
|
3
|
+
initializer "sprockets.haml", :after => "sprockets.environment", :group => :all do |app|
|
4
4
|
next unless app.assets
|
5
5
|
|
6
6
|
app.assets.register_engine('.haml', HamlSprocketsEngine)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
10
|
+
|
11
|
+
module HamlAssets
|
12
|
+
class Railtie < ::Rails::Railtie
|
13
|
+
if ::Rails.version.to_f >= 3.1
|
14
|
+
config.app_generators.javascript_template_engine :haml
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -3,29 +3,29 @@ require 'tilt'
|
|
3
3
|
|
4
4
|
module HamlAssets
|
5
5
|
class HamlSprocketsEngine < Tilt::Template
|
6
|
-
attr_accessor :locals
|
7
|
-
|
8
6
|
def self.default_mime_type
|
9
7
|
'application/javascript'
|
10
8
|
end
|
11
9
|
|
12
|
-
|
13
|
-
include Rails.application.routes.url_helpers
|
14
|
-
include Rails.application.routes.mounted_helpers
|
15
|
-
include ActionView::Helpers
|
16
|
-
|
10
|
+
module ViewContext
|
17
11
|
attr_accessor :output_buffer
|
18
12
|
|
13
|
+
def self.included(klass)
|
14
|
+
klass.instance_eval do
|
15
|
+
include Rails.application.routes.url_helpers
|
16
|
+
include Rails.application.routes.mounted_helpers
|
17
|
+
include ActionView::Helpers
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
19
21
|
def protect_against_forgery?
|
20
22
|
false
|
21
23
|
end
|
22
24
|
end
|
23
25
|
|
24
26
|
def evaluate(scope, locals, &block)
|
25
|
-
self.locals = locals
|
26
|
-
|
27
27
|
begin
|
28
|
-
"" + render_haml
|
28
|
+
"" + render_haml(view_context(scope), locals)
|
29
29
|
rescue Exception => e
|
30
30
|
Rails.logger.debug "ERROR: compiling #{file} RAISED #{e}"
|
31
31
|
Rails.logger.debug "Backtrace: #{e.backtrace.join("\n")}"
|
@@ -34,14 +34,24 @@ module HamlAssets
|
|
34
34
|
|
35
35
|
protected
|
36
36
|
|
37
|
+
def context_class(scope)
|
38
|
+
@context_class ||= Class.new(scope.environment.context_class)
|
39
|
+
end
|
40
|
+
|
37
41
|
def prepare; end
|
38
42
|
|
39
|
-
def render_haml
|
40
|
-
Haml::Engine.new(data, Haml::Template.options.merge(:escape_attrs => false)).render(
|
43
|
+
def render_haml(context, locals)
|
44
|
+
Haml::Engine.new(data, Haml::Template.options.merge(:escape_attrs => false)).render(context, locals)
|
41
45
|
end
|
42
46
|
|
43
|
-
|
44
|
-
|
47
|
+
# The Sprockets context is shared among all the processors, give haml its
|
48
|
+
# own context
|
49
|
+
def view_context(scope)
|
50
|
+
@view_context ||=
|
51
|
+
context_class(scope).new(
|
52
|
+
scope.environment,
|
53
|
+
scope.logical_path.to_s,
|
54
|
+
scope.pathname).tap { |ctx| ctx.class.send(:include, ViewContext) }
|
45
55
|
end
|
46
56
|
end
|
47
57
|
end
|
data/lib/haml_assets/version.rb
CHANGED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
+
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
6
|
+
|
7
|
+
RailsApp::Application.load_tasks
|
File without changes
|
File without changes
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require "action_controller/railtie"
|
4
|
+
require "active_resource/railtie"
|
5
|
+
require "sprockets/railtie"
|
6
|
+
|
7
|
+
if defined?(Bundler)
|
8
|
+
# If you precompile assets before deploying to production, use this line
|
9
|
+
Bundler.require *Rails.groups(:assets => %w(development test))
|
10
|
+
# If you want your assets lazily compiled in production, use this line
|
11
|
+
# Bundler.require(:default, :assets, Rails.env)
|
12
|
+
end
|
13
|
+
|
14
|
+
module RailsApp
|
15
|
+
class Application < Rails::Application
|
16
|
+
# Settings in config/environments/* take precedence over those specified here.
|
17
|
+
# Application configuration should go into files in config/initializers
|
18
|
+
# -- all .rb files in that directory are automatically loaded.
|
19
|
+
|
20
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
21
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
22
|
+
|
23
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
24
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
25
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
26
|
+
|
27
|
+
# Activate observers that should always be running.
|
28
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
29
|
+
|
30
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
31
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
32
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
33
|
+
|
34
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
35
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
36
|
+
# config.i18n.default_locale = :de
|
37
|
+
|
38
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
39
|
+
config.encoding = "utf-8"
|
40
|
+
|
41
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
42
|
+
config.filter_parameters += [:password]
|
43
|
+
|
44
|
+
# Enable the asset pipeline
|
45
|
+
config.assets.enabled = true
|
46
|
+
|
47
|
+
# Version of your assets, change this if you want to expire all your assets
|
48
|
+
config.assets.version = '1.0'
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
RailsApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
28
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
29
|
+
# like if you have constraints or database-specific column types
|
30
|
+
# config.active_record.schema_format = :sql
|
31
|
+
|
32
|
+
# Print deprecation notices to the stderr
|
33
|
+
config.active_support.deprecation = :stderr
|
34
|
+
|
35
|
+
# Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
|
36
|
+
config.assets.allow_debugging = true
|
37
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
RailsApp::Application.config.secret_token = 'e787a489c02bab15e4be9b57d8e5e9737667a04b839e6ccb06fe7a837808ed18baba96c7c18a39faaa33a3bd633211c7f2c79bbf4354a227cfa2ed4859fb3553'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
RailsApp::Application.config.session_store :cookie_store, key: '_rails_app_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# RailsApp::Application.config.session_store :active_record_store
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
RailsApp::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation:
|
3
|
+
# first created -> highest priority.
|
4
|
+
|
5
|
+
# Sample of regular route:
|
6
|
+
# match 'products/:id' => 'catalog#view'
|
7
|
+
# Keep in mind you can assign values other than :controller and :action
|
8
|
+
|
9
|
+
# Sample of named route:
|
10
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
+
|
13
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
+
# resources :products
|
15
|
+
|
16
|
+
# Sample resource route with options:
|
17
|
+
# resources :products do
|
18
|
+
# member do
|
19
|
+
# get 'short'
|
20
|
+
# post 'toggle'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# collection do
|
24
|
+
# get 'sold'
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Sample resource route with sub-resources:
|
29
|
+
# resources :products do
|
30
|
+
# resources :comments, :sales
|
31
|
+
# resource :seller
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Sample resource route with more complex sub-resources
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments
|
37
|
+
# resources :sales do
|
38
|
+
# get 'recent', :on => :collection
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
|
42
|
+
# Sample resource route within a namespace:
|
43
|
+
# namespace :admin do
|
44
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
+
# # (app/controllers/admin/products_controller.rb)
|
46
|
+
# resources :products
|
47
|
+
# end
|
48
|
+
|
49
|
+
# You can have the root of your site routed with "root"
|
50
|
+
# just remember to delete public/index.html.
|
51
|
+
# root :to => 'welcome#index'
|
52
|
+
|
53
|
+
# See how all your routes lay out with "rake routes"
|
54
|
+
|
55
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
+
# match ':controller(/:action(/:id(.:format)))'
|
58
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/spec/render_spec.rb
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe HamlAssets do
|
4
|
+
it "should have the proper format" do
|
5
|
+
RailsApp::Application.assets['link_to.jst.ejs.haml'].to_s.should == "(function() {\n this.JST || (this.JST = {});\n this.JST[\"link_to\"] = function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('');}return __p.join('');};\n}).call(this);\n"
|
6
|
+
end
|
7
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2012-01-25 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: haml
|
17
|
-
requirement: &
|
17
|
+
requirement: &70216899459200 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70216899459200
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: tilt
|
28
|
-
requirement: &
|
28
|
+
requirement: &70216899457940 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,51 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70216899457940
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rails
|
39
|
+
requirement: &70216899457060 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 3.1.0
|
45
|
+
type: :development
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *70216899457060
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rspec
|
50
|
+
requirement: &70216899456420 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *70216899456420
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rspec-rails
|
61
|
+
requirement: &70216899455960 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *70216899455960
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: ejs
|
72
|
+
requirement: &70216899455540 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *70216899455540
|
37
81
|
description: Use Haml with Rails helpers in the asset pipeline
|
38
82
|
email:
|
39
83
|
- les@infbio.com
|
@@ -43,6 +87,7 @@ extensions: []
|
|
43
87
|
extra_rdoc_files: []
|
44
88
|
files:
|
45
89
|
- .gitignore
|
90
|
+
- .rspec
|
46
91
|
- .rvmrc
|
47
92
|
- Gemfile
|
48
93
|
- Gemfile.lock
|
@@ -53,6 +98,23 @@ files:
|
|
53
98
|
- lib/haml_assets/engine.rb
|
54
99
|
- lib/haml_assets/haml_sprockets_engine.rb
|
55
100
|
- lib/haml_assets/version.rb
|
101
|
+
- spec/rails_app/.gitignore
|
102
|
+
- spec/rails_app/Rakefile
|
103
|
+
- spec/rails_app/app/assets/javascripts/empty.jst.ejs.haml
|
104
|
+
- spec/rails_app/app/assets/javascripts/link_to.jst.ejs.haml
|
105
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
106
|
+
- spec/rails_app/config.ru
|
107
|
+
- spec/rails_app/config/application.rb
|
108
|
+
- spec/rails_app/config/boot.rb
|
109
|
+
- spec/rails_app/config/environment.rb
|
110
|
+
- spec/rails_app/config/environments/test.rb
|
111
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
112
|
+
- spec/rails_app/config/initializers/session_store.rb
|
113
|
+
- spec/rails_app/config/initializers/wrap_parameters.rb
|
114
|
+
- spec/rails_app/config/routes.rb
|
115
|
+
- spec/rails_app/script/rails
|
116
|
+
- spec/render_spec.rb
|
117
|
+
- spec/spec_helper.rb
|
56
118
|
homepage: ''
|
57
119
|
licenses: []
|
58
120
|
post_install_message:
|
@@ -77,4 +139,22 @@ rubygems_version: 1.8.10
|
|
77
139
|
signing_key:
|
78
140
|
specification_version: 3
|
79
141
|
summary: Use Haml with Rails helpers in the asset pipeline
|
80
|
-
test_files:
|
142
|
+
test_files:
|
143
|
+
- spec/rails_app/.gitignore
|
144
|
+
- spec/rails_app/Rakefile
|
145
|
+
- spec/rails_app/app/assets/javascripts/empty.jst.ejs.haml
|
146
|
+
- spec/rails_app/app/assets/javascripts/link_to.jst.ejs.haml
|
147
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
148
|
+
- spec/rails_app/config.ru
|
149
|
+
- spec/rails_app/config/application.rb
|
150
|
+
- spec/rails_app/config/boot.rb
|
151
|
+
- spec/rails_app/config/environment.rb
|
152
|
+
- spec/rails_app/config/environments/test.rb
|
153
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
154
|
+
- spec/rails_app/config/initializers/session_store.rb
|
155
|
+
- spec/rails_app/config/initializers/wrap_parameters.rb
|
156
|
+
- spec/rails_app/config/routes.rb
|
157
|
+
- spec/rails_app/script/rails
|
158
|
+
- spec/render_spec.rb
|
159
|
+
- spec/spec_helper.rb
|
160
|
+
has_rdoc:
|