maccman-bowline 0.1.8 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt ADDED
@@ -0,0 +1,58 @@
1
+ .gitignore
2
+ History.txt
3
+ MIT-LICENSE
4
+ Manifest.txt
5
+ README.txt
6
+ Rakefile
7
+ assets/jquery.bowline.js
8
+ assets/jquery.chain.js
9
+ assets/jquery.js
10
+ bin/bowline-gen
11
+ bowline.gemspec
12
+ examples/account.rb
13
+ examples/example.js
14
+ examples/twitter.html
15
+ examples/tweets.rb
16
+ examples/users.rb
17
+ lib/bowline.rb
18
+ lib/bowline/binders.rb
19
+ lib/bowline/binders/collection.rb
20
+ lib/bowline/binders/singleton.rb
21
+ lib/bowline/commands/console.rb
22
+ lib/bowline/commands/generate.rb
23
+ lib/bowline/commands/run.rb
24
+ lib/bowline/ext/array.rb
25
+ lib/bowline/ext/class.rb
26
+ lib/bowline/ext/object.rb
27
+ lib/bowline/ext/string.rb
28
+ lib/bowline/gem_dependency.rb
29
+ lib/bowline/generators.rb
30
+ lib/bowline/generators/application.rb
31
+ lib/bowline/generators/binder.rb
32
+ lib/bowline/generators/migration.rb
33
+ lib/bowline/generators/model.rb
34
+ lib/bowline/initializer.rb
35
+ lib/bowline/jquery.rb
36
+ lib/bowline/observer.rb
37
+ lib/bowline/tasks/app.rake
38
+ lib/bowline/tasks/bowline.rb
39
+ lib/bowline/tasks/database.rake
40
+ lib/bowline/tasks/log.rake
41
+ lib/bowline/tasks/misk.rake
42
+ templates/Rakefile
43
+ templates/binder.rb
44
+ templates/config/application.yml
45
+ templates/config/boot.rb
46
+ templates/config/database.yml
47
+ templates/config/environment.rb
48
+ templates/config/manifest
49
+ templates/config/tiapp.xml
50
+ templates/gitignore
51
+ templates/migration.rb
52
+ templates/model.rb
53
+ templates/public/index.html
54
+ templates/public/javascripts/application.js
55
+ templates/public/stylesheets/application.css
56
+ templates/script/console
57
+ templates/script/init
58
+ templates/script/run
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.10
@@ -38,18 +38,7 @@
38
38
  }
39
39
  });
40
40
  return res;
41
- },
42
-
43
- // Length on a Ruby array is a function
44
- rubyMap: function( elems, callback ) {
45
- var ret = [];
46
- for (var i = 0, length = elems.length(); i < length; i++) {
47
- var value = callback( elems[ i ], i );
48
- if (value != null)
49
- ret[ret.length] = value;
50
- }
51
- return ret.concat.apply([], ret);
52
- }
41
+ }
53
42
  },
54
43
 
55
44
  $.fn.bowline = function(name, options){
@@ -78,7 +67,7 @@
78
67
  };
79
68
 
80
69
  $.fn.updateCollection = function( items ){
81
- items = $.bowline.rubyMap(items, function(n){
70
+ items = $.map(items, function(n){
82
71
  return $.bowline.rubyHash(n);
83
72
  });
84
73
  $(this).items('replace', items);
@@ -97,7 +86,7 @@
97
86
  // var script = $("<script />");
98
87
  // script.attr('type', 'text/ruby');
99
88
  // script.attr('src', '../script/init');
100
- // $(document.body).append(script);
89
+ // $('head').append(script);
101
90
  $(document.body).trigger('loaded.bowline');
102
91
  })
103
92
  })(jQuery)
data/bowline.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{bowline}
5
- s.version = "0.1.8"
5
+ s.version = "0.1.10"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Alex MacCaw"]
9
- s.date = %q{2009-07-09}
9
+ s.date = %q{2009-07-10}
10
10
  s.default_executable = %q{bowline-gen}
11
11
  s.description = %q{Ruby/JS GUI framework}
12
12
  s.email = %q{alex@leadthinking.com}
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  ".gitignore",
19
19
  "History.txt",
20
20
  "MIT-LICENSE",
21
+ "Manifest.txt",
21
22
  "README.txt",
22
23
  "Rakefile",
23
24
  "VERSION",
@@ -46,6 +47,7 @@ Gem::Specification.new do |s|
46
47
  "lib/bowline/generators.rb",
47
48
  "lib/bowline/generators/application.rb",
48
49
  "lib/bowline/generators/binder.rb",
50
+ "lib/bowline/generators/helper.rb",
49
51
  "lib/bowline/generators/migration.rb",
50
52
  "lib/bowline/generators/model.rb",
51
53
  "lib/bowline/helpers.rb",
@@ -56,6 +56,8 @@ module Bowline::Generators
56
56
  action = File.join('config', action)
57
57
  file(action.downcase.gsub(/[^a-z0-9]+/, '_').to_sym, action, action)
58
58
  }
59
+
60
+ empty_directory :initializers, "config/initializers"
59
61
  end
60
62
 
61
63
  add :app, ApplicationGenerator
@@ -0,0 +1,21 @@
1
+ module Bowline::Generators
2
+ class HelperGenerator < NamedGenerator
3
+ desc <<-DESC
4
+ Generates a new helper.
5
+ DESC
6
+
7
+ def modules
8
+ []
9
+ end
10
+
11
+ first_argument :name, :required => true, :desc => "helper name"
12
+
13
+
14
+ template :model do |template|
15
+ template.source = "model.rb"
16
+ template.destination = "app/models/#{file_name}.rb"
17
+ end
18
+ end
19
+
20
+ add :helper, HelperGenerator
21
+ end
data/lib/bowline.rb CHANGED
@@ -1,6 +1,4 @@
1
1
  module Bowline
2
- VERSION = '0.1.8'
3
-
4
2
  # The raw JavaScript window object
5
3
  def self.js
6
4
  if defined?($app_window)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maccman-bowline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacCaw
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-09 00:00:00 -07:00
12
+ date: 2009-07-10 00:00:00 -07:00
13
13
  default_executable: bowline-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -44,6 +44,7 @@ files:
44
44
  - .gitignore
45
45
  - History.txt
46
46
  - MIT-LICENSE
47
+ - Manifest.txt
47
48
  - README.txt
48
49
  - Rakefile
49
50
  - VERSION
@@ -72,6 +73,7 @@ files:
72
73
  - lib/bowline/generators.rb
73
74
  - lib/bowline/generators/application.rb
74
75
  - lib/bowline/generators/binder.rb
76
+ - lib/bowline/generators/helper.rb
75
77
  - lib/bowline/generators/migration.rb
76
78
  - lib/bowline/generators/model.rb
77
79
  - lib/bowline/helpers.rb