sproutcore 0.9.19 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -19,7 +19,6 @@ clients/sc_docs/english.lproj/no_docs.rhtml
19
19
  clients/sc_docs/english.lproj/strings.js
20
20
  clients/sc_docs/english.lproj/tabs.rhtml
21
21
  clients/sc_docs/fixtures/doc.js
22
- clients/sc_docs/french.lproj/strings.js
23
22
  clients/sc_docs/HISTORY
24
23
  clients/sc_docs/main.js
25
24
  clients/sc_docs/models/doc.js
data/bin/sc-server CHANGED
@@ -9,7 +9,7 @@ $:.unshift File.join(APP_ROOT,'lib') ;
9
9
  # Require Merb, SproutCore & SproutCore/Merb support
10
10
  require 'rubygems'
11
11
  require 'rubigen'
12
- gem('merb-core', '>= 0.9.1')
12
+ gem('merb-core', '>= 0.9.9')
13
13
  require 'merb-core'
14
14
  require 'sproutcore'
15
15
  require 'sproutcore/merb'
@@ -21,23 +21,23 @@ require 'sproutcore/merb'
21
21
  ## Setup Default Options
22
22
  ##
23
23
 
24
- begin
25
- require 'thin'
26
- server_kind = 'thin'
27
- rescue LoadError
28
- server_kind = 'mongrel'
29
- end
24
+ unless ARGV.index('-a') || ARGV.index('--adapter') || ARGV.index('-i') || ARGV.index('--irb-console')
25
+ begin
26
+ require 'thin'
27
+ server_kind = 'thin'
28
+ rescue LoadError
29
+ server_kind = 'mongrel'
30
+ end
30
31
 
31
- unless ARGV.index('-a') || ARGV.index('-i')
32
- ARGV.push *['-a', server_kind]
32
+ ARGV.push *['--adapter', server_kind]
33
33
  end
34
34
 
35
35
  # Make BlueRibbon run on a different port by default
36
- unless ARGV.index('-p')
37
- ARGV.push *%w[-p 4020]
36
+ unless ARGV.index('-p') || ARGV.index('--port')
37
+ ARGV.push *%w[--port 4020]
38
38
  end
39
39
 
40
- unless ARGV.index('--merb-root')
40
+ unless ARGV.index('-m') || ARGV.index('--merb-root')
41
41
  ARGV.push "--merb-root=#{SC.library.root_path}"
42
42
  end
43
43
 
@@ -45,27 +45,36 @@ end
45
45
  ## Configure Merb
46
46
  ##
47
47
 
48
- Merb::Router.prepare { |r| r.connect_clients('/') }
49
- Merb::Config.use { |c|
50
- c[:framework] = {},
51
- c[:session_store] = 'none',
52
- c[:exception_details] = true,
53
- c[:reload_classes] = false,
54
- c[:use_mutex] = false,
55
- c[:log_auto_flush] = true
56
- }
48
+ class Sproutcore::BootLoader < Merb::BootLoader
49
+ def self.run
50
+ Merb::Router.prepare { |r| r.connect_clients('/') }
51
+
52
+ Merb::Config.use { |c|
53
+ c[:framework] = {}
54
+ c[:session_store] = 'none'
55
+ c[:exception_details] = true
56
+ c[:reload_classes] = false
57
+ c[:use_mutex] = false
58
+ c[:log_auto_flush] = true
59
+ c[:log_level] = :warn
60
+ c[:disabled_components] = [:initfile]
61
+ }
62
+ end
63
+ end
64
+ Sproutcore::BootLoader.before(Merb::BootLoader::Dependencies)
57
65
 
58
66
  ############################################################
59
67
  ## Register Exception Handler
60
68
  ##
61
69
 
62
- # required in 0.9.5-0.9.7, when defining an exception controller
63
- class Application < Merb::Controller ; end
64
-
65
70
  class Exceptions < Merb::Controller
66
71
  def base
67
72
  params[:exception].to_s
68
73
  end
74
+
75
+ def not_found
76
+ return "<h1>404</h1>NOT FOUND"
77
+ end
69
78
  end
70
79
 
71
80
  ############################################################
@@ -16,7 +16,27 @@ body {
16
16
  overflow: hidden ;
17
17
  }
18
18
 
19
+ .workspace .sidebar {
20
+ position: absolute;
21
+ left: 0;
22
+ top: 0;
23
+ width: 200px;
24
+ bottom: 0;
25
+ }
26
+
27
+ .sc-theme .workspace.horizontal .sc-split-divider-view {
28
+ position: absolute;
29
+ left: 200px;
30
+ top: 0;
31
+ bottom: 0;
32
+ }
33
+
19
34
  .workspace .document_view {
35
+ position: absolute;
36
+ left: 205px;
37
+ right: 0;
38
+ top: 0;
39
+ bottom: 0;
20
40
  border: none ;
21
41
  background-color: #aaa ;
22
42
  }
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
  <% split_view :workspace, :class => 'sc-app-workspace header footer', :direction => :horizontal do %>
18
- <% view :sidebar, :outlet => true, :width => 200 do %>
18
+ <% view :sidebar, :outlet => true do %>
19
19
  <% scroll_view :source_list, :outlet => true do %>
20
20
  <%= source_list_view :outlet => true,
21
21
  :content_value_key => :title,
@@ -31,6 +31,8 @@
31
31
  <% end %>
32
32
  <% end %>
33
33
 
34
+ <%= split_divider_view :outlet => true, :width => 5 %>
35
+
34
36
  <%= tab_view :document_view, :outlet => true,
35
37
  :bind => { :now_showing => 'Docs.docsController.nowShowingContainer' },
