golf 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
data/golf.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Golf::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Micha Niskin, Alan Dipert, Julio Capote"]
10
- s.email = ["michaniskin@gmail.com"]
10
+ s.email = ["micha.niskin@gmail.com"]
11
11
  s.homepage = "http://golf.github.com"
12
12
  s.summary = %q{Component based front end JS Framework}
13
13
  s.description = %q{Golf lets you write your interface in terms of reusable, simple components.}
data/lib/golf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Golf
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
3
3
  end
@@ -673,6 +673,25 @@ $.golf = {
673
673
  setupComponents: function() {
674
674
  var cmp, name, i, m, scripts=[];
675
675
 
676
+ $.golf.mappings = {
677
+ "foo": "golf.cart.Product"
678
+ };
679
+
680
+ document.createElement = (function(orig) {
681
+ return function() {
682
+ var argv = Array.prototype.slice.call(arguments);
683
+ var i, c;
684
+ for (i in $.golf.mappings) {
685
+ if (i == argv[0].toLowerCase()) {
686
+ eval("c = Component."+$.golf.mappings[i]);
687
+ return (new c())._dom.get()[0];
688
+ } else {
689
+ return orig.apply(this, argv);
690
+ }
691
+ }
692
+ };
693
+ })(document.createElement);
694
+
676
695
  d("Setting up components now.");
677
696
 
678
697
  d("Loading scripts/ directory...");
metadata CHANGED
@@ -1,8 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golf
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.6.5
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 6
8
+ - 6
9
+ version: 0.6.6
6
10
  platform: ruby
7
11
  authors:
8
12
  - Micha Niskin, Alan Dipert, Julio Capote
@@ -10,7 +14,7 @@ autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
16
 
13
- date: 2011-04-15 00:00:00 -07:00
17
+ date: 2011-04-16 00:00:00 -04:00
14
18
  default_executable:
15
19
  dependencies:
16
20
  - !ruby/object:Gem::Dependency
@@ -21,6 +25,8 @@ dependencies:
21
25
  requirements:
22
26
  - - ">="
23
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
24
30
  version: "0"
25
31
  type: :runtime
26
32
  version_requirements: *id001
@@ -32,6 +38,8 @@ dependencies:
32
38
  requirements:
33
39
  - - ">="
34
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
35
43
  version: "0"
36
44
  type: :runtime
37
45
  version_requirements: *id002
@@ -43,6 +51,8 @@ dependencies:
43
51
  requirements:
44
52
  - - ">="
45
53
  - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
46
56
  version: "0"
47
57
  type: :runtime
48
58
  version_requirements: *id003
@@ -54,6 +64,8 @@ dependencies:
54
64
  requirements:
55
65
  - - ">="
56
66
  - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
57
69
  version: "0"
58
70
  type: :runtime
59
71
  version_requirements: *id004
@@ -65,6 +77,8 @@ dependencies:
65
77
  requirements:
66
78
  - - ">="
67
79
  - !ruby/object:Gem::Version
80
+ segments:
81
+ - 0
68
82
  version: "0"
69
83
  type: :runtime
70
84
  version_requirements: *id005
@@ -76,12 +90,14 @@ dependencies:
76
90
  requirements:
77
91
  - - ">="
78
92
  - !ruby/object:Gem::Version
93
+ segments:
94
+ - 0
79
95
  version: "0"
80
96
  type: :runtime
81
97
  version_requirements: *id006
82
98
  description: Golf lets you write your interface in terms of reusable, simple components.
83
99
  email:
84
- - michaniskin@gmail.com
100
+ - micha.niskin@gmail.com
85
101
  executables:
86
102
  - golf
87
103
  extensions: []
@@ -260,19 +276,59 @@ required_ruby_version: !ruby/object:Gem::Requirement
260
276
  requirements:
261
277
  - - ">="
262
278
  - !ruby/object:Gem::Version
279
+ segments:
280
+ - 0
263
281
  version: "0"
264
282
  required_rubygems_version: !ruby/object:Gem::Requirement
265
283
  none: false
266
284
  requirements:
267
285
  - - ">="
268
286
  - !ruby/object:Gem::Version
287
+ segments:
288
+ - 0
269
289
  version: "0"
270
290
  requirements: []
271
291
 
272
292
  rubyforge_project: golf
273
- rubygems_version: 1.6.1
293
+ rubygems_version: 1.3.7
274
294
  signing_key:
275
295
  specification_version: 3
276
296
  summary: Component based front end JS Framework
277
- test_files: []
278
-
297
+ test_files:
298
+ - test/reference_app/golfapp/components.js
299
+ - test/reference_app/golfapp/components/HelloWorld/HelloWorld.css
300
+ - test/reference_app/golfapp/components/HelloWorld/HelloWorld.html
301
+ - test/reference_app/golfapp/components/HelloWorld/HelloWorld.js
302
+ - test/reference_app/golfapp/components/golf/cart/Admin/Admin.html
303
+ - test/reference_app/golfapp/components/golf/cart/Cart/Cart.html
304
+ - test/reference_app/golfapp/components/golf/cart/Product/Product.html
305
+ - test/reference_app/golfapp/components/golf/cart/ProductListing/ProductListing.html
306
+ - test/reference_app/golfapp/components/golf/cart/Store/Store.html
307
+ - test/reference_app/golfapp/controller.js
308
+ - test/reference_app/golfapp/img/ Timer & Non-Stick.jpeg
309
+ - test/reference_app/golfapp/img/134lines.jpeg
310
+ - test/reference_app/golfapp/img/Q33 Sail Plan.jpeg
311
+ - test/reference_app/golfapp/img/a/asdf
312
+ - test/reference_app/golfapp/img/a/b/c/zxcv
313
+ - test/reference_app/golfapp/img/a/b/qwer
314
+ - test/reference_app/golfapp/img/em> - Brushed Stainless Steel.jpeg
315
+ - test/reference_app/golfapp/img/em> - White.jpeg
316
+ - test/reference_app/golfapp/img/em> Broil CTO7100B.jpeg
317
+ - test/reference_app/golfapp/img/em> Broiler - Stainless.jpeg
318
+ - test/reference_app/golfapp/img/em> with Countdo.jpeg
319
+ - test/reference_app/golfapp/img/em> with Element IQ.jpeg
320
+ - test/reference_app/golfapp/img/em> with OneTouch ...jpeg
321
+ - test/reference_app/golfapp/img/em> with Pizza.jpeg
322
+ - test/reference_app/golfapp/img/em>-1.jpeg
323
+ - test/reference_app/golfapp/img/em>-2.jpeg
324
+ - test/reference_app/golfapp/img/em>-3.jpeg
325
+ - test/reference_app/golfapp/img/em>-Black.jpeg
326
+ - test/reference_app/golfapp/img/em>.jpeg
327
+ - test/reference_app/golfapp/img/unnamed.jpeg
328
+ - test/reference_app/golfapp/plugins/mylib.js
329
+ - test/reference_app/golfapp/scripts/00-myscript.js
330
+ - test/reference_app/golfapp/scripts/01-jquery.tmpl.js
331
+ - test/reference_app/golfapp/styles/main.css
332
+ - test/test_compiler.rb
333
+ - test/test_helper.rb
334
+ - test/test_rack.rb