Skip to content
Browse files

Rename to relevance_rails, bugfixes and polish

  • Loading branch information...
1 parent 80d7df9 commit a5e1d97f86240ce5494115a74bf9d4d3bef41548 @aredington aredington committed
View
2 Gemfile
@@ -1,4 +1,4 @@
source "http://rubygems.org"
-# Specify your gem's dependencies in relevant_rails.gemspec
+# Specify your gem's dependencies in relevance_rails.gemspec
gemspec
View
6 README.md
@@ -1,4 +1,4 @@
-Relevant Rails
+Relevance Rails
==============
Yo dawg, I heard you like automation, so I automated your automation so you can autopilot while you autopilot!
@@ -15,8 +15,8 @@ Rails 3 projects with every fiddly bit convened rather than configured. Includes
Getting Started
---------------
-gem install relevant_rails
-relevant_rails new <your new project>
+gem install relevance_rails
+relevance_rails new <your new project>
Caveats
-------
View
2 bin/relevant_rails → bin/relevance_rails
@@ -15,7 +15,7 @@ if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
ARGV.shift
end
-require 'relevant_rails/template_injector'
+require 'relevance_rails/template_injector'
gem 'railties', version
load Gem.bin_path('railties', 'rails', version)
View
4 .../relevant_file/relevant_file_generator.rb → ...elevance_file/relevance_file_generator.rb
@@ -1,4 +1,4 @@
-class RelevantFileGenerator < Rails::Generators::NamedBase
+class RelevanceFileGenerator < Rails::Generators::NamedBase
desc "This generator creates a number of default Rails files."
@@ -53,7 +53,7 @@ def create_deploy
create_file 'config/deploy.rb', <<-CAP_CONFIG
require 'bundler/capistrano'
-set :application, "an_app"
+set :application, "#{name}"
set :repository, "."
set :deploy_via, :copy
View
0 ...enerators/relevant_file/templates/Capfile → ...nerators/relevance_file/templates/Capfile
File renamed without changes.
View
0 ...enerators/relevant_file/templates/Gemfile → ...nerators/relevance_file/templates/Gemfile
File renamed without changes.
View
0 ...relevant_file/templates/recipes_deploy.rb → ...elevance_file/templates/recipes_deploy.rb
File renamed without changes.
View
0 ...rs/relevant_file/templates/spec_helper.rb → ...s/relevance_file/templates/spec_helper.rb
File renamed without changes.
View
0 ...rators/relevant_file/templates/vagrant.rb → ...ators/relevance_file/templates/vagrant.rb
File renamed without changes.
View
2 lib/relevant_rails.rb → lib/relevance_rails.rb
@@ -1,4 +1,4 @@
-require "relevant_rails/version"
+require "relevance_rails/version"
module RelevantRails
# Your code goes here...
View
4 ...relevant_rails/relevant_rails_template.rb → ...levance_rails/relevance_rails_template.rb
@@ -2,7 +2,7 @@
RVM_GEMSET = app_name
def rvm_run(command, config = {})
- run ". ~/.rvm/scripts/rvm && #{command}", config
+ run ". ~/.rvm/scripts/rvm && rvm use #{RVM_RUBY}@#{RVM_GEMSET} && #{command}", config
end
run 'rm README.rdoc'
@@ -14,7 +14,7 @@ def rvm_run(command, config = {})
run 'rm app/assets/images/rails.png'
run 'rm app/views/layouts/application.html.erb'
-generate(:relevant_file, app_name)
+generate(:relevance_file, app_name)
rvm_run "rvm use #{RVM_RUBY}@#{RVM_GEMSET} --create"
rvm_run "gem install bundler"
View
5 lib/relevance_rails/template_injector.rb
@@ -0,0 +1,5 @@
+template = File.join(File.dirname(__FILE__), "relevance_rails_template.rb")
+unless ARGV.any? =~ /^-d$/ then
+ ARGV << '-m'
+ ARGV << template
+end
View
2 lib/relevant_rails/version.rb → lib/relevance_rails/version.rb
@@ -1,3 +1,3 @@
-module RelevantRails
+module RelevanceRails
VERSION = "0.0.1"
end
View
5 lib/relevant_rails/template_injector.rb
@@ -1,5 +0,0 @@
-template = File.join(File.dirname(__FILE__), "relevant_rails_template.rb")
-unless ARGV.any? =~ /^-d$/ then
- ARGV << '-m'
- ARGV << template
-end
View
10 relevant_rails.gemspec → relevance_rails.gemspec
@@ -1,17 +1,17 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require "relevant_rails/version"
+require "relevance_rails/version"
Gem::Specification.new do |s|
- s.name = "relevant_rails"
- s.version = RelevantRails::VERSION
+ s.name = "relevance_rails"
+ s.version = RelevanceRails::VERSION
s.authors = ["Alex Redington"]
s.email = ["alex.redington@thinkrelevance.com"]
s.homepage = ""
s.summary = %q{Rails 3 Relevance style, with all infrastructure bits automated away.}
s.description = %q{A Rails 3 wrapper which forces template use and includes a plethora of generators for standard Relevance bits.}
- s.rubyforge_project = "relevant_rails"
+ s.rubyforge_project = "relevance_rails"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.bindir = 'bin'
- s.executables = ['relevant_rails']
+ s.executables = ['relevance_rails']
# specify any dependencies here; for example:
# s.add_development_dependency "rspec"

0 comments on commit a5e1d97

Please sign in to comment.
Something went wrong with that request. Please try again.