ice 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +3 -3
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/ice.gemspec +80 -0
- metadata +7 -4
data/README.markdown
CHANGED
@@ -17,19 +17,19 @@ It runs the templates through an erb-ish parser and then uses the [TheRubyRacer
|
|
17
17
|
|
18
18
|
Liquid is excellent but has several disadvantages
|
19
19
|
|
20
|
-
* Hard to extend without knowing
|
20
|
+
* Hard to extend without knowing Liquid internals
|
21
21
|
* Introduces yet-another-language, whereas many designers are already familiar with javascript
|
22
22
|
* Doesn't allow template editors to use a rich object model and create their own functions
|
23
23
|
* Doesn't have a rich set of support libraries like javascript brings to the table.
|
24
24
|
|
25
|
-
Note that we're still big fans of
|
25
|
+
Note that we're still big fans of Liquid. In fact, we call this project "ice" as a tribute (keeping the metaphor alive, we use "Cubes" where they have "Drops").
|
26
26
|
|
27
27
|
Laminate uses the Lua language, which is a slight improvement, but still is unfamiliar to most developers.
|
28
28
|
|
29
29
|
|
30
30
|
## to_ice
|
31
31
|
|
32
|
-
Every object is revealed to the templates via
|
32
|
+
Every object is revealed to the templates via its to_ice method. This helps filter the objects that are passed into the javascript, so people editing the page only have access to a sanitized version of your data.
|
33
33
|
|
34
34
|
Instances of some classes like String and Numeric just return themselves as the result of to_ice. Hashes and Arrays run to_ice recursively on their members.
|
35
35
|
|
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
gem.authors = ["Nate Kidwell"]
|
13
13
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
14
|
gem.add_dependency "therubyracer", "0.7.0"
|
15
|
-
gem.add_dependency "active_support"
|
15
|
+
gem.add_dependency "active_support", "2.2.0"
|
16
16
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
17
|
end
|
18
18
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/ice.gemspec
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{ice}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Nate Kidwell"]
|
12
|
+
s.date = %q{2010-05-31}
|
13
|
+
s.description = %q{User templates written in javascript}
|
14
|
+
s.email = %q{nate@ludicast.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.markdown"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".gitignore",
|
21
|
+
"LICENSE",
|
22
|
+
"README.markdown",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"ice.gemspec",
|
26
|
+
"ice_js/History.md",
|
27
|
+
"ice_js/Readme.md",
|
28
|
+
"ice_js/lib/path_helper.js",
|
29
|
+
"ice_js/spec/commands/example_command.rb",
|
30
|
+
"ice_js/spec/dom.html",
|
31
|
+
"ice_js/spec/node.js",
|
32
|
+
"ice_js/spec/rhino.js",
|
33
|
+
"ice_js/spec/server.html",
|
34
|
+
"ice_js/spec/server.rb",
|
35
|
+
"ice_js/spec/unit/spec.helper.js",
|
36
|
+
"ice_js/spec/unit/spec.js",
|
37
|
+
"init.rb",
|
38
|
+
"lib/ice.rb",
|
39
|
+
"lib/ice/base_cube.rb",
|
40
|
+
"lib/ice/cube_association.rb",
|
41
|
+
"lib/ice/cubeable.rb",
|
42
|
+
"lib/parser.js",
|
43
|
+
"spec/base_cube_spec.rb",
|
44
|
+
"spec/cube_spec.rb",
|
45
|
+
"spec/ice_spec.rb",
|
46
|
+
"spec/spec.opts",
|
47
|
+
"spec/spec_helper.rb"
|
48
|
+
]
|
49
|
+
s.homepage = %q{http://github.com/ludicast/ice}
|
50
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
51
|
+
s.require_paths = ["lib"]
|
52
|
+
s.rubygems_version = %q{1.3.6}
|
53
|
+
s.summary = %q{User templates written in javascript}
|
54
|
+
s.test_files = [
|
55
|
+
"spec/base_cube_spec.rb",
|
56
|
+
"spec/cube_spec.rb",
|
57
|
+
"spec/ice_spec.rb",
|
58
|
+
"spec/spec_helper.rb"
|
59
|
+
]
|
60
|
+
|
61
|
+
if s.respond_to? :specification_version then
|
62
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
63
|
+
s.specification_version = 3
|
64
|
+
|
65
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
66
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
67
|
+
s.add_runtime_dependency(%q<therubyracer>, ["= 0.7.0"])
|
68
|
+
s.add_runtime_dependency(%q<active_support>, ["= 2.2.0"])
|
69
|
+
else
|
70
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
71
|
+
s.add_dependency(%q<therubyracer>, ["= 0.7.0"])
|
72
|
+
s.add_dependency(%q<active_support>, ["= 2.2.0"])
|
73
|
+
end
|
74
|
+
else
|
75
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
76
|
+
s.add_dependency(%q<therubyracer>, ["= 0.7.0"])
|
77
|
+
s.add_dependency(%q<active_support>, ["= 2.2.0"])
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nate Kidwell
|
@@ -50,11 +50,13 @@ dependencies:
|
|
50
50
|
prerelease: false
|
51
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - "="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
segments:
|
56
|
+
- 2
|
57
|
+
- 2
|
56
58
|
- 0
|
57
|
-
version:
|
59
|
+
version: 2.2.0
|
58
60
|
type: :runtime
|
59
61
|
version_requirements: *id003
|
60
62
|
description: User templates written in javascript
|
@@ -72,6 +74,7 @@ files:
|
|
72
74
|
- README.markdown
|
73
75
|
- Rakefile
|
74
76
|
- VERSION
|
77
|
+
- ice.gemspec
|
75
78
|
- ice_js/History.md
|
76
79
|
- ice_js/Readme.md
|
77
80
|
- ice_js/lib/path_helper.js
|