coherent 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.8
1
+ 0.6.9
@@ -9,7 +9,7 @@ class CoherentGenerator < CoherentBaseGenerator
9
9
  COHERENT_FOLDER = "ext/coherent"
10
10
 
11
11
  default_options :author => nil,
12
- :nib_name => 'main'
12
+ :nib_name => 'Main'
13
13
 
14
14
 
15
15
  attr_reader :name, :nib_name
@@ -30,7 +30,7 @@ class CoherentGenerator < CoherentBaseGenerator
30
30
  BASEDIRS.each { |path| m.directory path }
31
31
 
32
32
  copy_template_folder m
33
- m.dependency "nib", [nib_name], :destination=>destination_root
33
+ # m.dependency "nib", [nib_name], :destination=>destination_root
34
34
  end
35
35
  end
36
36
 
@@ -2,6 +2,7 @@ name: <%=name%>
2
2
  version: 1.0.0
3
3
  notice: src/NOTICE
4
4
  type: application
5
+ export: <%=name%>
5
6
 
6
7
  external:
7
8
  - name: coherent
@@ -13,8 +14,11 @@ include:
13
14
 
14
15
  source:
15
16
  - src/index.html
16
- - src/js/<%=name%>.js
17
- - src/js
18
- - src/nibs
17
+
19
18
  - src/css/reset.css
20
19
  - src/css/<%=name%>.css
20
+
21
+ - src/nibs
22
+
23
+ - src/js/<%=name%>.js
24
+ - src/js
@@ -8,10 +8,11 @@
8
8
  <script src="<%=name%>-debug.js" type="text/javascript" charset="utf-8"></script>
9
9
  </head>
10
10
  <body>
11
- <script>
12
- distil.onready(function(){
13
- coherent.Application.shared.setMainNib('<%=nib_name%>');
14
- });
15
- </script>
11
+ <noscript>
12
+ This application requires a browser with Javascript enabled.
13
+ </noscript>
14
+ <div class="ui-startup">
15
+ Please wait, this application is loading resources&hellip;
16
+ </div>
16
17
  </body>
17
18
  </html>
@@ -1,5 +1,12 @@
1
1
  /*jsl:import coherent*/
2
2
 
3
3
  /**
4
- Core JS file file for the <%=name.titlecase%> application.
4
+ Core JS file for the <%=name.titlecase%> application.
5
5
  */
6
+
7
+ (function()
8
+ {
9
+
10
+ coherent.Application.shared.setMainNib("<%=nib_name%>");
11
+
12
+ })();
@@ -0,0 +1,42 @@
1
+ /*jsl:import coherent*/
2
+
3
+
4
+ /**
5
+ class <%=name%>.AppDelegate
6
+
7
+ For simple applications, the AppDelegate may be all you need to configure and
8
+ manage your application. As the last item in the responder chain, any un-handled
9
+ action messages can be handled in this class.
10
+
11
+ In addition, your AppDelegate may handle messages from the shared Application
12
+ object including `applicationDidFinishLaunching` and `hash
13
+ */
14
+ <%=name%>.AppDelegate= Class.create(coherent.Controller, {
15
+
16
+ /**
17
+ <%=name%>.AppDelegate#applicationDidFinishLaunching(app)
18
+
19
+ - app (coherent.Application): The shared application that has finished launching
20
+
21
+ When the application has finished launching and all resources are available,
22
+ the shared Application will call this method. If you need to perform one-time
23
+ initialisation of your application, this is probably the best place to do it.
24
+ */
25
+ applicationDidFinishLaunching: function(app)
26
+ {
27
+ },
28
+
29
+ /**
30
+ <%=name%>.AppDelegate#hashDidChange(hashValue)
31
+
32
+ - hashValue (String): The new value of the hash on the URL
33
+
34
+ Your application can present bookmarkable content by using the hash portion
35
+ of the URL. When the visitor uses the back button on his browser, this
36
+ method will be notified of the change.
37
+ */
38
+ hashDidChange: function(hashValue)
39
+ {
40
+ }
41
+
42
+ });
@@ -0,0 +1 @@
1
+ /** CSS Rules specific to the main application interface bundle **/
@@ -0,0 +1,3 @@
1
+ <div>
2
+ Put your cool application here!
3
+ </div>
@@ -0,0 +1,27 @@
1
+ /*jsl:import coherent*/
2
+ /*jsl:import ../../js/AppDelegate.js*/
3
+
4
+ NIB('<%=nib_name%>', {
5
+
6
+ '<%=nib_name%>': VIEW({
7
+
8
+ ':root': coherent.View({
9
+ // Set up necessary bindings and configuration information for your
10
+ // root view here.
11
+ })
12
+
13
+ }),
14
+
15
+ // Instantiate your AppDelegate and configure it.
16
+ AppDelegate: <%=name%>.AppDelegate({
17
+ // Place configuration options for your application delegate here
18
+ }),
19
+
20
+ // For the main interface bundle, the owner is the Application itself
21
+ owner:
22
+ {
23
+ // Connect your AppDelegate to the Application as a delegate
24
+ delegate: REF('AppDelegate')
25
+ }
26
+
27
+ });
data/bin/coherent CHANGED
@@ -18,13 +18,6 @@ def find_project_file(dir=nil)
18
18
 
