public
Description: a tiny graphical app kit for ruby
Homepage: http://code.whytheluckystiff.net/shoes
Clone URL: git://github.com/why/shoes.git
Search Repo:
 * lib/shoes/cache.rb: disallow installation of hpricot and sqlite3-ruby 
 gems, as they are included.
 * samples/simple-rubygems.rb: swap `metaid` for `hpricot` in the sample.
why (author)
Fri May 16 21:18:19 -0700 2008
commit  5a581c28b36f60c5b66f2fa59aa0d76eb8fe9c70
tree    fba7a9bf18d8c54eddef98d378bf162640eb6c87
parent  f0bc42da5a56984b541526d1e367d08e4a7fa333
...
141
142
143
144
145
 
 
 
 
 
 
146
147
148
...
141
142
143
 
 
144
145
146
147
148
149
150
151
152
0
@@ -141,8 +141,12 @@
0
   def gem name, version = nil
0
     arg = "#{name} #{version}".strip
0
     name, version = arg.split(/\s+/, 2)
0
- if Gem.source_index.find_name(name, version).empty?
0
- @steps << [:gem, arg]
0
+ if ['hpricot', 'sqlite3-ruby'].include? name
0
+ warn "#{name} is included with Shoes and cannot be installed as a gem."
0
+ else
0
+ if Gem.source_index.find_name(name, version).empty?
0
+ @steps << [:gem, arg]
0
+ end
0
     end
0
   end
0
 
...
4
5
6
7
 
8
9
10
11
 
12
13
14
...
4
5
6
 
7
8
9
10
 
11
12
13
14
0
@@ -4,11 +4,11 @@
0
 #
0
 Shoes.setup do
0
   gem 'RedCloth'
0
- gem 'hpricot >= 0.6'
0
+ gem 'metaid'
0
 end
0
 
0
 require 'redcloth'
0
-require 'hpricot'
0
+require 'metaid'
0
 
0
 Shoes.app :width => 300, :height => 400, :resizable => false do
0
   background "#eed"

Comments

    No one has commented yet.