mongoid-audit 1.0.0.beta.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ae2f493a1df9ae008870919a2989a42396a18bf
4
- data.tar.gz: ee0dafc5dbe7842c6d4988e2cda7aeacca31842e
3
+ metadata.gz: 6110f867cfbe6c4f85a26e024bb199318a8cde3d
4
+ data.tar.gz: cc04342cab7ee764db39faa22dfb27d67f47d942
5
5
  SHA512:
6
- metadata.gz: af6bb721720e57c422da80101d83ac26aa9dbd77852cc36f9c6734ba60990fd3afba1e04fcbd11c20a4cb0144ea2456db199012382534ccd50d08e960c8576ec
7
- data.tar.gz: 70afffe2ba44cec9930f7bd6617ea9b65b9e1808dba55c01fdea429a70105b2d97d6ffa50a06eaa1496cef021aa9a378a8a4602ac7b962f54c9a2c1b240027ef
6
+ metadata.gz: 710235e1c4ba7383e4aacf65230fe7586e8f3e67972ed827c81f8b0f63e7f9b48bf08fc882991465feb8dacd371017c5de76ed6dfc648e4cd2375c46ac8a77e7
7
+ data.tar.gz: 3c7c560f550cdd5951a24c8b4a61d51202d131c169f033f1e2b32615810993049fb67ce3a5655c1febf4a41ceb16f6c89c10b017cb0bc6040831dc6993eb7cfd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid-audit (1.0.0.beta.1)
4
+ mongoid-audit (1.0.0)
5
5
  activesupport
6
6
  glebtv_mongoid_userstamp
7
7
  kaminari
data/README.md CHANGED
@@ -58,14 +58,16 @@ Identical to Mongoid::History.
58
58
  See https://github.com/aq1018/mongoid-history
59
59
 
60
60
  include Mongoid::History::Trackable
61
+ include Mongoid::Userstamp
61
62
  track_history({
62
63
  track_create: true,
63
64
  track_destroy: true,
64
65
  track_update: true,
65
66
  modifier_field: :updater,
66
- except: ["created_at", "updated_at", "c_at", "u_at"],
67
+ except: ["created_at", "updated_at", "c_at", "u_at", "clicks", "impressions", "some_other_your_field"],
67
68
  })
68
69
 
70
+
69
71
  ### Rails Admin Integration
70
72
 
71
73
  Add
@@ -38,7 +38,7 @@ module RailsAdmin
38
38
  index = 0
39
39
  assoc = @version.association_chain
40
40
  while !assoc[index+1].nil?
41
- table = assoc[index]['name'].constantize.relations[assoc[index+1]['name']][:class_name]
41
+ table = assoc[index]['name'].constantize.relations[assoc[index+1]['name']].class_name
42
42
  index += 1
43
43
  end
44
44
  table
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Audit
3
- VERSION = "1.0.0.beta.1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-22 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -146,9 +146,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - ">"
149
+ - - ">="
150
150
  - !ruby/object:Gem::Version
151
- version: 1.3.1
151
+ version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
154
  rubygems_version: 2.2.2