1
0
Fork 0
mirror of https://github.com/kbparagua/paloma synced 2023-03-27 23:21:17 -04:00

Generator

This commit is contained in:
Bia Esmero 2012-12-17 18:49:19 +08:00
parent 34589e8e27
commit b87dd9b3b4
5 changed files with 23 additions and 2 deletions

View file

@ -4,8 +4,10 @@ module Paloma
end
end
require 'rails/all'
# TODO: Rails version checking
require 'paloma/paloma_generator'
require 'paloma/action_controller_filters'
require 'paloma/action_controller_extensions'

View file

@ -0,0 +1,16 @@
module Paloma
class PalomaGenerator < ::Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
def copy_initializer_file
copy_file "initializer.rb", "app/assets/javascripts/callbacks/#{file_name}.rb"
end
#desc "This generator creates an initializer file at config/initializers"
#def create_initializer_file
# create_file "config/initializers/initializer.rb", "# Add initialization content here"
#end
end
end

View file

@ -0,0 +1,3 @@
# Add initialization content here
INITIALIZER.RB

BIN
paloma-0.0.2.gem Normal file

Binary file not shown.

View file

@ -1,11 +1,11 @@
Gem::Specification.new do |s|
s.name = 'paloma'
s.version = '0.0.1'
s.version = '0.0.2'
s.date = '2012-12-17'
s.summary = "Javascript Callback Manager for Rails"
s.description = "Javascript Callback Manager for Rails"
s.authors = ["Karl Paragua", "Bia Esmero"]
s.email = 'kb.paragua@gmail.com'
s.files = ["lib/paloma.rb"]
s.files = `git ls-files`.split("\n")
s.homepage = 'https://github.com/kbparagua/paloma'
end