Skip to content

Commit

Permalink
Renamed to spree_fancy
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed Dec 7, 2012
1 parent b6a3602 commit aa76aaf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ task :default => [:spec]

desc 'Generates a dummy app for testing'
task :test_app do
ENV['LIB_NAME'] = 'spree_theme_demo'
ENV['LIB_NAME'] = 'spree_fancy'
Rake::Task['common:test_app'].invoke
end
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
module SpreeThemeDemo
module SpreeFancy
module Generators
class InstallGenerator < Rails::Generators::Base

def add_javascripts
append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_theme_demo\n"
append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_theme_demo\n"
append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_fancy\n"
append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_fancy\n"
end

def add_stylesheets
inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_theme_demo\n", :before => /\*\//, :verbose => true
inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_theme_demo\n", :before => /\*\//, :verbose => true
inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_fancy\n", :before => /\*\//, :verbose => true
inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_fancy\n", :before => /\*\//, :verbose => true
end

def add_migrations
run 'bundle exec rake railties:install:migrations FROM=spree_theme_demo'
run 'bundle exec rake railties:install:migrations FROM=spree_fancy'
end

def run_migrations
Expand Down
2 changes: 1 addition & 1 deletion lib/spree_theme_demo.rb → lib/spree_fancy.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require 'spree_core'
require 'spree_theme_demo/engine'
require 'spree_fancy/engine'
require 'compass-rails'
6 changes: 3 additions & 3 deletions lib/spree_theme_demo/engine.rb → lib/spree_fancy/engine.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module SpreeThemeDemo
module SpreeFancy
class Engine < Rails::Engine
require 'spree/core'
isolate_namespace Spree
engine_name 'spree_theme_demo'
engine_name 'spree_fancy'

config.autoload_paths += %W(#{config.root}/lib)

Expand All @@ -14,7 +14,7 @@ class Engine < Rails::Engine
def self.activate
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
end
end

config.to_prepare &method(:activate).to_proc
Expand Down
2 changes: 1 addition & 1 deletion script/rails
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.

ENGINE_ROOT = File.expand_path('../..', __FILE__)
ENGINE_PATH = File.expand_path('../../lib/spree_theme_demo/engine', __FILE__)
ENGINE_PATH = File.expand_path('../../lib/spree_fancy/engine', __FILE__)

require 'rails/all'
require 'rails/engine/commands'
6 changes: 3 additions & 3 deletions spree_theme_demo.gemspec → spree_fancy.gemspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_theme_demo'
s.name = 'spree_fancy'
s.version = '1.3.0'
s.summary = 'Spree 1.3.x Demo Theme'
s.description = 'TODO: Add (optional) gem description here'
s.summary = 'Fancy Spree Theme'
s.description = 'Fancy theme to apply to out of the box Spree so it looks a bit nicer. Use it as a starting point.'
s.required_ruby_version = '>= 1.8.7'

s.author = 'Alexey Topolyanskiy'
Expand Down

0 comments on commit aa76aaf

Please sign in to comment.