sproutcore 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,3 @@
1
+ *SproutCore 1.4.1 (September 21, 2010)*
2
+
3
+ * Fixed string escaping issue in call to YUI Compressor [PDW]
data/VERSION.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 4
4
- :patch: 0
4
+ :patch: 1
5
5
  :digest: e038ba5746bb757cd0ff2391828c5f03496fbb64
6
6
  :dist:
7
7
  frameworks/sproutcore: 7174adeb47aa0930c95ddae79e2c9cf042fded45
@@ -0,0 +1,3 @@
1
+ *SproutCore 1.4.1 (September, 21 2010)*
2
+
3
+ * Update the X-SproutCore-Version header to 1.4 [MO]
@@ -0,0 +1,170 @@
1
+ CHANGE LOG FOR 1.4
2
+ ==================
3
+
4
+ DISCLAIMER: This is a very rough and not comprehensive overview of the 1000+ commits that formed SproutCore 1.4.
5
+
6
+ MAJOR
7
+ -----
8
+ * Touch Support Gen 1
9
+ * Bug Fixes and Stabilization
10
+ * Build tools performance improvements
11
+ * Greenhouse (experimental)
12
+ * SC.TableView (experimental)
13
+
14
+
15
+ NEW
16
+ ---
17
+ * Implementation of SC.ErrorCatcher.
18
+ * Orientation change recognition
19
+ * Add all sorts of alt-key goodness to scrollers:
20
+ * alt-click in track scrolls to click
21
+ * alt-click on buttons scrolls by page
22
+ * alt-drag scrolls 1/2 speed.
23
+ * CollectionView fast path (experimental)
24
+ * SC.Animatable
25
+ * Accelerated Layer
26
+ * Adding new SC.device object for states such as orientation, online and offline (and moving orientation out from root responder)
27
+ * Add application manifest check to html tag of default index.rhtml
28
+ * Media framework (experimental)
29
+ * Default iPhone loading screen for webapps
30
+ * Nested Records (experimental? or functional?)
31
+ * SC.DateTime
32
+ * SC.StaticContentView
33
+ * SC.Border
34
+ * Add a task queue to SproutCore, capable of running tasks in the "background"; that is, while idle. (experimental)
35
+
36
+
37
+ MISCELLANEOUS
38
+ -------------
39
+ * Better IME support
40
+ * MainPane now has a 200x200 min app size. This is where you should set the minimum size of your app.
41
+ * Move feature detection from SC.browser to SC.platform.
42
+ * Desktop framework no longer requires all other frameworks to load
43
+ * Improved context menu handling
44
+ * Add trigger() method to SC.routes to trigger the current route.
45
+ * Improvements to MenuViews
46
+ * Add the ability to observe changes on SC.Set at an add/remove level, allowing for efficient filtering, merging, etc.
47
+ * Allow configuration of the touch icons and status bar, as well as favicon via Buildfile.
48
+ * Add deprecation warning to SC.Scrollable
49
+ * Better mouseWheel support
50
+ * Added some ARIA tags for accessibility.
51
+ * SC.ScrollView / SC.ScrollerView improvements
52
+ * Experimental mousewheel momentum support. Set SC.WHEEL_MOMENTUM to YES.
53
+ * Support descending sort in ArrayControllers.
54
+ * SC.StaticLayout functionality is now built into SC.View
55
+ * Allow panes the chance to handle user events.
56
+ * Fixes/improvements to PopupButton
57
+ * Make inline text editor inherit escapeHTML from the list item view
58
+ * Added domCSSPrefix to SC.platform
59
+ * Make views update their layer's layerId if their layerId changes.
60
+ * Adding maxlength property to textfield view
61
+ * Added inflector functions to SC.String: singularize() and pluralize()
62
+ * Adding mousewheel support to textareas.
63
+ * Adding HTML5 spellCheck support for textfields. It works with the latest versions of Firefox, Sproutcore, Chrome
64
+ * Adding lastObject() method to SC.Enumerable
65
+ * Allow SC.outlet to specify a different root.
66
+ * Improvements to drag/drop
67
+ * Improvements to SC.UserDefaults
68
+ * Switch from XHTML -> HTML5.
69
+ * Update SelectButtonView to use target/action instead of deprecated function calls.
70
+ * Invoke button actions after a delay if triggered by keyboard shortcuts.
71
+ * Make PopupButtonView and SelectButtonView click and hold delay a constant. Also lowered default value.
72
+ * Use SC.Enumerable's sortProperty to sort objects so that this works on any SC.Enumerable not just native arrays.
73
+ * SC.Record: Add in a the new concept of 'readOnlyAttributes' to complement 'attributes'.
74
+ * New type of SC.PickerPane: PICKER_MENU_POINTER - It's a menu but position like picker pointer
75
+ * Add a willRemoveAllChildren to SC.CollectionView.
76
+ * Added max() and min() to SC.Array
77
+ * Added isDescendantOf method to SC.View
78
+ * Added acceptFirstResponder code to radio and checkbox button.
79
+ * Add a constant for the default separator height, too.
80
+ * use SC.WELL_CONTAINER_PADDING for well and change default value to 15
81
+ * Initial support for re-using views in collections
82
+ * Push an extra div into the scrollView so that it's possible to style the corner differently.
83
+ * Moved all of the standard theme scroller metrics into SproutCore as default values.
84
+ * Adding themes to segmented view
85
+ * Changing tabView so you can set the height of the tabs with a global variable
86
+ * Added provision for Enabling/Disabling menu items in SelectButtonView
87
+ * AlertPane: Esc triggers cancel button / enter triggers default button
88
+ * SC.Query: 'orderBy' can now optionally be a comparison function. In this case, the specified function will be passed the two records directly, rather than the typical method of operating on specific properties. This can be useful for complicated comparisons that cannot be expressed by the simpler method.
89
+ * Add option to only allow focus tabbing among webapp controls.(No jumping to address bar
90
+ * pushRetrieve, pushDestroy and pushError now return storeKey on success instead of YES
91
+ * If there is a list item being edited, commit the changes if the list is scrolled.
92
+ * New Validator for positive integers and also accepts a default value
93
+ * Make sure we always have a root responder.
94
+ * Taught toFormattedString to handle characters %h (unpadded 24-hour time, 1-24) and %i (unpadded 12-hour time, 1-12).
95
+ * FocusRings for SC.ButtonView
96
+ * Adding a handy escapeForRegExp method to String
97
+ * Alignment support for SC.SegmentedView
98
+ * allowing text fields to only apply changes on blur via applyImmediately: NO
99
+ * Added a property to enable/disable textfield tabbing.
100
+ * Removed mobile framework as it was unnecessary
101
+ * Update all encodings to be valid UTF-8
102
+ * We now force parentViewDidResize. It is no longer optional.
103
+ * Only add 'px' units to layout values that are numbers. Strings will be unchanged.
104
+ * 'layerLocationNeedsUpdate' is not set until updates are completed.
105
+ * If a pane receives a tab key press, try to find the next eligible view in the view hierarchy and assign it first responder.
106
+ * In collection view, check if the item is loaded or not before advancing to it.
107
+ * SelectButtonView should by default highlight whatever item is set to its value property.
108
+ * SC.Request: Added 'proper' async() function
109
+ * Changed disclosure from using a label tag to using span
110
+ * add debug() support to SC.Logger
111
+ * Added the shouldInheritCursor property & documentation to SC.View. Defaults to YES.
112
+ * ResponderContext is now a mixin included by SC.Pane and SC.Application.
113
+ * TextFieldView: add support for escapeHTML
114
+ * Renamed isEnabledObserver to reduce the likelihood of naming collisions.
115
+ * Move Date.now() into runtime, and only implement if the browser does not.
116
+ * do not append font-weight style with px
117
+ * Disable other mouse events while dealing with inputs.
118
+
119
+
120
+
121
+ BUG FIXES
122
+ ---------
123
+ * XSS security improvements
124
+ * Fixed a bug with listItem views not always being removed properly
125
+ * Miscellaneous code cleanup, optimizations and fixes
126
+ * Fix for memory leak in SC.Response
127
+ * Fixed issue with SC.ManyArray not notifying inverse attributes of correct records that got removed in SC.ManyArray#replace, with tests.
128
+ * TextField hint was not updating for browsers that support placeholder
129
+ * Fix SC.Object so it handles both local and non-local property paths at the same time.
130
+ * Fixed SC.Binding.disconnect()
131
+ * Initialize the value of the select field view to the value of the first element if there is no emptyName and the value hasn't been previously set.
132
+ * Fixed RenderContext to properly handle styles starting with a dash
133
+ * Change the value of the textfield on keyDown to reflect key repetitions.
134
+ * Ignore moveRight and moveLeft events if the user has a control or meta key held down. Otherwise, we may inadvertently block browser keyboard shortcuts.
135
+ * Destroy the layer before removing from parent , otherwise the view will leak
136
+ * Fixes to SC.SegmentedView.
137
+ * Fixed checkbox/righticon/disclosure states in SC.ListItemView
138
+ * RootResponder's performKeyEquivalent should check the menupane before the keypane.
139
+ * Fixed broken useToggleSelection property.
140
+ * Correctly trigger the document's 'ready' event
141
+ * SC.LabelView was lacking a default implementation of inlineEditorShouldBeginEditing(), so by default it would never switch to editable mode when 'isEditable' == true.
142
+ * Fix for bug in SC.Record.normalize(). It would try to normalize a null child record reference.
143
+ * SC.Event.special.mouseover didn't exist, changing it to mouseenter fixes the mouseenter event
144
+ * RecordAttribute: Allow null dates
145
+ * Checking / Unchecking checkboxes or clicking in empty space was not removing focus from in-focus form fields
146
+ * Fixing before ondeactivate in textfield as it is not letting textfields within iframes get focus
147
+ * Invalidate the verticalScrollOffset and horizontalScrollOffset with -1 instead of 0, because those are actually valid values.
148
+ * Reset the click count if clicks occur too far away from one another
149
+ * Make SC.RecordAttribute respect isEditable
150
+ * SC.SelectButton should accept first responder only if it is enabled.
151
+ * Prevent scrollbars from being shown when PickerPane is opened.
152
+
153
+
154
+
155
+
156
+ BROWSER
157
+ -------
158
+ * XHR requests now work with Opera
159
+ * IE7 fixes
160
+ * Fixed problem with poor security management in FF4
161
+ * Fix for window focus events on IE.
162
+ * Fixed issue with underscore characters not appearing in IE text fields.
163
+ * Adding extra validation to avoid incorrect appearance of hint when deleting all text while using firefox
164
+ * Fix the default # added in FF and IE when using routes
165
+ * SC.Pane should not call sendAction from its sendEvent implementation.
166
+ * Fixing IE8 selection woes and removing a lot of legacy cross-browser code
167
+ * Resolve a bug where other panes would disappear if a menu pane was opened (IE7 only).
168
+ * Fix for SC.button on IE7, now it calculates the label with once is appended to the document
169
+ * SC.TextFieldView: Default hint as empty string to avoid IE displaying null in the text fields
170
+
@@ -68,7 +68,7 @@ SC.Request = SC.Object.extend(SC.Copyable, SC.Freezable,
68
68
  this.header('X-Requested-With', 'XMLHttpRequest');
69
69
  //TODO: we need to have the SC version in a SC variable.
70
70
  //For now I'm harcoding the variable.
71
- this.header('X-SproutCore-Version', '1.0');
71
+ this.header('X-SproutCore-Version', '1.4');
72
72
  },
73
73
 
74
74
  /**
@@ -51,11 +51,7 @@ module SC
51
51
  begin
52
52
  server = ::Rack::Handler::Thin
53
53
  rescue LoadError => e
54
- begin
55
- server = ::Rack::Handler::Mongrel
56
- rescue LoadError => e
57
- server = ::Rack::Handler::WEBrick
58
- end
54
+ server = ::Rack::Handler::Mongrel
59
55
  end
60
56
  end
61
57
 
@@ -87,7 +87,7 @@ module SC
87
87
  end
88
88
 
89
89
  if $to_minify.length > 0
90
- filecompress = "java -jar \"" + SC.yui_jar + "\" --charset utf-8 --line-break 80 \"" + $to_minify * '\" \"' + "\" 2>&1"
90
+ filecompress = "java -jar \"" + SC.yui_jar + "\" --charset utf-8 --line-break 80 \"" + $to_minify * '" "' + "\" 2>&1"
91
91
  SC.logger.info 'Compressing with YUI...'
92
92
 
93
93
  output = `#{filecompress}` # It'd be nice to just read STDERR, but
data/sproutcore.gemspec CHANGED
@@ -1,25 +1,40 @@
1
1
  $:.push File.expand_path("../lib", __FILE__)
2
2
  require "sproutcore/version"
3
3
 
4
+ is_jruby = Gem::Platform.local.os == "java"
5
+
4
6
  Gem::Specification.new do |s|
5
7
  s.name = 'sproutcore'
6
8
  s.version = SproutCore::VERSION
7
- s.authors = 'Sprout Systems, Inc. Apple Inc. and contributors'
9
+ s.authors = 'Strobe, Inc., Sprout Systems, Inc. Apple Inc. and contributors'
8
10
  s.email = 'contact@sproutcore.com'
9
11
  s.homepage = 'http://www.sproutcore.com'
10
- s.summary = "SproutCore is a platform for building native look-and-feel applications on the web"
12
+ s.summary = "SproutCore is a platform for building native look-and-feel applications on the web"
13
+
14
+ s.platform = 'java' if is_jruby
11
15
 
12
16
  s.add_dependency 'rack', '~> 1.2.1'
13
17
  s.add_dependency 'json_pure', "~> 1.4.6"
14
18
  s.add_dependency 'extlib', "~> 0.9.15"
15
19
  s.add_dependency 'erubis', "~> 2.6.6"
16
20
  s.add_dependency 'thor', '~> 0.14.1'
17
- s.add_dependency 'thin', '~> 1.2.7'
21
+
22
+ if is_jruby
23
+ s.add_dependency 'mongrel', '~> 1.1.5'
24
+ else
25
+ s.add_dependency 'thin', '~> 1.2.7'
26
+ end
18
27
 
19
28
  s.add_development_dependency 'gemcutter', "~> 0.6.0"
20
29
  s.add_development_dependency 'rspec', "~> 1.3.0"
21
30
  s.add_development_dependency 'rake'
22
31
 
32
+ # Optional features, used in tests
33
+ s.add_development_dependency 'haml', "~> 3.0.18"
34
+ s.add_development_dependency 'less', "~> 1.2.21"
35
+ s.add_development_dependency 'RedCloth', "~> 4.2.3"
36
+ s.add_development_dependency 'BlueCloth', "~> 1.0.1"
37
+
23
38
  s.rubyforge_project = "sproutcore"
24
39
  s.extra_rdoc_files = %w[History.txt README.txt]
25
40
 
metadata CHANGED
@@ -5,16 +5,16 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 0
9
- version: 1.4.0
8
+ - 1
9
+ version: 1.4.1
10
10
  platform: ruby
11
11
  authors:
12
- - Sprout Systems, Inc. Apple Inc. and contributors
12
+ - Strobe, Inc., Sprout Systems, Inc. Apple Inc. and contributors
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-20 00:00:00 -07:00
17
+ date: 2010-09-21 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -150,6 +150,66 @@ dependencies:
150
150
  version: "0"
151
151
  type: :development
152
152
  version_requirements: *id009
153
+ - !ruby/object:Gem::Dependency
154
+ name: haml
155
+ prerelease: false
156
+ requirement: &id010 !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - ~>
160
+ - !ruby/object:Gem::Version
161
+ segments:
162
+ - 3
163
+ - 0
164
+ - 18
165
+ version: 3.0.18
166
+ type: :development
167
+ version_requirements: *id010
168
+ - !ruby/object:Gem::Dependency
169
+ name: less
170
+ prerelease: false
171
+ requirement: &id011 !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ~>
175
+ - !ruby/object:Gem::Version
176
+ segments:
177
+ - 1
178
+ - 2
179
+ - 21
180
+ version: 1.2.21
181
+ type: :development
182
+ version_requirements: *id011
183
+ - !ruby/object:Gem::Dependency
184
+ name: RedCloth
185
+ prerelease: false
186
+ requirement: &id012 !ruby/object:Gem::Requirement
187
+ none: false
188
+ requirements:
189
+ - - ~>
190
+ - !ruby/object:Gem::Version
191
+ segments:
192
+ - 4
193
+ - 2
194
+ - 3
195
+ version: 4.2.3
196
+ type: :development
197
+ version_requirements: *id012
198
+ - !ruby/object:Gem::Dependency
199
+ name: BlueCloth
200
+ prerelease: false
201
+ requirement: &id013 !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ~>
205
+ - !ruby/object:Gem::Version
206
+ segments:
207
+ - 1
208
+ - 0
209
+ - 1
210
+ version: 1.0.1
211
+ type: :development
212
+ version_requirements: *id013
153
213
  description: SproutCore is a platform for building native look-and-feel applications on the web. This Ruby library includes a copy of the SproutCore JavaScript framework as well as a Ruby-based build system called Abbot.
154
214
  email: contact@sproutcore.com
155
215
  executables:
@@ -167,6 +227,7 @@ extra_rdoc_files:
167
227
  - History.txt
168
228
  - README.txt
169
229
  files:
230
+ - CHANGELOG
170
231
  - DISTRIBUTION.yml
171
232
  - Gemfile
172
233
  - History.txt
@@ -976,6 +1037,8 @@ files:
976
1037
  - lib/frameworks/sproutcore/apps/welcome/main.js
977
1038
  - lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js
978
1039
  - lib/frameworks/sproutcore/Buildfile
1040
+ - lib/frameworks/sproutcore/CHANGELOG
1041
+ - lib/frameworks/sproutcore/CHANGELOG-1.4.md
979
1042
  - lib/frameworks/sproutcore/design/CollectionView State Charts.graffle
980
1043
  - lib/frameworks/sproutcore/design/Design Charts.graffle
981
1044
  - lib/frameworks/sproutcore/design/greenhouse-statechart.graffle
@@ -1846,6 +1909,6 @@ rubyforge_project: sproutcore
1846
1909
  rubygems_version: 1.3.7
1847
1910
  signing_key:
1848
1911
  specification_version: 3
1849
- summary: SproutCore is a platform for building native look-and-feel applications on the web
1912
+ summary: SproutCore is a platform for building native look-and-feel applications on the web
1850
1913
  test_files: []
1851
1914