event_horizon 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,6 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/jzajpt/event_horizon"
12
12
  gem.authors = ["Jiri Zajpt"]
13
13
  gem.add_development_dependency "rspec", "~> 2.0.0"
14
+ gem.add_dependency "activesupport", "~> 3.0.0"
14
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
16
  end
16
17
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{event_horizon}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jiri Zajpt"]
@@ -51,11 +51,14 @@ Gem::Specification.new do |s|
51
51
 
52
52
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
53
  s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
54
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
54
55
  else
55
56
  s.add_dependency(%q<rspec>, ["~> 2.0.0"])
57
+ s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
56
58
  end
57
59
  else
58
60
  s.add_dependency(%q<rspec>, ["~> 2.0.0"])
61
+ s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
59
62
  end
60
63
  end
61
64
 
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'active_support/concern'
4
+ require File.join(File.dirname(__FILE__), "../../app/models/event")
4
5
 
5
6
  module EventHorizon
6
7
 
@@ -44,11 +45,11 @@ module EventHorizon
44
45
  class_name = self._type || self.class.name
45
46
  user = options[:by] || options[:user]
46
47
 
47
- Event.create(:event_type => event.to_s,
48
- :user_id => user && user.id,
49
- :document_id => self.id,
50
- :document_type => class_name,
51
- :params => params)
48
+ ::Event.create(:event_type => event.to_s,
49
+ :user_id => user && user.id,
50
+ :document_id => self.id,
51
+ :document_type => class_name,
52
+ :params => params)
52
53
  end
53
54
 
54
55
  def call_event_callbacks_for(event)
@@ -1,7 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'active_support/concern'
4
- require 'mongoid'
5
4
  require 'mongoid/timestamps'
6
5
 
7
6
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jiri Zajpt
@@ -32,6 +32,21 @@ dependencies:
32
32
  version: 2.0.0
33
33
  type: :development
34
34
  version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: activesupport
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 3
45
+ - 0
46
+ - 0
47
+ version: 3.0.0
48
+ type: :runtime
49
+ version_requirements: *id002
35
50
  description: Simple plugin for logging events in Rails applications using Mongoid ODM.
36
51
  email: jzajpt@blueberryapps.com
37
52
  executables: []