Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename

  • Loading branch information...
commit c170cd61e8459414d4b9d47ba5f8fa6849e9e7da 1 parent 7208693
@xdite authored
View
2  Gemfile
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
-# Specify your gem's dependencies in bootstrapers.gemspec
+# Specify your gem's dependencies in bootstrappers.gemspec
gemspec
View
6 README.md
@@ -1,4 +1,4 @@
-# Bootstrapers
+# Bootstrappers
TODO: Write a gem description
@@ -6,7 +6,7 @@ TODO: Write a gem description
Add this line to your application's Gemfile:
- gem 'bootstrapers'
+ gem 'bootstrappers'
And then execute:
@@ -14,7 +14,7 @@ And then execute:
Or install it yourself as:
- $ gem install bootstrapers
+ $ gem install bootstrappers
## Usage
View
12 bin/bootstrapers
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
-require File.expand_path(File.join('..', 'lib', 'bootstrapers', 'generators', 'app_generator'), File.dirname(__FILE__))
-require File.expand_path(File.join('..', 'lib', 'bootstrapers', 'actions'), File.dirname(__FILE__))
-require File.expand_path(File.join('..', 'lib', 'bootstrapers', 'app_builder'), File.dirname(__FILE__))
+require File.expand_path(File.join('..', 'lib', 'bootstrappers', 'generators', 'app_generator'), File.dirname(__FILE__))
+require File.expand_path(File.join('..', 'lib', 'bootstrappers', 'actions'), File.dirname(__FILE__))
+require File.expand_path(File.join('..', 'lib', 'bootstrappers', 'app_builder'), File.dirname(__FILE__))
templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
-Bootstrapers::AppGenerator.source_root templates_root
-Bootstrapers::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root
-Bootstrapers::AppGenerator.start
+Bootstrappers::AppGenerator.source_root templates_root
+Bootstrappers::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root
+Bootstrappers::AppGenerator.start
View
6 bootstrapers.gemspec
@@ -1,11 +1,11 @@
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require 'bootstrapers/version'
+require 'bootstrappers/version'
Gem::Specification.new do |gem|
- gem.name = "bootstrapers"
- gem.version = Bootstrapers::VERSION
+ gem.name = "bootstrappers"
+ gem.version = Bootstrappers::VERSION
gem.authors = ["xdite"]
gem.email = ["xdite@rocodev.com"]
gem.description = %q{ Write a gem description}
View
4 lib/bootstrapers.rb
@@ -1,5 +1,5 @@
-require "bootstrapers/version"
+require "bootstrappers/version"
-module Bootstrapers
+module Bootstrappers
# Your code goes here...
end
View
2  lib/bootstrapers/actions.rb → lib/bootstrappers/actions.rb
@@ -1,4 +1,4 @@
-module Bootstrapers
+module Bootstrappers
module Actions
def concat_file(source, destination)
contents = IO.read(find_in_source_paths(source))
View
8 lib/bootstrapers/app_builder.rb → lib/bootstrappers/app_builder.rb
@@ -1,7 +1,7 @@
-module Bootstrapers
+module Bootstrappers
class AppBuilder < Rails::AppBuilder
- include Bootstrapers::Actions
+ include Bootstrappers::Actions
def readme
template 'README.md.erb', 'README.md'
@@ -27,7 +27,7 @@ def create_partials_directory
end
def create_application_layout
- template 'bootstrapers_layout.html.erb.erb',
+ template 'bootstrappers_layout.html.erb.erb',
'app/views/layouts/application.html.erb',
:force => true
end
@@ -112,7 +112,7 @@ def remove_routes_comment_lines
end
def gitignore_files
- concat_file 'bootstrapers_gitignore', '.gitignore'
+ concat_file 'bootstrappers_gitignore', '.gitignore'
['app/models',
'app/assets/images',
'app/views/pages',
View
14 lib/bootstrapers/generators/app_generator.rb → ...bootstrappers/generators/app_generator.rb
@@ -2,21 +2,21 @@
require 'rails/generators/rails/app/app_generator'
-module Bootstrapers
+module Bootstrappers
class AppGenerator < Rails::Generators::AppGenerator
class_option :database, :type => :string, :aliases => '-d', :default => 'mysql',
:desc => "Preconfigure for selected database (options: #{DATABASES.join('/')})"
def finish_template
- invoke :bootstrapers_customization
+ invoke :bootstrappers_customization
super
end
- def bootstrapers_customization
+ def bootstrappers_customization
invoke :remove_files_we_dont_need
invoke :setup_development_environment
- invoke :create_bootstrapers_views
+ invoke :create_bootstrappers_views
invoke :create_common_partial
invoke :create_common_javascripts
invoke :create_common_stylesheets
@@ -41,8 +41,8 @@ def setup_development_environment
build :raise_delivery_errors
end
- def create_bootstrapers_views
- say 'Creating bootstrapers views'
+ def create_bootstrappers_views
+ say 'Creating bootstrappers views'
build :create_partials_directory
build :create_application_layout
end
@@ -139,7 +139,7 @@ def init_git
protected
def get_builder_class
- Bootstrapers::AppBuilder
+ Bootstrappers::AppBuilder
end
end
View
2  lib/bootstrapers/version.rb → lib/bootstrappers/version.rb
@@ -1,3 +1,3 @@
-module Bootstrapers
+module Bootstrappers
VERSION = "0.0.1"
end
View
0  templates/bootstrapers_gitignore → templates/bootstrappers_gitignore
File renamed without changes
View
0  templates/bootstrapers_layout.html.erb.erb → templates/bootstrappers_layout.html.erb.erb
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.