sproutcore 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/frameworks/sproutcore/CHANGELOG.md +49 -0
  3. data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +1 -1
  4. data/lib/frameworks/sproutcore/frameworks/desktop/resources/list_item.css +4 -4
  5. data/lib/frameworks/sproutcore/frameworks/desktop/resources/modal.css +8 -0
  6. data/lib/frameworks/sproutcore/frameworks/desktop/resources/panel.css +1 -8
  7. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/integration.js +0 -27
  8. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +245 -18
  9. data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +23 -4
  10. data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +5 -7
  11. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/scroll_view/tests/scroll/integration.js +0 -25
  12. data/lib/frameworks/sproutcore/frameworks/foundation/resources/text_field.css +42 -39
  13. data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +5 -0
  14. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/image_queue.js +84 -0
  15. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +48 -0
  16. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +2 -2
  17. data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +288 -184
  18. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
  19. data/lib/frameworks/sproutcore/lib/index.rhtml +23 -18
  20. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.css +44 -0
  21. data/lib/sproutcore/rack/proxy.rb +12 -9
  22. metadata +3 -3
  23. data/lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css +0 -3
@@ -39,7 +39,7 @@ window.SproutCore = window.SproutCore || SC ;
39
39
  // rest of the methods go into the mixin defined below.
40
40
 
41
41
  /**
42
- @version 1.8.0
42
+ @version 1.8.1
43
43
  @namespace
44
44
 
45
45
  All SproutCore methods and functions are defined
@@ -59,7 +59,7 @@ window.SproutCore = window.SproutCore || SC ;
59
59
  */
60
60
  SC = window.SC; // This is dumb but necessary for jsdoc to get it right
61
61
 
62
- SC.VERSION = '1.8.0';
62
+ SC.VERSION = '1.8.1';
63
63
 
