diff --git a/Changelog.md b/Changelog.md index 35c18f9..395b9ae 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,10 @@ Changelog = +Version 1.0.0 +- +* `AddGenerator` changed from `rails g paloma:add controller/action` to `rails g paloma:add controller action` + Version 0.0.8 - * Bug Fix: _callback.js cannot find _local.js diff --git a/lib/paloma/generators/add_generator.rb b/lib/paloma/generators/add_generator.rb index df0b3b6..5655245 100644 --- a/lib/paloma/generators/add_generator.rb +++ b/lib/paloma/generators/add_generator.rb @@ -26,7 +26,7 @@ module Paloma source_root Paloma.templates def create_callback_file - arg = file_path.split('/') + arg = file_path.split(' ') @controller_name = arg[0] action_name = arg[1] diff --git a/paloma.gemspec b/paloma.gemspec index d7c5f20..6fbaaa9 100644 --- a/paloma.gemspec +++ b/paloma.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'paloma' - s.version = '0.0.8' + s.version = '1.0.0' s.summary = "a sexy way to organize javascript files using Rails` asset pipeline" s.description = "a sexy way to organize javascript files using Rails` asset pipeline" s.authors = ["Karl Paragua", "Bia Esmero"] diff --git a/spec/generator_spec.rb b/spec/generator_spec.rb index 84ddd30..0b8479c 100644 --- a/spec/generator_spec.rb +++ b/spec/generator_spec.rb @@ -63,7 +63,7 @@ end feature Paloma::AddGenerator, 'creating action with existing controller folder' do include GeneratorSpec::TestCase destination TEMP - arguments ['existing_controller_folder/new_action'] + arguments ['existing_controller_folder new_action'] before do prepare_destination @@ -96,7 +96,7 @@ end feature Paloma::AddGenerator, 'creating both controller folder and action file' do include GeneratorSpec::TestCase destination TEMP - arguments ['new_controller_folder/new_action'] + arguments ['new_controller_folder new_action'] before do prepare_destination