Permalink
Browse files

update the whole slice to use the version from version.rb and fix vie…

…w pathing issues with the nested templates. not so sure they needed to be nested in hindsight
  • Loading branch information...
1 parent 8992c84 commit 50776177dd9e6bbde52543a5d5df511f8b6e1c82 @atmos committed Jan 13, 2009
Showing with 6 additions and 4 deletions.
  1. +3 −2 Rakefile
  2. +3 −2 lib/braintree_transparent_redirect_slice.rb
View
@@ -3,13 +3,14 @@ require 'rake/gempackagetask'
require 'merb-core'
require 'merb-core/tasks/merb'
+require 'lib/braintree_transparent_redirect_slice/version'
GEM_NAME = "braintree_transparent_redirect_slice"
AUTHOR = "Corey Donohoe"
EMAIL = "atmos@atmos.org"
HOMEPAGE = "http://github.com/atmos/braintree_transparent_redirect_slice/"
SUMMARY = "Merb Slice that allows you to process stuff with braintree, without storing credit cards and shit"
-GEM_VERSION = "1.0.7.1"
+GEM_VERSION = BraintreeTransparentRedirectSlice::VERSION
spec = Gem::Specification.new do |s|
s.rubyforge_project = 'merb'
@@ -23,7 +24,7 @@ spec = Gem::Specification.new do |s|
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
- s.add_dependency('merb-slices', '>= 1.0.7.1')
+ s.add_dependency 'merb-slices', '>= 1.0.7.1'
s.add_dependency 'libxml-ruby', '=0.9.7'
s.add_dependency 'dm-core', '>=0.9.8'
s.add_dependency 'dm-validations', '>=0.9.8'
@@ -31,8 +31,8 @@
module BraintreeTransparentRedirectSlice
# Slice metadata
self.description = "BraintreeTransparentRedirectSlice is like going to heaven and finding god smoking crack!"
- self.version = "0.0.1"
- self.author = "Corey Donohoe at Engine Yard"
+ self.version = BraintreeTransparentRedirectSlice::VERSION
+ self.author = "Corey Donohoe / Engine Yard"
# Stub classes loaded hook - runs before LoadClasses BootLoader
# right after a slice's classes have been loaded internally.
@@ -91,6 +91,7 @@ def self.setup_router(scope)
#
# BraintreeTransparentRedirectSlice.push_path(:application, BraintreeTransparentRedirectSlice.root)
# BraintreeTransparentRedirectSlice.push_app_path(:application, Merb.root / 'slices' / 'braintree_transparent_redirect_slice')
+ Merb.push_path(:view, BraintreeTransparentRedirectSlice.root / "app" / "views", "**/*.rb")
# ...
#
# Any component path that hasn't been set will default to BraintreeTransparentRedirectSlice.root

0 comments on commit 5077617

Please sign in to comment.