Skip to content

Commit

Permalink
Renamed gem to use the "sinatra-" prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bcarlso committed Mar 9, 2010
1 parent 2e28ce8 commit 0d398bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -4,7 +4,7 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "snap"
gem.name = "sinatra-snap"
gem.summary = "Sinatra NAmed Path support"
gem.email = "bcarlso@gmail.com"
gem.homepage = "http://github.com/bcarlso/snap"
Expand Down
6 changes: 3 additions & 3 deletions examples/named_route_example.rb
@@ -1,6 +1,6 @@
require 'rubygems'
require 'sinatra'
require '../lib/sinatra/named_path_support'
require 'sinatra-snap'

path :home => '/index'
paths :add => '/add/:augend/:addend',
Expand All @@ -13,7 +13,7 @@
end

get :add do
redirect(path_to(:result).with(params[:augend], params[:addend]))
redirect(path_to(:sum).with(params[:augend], params[:addend]))
end

get :sum do
Expand All @@ -37,5 +37,5 @@
end

get :hello do
"Hi #{:name}"
"Hi #{params[:name]}"
end
File renamed without changes.
8 changes: 4 additions & 4 deletions snap.gemspec → sinatra-snap.gemspec
@@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{snap}
s.name = %q{sinatra-snap}
s.version = "0.3.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
Expand All @@ -21,12 +21,12 @@ Gem::Specification.new do |s|
"VERSION",
"examples/named_route_example.rb",
"lib/sinatra/named_path_support.rb",
"lib/snap.rb",
"snap.gemspec",
"lib/sinatra-snap.rb",
"sinatra-snap.gemspec",
"spec/snap_spec.rb",
"spec/spec_helper.rb"
]
s.homepage = %q{http://github.com/bcarlso/snap}
s.homepage = %q{http://github.com/bcarlso/sinatra-snap}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
Expand Down

0 comments on commit 0d398bb

Please sign in to comment.