maccman-bowline 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Manifest.txt +3 -2
- data/Rakefile +1 -0
- data/bowline.gemspec +6 -3
- data/lib/bowline/generators/application.rb +1 -1
- data/lib/bowline/tasks/app.rake +76 -65
- data/lib/bowline.rb +1 -1
- data/templates/public/{index.html.erb → index.html} +0 -0
- metadata +14 -3
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/Manifest.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
.gitignore
|
1
2
|
History.txt
|
2
3
|
MIT-LICENSE
|
3
4
|
Manifest.txt
|
@@ -50,9 +51,9 @@ templates/config/tiapp.xml
|
|
50
51
|
templates/gitignore
|
51
52
|
templates/migration.rb
|
52
53
|
templates/model.rb
|
53
|
-
templates/public/index.html
|
54
|
+
templates/public/index.html
|
54
55
|
templates/public/javascripts/application.js
|
55
56
|
templates/public/stylesheets/application.css
|
56
57
|
templates/script/console
|
57
58
|
templates/script/init
|
58
|
-
templates/script/run
|
59
|
+
templates/script/run
|
data/Rakefile
CHANGED
@@ -8,6 +8,7 @@ $hoe = Hoe.new('bowline', Bowline::VERSION) do |p|
|
|
8
8
|
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
9
9
|
p.rubyforge_name = 'maccman'
|
10
10
|
p.extra_deps << ['templater', '>=0.3.2']
|
11
|
+
p.extra_deps << ['activesupport', '>=2.3.2']
|
11
12
|
p.extra_dev_deps = [
|
12
13
|
['newgem', ">= #{::Newgem::VERSION}"]
|
13
14
|
]
|
data/bowline.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{bowline}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.3"
|
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-04-
|
9
|
+
s.date = %q{2009-04-24}
|
10
10
|
s.default_executable = %q{bowline-gen}
|
11
11
|
s.description = %q{My take on Ruby desktop GUIs}
|
12
12
|
s.email = ["info@eribium.org"]
|
13
13
|
s.executables = ["bowline-gen"]
|
14
14
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
15
|
-
s.files = ["History.txt", "MIT-LICENSE", "Manifest.txt", "README.txt", "Rakefile", "assets/jquery.bowline.js", "assets/jquery.chain.js", "assets/jquery.js", "bin/bowline-gen", "bowline.gemspec", "examples/account_binder.rb", "examples/example.js", "examples/twitter.html", "examples/twitter_binder.rb", "examples/twitter_login.html", "examples/users_binder.rb", "lib/bowline.rb", "lib/bowline/binders.rb", "lib/bowline/binders/collection.rb", "lib/bowline/binders/singleton.rb", "lib/bowline/commands/console.rb", "lib/bowline/commands/generate.rb", "lib/bowline/commands/run.rb", "lib/bowline/ext/array.rb", "lib/bowline/ext/class.rb", "lib/bowline/ext/object.rb", "lib/bowline/ext/string.rb", "lib/bowline/gem_dependency.rb", "lib/bowline/generators.rb", "lib/bowline/generators/application.rb", "lib/bowline/generators/binder.rb", "lib/bowline/generators/migration.rb", "lib/bowline/generators/model.rb", "lib/bowline/initializer.rb", "lib/bowline/jquery.rb", "lib/bowline/observer.rb", "lib/bowline/tasks/app.rake", "lib/bowline/tasks/bowline.rb", "lib/bowline/tasks/database.rake", "lib/bowline/tasks/log.rake", "lib/bowline/tasks/misk.rake", "templates/Rakefile", "templates/binder.rb", "templates/config/application.yml", "templates/config/boot.rb", "templates/config/database.yml", "templates/config/environment.rb", "templates/config/manifest", "templates/config/tiapp.xml", "templates/gitignore", "templates/migration.rb", "templates/model.rb", "templates/public/index.html
|
15
|
+
s.files = [".gitignore", "History.txt", "MIT-LICENSE", "Manifest.txt", "README.txt", "Rakefile", "assets/jquery.bowline.js", "assets/jquery.chain.js", "assets/jquery.js", "bin/bowline-gen", "bowline.gemspec", "examples/account_binder.rb", "examples/example.js", "examples/twitter.html", "examples/twitter_binder.rb", "examples/twitter_login.html", "examples/users_binder.rb", "lib/bowline.rb", "lib/bowline/binders.rb", "lib/bowline/binders/collection.rb", "lib/bowline/binders/singleton.rb", "lib/bowline/commands/console.rb", "lib/bowline/commands/generate.rb", "lib/bowline/commands/run.rb", "lib/bowline/ext/array.rb", "lib/bowline/ext/class.rb", "lib/bowline/ext/object.rb", "lib/bowline/ext/string.rb", "lib/bowline/gem_dependency.rb", "lib/bowline/generators.rb", "lib/bowline/generators/application.rb", "lib/bowline/generators/binder.rb", "lib/bowline/generators/migration.rb", "lib/bowline/generators/model.rb", "lib/bowline/initializer.rb", "lib/bowline/jquery.rb", "lib/bowline/observer.rb", "lib/bowline/tasks/app.rake", "lib/bowline/tasks/bowline.rb", "lib/bowline/tasks/database.rake", "lib/bowline/tasks/log.rake", "lib/bowline/tasks/misk.rake", "templates/Rakefile", "templates/binder.rb", "templates/config/application.yml", "templates/config/boot.rb", "templates/config/database.yml", "templates/config/environment.rb", "templates/config/manifest", "templates/config/tiapp.xml", "templates/gitignore", "templates/migration.rb", "templates/model.rb", "templates/public/index.html", "templates/public/javascripts/application.js", "templates/public/stylesheets/application.css", "templates/script/console", "templates/script/init", "templates/script/run"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://github.com/maccman/bowline}
|
18
18
|
s.rdoc_options = ["--main", "README.txt"]
|
@@ -27,15 +27,18 @@ Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
29
29
|
s.add_runtime_dependency(%q<templater>, [">= 0.3.2"])
|
30
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2"])
|
30
31
|
s.add_development_dependency(%q<newgem>, [">= 1.3.0"])
|
31
32
|
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
32
33
|
else
|
33
34
|
s.add_dependency(%q<templater>, [">= 0.3.2"])
|
35
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
|
34
36
|
s.add_dependency(%q<newgem>, [">= 1.3.0"])
|
35
37
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
36
38
|
end
|
37
39
|
else
|
38
40
|
s.add_dependency(%q<templater>, [">= 0.3.2"])
|
41
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
|
39
42
|
s.add_dependency(%q<newgem>, [">= 1.3.0"])
|
40
43
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
41
44
|
end
|
@@ -26,7 +26,7 @@ module Bowline::Generators
|
|
26
26
|
file :gitignore, "gitignore", ".gitignore"
|
27
27
|
|
28
28
|
empty_directory :public, "public"
|
29
|
-
file :index, "index.html", "index.html"
|
29
|
+
file :index, "public/index.html", "public/index.html"
|
30
30
|
glob! "public/javascripts"
|
31
31
|
glob! "public/stylesheets"
|
32
32
|
|
data/lib/bowline/tasks/app.rake
CHANGED
@@ -1,79 +1,90 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
namespace :app do
|
3
3
|
desc "Bundles up app into executables"
|
4
|
-
task :bundle => :
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
task :bundle => ["bundle:windows", "bundle:linux", "bundle:osx"]
|
5
|
+
|
6
|
+
namespace :bundle do
|
7
|
+
task :windows => :environment do
|
8
|
+
end
|
9
|
+
|
10
|
+
task :linux => :environment do
|
11
|
+
end
|
12
|
+
|
13
|
+
task :osx => :environment do
|
14
|
+
build_path = File.join(APP_ROOT, 'build')
|
15
|
+
titanium_path = ENV['TIPATH']
|
16
|
+
raise 'You need to provide TIPATH' unless titanium_path
|
17
|
+
titanium_path = File.expand_path(titanium_path)
|
13
18
|
|
14
|
-
|
15
|
-
|
19
|
+
titanium_path = File.join(titanium_path, 'build', 'osx')
|
20
|
+
build_path = File.join(build_path, 'osx')
|
21
|
+
FileUtils.rm_rf(build_path)
|
16
22
|
|
17
|
-
|
18
|
-
|
23
|
+
build_path = File.join(build_path, "#{APP_NAME}.app", 'Contents')
|
24
|
+
FileUtils.mkdir_p(build_path)
|
19
25
|
|
20
|
-
|
21
|
-
FileUtils.
|
22
|
-
FileUtils.cp_r('runtime/installer', build_path)
|
23
|
-
FileUtils.cp_r('modules', build_path)
|
24
|
-
FileUtils.cp_r('runtime', build_path)
|
25
|
-
# FileUtils.cp_r('Frameworks', build_path) # todo
|
26
|
-
end
|
26
|
+
exec_path = File.join(build_path, 'MacOS')
|
27
|
+
FileUtils.mkdir_p(exec_path)
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
<
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
29
|
+
FileUtils.cd(titanium_path) do
|
30
|
+
FileUtils.cp_r('runtime/template/kboot', File.join(exec_path, APP_NAME))
|
31
|
+
FileUtils.cp_r('runtime/installer', build_path)
|
32
|
+
FileUtils.cp_r('modules', build_path)
|
33
|
+
FileUtils.cp_r('runtime', build_path)
|
34
|
+
# FileUtils.cp_r('Frameworks', build_path) # todo
|
35
|
+
end
|
36
|
+
|
37
|
+
# Todo - put this in config?
|
38
|
+
File.open(File.join(build_path, 'Info.plist'), 'w+') do |f|
|
39
|
+
f.write <<-EOF
|
40
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
41
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
42
|
+
<plist version="1.0">
|
43
|
+
<dict>
|
44
|
+
<key>CFBundleDevelopmentRegion</key>
|
45
|
+
<string>English</string>
|
46
|
+
<key>CFBundleExecutable</key>
|
47
|
+
<string>#{APP_NAME}</string>
|
48
|
+
<key>CFBundleIconFile</key>
|
49
|
+
<string>titanium.icns</string>
|
50
|
+
<key>CFBundleIdentifier</key>
|
51
|
+
<string>com.titaniumapp.testapp</string>
|
52
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
53
|
+
<string>6.0</string>
|
54
|
+
<key>CFBundleName</key>
|
55
|
+
<string>#{APP_NAME}</string>
|
56
|
+
<key>CFBundlePackageType</key>
|
57
|
+
<string>APPL</string>
|
58
|
+
<key>CFBundleSignature</key>
|
59
|
+
<string>WRUN</string>
|
60
|
+
<key>CFBundleVersion</key>
|
61
|
+
<string>0.4</string>
|
62
|
+
<key>NSMainNibFile</key>
|
63
|
+
<string>MainMenu</string>
|
64
|
+
<key>NSPrincipalClass</key>
|
65
|
+
<string>NSApplication</string>
|
66
|
+
</dict>
|
67
|
+
</plist>
|
68
|
+
EOF
|
69
|
+
end
|
60
70
|
|
61
|
-
|
62
|
-
|
71
|
+
resources_path = File.join(build_path, 'Resources')
|
72
|
+
FileUtils.mkdir_p(resources_path)
|
63
73
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
74
|
+
english_path = File.join(resources_path, 'English.lproj')
|
75
|
+
FileUtils.mkdir_p(english_path)
|
76
|
+
FileUtils.cd(build_path) do
|
77
|
+
FileUtils.cp_r('runtime/template/MainMenu.nib', english_path)
|
78
|
+
FileUtils.cp_r('runtime/template/titanium.icns', english_path)
|
79
|
+
end
|
70
80
|
|
71
|
-
|
72
|
-
|
81
|
+
dirs = Dir[File.join(APP_ROOT, '*')] - [File.join(APP_ROOT, 'build')]
|
82
|
+
FileUtils.cp_r(dirs, resources_path)
|
73
83
|
|
74
|
-
|
75
|
-
|
76
|
-
|
84
|
+
FileUtils.cd(resources_path) do
|
85
|
+
FileUtils.mv(File.join('config', 'manifest'), build_path)
|
86
|
+
FileUtils.mv(File.join('config', 'tiapp.xml'), build_path)
|
87
|
+
end
|
77
88
|
end
|
78
89
|
end
|
79
90
|
end
|
data/lib/bowline.rb
CHANGED
File without changes
|
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.
|
4
|
+
version: 0.1.3
|
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-04-
|
12
|
+
date: 2009-04-24 00:00:00 -07:00
|
13
13
|
default_executable: bowline-gen
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,6 +22,16 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.3.2
|
24
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:
|
25
35
|
- !ruby/object:Gem::Dependency
|
26
36
|
name: newgem
|
27
37
|
type: :development
|
@@ -54,6 +64,7 @@ extra_rdoc_files:
|
|
54
64
|
- Manifest.txt
|
55
65
|
- README.txt
|
56
66
|
files:
|
67
|
+
- .gitignore
|
57
68
|
- History.txt
|
58
69
|
- MIT-LICENSE
|
59
70
|
- Manifest.txt
|
@@ -106,7 +117,7 @@ files:
|
|
106
117
|
- templates/gitignore
|
107
118
|
- templates/migration.rb
|
108
119
|
- templates/model.rb
|
109
|
-
- templates/public/index.html
|
120
|
+
- templates/public/index.html
|
110
121
|
- templates/public/javascripts/application.js
|
111
122
|
- templates/public/stylesheets/application.css
|
112
123
|
- templates/script/console
|