mongoid_userstamp 0.1.0 → 0.2.0
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.
- data/.rbenv-version +1 -0
- data/.travis.yml +7 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +4 -5
- data/Gemfile.lock +33 -24
- data/LICENSE.md +1 -1
- data/README.md +5 -4
- data/Rakefile +12 -4
- data/init.rb +0 -1
- data/lib/mongoid/userstamp/config.rb +0 -1
- data/lib/mongoid/userstamp/railtie.rb +7 -8
- data/lib/mongoid/userstamp/user.rb +0 -3
- data/lib/mongoid/userstamp/version.rb +1 -2
- data/lib/mongoid/userstamp.rb +9 -10
- data/lib/mongoid_userstamp.rb +0 -1
- data/mongoid_userstamp.gemspec +25 -20
- data/spec/mongoid/userstamp_spec.rb +62 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/book.rb +7 -0
- data/spec/support/user.rb +7 -0
- metadata +48 -24
- data/.rvmrc +0 -1
data/.rbenv-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.9.3-p194
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
source 'http://rubygems.org'
|
|
2
2
|
|
|
3
|
-
gem 'mongoid', '
|
|
3
|
+
gem 'mongoid', '>= 3.0.4'
|
|
4
4
|
|
|
5
5
|
group :development do
|
|
6
|
-
gem '
|
|
7
|
-
gem 'yard', '
|
|
8
|
-
gem 'jeweler', '
|
|
6
|
+
gem 'rspec', '>= 2.13.0'
|
|
7
|
+
gem 'yard', '>= 0.8.2.1'
|
|
8
|
+
gem 'jeweler', '>= 1.8.3'
|
|
9
9
|
end
|
|
10
|
-
|
data/Gemfile.lock
CHANGED
|
@@ -1,41 +1,50 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: http://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
activemodel (3.2.
|
|
5
|
-
activesupport (= 3.2.
|
|
4
|
+
activemodel (3.2.13)
|
|
5
|
+
activesupport (= 3.2.13)
|
|
6
6
|
builder (~> 3.0.0)
|
|
7
|
-
activesupport (3.2.
|
|
8
|
-
i18n (
|
|
7
|
+
activesupport (3.2.13)
|
|
8
|
+
i18n (= 0.6.1)
|
|
9
9
|
multi_json (~> 1.0)
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
builder (3.0.4)
|
|
11
|
+
diff-lcs (1.2.1)
|
|
12
12
|
git (1.2.5)
|
|
13
|
-
i18n (0.6.
|
|
14
|
-
jeweler (1.8.
|
|
13
|
+
i18n (0.6.1)
|
|
14
|
+
jeweler (1.8.4)
|
|
15
15
|
bundler (~> 1.0)
|
|
16
16
|
git (>= 1.2.5)
|
|
17
17
|
rake
|
|
18
18
|
rdoc
|
|
19
|
-
json (1.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
mongo (~> 1.3)
|
|
19
|
+
json (1.7.7)
|
|
20
|
+
mongoid (3.1.2)
|
|
21
|
+
activemodel (~> 3.2)
|
|
22
|
+
moped (~> 1.4.2)
|
|
23
|
+
origin (~> 1.0)
|
|
25
24
|
tzinfo (~> 0.3.22)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
moped (1.4.3)
|
|
26
|
+
multi_json (1.7.1)
|
|
27
|
+
origin (1.0.11)
|
|
28
|
+
rake (10.0.3)
|
|
29
|
+
rdoc (4.0.0)
|
|
29
30
|
json (~> 1.4)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
rspec (2.13.0)
|
|
32
|
+
rspec-core (~> 2.13.0)
|
|
33
|
+
rspec-expectations (~> 2.13.0)
|
|
34
|
+
rspec-mocks (~> 2.13.0)
|
|
35
|
+
rspec-core (2.13.1)
|
|
36
|
+
rspec-expectations (2.13.0)
|
|
37
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
|
38
|
+
rspec-mocks (2.13.0)
|
|
39
|
+
tzinfo (0.3.37)
|
|
40
|
+
yard (0.8.5.2)
|
|
33
41
|
|
|
34
42
|
PLATFORMS
|
|
35
43
|
ruby
|
|
44
|
+
x86-mingw32
|
|
36
45
|
|
|
37
46
|
DEPENDENCIES
|
|
38
|
-
jeweler (
|
|
39
|
-
mongoid (
|
|
40
|
-
|
|
41
|
-
yard (
|
|
47
|
+
jeweler (>= 1.8.3)
|
|
48
|
+
mongoid (>= 3.0.4)
|
|
49
|
+
rspec (>= 2.13.0)
|
|
50
|
+
yard (>= 0.8.2.1)
|
data/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2012
|
|
1
|
+
Copyright (c) 2012 Thomas Boerger Programmierung <http://www.tbpro.de>
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
# MongoidUserstamp [](https://travis-ci.org/tbpro/mongoid_userstamp) [](https://codeclimate.com/github/tbpro/mongoid_userstamp)
|
|
2
2
|
|
|
3
3
|
MongoidUserstamp adds stamp columns for created by and updated by
|
|
4
|
-
informations within rails applications.
|
|
4
|
+
informations within rails applications. Mongoid requires a ruby
|
|
5
|
+
version above 1.8, so i've written the gem on the new 1.9 hash syntax.
|
|
5
6
|
|
|
6
7
|
## Install
|
|
7
8
|
|
|
@@ -20,7 +21,7 @@ informations within rails applications.
|
|
|
20
21
|
c.created_column = :created_by
|
|
21
22
|
c.created_accessor = :creator
|
|
22
23
|
|
|
23
|
-
c.updated_column = :
|
|
24
|
+
c.updated_column = :updated_by
|
|
24
25
|
c.updated_accessor = :updator
|
|
25
26
|
end
|
|
26
27
|
|
|
@@ -52,4 +53,4 @@ informations within rails applications.
|
|
|
52
53
|
|
|
53
54
|
## Credits
|
|
54
55
|
|
|
55
|
-
Copyright (c) 2012
|
|
56
|
+
Copyright (c) 2012-2013 Thomas Boerger Programmierung <http://www.tbpro.de>
|
data/Rakefile
CHANGED
|
@@ -6,6 +6,7 @@ begin
|
|
|
6
6
|
rescue Bundler::BundlerError => e
|
|
7
7
|
$stderr.puts e.message
|
|
8
8
|
$stderr.puts 'Run `bundle install` to install missing gems'
|
|
9
|
+
|
|
9
10
|
exit e.status_code
|
|
10
11
|
end
|
|
11
12
|
|
|
@@ -19,15 +20,22 @@ require 'mongoid/userstamp/version'
|
|
|
19
20
|
Jeweler::Tasks.new do |gem|
|
|
20
21
|
gem.name = 'mongoid_userstamp'
|
|
21
22
|
gem.version = Mongoid::Userstamp::Version::STRING
|
|
22
|
-
gem.homepage = 'https://github.com/
|
|
23
|
+
gem.homepage = 'https://github.com/tbpro/mongoid_userstamp'
|
|
23
24
|
gem.license = 'MIT'
|
|
24
25
|
gem.summary = %Q{Userstamp for created and updated columns within mongoid}
|
|
25
|
-
gem.email = '
|
|
26
|
-
gem.authors = ['Thomas Boerger'
|
|
26
|
+
gem.email = 'tboerger@tbpro.de'
|
|
27
|
+
gem.authors = ['Thomas Boerger']
|
|
27
28
|
end
|
|
28
29
|
|
|
29
30
|
Jeweler::RubygemsDotOrgTasks.new
|
|
30
31
|
YARD::Rake::YardocTask.new
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
require 'rspec/core'
|
|
34
|
+
require 'rspec/core/rake_task'
|
|
33
35
|
|
|
36
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
37
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
38
|
+
spec.rspec_opts = '--color --format progress'
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
task default: :spec
|
data/init.rb
CHANGED
|
@@ -3,18 +3,17 @@ module Mongoid
|
|
|
3
3
|
module Userstamp
|
|
4
4
|
class Railtie < Rails::Railtie
|
|
5
5
|
ActiveSupport.on_load :action_controller do
|
|
6
|
-
unless Mongoid::Userstamp.configuration.user_model.respond_to? :current
|
|
7
|
-
Mongoid::Userstamp.configuration.user_model.send(
|
|
8
|
-
:include,
|
|
9
|
-
Mongoid::Userstamp::User
|
|
10
|
-
)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
6
|
before_filter do |c|
|
|
7
|
+
unless Mongoid::Userstamp.configuration.user_model.respond_to? :current
|
|
8
|
+
Mongoid::Userstamp.configuration.user_model.send(
|
|
9
|
+
:include,
|
|
10
|
+
Mongoid::Userstamp::User
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
14
|
Mongoid::Userstamp.configuration.user_model.current = c.send(Mongoid::Userstamp.configuration.user_reader)
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
|
data/lib/mongoid/userstamp.rb
CHANGED
|
@@ -9,8 +9,6 @@ module Mongoid
|
|
|
9
9
|
autoload :User, 'mongoid/userstamp/user'
|
|
10
10
|
|
|
11
11
|
included do
|
|
12
|
-
include Mongoid::Timestamps
|
|
13
|
-
|
|
14
12
|
field Mongoid::Userstamp.configuration.updated_column, :type => Object
|
|
15
13
|
field Mongoid::Userstamp.configuration.created_column, :type => Object
|
|
16
14
|
|
|
@@ -18,34 +16,35 @@ module Mongoid
|
|
|
18
16
|
before_create :set_creator
|
|
19
17
|
|
|
20
18
|
define_method Mongoid::Userstamp.configuration.updated_accessor do
|
|
21
|
-
|
|
19
|
+
updated_col = self.send(Mongoid::Userstamp.configuration.updated_column)
|
|
20
|
+
updated_col ? Mongoid::Userstamp.configuration.user_model.find(updated_col) : nil
|
|
22
21
|
end
|
|
23
22
|
|
|
24
23
|
define_method Mongoid::Userstamp.configuration.created_accessor do
|
|
25
|
-
|
|
24
|
+
created_col = self.send(Mongoid::Userstamp.configuration.created_column)
|
|
25
|
+
created_col ? Mongoid::Userstamp.configuration.user_model.find(created_col) : nil
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
protected
|
|
29
29
|
def set_updator
|
|
30
|
+
return unless Mongoid::Userstamp.configuration.user_model.respond_to? :current
|
|
30
31
|
column = "#{Mongoid::Userstamp.configuration.updated_column.to_s}=".to_sym
|
|
32
|
+
|
|
31
33
|
self.send(column, Mongoid::Userstamp.configuration.user_model.current.try(:id))
|
|
32
34
|
end
|
|
33
35
|
|
|
34
36
|
def set_creator
|
|
37
|
+
return unless Mongoid::Userstamp.configuration.user_model.respond_to? :current
|
|
35
38
|
column = "#{Mongoid::Userstamp.configuration.created_column.to_s}=".to_sym
|
|
39
|
+
|
|
36
40
|
self.send(column, Mongoid::Userstamp.configuration.user_model.current.try(:id))
|
|
37
41
|
end
|
|
38
42
|
end
|
|
39
43
|
|
|
40
44
|
class << self
|
|
41
|
-
def configure(&block)
|
|
42
|
-
@configuration = Mongoid::Userstamp::Config.new(&block)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
45
|
def configuration
|
|
46
46
|
@configuration ||= Mongoid::Userstamp::Config.new
|
|
47
|
-
end
|
|
47
|
+
end
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
|
-
|
data/lib/mongoid_userstamp.rb
CHANGED
data/mongoid_userstamp.gemspec
CHANGED
|
@@ -5,19 +5,20 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "mongoid_userstamp"
|
|
8
|
-
s.version = "0.
|
|
8
|
+
s.version = "0.2.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
-
s.authors = ["Thomas Boerger"
|
|
12
|
-
s.date = "
|
|
13
|
-
s.email = "
|
|
11
|
+
s.authors = ["Thomas Boerger"]
|
|
12
|
+
s.date = "2013-03-24"
|
|
13
|
+
s.email = "tboerger@tbpro.de"
|
|
14
14
|
s.extra_rdoc_files = [
|
|
15
15
|
"LICENSE.md",
|
|
16
16
|
"README.md"
|
|
17
17
|
]
|
|
18
18
|
s.files = [
|
|
19
|
-
".
|
|
19
|
+
".rbenv-version",
|
|
20
20
|
".travis.yml",
|
|
21
|
+
"CHANGELOG.md",
|
|
21
22
|
"Gemfile",
|
|
22
23
|
"Gemfile.lock",
|
|
23
24
|
"LICENSE.md",
|
|
@@ -30,33 +31,37 @@ Gem::Specification.new do |s|
|
|
|
30
31
|
"lib/mongoid/userstamp/user.rb",
|
|
31
32
|
"lib/mongoid/userstamp/version.rb",
|
|
32
33
|
"lib/mongoid_userstamp.rb",
|
|
33
|
-
"mongoid_userstamp.gemspec"
|
|
34
|
+
"mongoid_userstamp.gemspec",
|
|
35
|
+
"spec/mongoid/userstamp_spec.rb",
|
|
36
|
+
"spec/spec_helper.rb",
|
|
37
|
+
"spec/support/book.rb",
|
|
38
|
+
"spec/support/user.rb"
|
|
34
39
|
]
|
|
35
|
-
s.homepage = "https://github.com/
|
|
40
|
+
s.homepage = "https://github.com/tbpro/mongoid_userstamp"
|
|
36
41
|
s.licenses = ["MIT"]
|
|
37
42
|
s.require_paths = ["lib"]
|
|
38
|
-
s.rubygems_version = "1.8.
|
|
43
|
+
s.rubygems_version = "1.8.24"
|
|
39
44
|
s.summary = "Userstamp for created and updated columns within mongoid"
|
|
40
45
|
|
|
41
46
|
if s.respond_to? :specification_version then
|
|
42
47
|
s.specification_version = 3
|
|
43
48
|
|
|
44
49
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
45
|
-
s.add_runtime_dependency(%q<mongoid>, ["
|
|
46
|
-
s.add_development_dependency(%q<
|
|
47
|
-
s.add_development_dependency(%q<yard>, ["
|
|
48
|
-
s.add_development_dependency(%q<jeweler>, ["
|
|
50
|
+
s.add_runtime_dependency(%q<mongoid>, [">= 3.0.4"])
|
|
51
|
+
s.add_development_dependency(%q<rspec>, [">= 2.13.0"])
|
|
52
|
+
s.add_development_dependency(%q<yard>, [">= 0.8.2.1"])
|
|
53
|
+
s.add_development_dependency(%q<jeweler>, [">= 1.8.3"])
|
|
49
54
|
else
|
|
50
|
-
s.add_dependency(%q<mongoid>, ["
|
|
51
|
-
s.add_dependency(%q<
|
|
52
|
-
s.add_dependency(%q<yard>, ["
|
|
53
|
-
s.add_dependency(%q<jeweler>, ["
|
|
55
|
+
s.add_dependency(%q<mongoid>, [">= 3.0.4"])
|
|
56
|
+
s.add_dependency(%q<rspec>, [">= 2.13.0"])
|
|
57
|
+
s.add_dependency(%q<yard>, [">= 0.8.2.1"])
|
|
58
|
+
s.add_dependency(%q<jeweler>, [">= 1.8.3"])
|
|
54
59
|
end
|
|
55
60
|
else
|
|
56
|
-
s.add_dependency(%q<mongoid>, ["
|
|
57
|
-
s.add_dependency(%q<
|
|
58
|
-
s.add_dependency(%q<yard>, ["
|
|
59
|
-
s.add_dependency(%q<jeweler>, ["
|
|
61
|
+
s.add_dependency(%q<mongoid>, [">= 3.0.4"])
|
|
62
|
+
s.add_dependency(%q<rspec>, [">= 2.13.0"])
|
|
63
|
+
s.add_dependency(%q<yard>, [">= 0.8.2.1"])
|
|
64
|
+
s.add_dependency(%q<jeweler>, [">= 1.8.3"])
|
|
60
65
|
end
|
|
61
66
|
end
|
|
62
67
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
require 'spec_helper'
|
|
3
|
+
|
|
4
|
+
describe 'Mongoid::Userstamp' do
|
|
5
|
+
subject {
|
|
6
|
+
Book.new(
|
|
7
|
+
name: 'Crafting Rails Applications'
|
|
8
|
+
)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
it { should respond_to :created_by }
|
|
12
|
+
it { should respond_to :creator }
|
|
13
|
+
it { should respond_to :updated_by }
|
|
14
|
+
it { should respond_to :updator }
|
|
15
|
+
|
|
16
|
+
context 'when created without a user' do
|
|
17
|
+
before {
|
|
18
|
+
subject.save!
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
it { subject.created_by.should be_nil }
|
|
22
|
+
it { subject.creator.should be_nil }
|
|
23
|
+
it { subject.updated_by.should be_nil }
|
|
24
|
+
it { subject.updator.should be_nil }
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
context 'when created by a user' do
|
|
28
|
+
let(:user_1) {
|
|
29
|
+
User.create!(
|
|
30
|
+
name: 'Charles Dikkens'
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
before {
|
|
35
|
+
User.current = user_1
|
|
36
|
+
subject.save
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
it { subject.created_by.should == user_1.id }
|
|
40
|
+
it { subject.creator.should == user_1 }
|
|
41
|
+
it { subject.updated_by.should == user_1.id }
|
|
42
|
+
it { subject.updator.should == user_1 }
|
|
43
|
+
|
|
44
|
+
context 'when updated by a user' do
|
|
45
|
+
let(:user_2) {
|
|
46
|
+
User.create!(
|
|
47
|
+
name: 'Edmund Wells'
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
before {
|
|
52
|
+
User.current = user_2
|
|
53
|
+
subject.save!
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
it { subject.created_by.should == user_1.id }
|
|
57
|
+
it { subject.creator.should == user_1 }
|
|
58
|
+
it { subject.updated_by.should == user_2.id }
|
|
59
|
+
it { subject.updator.should == user_2 }
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
require 'rubygems'
|
|
3
|
+
|
|
4
|
+
$:.push File.expand_path('../../lib', __FILE__)
|
|
5
|
+
|
|
6
|
+
require 'active_support/all'
|
|
7
|
+
require 'mongoid'
|
|
8
|
+
require 'mongoid_userstamp'
|
|
9
|
+
|
|
10
|
+
Mongoid.configure do |config|
|
|
11
|
+
config.connect_to(
|
|
12
|
+
'mongoid_userstamp_test'
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each do |f|
|
|
17
|
+
require f
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
RSpec.configure do |config|
|
|
21
|
+
config.mock_with :rspec
|
|
22
|
+
|
|
23
|
+
config.after :suite do
|
|
24
|
+
Mongoid.purge!
|
|
25
|
+
end
|
|
26
|
+
end
|
metadata
CHANGED
|
@@ -1,71 +1,91 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongoid_userstamp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Thomas Boerger
|
|
9
|
-
- Tim Rudat
|
|
10
9
|
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: mongoid
|
|
17
|
-
requirement:
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
17
|
none: false
|
|
19
18
|
requirements:
|
|
20
|
-
- -
|
|
19
|
+
- - ! '>='
|
|
21
20
|
- !ruby/object:Gem::Version
|
|
22
|
-
version:
|
|
21
|
+
version: 3.0.4
|
|
23
22
|
type: :runtime
|
|
24
23
|
prerelease: false
|
|
25
|
-
version_requirements:
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 3.0.4
|
|
26
30
|
- !ruby/object:Gem::Dependency
|
|
27
|
-
name:
|
|
28
|
-
requirement:
|
|
31
|
+
name: rspec
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
33
|
none: false
|
|
30
34
|
requirements:
|
|
31
|
-
- -
|
|
35
|
+
- - ! '>='
|
|
32
36
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 2.
|
|
37
|
+
version: 2.13.0
|
|
34
38
|
type: :development
|
|
35
39
|
prerelease: false
|
|
36
|
-
version_requirements:
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: 2.13.0
|
|
37
46
|
- !ruby/object:Gem::Dependency
|
|
38
47
|
name: yard
|
|
39
|
-
requirement:
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
40
49
|
none: false
|
|
41
50
|
requirements:
|
|
42
|
-
- -
|
|
51
|
+
- - ! '>='
|
|
43
52
|
- !ruby/object:Gem::Version
|
|
44
|
-
version: 0.
|
|
53
|
+
version: 0.8.2.1
|
|
45
54
|
type: :development
|
|
46
55
|
prerelease: false
|
|
47
|
-
version_requirements:
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 0.8.2.1
|
|
48
62
|
- !ruby/object:Gem::Dependency
|
|
49
63
|
name: jeweler
|
|
50
|
-
requirement:
|
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
|
51
65
|
none: false
|
|
52
66
|
requirements:
|
|
53
|
-
- -
|
|
67
|
+
- - ! '>='
|
|
54
68
|
- !ruby/object:Gem::Version
|
|
55
69
|
version: 1.8.3
|
|
56
70
|
type: :development
|
|
57
71
|
prerelease: false
|
|
58
|
-
version_requirements:
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
none: false
|
|
74
|
+
requirements:
|
|
75
|
+
- - ! '>='
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: 1.8.3
|
|
59
78
|
description:
|
|
60
|
-
email:
|
|
79
|
+
email: tboerger@tbpro.de
|
|
61
80
|
executables: []
|
|
62
81
|
extensions: []
|
|
63
82
|
extra_rdoc_files:
|
|
64
83
|
- LICENSE.md
|
|
65
84
|
- README.md
|
|
66
85
|
files:
|
|
67
|
-
- .
|
|
86
|
+
- .rbenv-version
|
|
68
87
|
- .travis.yml
|
|
88
|
+
- CHANGELOG.md
|
|
69
89
|
- Gemfile
|
|
70
90
|
- Gemfile.lock
|
|
71
91
|
- LICENSE.md
|
|
@@ -79,7 +99,11 @@ files:
|
|
|
79
99
|
- lib/mongoid/userstamp/version.rb
|
|
80
100
|
- lib/mongoid_userstamp.rb
|
|
81
101
|
- mongoid_userstamp.gemspec
|
|
82
|
-
|
|
102
|
+
- spec/mongoid/userstamp_spec.rb
|
|
103
|
+
- spec/spec_helper.rb
|
|
104
|
+
- spec/support/book.rb
|
|
105
|
+
- spec/support/user.rb
|
|
106
|
+
homepage: https://github.com/tbpro/mongoid_userstamp
|
|
83
107
|
licenses:
|
|
84
108
|
- MIT
|
|
85
109
|
post_install_message:
|
|
@@ -94,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
94
118
|
version: '0'
|
|
95
119
|
segments:
|
|
96
120
|
- 0
|
|
97
|
-
hash:
|
|
121
|
+
hash: 4199627598995250851
|
|
98
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
123
|
none: false
|
|
100
124
|
requirements:
|
|
@@ -103,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
127
|
version: '0'
|
|
104
128
|
requirements: []
|
|
105
129
|
rubyforge_project:
|
|
106
|
-
rubygems_version: 1.8.
|
|
130
|
+
rubygems_version: 1.8.24
|
|
107
131
|
signing_key:
|
|
108
132
|
specification_version: 3
|
|
109
133
|
summary: Userstamp for created and updated columns within mongoid
|
data/.rvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
rvm use ruby-1.9.3-head@mongoid_userstamp --create
|