36
38
  :lazy_tabs => :true %>
@@ -9,6 +9,6 @@
9
9
  // localized string added to this file!
10
10
  //
11
11
  Object.extend(String.English,{
12
- "_English": "English"
12
+ // "_String Key": "Localized String"
13
13
  }) ;
14
14
 
@@ -16,7 +16,27 @@ body {
16
16
  overflow: hidden ;
17
17
  }
18
18
 
19
+ .workspace .sidebar {
20
+ position: absolute;
21
+ left: 0;
22
+ top: 0;
23
+ width: 200px;
24
+ bottom: 0;
25
+ }
26
+
27
+ .sc-theme .workspace.horizontal .sc-split-divider-view {
28
+ position: absolute;
29
+ left: 200px;
30
+ top: 0;
31
+ bottom: 0;
32
+ }
33
+
19
34
  .workspace .document_view {
35
+ position: absolute;
36
+ left: 205px;
37
+ right: 0;
38
+ top: 0;
39
+ bottom: 0;
20
40
  border: none ;
21
41
  background-color: #aaa ;
22
42
  }
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
  <% split_view :workspace, :class => 'sc-app-workspace header footer', :direction => :horizontal do %>
19
- <% view :sidebar, :outlet => true, :width => 200 do %>
19
+ <% view :sidebar, :outlet => true do %>
20
20
  <% scroll_view :source_list, :outlet => true do %>
21
21
  <%= source_list_view :outlet => true,
22
22
  :group => :group,
@@ -30,6 +30,8 @@
30
30
 
31
31
  <% end %>
32
32
  <% end %>
33
+
34
+ <%= split_divider_view :outlet => true, :width => 5 %>
33
35
 
34
36
  <% view :document_view, :outlet => true do %>
35
37
  <%= view :outlet => :runner_frame, :tag => :iframe,
@@ -2,5 +2,4 @@
2
2
  <h1>Client Has No Tests</h1>
3
3
  <p style="font-size: 15px;">This client does not currently have any unit tests. To add a unit test, open a terminal to the root directly and type:</p>
4
4
  <p style="font-size: 15px; text-align:center;"><code>./script/generate sc_test <%= label_view :outlet => true, :tag => 'span', :bind => { :content => 'TestRunner.runnerController.clientName' } %>/<b>test_name</b></code></p>
5
- </div>
6
5
  <% end %>
data/config/hoe.rb CHANGED
@@ -60,7 +60,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
60
60
 
61
61
  # == Optional
62
62
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
63
- p.extra_deps = [['activesupport', '>= 2.0.2'], ['merb-core', '>= 0.9.1'], ['erubis'], ['rubigen'], ['mongrel'], ['hoe']]
63
+ p.extra_deps = [['merb-core', '>= 0.9.9'], ['erubis'], ['rubigen'], ['mongrel'], ['hoe']]
64
64
 
65
65
  #p.spec_extras = {} # A hash of extra values to set in the gemspec.
66
66
 
@@ -27,7 +27,6 @@ module SproutCore
27
27
  def main
28
28
 
29
29
  self.reset_current_bundle
30
- puts current_bundle
31
30
 
32
31
  # Before we do anything, set the build_mode for the bundles. This
33
32
  # shouldn't change during execution, but if we set this during the
@@ -15,8 +15,8 @@
15
15
 
16
16
  # Load Merb if it is available
17
17
  begin
18
- gem('merb-core', '>= 0.9.1')
18
+ gem('merb-core', '>= 0.9.9')
19
19
  Dir.glob(File.join(File.dirname(__FILE__),'merb','**','*.rb')).each { |x| require(x) }
20
20
  rescue LoadError
21
- puts "WARNING: sproutcore/merb requires Merb 0.9.1 or later. Earlier releases are not supported. Module was not loaded."
21
+ puts "WARNING: sproutcore/merb requires Merb 0.9.9 or later. Earlier releases are not supported. Module was not loaded."
22
22
  end
@@ -2,7 +2,7 @@ module SproutCore #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 19
5
+ TINY = 20
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sproutcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.19
4
+ version: 0.9.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Jolley, Erich Ocean
@@ -9,19 +9,9 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-30 00:00:00 -07:00
12
+ date: 2008-10-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: activesupport
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 2.0.2
24
- version:
25
15
  - !ruby/object:Gem::Dependency
26
16
  name: merb-core
27
17
  type: :runtime
@@ -30,7 +20,7 @@ dependencies:
30
20
  requirements:
31
21
  - - ">="
32
22
  - !ruby/object:Gem::Version
33
- version: 0.9.1
23
+ version: 0.9.9
34
24
  version:
35
25
  - !ruby/object:Gem::Dependency
36
26
  name: erubis
@@ -116,7 +106,6 @@ files:
116
106
  - clients/sc_docs/english.lproj/strings.js
117
107
  - clients/sc_docs/english.lproj/tabs.rhtml
118
108
  - clients/sc_docs/fixtures/doc.js
119
- - clients/sc_docs/french.lproj/strings.js
120
109
  - clients/sc_docs/HISTORY
121
110
  - clients/sc_docs/main.js
122
111
  - clients/sc_docs/models/doc.js
@@ -1,14 +0,0 @@
1
- // ==========================================================================
2
- // Docs French Strings
3
- // ==========================================================================
4
-
5
- // Place strings you want to localize here. In your app, use the key and
6
- // localize it using "key string".loc(). HINT: For your key names, use the
7
- // english string with an underscore in front. This way you can still see
8
- // how your UI will look and you'll notice right away when something needs a
9
- // localized string added to this file!
10
- //
11
- Object.extend(String.English,{
12
- "_English": "French"
13
- }) ;
14
-