event_machine 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module EventMachine
5
5
 
6
6
  module Hooks
7
7
 
8
- EVENTS_DIR = "app/events"
8
+ EVENTS_DIR = "events"
9
9
 
10
10
  def self.included(base)
11
11
  class_eval <<-EOF
@@ -1,3 +1,3 @@
1
1
  module EventMachine
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -7,7 +7,7 @@ class EventMachineGenerator < Rails::Generators::Base
7
7
  argument :action_name, :type => :string
8
8
 
9
9
  def generate_event
10
- template "event.rb", "app/events/#{parsed_event_name}_event.rb"
10
+ template "event.rb", "#{EventMachine::Hooks::EVENTS_DIR}/#{parsed_event_name}_event.rb"
11
11
  template "functional_test.rb", "test/functional/events/#{parsed_event_name}_test.rb"
12
12
  end
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-26 00:00:00.000000000 Z
12
+ date: 2013-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport