bowline 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. data/.gitignore +1 -0
  2. data/History.txt +4 -0
  3. data/MIT-LICENSE +20 -0
  4. data/Manifest.txt +58 -0
  5. data/README.txt +136 -0
  6. data/Rakefile +25 -0
  7. data/assets/jquery.bowline.js +96 -0
  8. data/assets/jquery.chain.js +2348 -0
  9. data/assets/jquery.js +3549 -0
  10. data/bin/bowline-gen +6 -0
  11. data/bowline.gemspec +45 -0
  12. data/examples/account.rb +31 -0
  13. data/examples/example.js +24 -0
  14. data/examples/tweets.rb +28 -0
  15. data/examples/twitter.html +39 -0
  16. data/examples/users.rb +37 -0
  17. data/lib/bowline.rb +42 -0
  18. data/lib/bowline/binders.rb +177 -0
  19. data/lib/bowline/binders/collection.rb +27 -0
  20. data/lib/bowline/binders/singleton.rb +25 -0
  21. data/lib/bowline/commands/console.rb +27 -0
  22. data/lib/bowline/commands/generate.rb +1 -0
  23. data/lib/bowline/commands/run.rb +11 -0
  24. data/lib/bowline/ext/array.rb +5 -0
  25. data/lib/bowline/ext/class.rb +51 -0
  26. data/lib/bowline/ext/object.rb +12 -0
  27. data/lib/bowline/ext/string.rb +9 -0
  28. data/lib/bowline/gem_dependency.rb +42 -0
  29. data/lib/bowline/generators.rb +59 -0
  30. data/lib/bowline/generators/application.rb +58 -0
  31. data/lib/bowline/generators/binder.rb +25 -0
  32. data/lib/bowline/generators/migration.rb +51 -0
  33. data/lib/bowline/generators/model.rb +20 -0
  34. data/lib/bowline/initializer.rb +596 -0
  35. data/lib/bowline/jquery.rb +31 -0
  36. data/lib/bowline/observer.rb +43 -0
  37. data/lib/bowline/tasks/app.rake +90 -0
  38. data/lib/bowline/tasks/bowline.rb +8 -0
  39. data/lib/bowline/tasks/database.rake +167 -0
  40. data/lib/bowline/tasks/log.rake +9 -0
  41. data/lib/bowline/tasks/misk.rake +3 -0
  42. data/templates/Rakefile +7 -0
  43. data/templates/binder.rb +9 -0
  44. data/templates/config/application.yml +1 -0
  45. data/templates/config/boot.rb +13 -0
  46. data/templates/config/database.yml +4 -0
  47. data/templates/config/environment.rb +12 -0
  48. data/templates/config/manifest +18 -0
  49. data/templates/config/tiapp.xml +24 -0
  50. data/templates/gitignore +15 -0
  51. data/templates/migration.rb +7 -0
  52. data/templates/model.rb +4 -0
  53. data/templates/public/index.html +25 -0
  54. data/templates/public/javascripts/application.js +0 -0
  55. data/templates/public/stylesheets/application.css +0 -0
  56. data/templates/script/console +3 -0
  57. data/templates/script/init +18 -0
  58. data/templates/script/run +3 -0
  59. metadata +155 -0
