mongoid_toggle 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MongoidToggle [![Build Status](https://secure.travis-ci.org/Langwhich/mongoid_toggle.png)](https://secure.travis-ci.org/Langwhich/mongoid_toggle.png)
1
+ # MongoidToggle [![Build Status](https://secure.travis-ci.org/Langwhich/mongoid_toggle.png)](https://secure.travis-ci.org/Langwhich/mongoid_toggle)
2
2
 
3
3
  MongoidToggle adds a simple function to mongoid documents to toggle boolean
4
4
  values with optional save for the record.
@@ -4,7 +4,7 @@ module Mongoid
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- PATCH = 0
7
+ PATCH = 1
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -5,12 +5,6 @@ module Mongoid
5
5
  autoload :Version, 'mongoid/toggle/version'
6
6
 
7
7
  included do
8
- end
9
-
10
- module ClassMethods
11
- end
12
-
13
- module InstanceMethods
14
8
  def toggle!(field_name)
15
9
  process_toggle(field_name)
16
10
  save
@@ -30,7 +24,7 @@ module Mongoid
30
24
 
31
25
  write_attribute(field_name, !read_attribute(field_name))
32
26
  end
33
- end
27
+ end
34
28
  end
35
29
  end
36
30
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mongoid_toggle"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Boerger", "Tim Rudat"]
12
- s.date = "2012-03-26"
12
+ s.date = "2012-04-03"
13
13
  s.email = "thomas.boerger@langwhich.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.md",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_toggle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-26 00:00:00.000000000 Z
13
+ date: 2012-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid
17
- requirement: &70346477903220 !ruby/object:Gem::Requirement
17
+ requirement: &70108106547540 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.4.7
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70346477903220
25
+ version_requirements: *70108106547540
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: redcarpet
28
- requirement: &70346477902620 !ruby/object:Gem::Requirement
28
+ requirement: &70108106451080 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 2.1.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70346477902620
36
+ version_requirements: *70108106451080
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: yard
39
- requirement: &70346477901780 !ruby/object:Gem::Requirement
39
+ requirement: &70108106450460 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 0.7.5
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70346477901780
47
+ version_requirements: *70108106450460
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: jeweler
50
- requirement: &70346477900860 !ruby/object:Gem::Requirement
50
+ requirement: &70108106449880 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: 1.8.3
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *70346477900860
58
+ version_requirements: *70108106449880
59
59
  description:
60
60
  email: thomas.boerger@langwhich.com
61
61
  executables: []
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: -2873932606155986534
94
+ hash: 4344124485814969012
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements: