historical 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/historical.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{historical}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marcel Jackwerth"]
12
- s.date = %q{2010-08-16}
12
+ s.date = %q{2010-08-26}
13
13
  s.description = %q{Rewrite of the original historical-plugin using MongoDB}
14
14
  s.email = %q{marcel@northdocks.com}
15
15
  s.extra_rdoc_files = [
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
30
30
  "lib/historical/models/model_diff.rb",
31
31
  "lib/historical/models/model_version.rb",
32
32
  "lib/historical/mongo_mapper_enhancements.rb",
33
+ "lib/historical/railtie.rb",
33
34
  "rails/init.rb",
34
35
  "spec/historical_spec.rb",
35
36
  "spec/spec.opts",
data/lib/historical.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'historical/railtie' if defined?(Rails::Railtie)
2
+
1
3
  module Historical
2
4
  IGNORED_ATTRIBUTES = [:id, :created_at, :updated_at]
3
5
 
@@ -30,4 +32,4 @@ module Historical
30
32
  autoload :ModelDiff, 'historical/models/model_diff'
31
33
  autoload :ModelVersion, 'historical/models/model_version'
32
34
  end
33
- end
35
+ end
@@ -0,0 +1,10 @@
1
+ require 'historical'
2
+ require 'rails'
3
+
4
+ module Historical
5
+ class Railtie < Rails::Railtie
6
+ config.after_initialize do
7
+ ActiveRecord::Base.send(:extend, Historical::ActiveRecord)
8
+ end
9
+ end
10
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: historical
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcel Jackwerth
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-16 00:00:00 +02:00
18
+ date: 2010-08-26 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -57,6 +57,7 @@ files:
57
57
  - lib/historical/models/model_diff.rb
58
58
  - lib/historical/models/model_version.rb
59
59
  - lib/historical/mongo_mapper_enhancements.rb
60
+ - lib/historical/railtie.rb
60
61
  - rails/init.rb
61
62
  - spec/historical_spec.rb
62
63
  - spec/spec.opts