@@ -0,0 +1,15 @@
1
+ .DS_Store
2
+ build/*
3
+ log/*
4
+ tmp/*
5
+ TAGS
6
+ *~
7
+ .#*
8
+ db/schema.rb
9
+ db/*_structure.sql
10
+ db/*.sqlite3
11
+ db/*.sqlite
12
+ db/*.db
13
+ .hgignore
14
+ .hg/*
15
+ .svn/*
@@ -0,0 +1,7 @@
1
+ class <%= class_name %> < ActiveRecord::Migration
2
+ def self.up
3
+ end
4
+
5
+ def self.down
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ <%- with_modules(modules) do -%>
2
+ class <%= class_name %> < ActiveRecord::Base
3
+ end
4
+ <%- end -%>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+
4
+ <html lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7
+ <title><%= full_name %></title>
8
+ <!--
9
+ <script src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js" type="text/javascript"></script>
10
+ -->
11
+ <script src="javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="javascripts/jquery.chain.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="javascripts/jquery.bowline.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../script/init" type="text/ruby" charset="utf-8"></script>
15
+ <script src="javascripts/application.js" type="text/javascript" charset="utf-8"></script>
16
+ <link rel="stylesheet" href="stylesheets/application.css" type="text/css" charset="utf-8">
17
+ <script type="text/javascript" charset="utf-8">
18
+ // jQuery(function($){
19
+ // $('#assets').bowline('assets');
20
+ // });
21
+ </script>
22
+ </head>
23
+ <body>
24
+ </body>
25
+ </html>
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.join(File.dirname(__FILE__), *%w[.. config boot])
3
+ require "bowline/commands/console"
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ unless defined?(Titanium)
4
+ raise "You can't execute this file directly - it's for Titanium"
5
+ end
6
+
7
+ # Hack for load paths - Titanium doesn't add .
8
+ app_resources = Titanium.App.appURLToPath("app://index.html")
9
+ APP_ROOT = File.dirname(app_resources)
10
+
11
+ $LOAD_PATH << APP_ROOT
12
+ $LOAD_PATH.uniq!
13
+
14
+ # The 'window' function is only
15
+ # available in this scope
16
+ $app_window = window
17
+
18
+ require File.join(*%w[config environment])
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.join(File.dirname(__FILE__), *%w[.. config boot])
3
+ require "bowline/commands/run"
metadata ADDED
@@ -0,0 +1,155 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bowline
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.6
5
+ platform: ruby
6
+ authors:
7
+ - Alex MacCaw
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-29 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: templater
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.3.2
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.3.2
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: newgem
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.3.0
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: hoe
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 1.8.0
54
+ version:
55
+ description: Ruby desktop application framework
56
+ email:
57
+ - info@eribium.org
58
+ executables:
59
+ - bowline-gen
60
+ extensions: []
61
+
62
+ extra_rdoc_files:
63
+ - History.txt
64
+ - Manifest.txt
65
+ - README.txt
66
+ files:
67
+ - .gitignore
68
+ - History.txt
69
+ - MIT-LICENSE
70
+ - Manifest.txt
71
+ - README.txt
72
+ - Rakefile
73
+ - assets/jquery.bowline.js
74
+ - assets/jquery.chain.js
75
+ - assets/jquery.js
76
+ - bin/bowline-gen
77
+ - bowline.gemspec
78
+ - examples/account.rb
79
+ - examples/example.js
80
+ - examples/twitter.html
81
+ - examples/tweets.rb
82
+ - examples/users.rb
83
+ - lib/bowline.rb
84
+ - lib/bowline/binders.rb
85
+ - lib/bowline/binders/collection.rb
86
+ - lib/bowline/binders/singleton.rb
87
+ - lib/bowline/commands/console.rb
88
+ - lib/bowline/commands/generate.rb
89
+ - lib/bowline/commands/run.rb
90
+ - lib/bowline/ext/array.rb
91
+ - lib/bowline/ext/class.rb
92
+ - lib/bowline/ext/object.rb
93
+ - lib/bowline/ext/string.rb
94
+ - lib/bowline/gem_dependency.rb
95
+ - lib/bowline/generators.rb
96
+ - lib/bowline/generators/application.rb
97
+ - lib/bowline/generators/binder.rb
98
+ - lib/bowline/generators/migration.rb
99
+ - lib/bowline/generators/model.rb
100
+ - lib/bowline/initializer.rb
101
+ - lib/bowline/jquery.rb
102
+ - lib/bowline/observer.rb
103
+ - lib/bowline/tasks/app.rake
104
+ - lib/bowline/tasks/bowline.rb
105
+ - lib/bowline/tasks/database.rake
106
+ - lib/bowline/tasks/log.rake
107
+ - lib/bowline/tasks/misk.rake
108
+ - templates/Rakefile
109
+ - templates/binder.rb
110
+ - templates/config/application.yml
111
+ - templates/config/boot.rb
112
+ - templates/config/database.yml
113
+ - templates/config/environment.rb
114
+ - templates/config/manifest
115
+ - templates/config/tiapp.xml
116
+ - templates/gitignore
117
+ - templates/migration.rb
118
+ - templates/model.rb
119
+ - templates/public/index.html
120
+ - templates/public/javascripts/application.js
121
+ - templates/public/stylesheets/application.css
122
+ - templates/script/console
123
+ - templates/script/init
124
+ - templates/script/run
125
+ has_rdoc: true
126
+ homepage: http://github.com/maccman/bowline
127
+ licenses: []
128
+
129
+ post_install_message:
130
+ rdoc_options:
131
+ - --main
132
+ - README.txt
133
+ require_paths:
134
+ - lib
135
+ required_ruby_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: "0"
140
+ version:
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: "0"
146
+ version:
147
+ requirements: []
148
+
149
+ rubyforge_project: maccman
150
+ rubygems_version: 1.3.2
151
+ signing_key:
152
+ specification_version: 3
153
+ summary: Ruby desktop application framework
154
+ test_files: []
155
+