mongoid-undo 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # 0.5.0 (February 14, 2013)
2
+ * Use Rake::FileList.
3
+ * \#1 Removed localization monkey patch. mongoid >= 3.0.10 is now required!
4
+
5
+ # 0.4.0 (December 31, 2012)
6
+ * Better specs structure.
7
+ * Use require_relative.
8
+
9
+ # 0.3.0 (December 22, 2012)
10
+ * Revert "Renamed action field to _action."
11
+
12
+ # 0.2.1 (December 22, 2012)
13
+ * Typo. Upps.
14
+
15
+ # 0.2.0 (December 22, 2012)
16
+ * Fixed weird looking README.md.
17
+
1
18
  # 0.1.0 (December 22, 2012)
2
19
  * Refactored specs.
3
20
  * Renamed action field to _action.
data/README.md CHANGED
@@ -84,7 +84,7 @@ gem 'mongoid-undo'
84
84
 
85
85
  (The MIT license)
86
86
 
87
- Copyright (c) 2012 Mario Uher
87
+ Copyright (c) 2012 - 2013 Mario Uher
88
88
 
89
89
  Permission is hereby granted, free of charge, to any person obtaining
90
90
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,8 +1,7 @@
1
- require 'rake'
2
1
  require 'rake/testtask'
3
2
 
4
3
  Rake::TestTask.new do |t|
5
- t.test_files = Dir.glob('spec/**/*_spec.rb')
4
+ t.test_files = FileList['spec/**/*_spec.rb']
6
5
  end
7
6
 
8
- task(default: :test)
7
+ task default: :test
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Undo
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
data/lib/mongoid/undo.rb CHANGED
@@ -1,19 +1,6 @@
1
1
  require 'active_support'
2
2
  require 'mongoid'
3
3
 
4
- module Mongoid::Fields
5
- class Localized
6
- def mongoize(object)
7
- if object.is_a? ::Hash
8
- object
9
- else
10
- { ::I18n.locale.to_s => type.mongoize(object) }
11
- end
12
- end
13
- end
14
- end
15
-
16
-
17
4
  module Mongoid
18
5
  module Undo
19
6
  extend ActiveSupport::Concern
data/mongoid-undo.gemspec CHANGED
@@ -14,5 +14,5 @@ Gem::Specification.new do |gem|
14
14
  gem.require_path = 'lib'
15
15
 
16
16
  gem.add_dependency 'activesupport'
17
- gem.add_dependency 'mongoid'
17
+ gem.add_dependency 'mongoid', '>= 3.0.10', '< 4.0'
18
18
  end
metadata CHANGED
@@ -2,25 +2,25 @@
2
2
  name: mongoid-undo
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mario Uher
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-31 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ prerelease: false
15
16
  version_requirements: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - ! '>='
18
19
  - !ruby/object:Gem::Version
19
20
  version: '0'
20
21
  none: false
21
- name: activesupport
22
22
  type: :runtime
23
- prerelease: false
23
+ name: activesupport
24
24
  requirement: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ! '>='
@@ -28,20 +28,26 @@ dependencies:
28
28
  version: '0'
29
29
  none: false
30
30
  - !ruby/object:Gem::Dependency
31
+ prerelease: false
31
32
  version_requirements: !ruby/object:Gem::Requirement
32
33
  requirements:
33
34
  - - ! '>='
34
35
  - !ruby/object:Gem::Version
35
- version: '0'
36
+ version: 3.0.10
37
+ - - <
38
+ - !ruby/object:Gem::Version
39
+ version: '4.0'
36
40
  none: false
37
- name: mongoid
38
41
  type: :runtime
39
- prerelease: false
42
+ name: mongoid
40
43
  requirement: !ruby/object:Gem::Requirement
41
44
  requirements:
42
45
  - - ! '>='
43
46
  - !ruby/object:Gem::Version
44
- version: '0'
47
+ version: 3.0.10
48
+ - - <
49
+ - !ruby/object:Gem::Version
50
+ version: '4.0'
45
51
  none: false
46
52
  description: mongoid-undo provides a super simple and easy to use undo system for
47
53
  Mongoid apps.
@@ -84,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
90
  none: false
85
91
  requirements: []
86
92
  rubyforge_project:
87
- rubygems_version: 1.8.23
93
+ rubygems_version: 1.8.25
88
94
  signing_key:
89
95
  specification_version: 3
90
96
  summary: Super simple undo for your Mongoid app.