gembox 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,10 @@
1
+ == 0.2.1 2009-08-30
2
+
3
+ * Typing in an argument in the command line will launch to that specific search:
4
+ e.g. $ gembox rack #=> opens gembox to the rack page.
5
+ * If a search exactly matches a gem name it will open that gems info page instead of displaying search results
6
+ * Updated to latest version of Vegas
7
+
1
8
  == 0.2.0 2009-07-06
2
9
 
3
10
  * Updated to latest version of Vegas for Windows compatability
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- %w[rubygems rake rake/clean fileutils newgem rubigen jeweler].each { |f| require f }
1
+ %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
2
  require File.dirname(__FILE__) + '/lib/gembox'
3
3
 
4
4
  # Generate all the Rake tasks
@@ -13,7 +13,7 @@ $hoe = Hoe.new('gembox', Gembox::VERSION) do |p|
13
13
  p.url = ['http://code.quirkey.com/gembox', 'http://github.com/quirkey/gembox']
14
14
  p.extra_deps = [
15
15
  ['sinatra', '>=0.9.2'],
16
- ['vegas', '>=0.0.3.1'],
16
+ ['vegas', '>=0.1.0'],
17
17
  ['haml', '>=2.0.9'],
18
18
  ['rdoc', '=2.4.3'],
19
19
  ['activesupport', '>=2.2.2'],
data/bin/gembox CHANGED
@@ -6,4 +6,6 @@
6
6
  require File.expand_path(File.dirname(__FILE__) + "/../lib/gembox")
7
7
  require 'vegas'
8
8
 
9
- Vegas::Runner.new(Gembox::App, 'gembox')
9
+ Vegas::Runner.new(Gembox::App, 'gembox', {
10
+ :launch_path => lambda {|r| r.args.first ? "/gems/?search=#{r.args.first}" : '' }
11
+ })
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gembox}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Aaron Quint"]
9
- s.date = %q{2009-07-06}
9
+ s.date = %q{2009-08-30}
10
10
  s.default_executable = %q{gembox}
11
11
  s.description = %q{A sinatra based interface for browsing and admiring your gems.}
12
12
  s.email = ["aaron@quirkey.com"]
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.rdoc_options = ["--main", "README.rdoc"]
19
19
  s.require_paths = ["lib"]
20
20
  s.rubyforge_project = %q{quirkey}
21
- s.rubygems_version = %q{1.3.3}
21
+ s.rubygems_version = %q{1.3.5}
22
22
  s.summary = %q{A sinatra based interface for browsing and admiring your gems.}
23
23
  s.test_files = ["test/test_gembox_app.rb", "test/test_gembox_gems.rb", "test/test_helper.rb"]
24
24
 
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
 
29
29
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
30
  s.add_runtime_dependency(%q<sinatra>, [">= 0.9.2"])
31
- s.add_runtime_dependency(%q<vegas>, [">= 0.0.3.1"])
31
+ s.add_runtime_dependency(%q<vegas>, [">= 0.1.0"])
32
32
  s.add_runtime_dependency(%q<haml>, [">= 2.0.9"])
33
33
  s.add_runtime_dependency(%q<rdoc>, ["= 2.4.3"])
34
34
  s.add_runtime_dependency(%q<activesupport>, [">= 2.2.2"])
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
38
38
  s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
39
39
  else
40
40
  s.add_dependency(%q<sinatra>, [">= 0.9.2"])
41
- s.add_dependency(%q<vegas>, [">= 0.0.3.1"])
41
+ s.add_dependency(%q<vegas>, [">= 0.1.0"])
42
42
  s.add_dependency(%q<haml>, [">= 2.0.9"])
43
43
  s.add_dependency(%q<rdoc>, ["= 2.4.3"])
44
44
  s.add_dependency(%q<activesupport>, [">= 2.2.2"])
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
49
49
  end
50
50
  else
51
51
  s.add_dependency(%q<sinatra>, [">= 0.9.2"])
52
- s.add_dependency(%q<vegas>, [">= 0.0.3.1"])
52
+ s.add_dependency(%q<vegas>, [">= 0.1.0"])
53
53
  s.add_dependency(%q<haml>, [">= 2.0.9"])
54
54
  s.add_dependency(%q<rdoc>, ["= 2.4.3"])
55
55
  s.add_dependency(%q<activesupport>, [">= 2.2.2"])
@@ -10,7 +10,7 @@ require 'will_paginate/array'
10
10
  require 'will_paginate/view_helpers'
11
11
 
12
12
  module Gembox
13
- VERSION = '0.2.0'
13
+ VERSION = '0.2.1'
14
14
  end
15
15
 
16
16
  require 'gembox/extensions'
@@ -61,7 +61,11 @@ module Gembox
61
61
  show_layout = params[:layout] != 'false'
62
62
  @show_as = params[:as] || 'columns'
63
63
  if @search = params[:search]
64
- @gems = Gembox::Gems.search(@search).paginate :page => params[:page]
64
+ @gems = Gembox::Gems.search(@search).paginate :page => params[:page]
65
+ if !@gems.empty? && gem = @gems.find {|k,v| k.strip == @search.strip }
66
+ gem = gem[1][0]
67
+ redirect "/gems/#{gem.name}/#{gem.version}" and return
68
+ end
65
69
  end
66
70
  haml "gems_#{@show_as}".to_sym, :layout => show_layout
67
71
  end
@@ -110,7 +110,7 @@ describe "Gembox App" do
110
110
 
111
111
  describe 'getting gems/name/version' do
112
112
  before do
113
- get '/gems/sinatra/0.9.0.4'
113
+ get "/gems/sinatra/#{Sinatra::VERSION}"
114
114
  end
115
115
 
116
116
  should "display dependencies" do
@@ -122,7 +122,7 @@ describe "Gembox App" do
122
122
  end
123
123
 
124
124
  should "load gem spec specified version" do
125
- body.should have_element('.version', '0.9.0.4')
125
+ body.should have_element('.version', Sinatra::VERSION)
126
126
  end
127
127
 
128
128
  should "display links to all versions" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gembox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Quint
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-06 00:00:00 -04:00
12
+ date: 2009-08-30 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.3.1
33
+ version: 0.1.0
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: haml
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  requirements: []
178
178
 
179
179
  rubyforge_project: quirkey
180
- rubygems_version: 1.3.3
180
+ rubygems_version: 1.3.5
181
181
  signing_key:
182
182
  specification_version: 3
183
183
  summary: A sinatra based interface for browsing and admiring your gems.