19
19
  end
20
20
 
21
- def find_app_root
22
- path= Dir.pwd
23
- while '/'!=path
24
- return path if File.exists?(File.join(path, "distil.yml"))
25
- path = File.expand_path(File.join(path, ".."))
26
- end
27
- end
28
21
 
29
22
  case ARGV[0]
30
23
  when 'app'
data/coherent.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coherent}
8
- s.version = "0.6.8"
8
+ s.version = "0.6.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Watkins"]
12
- s.date = %q{2010-11-24}
12
+ s.date = %q{2010-11-27}
13
13
  s.default_executable = %q{coherent}
14
14
  s.description = %q{Tools for building Coherent application or modules.}
15
15
  s.email = %q{jeff@metrocat.org}
@@ -31,6 +31,10 @@ Gem::Specification.new do |s|
31
31
  "app_generators/coherent/templates/src/css/reset.css",
32
32
  "app_generators/coherent/templates/src/index.html.erb",
33
33
  "app_generators/coherent/templates/src/js/@name@.js.erb",
34
+ "app_generators/coherent/templates/src/js/AppDelegate.js.erb",
35
+ "app_generators/coherent/templates/src/nibs/@nib_name@.jsnib/@nib_name@.css.erb",
36
+ "app_generators/coherent/templates/src/nibs/@nib_name@.jsnib/@nib_name@.html.erb",
37
+ "app_generators/coherent/templates/src/nibs/@nib_name@.jsnib/@nib_name@.js.erb",
34
38
  "bin/coherent",
35
39
  "coherent.gemspec",
36
40
  "demo_generators/gallery/USAGE",
@@ -3,14 +3,17 @@
3
3
  NIB('<%=name%>', {
4
4
 
5
5
  '<%=name%>': VIEW({
6
- /* Put your view structure here. */
7
-
8
- ':root': coherent.View({
9
- /* This is the container DOM element. */
10
- })
6
+ ':root': coherent.View({
7
+ // Set up necessary bindings and configuration information for your
8
+ // root view here.
9
+ })
11
10
  }),
12
11
 
13
- 'owner': {
12
+ // Connect your views or controllers to the owning ViewController
13
+ 'owner':
14
+ {
15
+ // Connect the main view for the ViewController, without this association
16
+ // the ViewController won't be able to display your view.
14
17
  view: REF('<%=name%>')
15
18
  }
16
19
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coherent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 8
10
- version: 0.6.8
9
+ - 9
10
+ version: 0.6.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeff Watkins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-24 00:00:00 -08:00
18
+ date: 2010-11-27 00:00:00 -08:00
19
19
  default_executable: coherent
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -72,6 +72,10 @@ files:
72
72
  - app_generators/coherent/templates/src/css/reset.css
73
73
  - app_generators/coherent/templates/src/index.html.erb
74
74
  - app_generators/coherent/templates/src/js/@name@.js.erb
75
+ - app_generators/coherent/templates/src/js/AppDelegate.js.erb
76
+ - app_generators/coherent/templates/src/nibs/@nib_name@.jsnib/@nib_name@.css.erb
77
+ - app_generators/coherent/templates/src/nibs/@nib_name@.jsnib/@nib_name@.html.erb
78
+ - app_generators/coherent/templates/src/nibs/@nib_name@.jsnib/@nib_name@.js.erb
75
79
  - bin/coherent
76
80
  - coherent.gemspec
77
81
  - demo_generators/gallery/USAGE