acts_as_protocolable 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/Rakefile.rb +1 -1
  2. data/VERSION +1 -1
  3. data/rails/init.rb +3 -0
  4. metadata +4 -4
  5. data/Manifest.txt +0 -7
data/Rakefile.rb CHANGED
@@ -8,7 +8,7 @@ begin
8
8
 
9
9
  gemspec.summary = "Guard of activity in your rails application."
10
10
  gemspec.description = "ActsAsProtocolable is the easiest way to protocol user activity inside your Rails admin interface."
11
- gemspec.files = FileList["[A-Z]*", "{generators,lib}/**/*"] - FileList["**/*.log"]
11
+ gemspec.files = FileList["[A-Z]*", "{generators,lib,rails}/**/*"] - FileList["**/*.log"]
12
12
  gemspec.add_dependency("sys-admin", ">= 1.5.2")
13
13
  gemspec.add_dependency("activerecord", ">= 2.3.0")
14
14
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/rails/init.rb ADDED
@@ -0,0 +1,3 @@
1
+ if defined?(ActiveRecord::Base)
2
+ ActiveRecord::Base.extend(ActsAsProtocolable::ClassMethods)
3
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_protocolable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Igor Alexandrov
@@ -59,7 +59,6 @@ extensions: []
59
59
  extra_rdoc_files:
60
60
  - README.textile
61
61
  files:
62
- - Manifest.txt
63
62
  - README.textile
64
63
  - Rakefile.rb
65
64
  - VERSION
@@ -68,6 +67,7 @@ files:
68
67
  - lib/acts_as_protocolable.rb
69
68
  - lib/acts_as_protocolable/base.rb
70
69
  - lib/acts_as_protocolable/for_model.rb
70
+ - rails/init.rb
71
71
  - test/test_acts_as_protocolable.rb
72
72
  has_rdoc: true
73
73
  homepage: http://github.com/igor-alexandrov/acts_as_protocolable
data/Manifest.txt DELETED
@@ -1,7 +0,0 @@
1
- .autotest
2
- History.txt
3
- Manifest.txt
4
- README.txt
5
- Rakefile
6
- lib/acts_as_protocolable.rb
7
- test/test_acts_as_protocolable.rb