maccman-bowline 0.4.4 → 0.4.5
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 +3 -4
- data/lib/bowline/dependencies/lib/dependencies.rb +0 -4
- data/lib/bowline/dependencies/lib/ext/rubygems.rb +6 -15
- data/lib/bowline/tasks/gems.rake +2 -0
- data/lib/bowline/version.rb +1 -1
- data/templates/config/boot.rb +8 -2
- metadata +2 -3
- data/lib/bowline/dependencies/lib/template/app_script.rb +0 -31
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.5
|
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.4.
|
5
|
+
s.version = "0.4.5"
|
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-23}
|
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}
|
@@ -47,7 +47,6 @@ Gem::Specification.new do |s|
|
|
47
47
|
"lib/bowline/dependencies/lib/dependencies/dependency.rb",
|
48
48
|
"lib/bowline/dependencies/lib/dependencies/repository.rb",
|
49
49
|
"lib/bowline/dependencies/lib/ext/rubygems.rb",
|
50
|
-
"lib/bowline/dependencies/lib/template/app_script.rb",
|
51
50
|
"lib/bowline/ext/array.rb",
|
52
51
|
"lib/bowline/ext/class.rb",
|
53
52
|
"lib/bowline/ext/object.rb",
|
@@ -91,7 +90,7 @@ Gem::Specification.new do |s|
|
|
91
90
|
s.homepage = %q{http://github.com/maccman/bowline}
|
92
91
|
s.rdoc_options = ["--charset=UTF-8"]
|
93
92
|
s.require_paths = ["lib"]
|
94
|
-
s.rubygems_version = %q{1.3.
|
93
|
+
s.rubygems_version = %q{1.3.5}
|
95
94
|
s.summary = %q{Bowline GUI framework}
|
96
95
|
s.test_files = [
|
97
96
|
"examples/account.rb",
|
@@ -1,14 +1,13 @@
|
|
1
1
|
require 'erb'
|
2
2
|
require 'rubygems'
|
3
|
+
require 'rubygems/uninstaller'
|
3
4
|
require 'rubygems/dependency_installer'
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
FileUtils.cp(File.join(File.dirname(__FILE__), "common.rb"),
|
9
|
-
File.join(installer.bin_dir, "common.rb"))
|
10
|
-
end
|
6
|
+
# We only require this in 'rake gems:sync' since
|
7
|
+
# it contains some advanced Gem features that aren't
|
8
|
+
# available in earlier versions, such as pre_install_hooks
|
11
9
|
|
10
|
+
Gem.pre_install_hooks.push(proc do |installer|
|
12
11
|
name = installer.spec.name
|
13
12
|
|
14
13
|
puts "+ #{name}"
|
@@ -103,14 +102,6 @@ class ::Gem::SpecFetcher
|
|
103
102
|
end
|
104
103
|
end
|
105
104
|
|
106
|
-
class ::Gem::Installer
|
107
|
-
def app_script_text(bin_file_name)
|
108
|
-
template = File.read(File.join(File.dirname(__FILE__), '..', 'template' , "app_script.rb"))
|
109
|
-
erb = ERB.new(template)
|
110
|
-
erb.result(binding)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
105
|
class ::Gem::Specification
|
115
106
|
def recursive_dependencies(from, index = Gem.source_index)
|
116
107
|
specs = self.runtime_dependencies.map do |dep|
|
@@ -122,4 +113,4 @@ class ::Gem::Specification
|
|
122
113
|
end
|
123
114
|
specs + specs.map {|s| s.recursive_dependencies(self, index)}.flatten.uniq
|
124
115
|
end
|
125
|
-
end
|
116
|
+
end
|
data/lib/bowline/tasks/gems.rake
CHANGED
data/lib/bowline/version.rb
CHANGED
data/templates/config/boot.rb
CHANGED
@@ -3,8 +3,14 @@
|
|
3
3
|
|
4
4
|
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unless defined?(APP_ROOT)
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
edge_path = File.join(APP_ROOT, *%w{vendor bowline lib bowline.rb})
|
7
|
+
|
8
|
+
if File.exist?(edge_path)
|
9
|
+
bowline_path = edge_path
|
10
|
+
else
|
11
|
+
gems_path = File.join(APP_ROOT, *%w{vendor gems gems})
|
12
|
+
bowline_path = Dir[File.join(gems_path, *%w{{maccman-bowline*,bowline*} lib bowline.rb})][-1]
|
13
|
+
end
|
8
14
|
|
9
15
|
if bowline_path
|
10
16
|
require bowline_path
|
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.4.
|
4
|
+
version: 0.4.5
|
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-23 00:00:00 -07:00
|
13
13
|
default_executable: bowline-gen
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -73,7 +73,6 @@ files:
|
|
73
73
|
- lib/bowline/dependencies/lib/dependencies/dependency.rb
|
74
74
|
- lib/bowline/dependencies/lib/dependencies/repository.rb
|
75
75
|
- lib/bowline/dependencies/lib/ext/rubygems.rb
|
76
|
-
- lib/bowline/dependencies/lib/template/app_script.rb
|
77
76
|
- lib/bowline/ext/array.rb
|
78
77
|
- lib/bowline/ext/class.rb
|
79
78
|
- lib/bowline/ext/object.rb
|
@@ -1,31 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# This was added by Merb's bundler
|
4
|
-
|
5
|
-
require "rubygems"
|
6
|
-
require File.join(File.dirname(__FILE__), "common")
|
7
|
-
|
8
|
-
gems_dir = File.join(File.dirname(__FILE__), '..', 'gems')
|
9
|
-
|
10
|
-
if File.directory?(gems_dir)
|
11
|
-
$BUNDLE = true
|
12
|
-
Gem.clear_paths
|
13
|
-
Gem.path.replace([File.expand_path(gems_dir)])
|
14
|
-
ENV["PATH"] = "#{File.dirname(__FILE__)}:#{ENV["PATH"]}"
|
15
|
-
|
16
|
-
gem_file = File.join(gems_dir, "specifications", "<%= spec.name %>-*.gemspec")
|
17
|
-
|
18
|
-
if local_gem = Dir[gem_file].last
|
19
|
-
version = File.basename(local_gem)[/-([\.\d]+)\.gemspec$/, 1]
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
version ||= "<%= Gem::Requirement.default %>"
|
24
|
-
|
25
|
-
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
|
26
|
-
version = $1
|
27
|
-
ARGV.shift
|
28
|
-
end
|
29
|
-
|
30
|
-
gem '<%= @spec.name %>', version
|
31
|
-
load '<%= bin_file_name %>'
|