sproutcore 1.4.0.rc → 1.4.0.rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/VERSION.yml +1 -1
  2. data/bin/sc-build +6 -1
  3. data/bin/sc-build-number +6 -1
  4. data/bin/sc-docs +6 -1
  5. data/bin/sc-gen +6 -1
  6. data/bin/sc-init +6 -1
  7. data/bin/sc-manifest +6 -1
  8. data/bin/sc-server +6 -0
  9. data/bin/sproutcore +6 -2
  10. data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +0 -2
  11. data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +1 -1
  12. data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +8 -10
  13. data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +4 -1
  14. data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +3 -3
  15. data/lib/frameworks/sproutcore/frameworks/media/views/{mediaSlider.js → media_slider.js} +1 -1
  16. data/lib/frameworks/sproutcore/frameworks/media/views/{miniControls.js → mini_controls.js} +1 -1
  17. data/lib/frameworks/sproutcore/frameworks/media/views/{simpleControls.js → simple_controls.js} +2 -2
  18. data/lib/frameworks/sproutcore/frameworks/media/views/video.js +4 -1
  19. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +1 -1
  20. data/lib/frameworks/sproutcore/frameworks/table/views/table.js +1 -0
  21. data/{gen → lib/gen}/Buildfile +0 -0
  22. data/{gen → lib/gen}/app/Buildfile +0 -0
  23. data/{gen → lib/gen}/app/README +0 -0
  24. data/{gen → lib/gen}/app/USAGE +0 -0
  25. data/{gen → lib/gen}/app/templates/apps/@target_name@/core.js +0 -0
  26. data/{gen → lib/gen}/app/templates/apps/@target_name@/main.js +0 -0
  27. data/{gen → lib/gen}/app/templates/apps/@target_name@/resources/loading.rhtml +0 -0
  28. data/{gen → lib/gen}/app/templates/apps/@target_name@/resources/main_page.js +0 -0
  29. data/{gen → lib/gen}/controller/Buildfile +0 -0
  30. data/{gen → lib/gen}/controller/README +0 -0
  31. data/{gen → lib/gen}/controller/USAGE +0 -0
  32. data/{gen → lib/gen}/controller/templates/controllers/@filename@.js +0 -0
  33. data/{gen → lib/gen}/controller/templates/tests/controllers/@filename@.js +0 -0
  34. data/{gen → lib/gen}/data-source/Buildfile +0 -0
  35. data/{gen → lib/gen}/data-source/README +0 -0
  36. data/{gen → lib/gen}/data-source/USAGE +0 -0
  37. data/{gen → lib/gen}/data-source/templates/data_sources/@filename@.js +0 -0
  38. data/{gen → lib/gen}/design/Buildfile +0 -0
  39. data/{gen → lib/gen}/design/README +0 -0
  40. data/{gen → lib/gen}/design/USAGE +0 -0
  41. data/{gen → lib/gen}/design/templates/resources/@filename@.js +0 -0
  42. data/{gen → lib/gen}/framework/Buildfile +0 -0
  43. data/{gen → lib/gen}/framework/README +0 -0
  44. data/{gen → lib/gen}/framework/USAGE +0 -0
  45. data/{gen → lib/gen}/framework/templates/frameworks/@target_name@/core.js +0 -0
  46. data/{gen → lib/gen}/framework/templates/frameworks/@target_name@/english.lproj/strings.js +0 -0
  47. data/{gen → lib/gen}/language/Buildfile +0 -0
  48. data/{gen → lib/gen}/language/README +0 -0
  49. data/{gen → lib/gen}/language/USAGE +0 -0
  50. data/{gen → lib/gen}/language/templates/@filename@/strings.js +0 -0
  51. data/{gen → lib/gen}/model/Buildfile +0 -0
  52. data/{gen → lib/gen}/model/README +0 -0
  53. data/{gen → lib/gen}/model/USAGE +0 -0
  54. data/{gen → lib/gen}/model/templates/fixtures/@filename@.js +0 -0
  55. data/{gen → lib/gen}/model/templates/models/@filename@.js +0 -0
  56. data/{gen → lib/gen}/model/templates/tests/models/@filename@.js +0 -0
  57. data/{gen → lib/gen}/page/Buildfile +0 -0
  58. data/{gen → lib/gen}/page/README +0 -0
  59. data/{gen → lib/gen}/page/USAGE +0 -0
  60. data/{gen → lib/gen}/page/templates/pages/@target_name@/Buildfile +0 -0
  61. data/{gen → lib/gen}/page/templates/pages/@target_name@/core.js +0 -0
  62. data/{gen → lib/gen}/page/templates/pages/@target_name@/en.lproj/strings.js +0 -0
  63. data/{gen → lib/gen}/page/templates/pages/@target_name@/resources/body.css +0 -0
  64. data/{gen → lib/gen}/page/templates/pages/@target_name@/resources/body.rhtml +0 -0
  65. data/{gen → lib/gen}/project/Buildfile +0 -0
  66. data/{gen → lib/gen}/project/INIT +0 -0
  67. data/{gen → lib/gen}/project/README +0 -0
  68. data/{gen → lib/gen}/project/USAGE +0 -0
  69. data/{gen → lib/gen}/project/templates/@filename@/Buildfile +0 -0
  70. data/{gen → lib/gen}/project/templates/@filename@/README +0 -0
  71. data/{gen → lib/gen}/responder/Buildfile +0 -0
  72. data/{gen → lib/gen}/responder/README +0 -0
  73. data/{gen → lib/gen}/responder/USAGE +0 -0
  74. data/{gen → lib/gen}/responder/templates/states/@filename@.js +0 -0
  75. data/{gen → lib/gen}/test/Buildfile +0 -0
  76. data/{gen → lib/gen}/test/README +0 -0
  77. data/{gen → lib/gen}/test/USAGE +0 -0
  78. data/{gen → lib/gen}/test/templates/tests/@filename@.js +0 -0
  79. data/{gen → lib/gen}/theme/Buildfile +0 -0
  80. data/{gen → lib/gen}/theme/README +0 -0
  81. data/{gen → lib/gen}/theme/USAGE +0 -0
  82. data/{gen → lib/gen}/theme/templates/themes/@target_name@/resources/theme_styles.css +0 -0
  83. data/{gen → lib/gen}/view/Buildfile +0 -0
  84. data/{gen → lib/gen}/view/README +0 -0
  85. data/{gen → lib/gen}/view/USAGE +0 -0
  86. data/{gen → lib/gen}/view/templates/tests/views/@filename@.js +0 -0
  87. data/{gen → lib/gen}/view/templates/views/@filename@.js +0 -0
  88. data/lib/sproutcore/rack/builder.rb +0 -1
  89. data/lib/sproutcore/rack/dev.rb +2 -2
  90. data/lib/sproutcore/rack/proxy.rb +32 -1
  91. data/lib/sproutcore/rack/service.rb +2 -2
  92. data/lib/sproutcore/tools/build.rb +3 -3
  93. data/spec/fixtures/real_world/frameworks/sproutcore/demo3.scss +0 -0
  94. data/spec/lib/models/hash_struct/hash_spec.rb +0 -33
  95. data/spec/lib/models/hash_struct/merge_spec.rb +0 -7
  96. metadata +74 -84
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 4
4
- :patch: 0.rc
4
+ :patch: 0.rc.2
5
5
  :digest: e038ba5746bb757cd0ff2391828c5f03496fbb64
6
6
  :dist:
7
7
  frameworks/sproutcore: 637dc82942f2fd5c1e9cd57ce7582fca821a3bfa
@@ -6,7 +6,12 @@
6
6
  # and contributors
7
7
  # ===========================================================================
8
8
 
9
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
9
+ if caller.empty?
10
+ puts "FATAL: You need to invoke sc-build from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
11
+ exit
12
+ end
13
+
14
+ require "sproutcore"
10
15
 
11
16
  SC::Tools.invoke 'build'
12
17
 
@@ -6,7 +6,12 @@
6
6
  # and contributors
7
7
  # ===========================================================================
8
8
 
9
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
9
+ if caller.empty?
10
+ puts "FATAL: You need to invoke sc-build-number from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
11
+ exit
12
+ end
13
+
14
+ require "sproutcore"
10
15
 
11
16
  SC::Tools.invoke :build_number
12
17
 
@@ -7,7 +7,12 @@
7
7
  # and contributors
8
8
  # ===========================================================================
9
9
 
10
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
10
+ if caller.empty?
11
+ puts "FATAL: You need to invoke sc-docs from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
12
+ exit
13
+ end
14
+
15
+ require "sproutcore"
11
16
 
12
17
  SC::Tools.invoke :docs
13
18
 
data/bin/sc-gen CHANGED
@@ -6,7 +6,12 @@
6
6
  # and contributors
7
7
  # ===========================================================================
8
8
 
9
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
9
+ if caller.empty?
10
+ puts "FATAL: You need to invoke sc-gen from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
11
+ exit
12
+ end
13
+
14
+ require "sproutcore"
10
15
 
11
16
  SC::Tools.invoke 'gen'
12
17
 
@@ -6,7 +6,12 @@
6
6
  # and contributors
7
7
  # ===========================================================================
8
8
 
9
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
9
+ if caller.empty?
10
+ puts "FATAL: You need to invoke sc-init from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
11
+ exit
12
+ end
13
+
14
+ require "sproutcore"
10
15
 
11
16
  SC::Tools.invoke 'init'
12
17
 
@@ -6,7 +6,12 @@
6
6
  # and contributors
7
7
  # ===========================================================================
8
8
 
9
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
9
+ if caller.empty?
10
+ puts "FATAL: You need to invoke sc-manifest from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
11
+ exit
12
+ end
13
+
14
+ require "sproutcore"
10
15
 
11
16
  SC::Tools.invoke :manifest
12
17
 
@@ -6,7 +6,13 @@
6
6
  # and contributors
7
7
  # ===========================================================================
8
8
 
9
+ if caller.empty?
10
+ puts "FATAL: You need to invoke sc-server from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
11
+ exit
12
+ end
13
+
9
14
  require "sproutcore"
15
+
10
16
  SC::Tools.invoke 'server'
11
17
 
12
18
  # EOF
@@ -6,8 +6,12 @@
6
6
  # and contributors
7
7
  # ===========================================================================
8
8
 
9
- require File.expand_path(
10
- File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
9
+ if caller.empty?
10
+ puts "FATAL: You need to invoke sproutcore from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
11
+ exit
12
+ end
13
+
14
+ require "sproutcore"
11
15
 
12
16
  SC::Tools.start
13
17
 
@@ -7,6 +7,4 @@
7
7
 
8
8
  // sc_resource('setup_body_class_names'); // publish into inline format
9
9
 
10
- // sc_require("system/loader");
11
-
12
10
  if (SC.setupBodyClassNames) SC.setupBodyClassNames() ;
@@ -608,7 +608,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
608
608
 
609
609
  customView = menu.menuItemViewForContentIndex(this.get('itemIdx'));
610
610
  menu.set('currentMenuItem', customView) ;
611
- customView.becomeFirstResponder();
611
+ if (customView) customView.becomeFirstResponder();
612
612
 
613
613
  this.set('isActive', YES);
614
614
  return YES ;
@@ -126,14 +126,6 @@ SC.Response = SC.Object.extend(
126
126
  */
127
127
  headers: null,
128
128
 
129
- /**
130
- The raw body retrieved from the transport. This may be further parsed
131
- by the body property, which is probably what you want.
132
-
133
- @property {String}
134
- */
135
- encodedBody: null,
136
-
137
129
  /**
138
130
  Response body. If isJSON was set, will be parsed automatically.
139
131
 
@@ -529,8 +521,14 @@ SC.XHRResponse = SC.Response.extend({
529
521
  this.set('status', status);
530
522
 
531
523
  }, this);
532
- // avoid memory leak in MSIE: clean up
533
- rawRequest.onreadystatechange = function() {} ;
524
+
525
+ // Avoid memory leaks
526
+ if (!SC.browser.msie) {
527
+ SC.Event.remove(rawRequest, 'readystatechange', this, this.finishRequest);
528
+ } else {
529
+ rawRequest.onreadystatechange = null;
530
+ }
531
+
534
532
  return YES;
535
533
  }
536
534
  return NO;
@@ -6,7 +6,7 @@
6
6
  // ==========================================================================
7
7
 
8
8
  sc_require('views/controls');
9
- sc_require('views/miniControls');
9
+ sc_require('views/mini_controls');
10
10
  /**
11
11
  @class
12
12
 
@@ -178,7 +178,10 @@ SC.AudioView = SC.View.extend({
178
178
  return;
179
179
  case "flash":
180
180
  var flashURL= sc_static('videoCanvas.swf');
181
+
181
182
  var movieURL = this.get('value');
183
+ if (!movieURL) return;
184
+
182
185
  if(movieURL.indexOf('http:')==-1){
183
186
  movieURL=location.protocol+'//'+location.host+movieURL;
184
187
  }
@@ -6,7 +6,7 @@
6
6
  // ==========================================================================
7
7
  /*globals SC */
8
8
 
9
- sc_require('views/mediaSlider');
9
+ sc_require('views/media_slider');
10
10
  /** @class
11
11
 
12
12
  (Document Your View Here)
@@ -43,7 +43,7 @@ SC.MediaControlsView = SC.View.extend({
43
43
  renderStyle: 'renderImage',
44
44
  theme: ''
45
45
  }),
46
- progressView: SC.mediaSlider.design({
46
+ progressView: SC.MediaSlider.design({
47
47
  layout: { top: 0, left: 20, right: 220, height:20},
48
48
  value:0,
49
49
  minimum: 0,
@@ -74,7 +74,7 @@ SC.MediaControlsView = SC.View.extend({
74
74
  value: '',
75
75
  icon: 'minus'
76
76
  }),
77
- volumeView: SC.mediaSlider.design({
77
+ volumeView: SC.MediaSlider.design({
78
78
  layout: { top: 0, right: 20, width: 100, height:20},
79
79
  value:0,
80
80
  valueBinding: "*owner.target.volume" ,
@@ -12,7 +12,7 @@
12
12
 
13
13
  @extends SC.View
14
14
  */
15
- SC.mediaSlider = SC.SliderView.extend({
15
+ SC.MediaSlider = SC.SliderView.extend({
16
16
 
17
17
  mediaView: null,
18
18
 
@@ -6,7 +6,7 @@
6
6
  // ==========================================================================
7
7
  /*globals SC */
8
8
 
9
- sc_require('views/mediaSlider');
9
+ sc_require('views/media_slider');
10
10
  /** @class
11
11
 
12
12
  (Document Your View Here)
@@ -6,7 +6,7 @@
6
6
  // ==========================================================================
7
7
  /*globals SC */
8
8
 
9
- sc_require('views/mediaSlider');
9
+ sc_require('views/media_slider');
10
10
  /** @class
11
11
 
12
12
  (Document Your View Here)
@@ -43,7 +43,7 @@ SC.SimpleMediaControlsView = SC.View.extend({
43
43
  renderStyle: 'renderImage',
44
44
  theme: ''
45
45
  }),
46
- progressView: SC.mediaSlider.design({
46
+ progressView: SC.MediaSlider.design({
47
47
  layout: { top: 0, left: 25, right: 0, height:20 },
48
48
  value:0,
49
49
  minimum: 0,
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
  sc_require('views/controls');
10
- sc_require('views/miniControls');
10
+ sc_require('views/mini_controls');
11
11
 
12
12
  /**
13
13
  @class
@@ -203,7 +203,10 @@ SC.VideoView = SC.View.extend({
203
203
  return;
204
204
  case "flash":
205
205
  var flashURL= sc_static('videoCanvas.swf');
206
+
206
207
  var movieURL = this.get('value');
208
+ if (!movieURL) return;
209
+
207
210
  if(movieURL.indexOf('http:')==-1){
208
211
  movieURL=location.protocol+'//'+location.host+movieURL;
209
212
  }
@@ -204,7 +204,7 @@ SC.mixin(/** @scope SC */ {
204
204
  // this is safe.
205
205
  } else if (SC.Error && (item instanceof SC.Error)) {
206
206
  ret = SC.T_ERROR ;
207
- } else if (item.isObject === true) {
207
+ } else if (item instanceof SC.Object) {
208
208
  ret = SC.T_OBJECT ;
209
209
  } else ret = SC.T_HASH ;
210
210
  } else if (ret === SC.T_FUNCTION) ret = (item.isClass) ? SC.T_CLASS : SC.T_FUNCTION;
@@ -6,6 +6,7 @@
6
6
  // ==========================================================================
7
7
 
8
8
  sc_require('mixins/table_delegate');
9
+ sc_require('views/table_head');
9
10
 
10
11
  /** @class
11
12
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -198,7 +198,6 @@ module SC
198
198
  end
199
199
 
200
200
  def monitor_project!
201
- return
202
201
  if !@should_monitor
203
202
  @should_monitor = true
204
203
  @project_root = @project.project_root
@@ -6,7 +6,6 @@
6
6
  # ===========================================================================
7
7
 
8
8
  require 'json'
9
- #require 'ruby-debug'
10
9
  module SC
11
10
  module Rack
12
11
 
@@ -60,7 +59,8 @@ module SC
60
59
  def get_greenhouse_configs(env)
61
60
  rqust = ::Rack::Request.new(env)
62
61
  params = rqust.params
63
- app_target = @project.target_for(params['app'].to_sym)
62
+ app = params['app'] ? params['app'].to_sym : ''
63
+ app_target = @project.target_for(app)
64
64
  ret = []
65
65
  if(app_target)
66
66
  path = app_target.source_root + "/design/greenhouse.config"
@@ -5,7 +5,7 @@
5
5
  # and contributors
6
6
  # ===========================================================================
7
7
 
8
- require 'net/http'
8
+ require 'net/https'
9
9
  module SC
10
10
  module Rack
11
11
 
@@ -66,7 +66,16 @@ module SC
66
66
 
67
67
  response = nil
68
68
  no_body_method = %w(delete get copy head move options trace)
69
+
70
+ done = false
71
+ tries = 0
72
+ until done
69
73
  ::Net::HTTP.start(http_host, http_port) do |http|
74
+ if proxy[:secure]
75
+ http.use_ssl = true
76
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
77
+ end
78
+
70
79
  if no_body_method.include?(http_method)
71
80
  response = http.send(http_method, http_path, headers)
72
81
  else
@@ -94,11 +103,33 @@ module SC
94
103
  value.gsub!(/domain=[^\;]+\;? ?/,'') if key.downcase == 'set-cookie'
95
104
  # Location headers should rewrite the hostname if it is included.
96
105
  value.gsub!(/^http:\/\/#{http_host}(:[0-9]+)?\//, "http://#{http_host}/") if key.downcase == 'location'
106
+ # content-length is returning char count not bytesize
107
+ value = response.body.bytesize.to_s if key.downcase == 'content-length'
108
+
97
109
 
98
110
  SC.logger << " #{key}: #{value}\n"
99
111
  response_headers[key] = value
100
112
  end
101
113
 
114
+ if [301, 307].include?(status.to_i)
115
+ SC.logger << '~ REDIRECTING: '+response_headers['location']
116
+
117
+ uri = URI.parse(response_headers['location']);
118
+ http_host = uri.host
119
+ http_port = uri.port
120
+ http_path = uri.path
121
+ http_path += '?'+uri.query if uri.query
122
+ headers = {}
123
+
124
+ tries += 1
125
+ if tries > 10
126
+ raise "Too many redirects!"
127
+ end
128
+ else
129
+ done = true
130
+ end
131
+ end
132
+
102
133
  return [status, ::Rack::Utils::HeaderHash.new(response_headers), [response.body]]
103
134
  end
104
135
  end
@@ -58,8 +58,8 @@ module SC
58
58
  end
59
59
  end
60
60
  end
61
-
62
- opts[:Filesystem] ||= opts[:filesystem] || false # allow either case
61
+
62
+ opts[:Filesystem] ||= opts[:filesystem] || true # enabled by default
63
63
  self.filesystem = opts[:Filesystem]
64
64
 
65
65
  projects = opts.delete(:projects) || [opts.delete(:project)].compact
@@ -16,9 +16,9 @@ module SC
16
16
  class Tools
17
17
 
18
18
  desc "build [TARGET..]", "Builds one or more targets"
19
- method_options(
20
- MANIFEST_OPTIONS.merge(:entries => :string, :clean => false))
21
-
19
+ method_options(MANIFEST_OPTIONS)
20
+ method_option :entries, :type => :string
21
+ method_option :clean, :type => :boolean, :aliases => "-c"
22
22
  def build(*targets)
23
23
  # Copy some key props to the env
24
24
  SC.env.build_prefix = options.buildroot if options.buildroot
@@ -26,37 +26,4 @@ describe SC::HashStruct, 'hash operations' do
26
26
  e[:foo].should eql(:bar)
27
27
  end
28
28
 
29
- it "should treat string and hash keys as the same for writing, but not reading" do
30
- e = SC::HashStruct.new
31
- e['foo'] = :bar
32
- e[:foo].should eql(:bar)
33
-
34
- e[:foo2] = :bar
35
- e['foo2'].should eql(nil)
36
- end
37
-
38
- it "should convert all keys to symbols (i.e. if you get keys, they will always be symbols)" do
39
- e = SC::HashStruct.new
40
- e['string'] = :foo
41
- e[:symbol] = :foo
42
-
43
- expected = [:string, :symbol]
44
- idx=0
45
- e.keys.sort { |a,b| a.to_s <=> b.to_s }.each do |k|
46
- k.should eql(expected[idx])
47
- idx += 1
48
- end
49
- end
50
-
51
- it "should raise error if key cannot be converted to symbol" do
52
- a = SC::HashStruct.new
53
-
54
- # numbers respond to to_sym but return nil
55
- lambda { a[1] = :foo }.should raise_error
56
-
57
- # Object does not respond to to_sym
58
- lambda { a[Object.new] = :foo }.should raise_error
59
- end
60
-
61
-
62
29
  end
@@ -2,13 +2,6 @@ require "spec_helper"
2
2
 
3
3
  describe SC::HashStruct, 'merge!' do
4
4
 
5
- it "should convert all keys to symbols - if symbol and string is passed, they will overrwite" do
6
- a = SC::HashStruct.new
7
- a.merge! :foo => :bar1, 'foo' => :bar2
8
- a.keys.size.should eql(1)
9
- a.keys.first.should eql(:foo)
10
- end
11
-
12
5
  it "should do nothing if we merge self!" do
13
6
  a = SC::HashStruct.new :foo => :bar
14
7
  a.merge! a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sproutcore
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7712042
5
4
  prerelease: true
6
5
  segments:
7
6
  - 1
8
7
  - 4
9
8
  - 0
10
9
  - rc
11
- version: 1.4.0.rc
10
+ - 2
11
+ version: 1.4.0.rc.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Sprout Systems, Inc. Apple Inc. and contributors
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-09-08 00:00:00 -07:00
19
+ date: 2010-09-09 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -27,7 +27,6 @@ dependencies:
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- hash: 57
31
30
  segments:
32
31
  - 0
33
32
  - 9
@@ -43,7 +42,6 @@ dependencies:
43
42
  requirements:
44
43
  - - ">="
45
44
  - !ruby/object:Gem::Version
46
- hash: 19
47
45
  segments:
48
46
  - 1
49
47
  - 1
@@ -59,7 +57,6 @@ dependencies:
59
57
  requirements:
60
58
  - - ">="
61
59
  - !ruby/object:Gem::Version
62
- hash: 41
63
60
  segments:
64
61
  - 0
65
62
  - 9
@@ -75,7 +72,6 @@ dependencies:
75
72
  requirements:
76
73
  - - ">="
77
74
  - !ruby/object:Gem::Version
78
- hash: 19
79
75
  segments:
80
76
  - 2
81
77
  - 6
@@ -91,7 +87,6 @@ dependencies:
91
87
  requirements:
92
88
  - - ">="
93
89
  - !ruby/object:Gem::Version
94
- hash: 61
95
90
  segments:
96
91
  - 0
97
92
  - 11
@@ -107,7 +102,6 @@ dependencies:
107
102
  requirements:
108
103
  - - ~>
109
104
  - !ruby/object:Gem::Version
110
- hash: 17
111
105
  segments:
112
106
  - 1
113
107
  - 2
@@ -123,7 +117,6 @@ dependencies:
123
117
  requirements:
124
118
  - - ">="
125
119
  - !ruby/object:Gem::Version
126
- hash: 27
127
120
  segments:
128
121
  - 0
129
122
  - 1
@@ -139,7 +132,6 @@ dependencies:
139
132
  requirements:
140
133
  - - ">="
141
134
  - !ruby/object:Gem::Version
142
- hash: 31
143
135
  segments:
144
136
  - 1
145
137
  - 2
@@ -155,7 +147,6 @@ dependencies:
155
147
  requirements:
156
148
  - - ">="
157
149
  - !ruby/object:Gem::Version
158
- hash: 3
159
150
  segments:
160
151
  - 0
161
152
  version: "0"
@@ -320,79 +311,79 @@ files:
320
311
  - doc_templates/sproutcore/static/header.html
321
312
  - doc_templates/sproutcore/static/index.html
322
313
  - doc_templates/sproutcore/symbol.tmpl
323
- - gen/Buildfile
324
- - gen/app/Buildfile
325
- - gen/app/README
326
- - gen/app/USAGE
327
- - gen/app/templates/apps/@target_name@/core.js
328
- - gen/app/templates/apps/@target_name@/main.js
329
- - gen/app/templates/apps/@target_name@/resources/loading.rhtml
330
- - gen/app/templates/apps/@target_name@/resources/main_page.js
331
- - gen/controller/Buildfile
332
- - gen/controller/README
333
- - gen/controller/USAGE
334
- - gen/controller/templates/controllers/@filename@.js
335
- - gen/controller/templates/tests/controllers/@filename@.js
336
- - gen/data-source/Buildfile
337
- - gen/data-source/README
338
- - gen/data-source/USAGE
339
- - gen/data-source/templates/data_sources/@filename@.js
340
- - gen/design/Buildfile
341
- - gen/design/README
342
- - gen/design/USAGE
343
- - gen/design/templates/resources/@filename@.js
344
- - gen/framework/Buildfile
345
- - gen/framework/README
346
- - gen/framework/USAGE
347
- - gen/framework/templates/frameworks/@target_name@/core.js
348
- - gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js
349
- - gen/language/Buildfile
350
- - gen/language/README
351
- - gen/language/USAGE
352
- - gen/language/templates/@filename@/strings.js
353
- - gen/model/Buildfile
354
- - gen/model/README
355
- - gen/model/USAGE
356
- - gen/model/templates/fixtures/@filename@.js
357
- - gen/model/templates/models/@filename@.js
358
- - gen/model/templates/tests/models/@filename@.js
359
- - gen/page/Buildfile
360
- - gen/page/README
361
- - gen/page/USAGE
362
- - gen/page/templates/pages/@target_name@/Buildfile
363
- - gen/page/templates/pages/@target_name@/core.js
364
- - gen/page/templates/pages/@target_name@/en.lproj/strings.js
365
- - gen/page/templates/pages/@target_name@/resources/body.css
366
- - gen/page/templates/pages/@target_name@/resources/body.rhtml
367
- - gen/project/Buildfile
368
- - gen/project/INIT
369
- - gen/project/README
370
- - gen/project/USAGE
371
- - gen/project/templates/@filename@/Buildfile
372
- - gen/project/templates/@filename@/README
373
- - gen/responder/Buildfile
374
- - gen/responder/README
375
- - gen/responder/USAGE
376
- - gen/responder/templates/states/@filename@.js
377
- - gen/test/Buildfile
378
- - gen/test/README
379
- - gen/test/USAGE
380
- - gen/test/templates/tests/@filename@.js
381
- - gen/theme/Buildfile
382
- - gen/theme/README
383
- - gen/theme/USAGE
384
- - gen/theme/templates/themes/@target_name@/resources/theme_styles.css
385
- - gen/view/Buildfile
386
- - gen/view/README
387
- - gen/view/USAGE
388
- - gen/view/templates/tests/views/@filename@.js
389
- - gen/view/templates/views/@filename@.js
390
314
  - lib/Buildfile
391
315
  - lib/buildtasks/build.rake
392
316
  - lib/buildtasks/entry.rake
393
317
  - lib/buildtasks/manifest.rake
394
318
  - lib/buildtasks/render.rake
395
319
  - lib/buildtasks/target.rake
320
+ - lib/gen/Buildfile
321
+ - lib/gen/app/Buildfile
322
+ - lib/gen/app/README
323
+ - lib/gen/app/USAGE
324
+ - lib/gen/app/templates/apps/@target_name@/core.js
325
+ - lib/gen/app/templates/apps/@target_name@/main.js
326
+ - lib/gen/app/templates/apps/@target_name@/resources/loading.rhtml
327
+ - lib/gen/app/templates/apps/@target_name@/resources/main_page.js
328
+ - lib/gen/controller/Buildfile
329
+ - lib/gen/controller/README
330
+ - lib/gen/controller/USAGE
331
+ - lib/gen/controller/templates/controllers/@filename@.js
332
+ - lib/gen/controller/templates/tests/controllers/@filename@.js
333
+ - lib/gen/data-source/Buildfile
334
+ - lib/gen/data-source/README
335
+ - lib/gen/data-source/USAGE
336
+ - lib/gen/data-source/templates/data_sources/@filename@.js
337
+ - lib/gen/design/Buildfile
338
+ - lib/gen/design/README
339
+ - lib/gen/design/USAGE
340
+ - lib/gen/design/templates/resources/@filename@.js
341
+ - lib/gen/framework/Buildfile
342
+ - lib/gen/framework/README
343
+ - lib/gen/framework/USAGE
344
+ - lib/gen/framework/templates/frameworks/@target_name@/core.js
345
+ - lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js
346
+ - lib/gen/language/Buildfile
347
+ - lib/gen/language/README
348
+ - lib/gen/language/USAGE
349
+ - lib/gen/language/templates/@filename@/strings.js
350
+ - lib/gen/model/Buildfile
351
+ - lib/gen/model/README
352
+ - lib/gen/model/USAGE
353
+ - lib/gen/model/templates/fixtures/@filename@.js
354
+ - lib/gen/model/templates/models/@filename@.js
355
+ - lib/gen/model/templates/tests/models/@filename@.js
356
+ - lib/gen/page/Buildfile
357
+ - lib/gen/page/README
358
+ - lib/gen/page/USAGE
359
+ - lib/gen/page/templates/pages/@target_name@/Buildfile
360
+ - lib/gen/page/templates/pages/@target_name@/core.js
361
+ - lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js
362
+ - lib/gen/page/templates/pages/@target_name@/resources/body.css
363
+ - lib/gen/page/templates/pages/@target_name@/resources/body.rhtml
364
+ - lib/gen/project/Buildfile
365
+ - lib/gen/project/INIT
366
+ - lib/gen/project/README
367
+ - lib/gen/project/USAGE
368
+ - lib/gen/project/templates/@filename@/Buildfile
369
+ - lib/gen/project/templates/@filename@/README
370
+ - lib/gen/responder/Buildfile
371
+ - lib/gen/responder/README
372
+ - lib/gen/responder/USAGE
373
+ - lib/gen/responder/templates/states/@filename@.js
374
+ - lib/gen/test/Buildfile
375
+ - lib/gen/test/README
376
+ - lib/gen/test/USAGE
377
+ - lib/gen/test/templates/tests/@filename@.js
378
+ - lib/gen/theme/Buildfile
379
+ - lib/gen/theme/README
380
+ - lib/gen/theme/USAGE
381
+ - lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css
382
+ - lib/gen/view/Buildfile
383
+ - lib/gen/view/README
384
+ - lib/gen/view/USAGE
385
+ - lib/gen/view/templates/tests/views/@filename@.js
386
+ - lib/gen/view/templates/views/@filename@.js
396
387
  - lib/sproutcore.rb
397
388
  - lib/sproutcore/builders.rb
398
389
  - lib/sproutcore/builders/base.rb
@@ -760,6 +751,7 @@ files:
760
751
  - spec/fixtures/real_world/frameworks/sproutcore/debug/debug-resource.html
761
752
  - spec/fixtures/real_world/frameworks/sproutcore/debug/sample_debug.js
762
753
  - spec/fixtures/real_world/frameworks/sproutcore/demo2.js
754
+ - spec/fixtures/real_world/frameworks/sproutcore/demo3.scss
763
755
  - spec/fixtures/real_world/frameworks/sproutcore/english.lproj/debug/sample_debug-loc.js
764
756
  - spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.css
765
757
  - spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.html
@@ -1659,9 +1651,9 @@ files:
1659
1651
  - lib/frameworks/sproutcore/frameworks/media/resources/videoCanvas.swf
1660
1652
  - lib/frameworks/sproutcore/frameworks/media/views/audio.js
1661
1653
  - lib/frameworks/sproutcore/frameworks/media/views/controls.js
1662
- - lib/frameworks/sproutcore/frameworks/media/views/mediaSlider.js
1663
- - lib/frameworks/sproutcore/frameworks/media/views/miniControls.js
1664
- - lib/frameworks/sproutcore/frameworks/media/views/simpleControls.js
1654
+ - lib/frameworks/sproutcore/frameworks/media/views/media_slider.js
1655
+ - lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js
1656
+ - lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js
1665
1657
  - lib/frameworks/sproutcore/frameworks/media/views/video.js
1666
1658
  - lib/frameworks/sproutcore/frameworks/mini/license.js
1667
1659
  - lib/frameworks/sproutcore/frameworks/mobile/english.lproj/core.css
@@ -1948,7 +1940,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
1948
1940
  requirements:
1949
1941
  - - ">="
1950
1942
  - !ruby/object:Gem::Version
1951
- hash: 3
1952
1943
  segments:
1953
1944
  - 0
1954
1945
  version: "0"
@@ -1957,7 +1948,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1957
1948
  requirements:
1958
1949
  - - ">"
1959
1950
  - !ruby/object:Gem::Version
1960
- hash: 25
1961
1951
  segments:
1962
1952
  - 1
1963
1953
  - 3