64
64
  /**
65
65
  @private
@@ -9,36 +9,41 @@
9
9
  # change.
10
10
  -%>
11
11
  <!DOCTYPE html>
12
- <html<% unless @content_for_html5_manifest.blank? %> manifest="app.manifest"<% end %>>
12
+ <html<% unless @content_for_html5_manifest.blank? %> manifest="manifest.appcache"<% end %> class="no-js" lang="<%=language%>">
13
13
  <head>
14
- <meta http-equiv="X-UA-Compatible" content="IE=edge<%= config.chrome_frame ? ',chrome=1' : '' %>" />
14
+ <meta http-equiv="X-UA-Compatible" content="IE=edge<%= config.chrome_frame ? ',chrome=1' : '' %>" >
15
15
 
16
16
  <script>
17
- var SC_benchmarkPreloadEvents = { headStart: new Date().getTime() };
17
+ var SC_benchmarkPreloadEvents = { headStart: new Date().getTime() };
18
+ var docElem = window.documentElement || document.documentElement;
19
+ if(docElem) {
20
+ docElem.className = docElem.className.replace(/(^|\s)no-js(\s|$)/, '$1js$2');
21
+ docElem = null;
22
+ }
18
23
  </script>
19
24
 
20
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
21
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
22
- <meta name="apple-mobile-web-app-capable" content="yes" />
23
- <meta name="apple-mobile-web-app-status-bar-style" content="<%= config.status_bar_style || 'default' %>" />
24
- <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
25
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" >
26
+ <meta http-equiv="Content-Script-Type" content="text/javascript" >
27
+ <meta name="apple-mobile-web-app-capable" content="yes" >
28
+ <meta name="apple-mobile-web-app-status-bar-style" content="<%= config.status_bar_style || 'default' %>" >
29
+ <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >
25
30
 
26
31
  <% if config.touch_enabled %>
27
32
  <% if config.precomposed_icon %>
28
- <link rel="apple-touch-icon-precomposed" href="<%= sc_static(config.precomposed_icon) %>" />
33
+ <link rel="apple-touch-icon-precomposed" href="<%= sc_static(config.precomposed_icon) %>" >
29
34
  <% elsif config.icon %>
30
- <link rel="apple-touch-icon" href="<%= sc_static(config.icon) %>" />
35
+ <link rel="apple-touch-icon" href="<%= sc_static(config.icon) %>" >
31
36
  <% end %>
32
37
  <% if config.startup_image_portrait %>
33
- <link rel="apple-touch-startup-image" media="screen and (orientation:portrait)" href="<%= sc_static(config.startup_image_portrait) %>" />
38
+ <link rel="apple-touch-startup-image" media="screen and (orientation:portrait)" href="<%= sc_static(config.startup_image_portrait) %>" >
34
39
  <% end %>
35
40
  <% if config.startup_image_landscape %>
36
- <link rel="apple-touch-startup-image" media="screen and (orientation:landscape)" href="<%= sc_static(config.startup_image_landscape) %>" />
41
+ <link rel="apple-touch-startup-image" media="screen and (orientation:landscape)" href="<%= sc_static(config.startup_image_landscape) %>" >
37
42
  <% end %>
38
43
  <% end %>
39
44
 
40
45
  <% if config.favicon %>
41
- <link rel="shortcut icon" href="<%= sc_static(config.favicon) %>" type="image/x-icon" />
46
+ <link rel="shortcut icon" href="<%= sc_static(config.favicon) %>" type="image/x-icon" >
42
47
  <% end %>
43
48
 
44
49
 
@@ -74,9 +79,9 @@
74
79
  SC.APP_IMAGE_ASSETS = <%= image_urls_for_client(nil, { :sprited => true, :x2 => true }).to_json %>;
75
80
  } else {
76
81
  styles = <%= stylesheet_urls_for_client.to_json %>;
77
- SC.APP_IMAGE_ASSETS = <%= image_urls_for_client(nil, { :sprited => true }).to_json %>;
82
+ SC.APP_IMAGE_ASSETS = <%= image_urls_for_client(nil, { :sprited => true }).to_json %>;
78
83
  }
79
-
84
+
80
85
 
81
86
  var head = document.getElementsByTagName("head")[0],
82
87
  len = styles.length, idx, css;
@@ -102,7 +107,7 @@
102
107
  -%>
103
108
  <body class="<%= [theme_name(:default => 'sc-theme'), 'sc-focus'].compact.join(' ') %>">
104
109
  <script>
105
- SC.benchmarkPreloadEvents['bodyStart'] = new Date().getTime();
110
+ SC.benchmarkPreloadEvents['bodyStart'] = new Date().getTime();
106
111
  </script>
107
112
  <% # This section is used to setup additional optional class names on the
108
113
  # body content based on JS-selected conditions. Use this to make sure you
@@ -188,7 +193,7 @@
188
193
  <%= @content_for_designer -%>
189
194
 
190
195
  <script>
191
- SC.benchmarkPreloadEvents['bodyEnd'] = new Date().getTime();
196
+ SC.benchmarkPreloadEvents['bodyEnd'] = new Date().getTime();
192
197
  </script>
193
- </body>
198
+ </body>
194
199
  </html>
@@ -110,4 +110,48 @@
110
110
  .sc-pointer { left: 70px; }
111
111
  }
112
112
  }
113
+
114
+ $theme.picker.perfectLeft {
115
+ .sc-pointer {
116
+ z-index: 6;
117
+ position: absolute; width: 20px; height: 50px; margin-left: -20px; right: 0px; top: 40px;
118
+ @include slice("popover_pointers.png", $right: 0, $top: 85, $width: 20, $height: 50);
119
+ }
120
+
121
+ &.solid .sc-pointer, .solid .sc-pointer {
122
+ bottom: 0px;
123
+ @include slice("popover_pointers.png", $right: 0, $top: 85, $width: 20, $height: 50);
124
+ }
125
+
126
+ .top-toolbar .sc-pointer {
127
+ bottom: 0px;
128
+ @include slice("popover_pointers.png", $right: 0, $top: 85, $width: 20, $height: 50);
129
+ }
130
+
131
+ &.extra-left {
132
+ .sc-pointer { left: 70px; }
133
+ }
134
+ }
135
+
136
+ $theme.picker.perfectRight {
137
+ .sc-pointer {
138
+ z-index: 6;
139
+ position: absolute; width: 20px; height: 50px; margin-left: 0px; left: 0px; top: 40px;
140
+ @include slice("popover_pointers.png", $left: 0, $top: 85, $width: 20, $height: 50);
141
+ }
142
+
143
+ &.solid .sc-pointer, .solid .sc-pointer {
144
+ bottom: 0px;
145
+ @include slice("popover_pointers.png", $left: 0, $top: 85, $width: 20, $height: 50);
146
+ }
147
+
148
+ .top-toolbar .sc-pointer {
149
+ bottom: 0px;
150
+ @include slice("popover_pointers.png", $left: 0, $top: 85, $width: 20, $height: 50);
151
+ }
152
+
153
+ &.extra-left {
154
+ .sc-pointer { left: 70px; }
155
+ }
156
+ }
113
157
  }
@@ -139,22 +139,25 @@ if SC::PROXY_ENABLED
139
139
  req_body = req_body.read
140
140
  end
141
141
 
142
+ # Options for the connection
143
+ connect_options = {}
144
+ if proxy[:inactivity_timeout] # allow the more verbose setting to take precedence
145
+ connect_options[:inactivity_timeout] = proxy[:inactivity_timeout]
146
+ elsif proxy[:timeout] # check the legacy and simpler setting
147
+ connect_options[:inactivity_timeout] = proxy[:timeout]
148
+ end
149
+ connect_options[:connect_timeout] = proxy[:connect_timeout] if proxy[:connect_timeout]
150
+
142
151
  # Options for the request
143
152
  request_options = {}
144
153
  request_options[:head] = headers
145
154
  request_options[:body] = req_body if !!req_body
146
- if proxy[:inactivity_timeout] # allow the more verbose setting to take precedence
147
- request_options[:inactivity_timeout] = proxy[:inactivity_timeout]
148
- elsif proxy[:timeout] # check the legacy and simpler setting
149
- request_options[:inactivity_timeout] = proxy[:timeout]
150
- end
151
- request_options[:connect_timeout] = proxy[:connect_timeout] if proxy[:connect_timeout]
152
- request_options[:redirects] = 10 if proxy[:redirect] != false
155
+ request_options[:redirects] = 5 if proxy[:redirect] != false
153
156
  request_options[:decoding] = false # don't decode gzipped content
154
157
 
155
158
  EventMachine.run {
156
159
  body = nil
157
- conn = EM::HttpRequest.new(url)
160
+ conn = EM::HttpRequest.new(url, connect_options)
158
161
  chunked = false
159
162
  headers = {}
160
163
  method = env['REQUEST_METHOD'].upcase
@@ -346,4 +349,4 @@ if SC::PROXY_ENABLED
346
349
  end
347
350
  end
348
351
 
349
- end
352
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sproutcore
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.8.0
5
+ version: 1.8.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Strobe, Inc., Apple Inc. and contributors
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-03-07 00:00:00 Z
13
+ date: 2012-03-26 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -1733,6 +1733,7 @@ files:
1733
1733
  - lib/frameworks/sproutcore/frameworks/foundation/tests/render_delegates/render_delegate.js
1734
1734
  - lib/frameworks/sproutcore/frameworks/foundation/tests/system/cookie.js
1735
1735
  - lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js
1736
+ - lib/frameworks/sproutcore/frameworks/foundation/tests/system/image_queue.js
1736
1737
  - lib/frameworks/sproutcore/frameworks/foundation/tests/system/math.js
1737
1738
  - lib/frameworks/sproutcore/frameworks/foundation/tests/system/string.js
1738
1739
  - lib/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js
@@ -2104,7 +2105,6 @@ files:
2104
2105
  - lib/frameworks/sproutcore/themes/ace/resources/menu/menu.png
2105
2106
  - lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png
2106
2107
  - lib/frameworks/sproutcore/themes/ace/resources/menu/up.png
2107
- - lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css
2108
2108
  - lib/frameworks/sproutcore/themes/ace/resources/panel/panel.css
2109
2109
  - lib/frameworks/sproutcore/themes/ace/resources/panel/panel.png
2110
2110
  - lib/frameworks/sproutcore/themes/ace/resources/picker/ace/panel.png
@@ -1,3 +0,0 @@
1
- .sc-pane {
2
- -webkit-transform: translate3d(0px, 0px, 0px);
3
- }