Skip to content

Commit

Permalink
Fix several problems with bin/refinerycms.rb and lib/gemspec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Heidel committed Aug 25, 2010
1 parent 9d4111e commit 452a057
Show file tree
Hide file tree
Showing 4 changed files with 914 additions and 920 deletions.
9 changes: 4 additions & 5 deletions bin/refinerycms
Expand Up @@ -18,7 +18,7 @@ require 'optparse'
require 'child_labor' if RUBY_PLATFORM !~ /mswin3?2?/

# Load refinerycms
require Pathname.new(File.expand_path(File.dirname(__FILE__) << "/..")).join('vendor', 'refinerycms', 'core', 'lib', 'refinery.rb')
require Pathname.new(File.expand_path(File.dirname(__FILE__) << "/..")).join('vendor', 'refinerycms', 'refinerycms.rb')

module Refinery
class AppGenerator
Expand Down Expand Up @@ -143,10 +143,9 @@ module Refinery
f.write "\n" + refinery_gems
end

# Hack to make work on development computers
# TODO: Change this when/if separate gems are released for each engine
find_and_replace('Gemfile', "path 'vendor/refinerycms' do",
"path '#{Pathname.new(File.expand_path(File.dirname(__FILE__) << "/..")).join('vendor').to_s}/refinerycms' do")
# Change from development to production
find_and_replace('Gemfile', "gem 'refinerycms', :path => '.'",
"gem 'refinerycms', '~> #{Refinery.version}'")

# Replace app constant with Refinery
# TODO: Find a way around this
Expand Down
6 changes: 6 additions & 0 deletions lib/gemspec.rb
Expand Up @@ -35,6 +35,7 @@
s.summary = %q{A beautiful open source Ruby on Rails content manager for small business.}
s.email = %q{info@refinerycms.com}
s.homepage = %q{http://refinerycms.com}
s.rubyforge_project = %q{refinerycms}
s.authors = ['Resolve Digital', 'David Jones', 'Philip Arndt']
s.require_paths = %w(vendor/refinerycms)
s.executables = %w(refinerycms)
Expand All @@ -51,6 +52,11 @@
s.add_dependency 'rmagick'
s.add_dependency 'rack-cache'
s.add_dependency 'dragonfly'
s.files = [
'#{files.join("',\n '")}'
]
end
EOF

File.open(File.expand_path("../../refinerycms.gemspec", __FILE__), 'w').puts(gemspec)

0 comments on commit 452a057

Please sign in to comment.