coffee-filter 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,18 @@ Add the following to your Gemfile:
29
29
 
30
30
  gem 'coffee-filter'
31
31
 
32
+ === Caveats
33
+ Using Ruby interpolation within the +:coffeescript+ block will prevent Haml from caching the result of compilation.
34
+ This means that your coffeescript block will be compiled by the coffeescript engine on runtime during every request,
35
+ which is something you'll definitely want to avoid (since it's orders of magnitude slower).
32
36
 
33
- Copyright (c) 2011 Paul Nicholson, released under the MIT license
37
+ In other words, using constructs similar to this:
38
+
39
+ :coffeescript
40
+ @server_time = #{Time.now.to_i}
34
41
 
42
+ will cost you around 100ms on each request. Either use the +:javascript+ filter for this,
43
+ or embed the dynamic content in some other way in the DOM.
35
44
 
45
+
46
+ Copyright (c) 2011 Paul Nicholson, released under the MIT license
@@ -20,4 +20,5 @@ Gem::Specification.new do |s|
20
20
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
21
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
22
  s.require_paths = ["lib"]
23
+ s.license = "MIT"
23
24
  end
@@ -1,5 +1,5 @@
1
1
  module Coffee
2
2
  module Filter
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,62 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: coffee-filter
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Paul Nicholson
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-05-30 00:00:00 -04:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: haml
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70298783564680 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
- - 18
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
32
21
  version: 3.0.18
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: coffee-script
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70298783564680
25
+ - !ruby/object:Gem::Dependency
26
+ name: coffee-script
27
+ requirement: &70298783669800 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 2
45
- - 2
46
- - 0
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
47
32
  version: 2.2.0
48
33
  type: :runtime
49
- version_requirements: *id002
50
- description: CoffeeFilter is a custom haml filter for rendering coffeescript inside your haml templates. It was inspired by Ivan Nemytchenko's coffee-haml-filter but I wanted an installable gem and coffeescript as the filter name.
51
- email:
34
+ prerelease: false
35
+ version_requirements: *70298783669800
36
+ description: CoffeeFilter is a custom haml filter for rendering coffeescript inside
37
+ your haml templates. It was inspired by Ivan Nemytchenko's coffee-haml-filter but
38
+ I wanted an installable gem and coffeescript as the filter name.
39
+ email:
52
40
  - paul@webpowerdesign.net
53
41
  executables: []
54
-
55
42
  extensions: []
56
-
57
43
  extra_rdoc_files: []
58
-
59
- files:
44
+ files:
60
45
  - .gitignore
61
46
  - Gemfile
62
47
  - MIT-LICENSE
@@ -66,37 +51,30 @@ files:
66
51
  - lib/coffee-filter.rb
67
52
  - lib/coffee-filter/coffeescript.rb
68
53
  - lib/coffee-filter/version.rb
69
- has_rdoc: true
70
54
  homepage: http://github.com/paulnicholson/coffee-filter
71
- licenses: []
72
-
55
+ licenses:
56
+ - MIT
73
57
  post_install_message:
74
58
  rdoc_options: []
75
-
76
- require_paths:
59
+ require_paths:
77
60
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
79
62
  none: false
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 0
85
- version: "0"
86
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
68
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- segments:
92
- - 0
93
- version: "0"
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
94
73
  requirements: []
95
-
96
74
  rubyforge_project: coffee-filter
97
- rubygems_version: 1.3.7
75
+ rubygems_version: 1.8.11
98
76
  signing_key:
99
77
  specification_version: 3
100
78
  summary: CoffeeFilter is a custom haml filter for rendering coffeescript.
101
79
  test_files: []
102
-
80
+ has_rdoc: