juice 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,28 +14,28 @@ script/console
14
14
  StarterApplication/Views/example.juice
15
15
  StarterApplication/README
16
16
  StarterApplication/LICENSE
17
- StarterApplication/juice.app
18
17
  StarterApplication/index.html
18
+ StarterApplication/Framework/Window.js
19
+ StarterApplication/Framework/View.js
20
+ StarterApplication/Framework/Template.js
19
21
  StarterApplication/Framework/Resources/Themes/Default.css
20
22
  StarterApplication/Framework/Resources/Themes/Default/images/Thumbs.db
21
23
  StarterApplication/Framework/Resources/Themes/Default/images/spinner.gif
22
24
  StarterApplication/Framework/Resources/Themes/Default/images/button-sprite.png
23
25
  StarterApplication/Framework/Resources/images/Thumbs.db
24
26
  StarterApplication/Framework/Resources/images/spinner.gif
25
- StarterApplication/Framework/Juice.Window.js
26
- StarterApplication/Framework/Juice.View.js
27
- StarterApplication/Framework/Juice.Template.js
28
- StarterApplication/Framework/Juice.Layout.js
29
- StarterApplication/Framework/Juice.JSONPConnection.js
27
+ StarterApplication/Framework/Layout.js
30
28
  StarterApplication/Framework/Juice.js
31
- StarterApplication/Framework/Juice.Image.js
32
- StarterApplication/Framework/Juice.i18n.js
33
- StarterApplication/Framework/Juice.Event.js
34
- StarterApplication/Framework/Juice.DOM.js
35
- StarterApplication/Framework/Juice.Cookie.js
36
- StarterApplication/Framework/Juice.Confirm.js
37
- StarterApplication/Framework/Juice.Button.js
38
- StarterApplication/Framework/Juice.Application.js
39
- StarterApplication/Framework/Juice.Alert.js
40
- StarterApplication/Framework/Juice.Ajax.js
29
+ StarterApplication/Framework/JSONPConnection.js
30
+ StarterApplication/Framework/Image.js
31
+ StarterApplication/Framework/i18n.js
32
+ StarterApplication/Framework/Event.js
33
+ StarterApplication/Framework/DOM.js
34
+ StarterApplication/Framework/Cookie.js
35
+ StarterApplication/Framework/Confirm.js
36
+ StarterApplication/Framework/Button.js
37
+ StarterApplication/Framework/Application.js
38
+ StarterApplication/Framework/Alert.js
39
+ StarterApplication/Framework/Ajax.js
40
+ StarterApplication/config/juice.app
41
41
  StarterApplication/appController.js
@@ -1,15 +1,33 @@
1
- = juice
1
+ = Juice
2
2
 
3
3
  * http://juicejs.com
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Juice is a javascript framework targeted at creating desktop applications
7
+ This is version 0.2.0 of Juice Js Framework
8
+
9
+ Juice is a framework similar to Sproutcore and Cappuccino in that it is centered towards
10
+ creating desktop applications that run in the browser.
8
11
 
9
12
  == INSTALL:
10
13
 
11
14
  gem install juice
12
15
 
16
+ == Getting Started:
17
+
18
+ juice app \n
19
+ cd app \n
20
+ juice server \n\n
21
+
22
+ Then navigate to http://localhost:338 in your favorite web browser!
23
+
24
+ == TODO:
25
+
26
+ - Get all of the standard GUI Widgets implemented
27
+ - Improve JSONPConnection, it's a little basic.
28
+ - Improve module for Ajax requests
29
+ - Clean code.
30
+
13
31
  == LICENSE:
14
32
 
15
33
  (The MIT License)
@@ -33,4 +51,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33
51
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
34
52
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
35
53
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
36
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -56,29 +56,32 @@ Juice = {
56
56
  viewDir:"Views"
57
57
  },
58
58
  // Set our version information
59
- version: "0.1.8"
59
+ version: "0.2.0"
60
60
  };
61
61
 
62
62
  // Here we add our helper methods to globals.
