mongoid_auto_increment_id 0.6.2 → 0.6.3

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: a92cc165e83e7d6a09d40aa92ef9d5d3b1e3d546
4
- data.tar.gz: 0e0aa1ed3b402d2622da2147a98de142d22c0244
3
+ metadata.gz: 434cdc91ec6eec48ebf757721283ea86f955ee66
4
+ data.tar.gz: 365e9a0e9f1836102ace998ae13ad136776bd628
5
5
  SHA512:
6
- metadata.gz: 7cc1a8f657acafe0897ccb7bbeb72d1a1385ea815fbad368313e1e2b59441406f002f8af5bebed1642b4494d4a42a842561d4bc40841fcd0b9219ccae01a5fb5
7
- data.tar.gz: e2a9ac097d382f3e6b10cbabe87459d101576e852098d0594d378681fd0c2eed9a64aa10e45eee66a03ae5ab59504cafa6029da17ba6d83564f2a3518098bf43
6
+ metadata.gz: 1b1b9085d50672f3c0fc382382ae4552c381aef716dce8f436a07eb8f74a6913edc2065e0e2960747e8b1b1a54b48b953f71f390480d2b877dd1f09c4c975dbb
7
+ data.tar.gz: d08f4a3c2a8dbae3742086541b3e03ca0e20e686bb71349329647ae05fe8f7b263150656f556576d960e253f61c4c8925da4a37fba582da2513037277e6b7f21
data/README.md CHANGED
@@ -4,13 +4,20 @@ Idea from MongoDB document: [How to Make an Auto Incrementing Field](http://www.
4
4
 
5
5
  ## Status
6
6
 
7
- [![CI Status](https://secure.travis-ci.org/huacnlee/mongoid_auto_increment_id.png)](http://travis-ci.org/huacnlee/mongoid_auto_increment_id)
7
+ - [![Gem Version](https://badge.fury.io/rb/mongoid_auto_increment_id.png)](https://rubygems.org/gems/mongoid_auto_increment_id)
8
+ - [![CI Status](https://api.travis-ci.org/huacnlee/mongoid_auto_increment_id.png)](http://travis-ci.org/huacnlee/mongoid_auto_increment_id)
8
9
 
9
10
  ## Installation
10
11
 
11
12
  ```ruby
12
- # Support Mongoid 3.0.0 - 4.0.0+
13
- gem 'mongoid_auto_increment_id', "0.6.0"
13
+ # Mongoid 3.0.x
14
+ gem 'mongoid_auto_increment_id', "0.6.1"
15
+
16
+ # Mongoid 3.1.0
17
+ gem 'mongoid_auto_increment_id', "0.6.2"
18
+
19
+ # Mongoid 4.0.0+
20
+ gem 'mongoid_auto_increment_id', "0.6.3"
14
21
  ```
15
22
 
16
23
  ## USAGE
@@ -15,7 +15,7 @@ module Mongoid
15
15
  # define Integer for id field
16
16
  included do
17
17
  Mongoid.register_model(self)
18
- field :_id, :type => Integer
18
+ field :_id, :type => Integer, :overwrite => true
19
19
  end
20
20
 
21
21
  # hack id nil when Document.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_auto_increment_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-22 00:00:00.000000000 Z
11
+ date: 2013-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid