ruby-hamljs 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in ruby-hamljs.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # Ruby HamlJS
2
+
3
+ HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js
4
+
5
+
6
+ # Installation
7
+
8
+ Sprockets.register_engine '.hamljs', ::Hamljs::Template
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,12 @@
1
+ require "ruby-hamljs/version"
2
+ require 'tilt'
3
+
4
+ module Hamljs
5
+ class Template < ::Tilt::HamlTemplate
6
+ def evaluate(scope, locals, &block)
7
+ haml_code = super(scope, locals, &block)
8
+ haml_code = haml_code.gsub(/\\/,"\\\\").gsub(/\"/,"\\\\\"").gsub(/\n/,"\\n")
9
+ "\"#{haml_code}\""
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,3 @@
1
+ module Hamljs
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "ruby-hamljs/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "ruby-hamljs"
7
+ s.version = Hamljs::VERSION
8
+ s.authors = ["Steel Fu"]
9
+ s.email = ["steelfu@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js}
12
+ s.description = %q{HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js}
13
+
14
+ s.rubyforge_project = "ruby-hamljs"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ # s.add_development_dependency "rspec"
23
+ s.add_runtime_dependency "tilt"
24
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-hamljs
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Steel Fu
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-05-11 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: tilt
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ description: HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js
35
+ email:
36
+ - steelfu@gmail.com
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - .gitignore
45
+ - Gemfile
46
+ - README.md
47
+ - Rakefile
48
+ - lib/ruby-hamljs.rb
49
+ - lib/ruby-hamljs/version.rb
50
+ - ruby-hamljs.gemspec
51
+ homepage: ""
52
+ licenses: []
53
+
54
+ post_install_message:
55
+ rdoc_options: []
56
+
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ hash: 3
65
+ segments:
66
+ - 0
67
+ version: "0"
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ requirements: []
78
+
79
+ rubyforge_project: ruby-hamljs
80
+ rubygems_version: 1.8.22
81
+ signing_key:
82
+ specification_version: 3
83
+ summary: HamlJS processing using TiltHaml Template instead of ExecJS and Haml.js
84
+ test_files: []
85
+