63
63
  Juice.Object.extend(Juice.Object,{
64
64
  // isString, isNumber, isUndefined, isFunction
65
- isString:function Juice_Object_isString(){
66
- return typeof this == 'string';
65
+ isString:function Juice_Object_isString(obj){
66
+ return typeof obj == 'string';
67
67
  },
68
- isNumber:function Juice_Object_isNumber(){
69
- return typeof this == 'number';
68
+ isNumber:function Juice_Object_isNumber(obj){
69
+ return typeof obj == 'number';
70
70
  },
71
- isUndefined:function Juice_Object_isUndefined(){
72
- return typeof this == 'undefined';
71
+ isUndefined:function Juice_Object_isUndefined(obj){
72
+ return typeof obj == 'undefined';
73
73
  },
74
- isFunction:function Juice_Object_isFunction(){
75
- return typeof this == 'function';
74
+ isFunction:function Juice_Object_isFunction(obj){
75
+ return typeof obj == 'function';
76
76
  },
77
- inspect: function Juice_Object_inspect(){
77
+ source: function(obj){
78
+ return obj.toSource();
79
+ },
80
+ inspect: function Juice_Object_inspect(obj){
78
81
  try {
79
- if (isUndefined(object)) return 'undefined';
80
- if (object === null) return 'null';
81
- return object.inspect ? object.inspect() : String(object);
82
+ if (Juice.Object.isUndefined(obj)) return 'undefined';
83
+ if (obj === null) return 'null';
84
+ return obj.inspect ? obj.inspect() : String(obj);
82
85
  }
83
86
  catch (e) {
84
87
  if (e instanceof RangeError) return '...';
@@ -286,7 +289,7 @@ Juice.Object.extend(Juice,{
286
289
  }
287
290
  else{
288
291
  Juice._modules.each(function Juice__modules_each(file){
289
- Juice.Require('Framework/Juice.' + file);
292
+ Juice.Require('Framework/' + file);
290
293
  });
291
294
  }
292
295
  }
@@ -296,5 +299,5 @@ Juice.bindReady();
296
299
  // Load our app's css
297
300
  Juice.loadAppCSS();
298
301
  // Alias Juice to JC
299
- JC = Juice;
302
+ window.J = window.JC = window.Juice = Juice;
300
303
  } Juice_init();
@@ -1,11 +1,54 @@
1
- This is version 0.1.8 of Juice Js Framework
1
+ = Juice
2
+
3
+ * http://juicejs.com
4
+
5
+ == DESCRIPTION:
6
+
7
+ This is version 0.2.0 of Juice Js Framework
2
8
 
3
9
  Juice is a framework similar to Sproutcore and Cappuccino in that it is centered towards
4
10
  creating desktop applications that run in the browser.
5
11
 
12
+ == INSTALL:
13
+
14
+ gem install juice
15
+
16
+ == Getting Started:
17
+
18
+ juice app \n
19
+ cd app \n
20
+ juice server \n\n
21
+
22
+ Then navigate to http://localhost:338 in your favorite web browser!
6
23
 
7
- TODO:
8
- - Get all of the standard GUI Widgets implemented
24
+ == TODO:
25
+
26
+ - Get all of the standard GUI Widgets implemented
9
27
  - Improve JSONPConnection, it's a little basic.
10
28
  - Improve module for Ajax requests
11
- - Clean code.
29
+ - Clean code.
30
+
31
+ == LICENSE:
32
+
33
+ (The MIT License)
34
+
35
+ Copyright (c) 2010 Justin Baker
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining
38
+ a copy of this software and associated documentation files (the
39
+ 'Software'), to deal in the Software without restriction, including
40
+ without limitation the rights to use, copy, modify, merge, publish,
41
+ distribute, sublicense, and/or sell copies of the Software, and to
42
+ permit persons to whom the Software is furnished to do so, subject to
43
+ the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be
46
+ included in all copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
49
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/bin/juice CHANGED
@@ -56,7 +56,7 @@ module Juice
56
56
  else
57
57
  app = ''
58
58
  files = Dir.glob("Framework/Juice.js")
59
- Dir.glob("Framework/Juice.*.js").each do |me|
59
+ Dir.glob("Framework/*.js").each do |me|
60
60
  files.push(me)
61
61
  end
62
62
  Dir.glob("*.js").each do |me|
@@ -56,7 +56,7 @@ module Juice
56
56
  else
57
57
  app = ''
58
58
  files = Dir.glob("Framework/Juice.js")
59
- Dir.glob("Framework/Juice.*.js").each do |me|
59
+ Dir.glob("Framework/*.js").each do |me|
60
60
  files.push(me)
61
61
  end
62
62
  Dir.glob("*.js").each do |me|
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Juice
5
- VERSION = '0.1.9'
5
+ VERSION = '0.2.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Baker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-19 00:00:00 -05:00
12
+ date: 2010-01-21 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,11 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.3.2
34
34
  version:
35
- description: Juice is a javascript framework targeted at creating desktop applications
35
+ description: |-
36
+ This is version 0.2.0 of Juice Js Framework
37
+
38
+ Juice is a framework similar to Sproutcore and Cappuccino in that it is centered towards
39
+ creating desktop applications that run in the browser.
36
40
  email:
37
41
  - justin@fluttrhq.com
38
42
  executables:
@@ -58,30 +62,30 @@ files:
58
62
  - "StarterApplication/Views/example.juice "
59
63
  - "StarterApplication/README "
60
64
  - "StarterApplication/LICENSE "
61
- - "StarterApplication/juice.app "
62
65
  - "StarterApplication/index.html "
66
+ - "StarterApplication/Framework/Window.js "
67
+ - "StarterApplication/Framework/View.js "
68
+ - "StarterApplication/Framework/Template.js "
63
69
  - "StarterApplication/Framework/Resources/Themes/Default.css "
64
70
  - "StarterApplication/Framework/Resources/Themes/Default/images/Thumbs.db "
65
71
  - "StarterApplication/Framework/Resources/Themes/Default/images/spinner.gif "
66
72
  - "StarterApplication/Framework/Resources/Themes/Default/images/button-sprite.png "
67
73
  - "StarterApplication/Framework/Resources/images/Thumbs.db "
68
74
  - "StarterApplication/Framework/Resources/images/spinner.gif "
69
- - "StarterApplication/Framework/Juice.Window.js "
70
- - "StarterApplication/Framework/Juice.View.js "
71
- - "StarterApplication/Framework/Juice.Template.js "
72
- - "StarterApplication/Framework/Juice.Layout.js "
73
- - "StarterApplication/Framework/Juice.JSONPConnection.js "
75
+ - "StarterApplication/Framework/Layout.js "
74
76
  - "StarterApplication/Framework/Juice.js "
75
- - "StarterApplication/Framework/Juice.Image.js "
76
- - "StarterApplication/Framework/Juice.i18n.js "
77
- - "StarterApplication/Framework/Juice.Event.js "
78
- - "StarterApplication/Framework/Juice.DOM.js "
79
- - "StarterApplication/Framework/Juice.Cookie.js "
80
- - "StarterApplication/Framework/Juice.Confirm.js "
81
- - "StarterApplication/Framework/Juice.Button.js "
82
- - "StarterApplication/Framework/Juice.Application.js "
83
- - "StarterApplication/Framework/Juice.Alert.js "
84
- - "StarterApplication/Framework/Juice.Ajax.js "
77
+ - "StarterApplication/Framework/JSONPConnection.js "
78
+ - "StarterApplication/Framework/Image.js "
79
+ - "StarterApplication/Framework/i18n.js "
80
+ - "StarterApplication/Framework/Event.js "
81
+ - "StarterApplication/Framework/DOM.js "
82
+ - "StarterApplication/Framework/Cookie.js "
83
+ - "StarterApplication/Framework/Confirm.js "
84
+ - "StarterApplication/Framework/Button.js "
85
+ - "StarterApplication/Framework/Application.js "
86
+ - "StarterApplication/Framework/Alert.js "
87
+ - "StarterApplication/Framework/Ajax.js "
88
+ - "StarterApplication/config/juice.app "
85
89
  - "StarterApplication/appController.js "
86
90
  has_rdoc: true
87
91
  homepage: http://juicejs.com
@@ -111,6 +115,6 @@ rubyforge_project: juice
111
115
  rubygems_version: 1.3.5
112
116
  signing_key:
113
117
  specification_version: 3
114
- summary: Juice is a javascript framework targeted at creating desktop applications
118
+ summary: This is version 0.2.0 of Juice Js Framework Juice is a framework similar to Sproutcore and Cappuccino in that it is centered towards creating desktop applications that run in the browser.
115
119
  test_files: []
116
120