maccman-bowline 0.3.6 → 0.3.7
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.
- data/VERSION +1 -1
- data/bowline.gemspec +2 -4
- data/examples/twitter.html +10 -8
- data/lib/bowline/generators/application.rb +1 -2
- data/lib/bowline/initializer.rb +5 -3
- data/lib/bowline/version.rb +1 -1
- data/templates/public/index.html +3 -5
- metadata +2 -4
- data/templates/config/manifest +0 -18
- data/templates/config/tiapp.xml +0 -24
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.7
|
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.3.
|
5
|
+
s.version = "0.3.7"
|
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-
|
9
|
+
s.date = %q{2009-07-15}
|
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}
|
@@ -82,8 +82,6 @@ Gem::Specification.new do |s|
|
|
82
82
|
"templates/config/boot.rb",
|
83
83
|
"templates/config/database.yml",
|
84
84
|
"templates/config/environment.rb",
|
85
|
-
"templates/config/manifest",
|
86
|
-
"templates/config/tiapp.xml",
|
87
85
|
"templates/gitignore",
|
88
86
|
"templates/helper.rb",
|
89
87
|
"templates/migration.rb",
|
data/examples/twitter.html
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
|
4
|
-
<html lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
5
3
|
<head>
|
6
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
7
5
|
<title>Twitter</title>
|
6
|
+
<link rel="stylesheet" href="stylesheets/application.css" type="text/css" charset="utf-8">
|
8
7
|
<script src="javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
|
9
8
|
<script src="javascripts/jquery.chain.js" type="text/javascript" charset="utf-8"></script>
|
10
9
|
<script src="javascripts/jquery.bowline.js" type="text/javascript" charset="utf-8"></script>
|
11
10
|
<script src="javascripts/application.js" type="text/javascript" charset="utf-8"></script>
|
12
|
-
<link rel="stylesheet" href="stylesheets/application.css" type="text/css" charset="utf-8">
|
13
11
|
<script type="text/javascript" charset="utf-8">
|
14
12
|
jQuery(function($){
|
15
13
|
$.bowline.ready(function(){
|
@@ -25,13 +23,17 @@
|
|
25
23
|
</script>
|
26
24
|
</head>
|
27
25
|
<body>
|
26
|
+
<header></header>
|
27
|
+
|
28
28
|
<div id="tweets">
|
29
29
|
<div class="item">
|
30
30
|
<span class="text"></span>
|
31
31
|
</div>
|
32
32
|
</div>
|
33
33
|
|
34
|
-
<
|
35
|
-
|
34
|
+
<footer>
|
35
|
+
<input type="text" id="updateText">
|
36
|
+
<button id="updateSubmit">Update →</button>
|
37
|
+
</footer>
|
36
38
|
</body>
|
37
|
-
</html>
|
39
|
+
</html>
|
@@ -51,8 +51,7 @@ module Bowline::Generators
|
|
51
51
|
empty_directory :config, "config"
|
52
52
|
|
53
53
|
template :environment, "config/environment.rb", "config/environment.rb"
|
54
|
-
|
55
|
-
["application.yml", "database.yml", "manifest", "boot.rb"].each {|action|
|
54
|
+
["application.yml", "database.yml", "boot.rb"].each {|action|
|
56
55
|
action = File.join('config', action)
|
57
56
|
file(action.downcase.gsub(/[^a-z0-9]+/, '_').to_sym, action, action)
|
58
57
|
}
|
data/lib/bowline/initializer.rb
CHANGED
@@ -185,8 +185,8 @@ module Bowline
|
|
185
185
|
}.merge(dep.options)
|
186
186
|
|
187
187
|
begin
|
188
|
-
gem
|
189
|
-
require options[:lib]
|
188
|
+
activated = gem(dep.name, *dep.versions)
|
189
|
+
require(options[:lib]) if activated && options[:lib]
|
190
190
|
rescue LoadError => e
|
191
191
|
puts "was unable to require #{dep.name} as '#{options[:lib]}'
|
192
192
|
Reason: #{e.class.name} error raised with message: #{e.message}"
|
@@ -568,7 +568,9 @@ module Bowline
|
|
568
568
|
|
569
569
|
def default_gems
|
570
570
|
gems = []
|
571
|
-
gems << Dependencies::Dependency.new(
|
571
|
+
gems << Dependencies::Dependency.new(
|
572
|
+
"bowline", Bowline::Version::STRING, :lib => false
|
573
|
+
)
|
572
574
|
gems << Dependencies::Dependency.new("activesupport")
|
573
575
|
gems
|
574
576
|
end
|
data/lib/bowline/version.rb
CHANGED
data/templates/public/index.html
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
|
4
|
-
<html lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
5
3
|
<head>
|
6
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
7
5
|
<title><%= full_name %></title>
|
6
|
+
<link rel="stylesheet" href="stylesheets/application.css" type="text/css" charset="utf-8">
|
8
7
|
<script src="javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
|
9
8
|
<script src="javascripts/jquery.chain.js" type="text/javascript" charset="utf-8"></script>
|
10
9
|
<script src="javascripts/jquery.bowline.js" type="text/javascript" charset="utf-8"></script>
|
11
10
|
<script src="javascripts/application.js" type="text/javascript" charset="utf-8"></script>
|
12
|
-
<link rel="stylesheet" href="stylesheets/application.css" type="text/css" charset="utf-8">
|
13
11
|
<script type="text/javascript" charset="utf-8">
|
14
12
|
// Example:
|
15
13
|
// jQuery(function($){
|
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.3.
|
4
|
+
version: 0.3.7
|
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-
|
12
|
+
date: 2009-07-15 00:00:00 -07:00
|
13
13
|
default_executable: bowline-gen
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -108,8 +108,6 @@ files:
|
|
108
108
|
- templates/config/boot.rb
|
109
109
|
- templates/config/database.yml
|
110
110
|
- templates/config/environment.rb
|
111
|
-
- templates/config/manifest
|
112
|
-
- templates/config/tiapp.xml
|
113
111
|
- templates/gitignore
|
114
112
|
- templates/helper.rb
|
115
113
|
- templates/migration.rb
|
data/templates/config/manifest
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
runtime: 0.4
|
2
|
-
api:0.4
|
3
|
-
python:0.4
|
4
|
-
javascript:0.4
|
5
|
-
ruby:0.4
|
6
|
-
tiapp:0.4
|
7
|
-
tiui:0.4
|
8
|
-
tinetwork:0.4
|
9
|
-
tigrowl:0.4
|
10
|
-
tifilesystem:0.4
|
11
|
-
timedia:0.4
|
12
|
-
tidesktop:0.4
|
13
|
-
tiplatform:0.4
|
14
|
-
tiprocess:0.4
|
15
|
-
tinotification:0.4
|
16
|
-
timonkey:0.4
|
17
|
-
tianalytics:0.4
|
18
|
-
tidatabase:0.4
|
data/templates/config/tiapp.xml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<ti:app xmlns:ti="http://ti.appcelerator.org" xmlns:appc="http://www.appcelerator.org">
|
3
|
-
<id><%= app_id %></id>
|
4
|
-
<name><%= name %></name>
|
5
|
-
<version>0.1</version>
|
6
|
-
<window>
|
7
|
-
<id>initial</id>
|
8
|
-
<title>Bowline</title>
|
9
|
-
<url>app://public/index.html</url>
|
10
|
-
<width>750</width>
|
11
|
-
<height>800</height>
|
12
|
-
<fullscreen>false</fullscreen>
|
13
|
-
<!--
|
14
|
-
<minimizable>true</minimizable>
|
15
|
-
<maximizable>false</maximizable>
|
16
|
-
<max-width>900</max-width>
|
17
|
-
<max-height>800</max-height>
|
18
|
-
<min-width>400</min-width>
|
19
|
-
<min-height>300</min-height>
|
20
|
-
-->
|
21
|
-
<closeable>true</closeable>
|
22
|
-
<chrome>true</chrome>
|
23
|
-
</window>
|
24
|
-
</ti:app>
|