mongoid-paranoia 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - ruby-head
7
+
8
+ gemfile:
9
+ - Gemfile
10
+ - gemfiles/mongoid_master.gemfile
11
+
12
+ branches:
13
+ only:
14
+ - master
15
+
16
+ matrix:
17
+ allow_failures:
18
+ - rvm: ruby-head
19
+ - gemfile: gemfiles/mongoid_master.gemfile
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # Upcoming
2
+ * Fixes paths for Travis.
3
+
1
4
  # 0.2.0 (May 11, 2013)
2
5
  * Added info.
3
6
 
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
- ruby '1.9.3'
2
1
  source 'https://rubygems.org'
3
2
 
4
3
  gemspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mongoid-paranoia
1
+ # mongoid-paranoia [![Build Status](https://travis-ci.org/haihappen/mongoid-paranoia.png)](https://travis-ci.org/haihappen/mongoid-paranoia)
2
2
 
3
3
  **Important:** This gem is an extraction of [Mongoid::Paranoia](http://mongoid.org/en/mongoid/docs/extras.html#paranoia) from the official [mongoid](http://mongoid.org) gem. Since Mongoid::Paranoia will be removed in the upcoming `4.0.0` release of mongoid, this gem re-enables the functionality of paranoid documents.
4
4
 
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'mongoid', github: 'mongoid/mongoid'
4
+ gem 'activesupport', '4.0.0.rc1'
5
+
6
+ gem 'rspec'
7
+ gem 'rake'
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Paranoia
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
@@ -14,5 +14,5 @@ Gem::Specification.new do |gem|
14
14
  gem.require_path = 'lib'
15
15
 
16
16
  gem.add_dependency 'activesupport', '>= 3.0'
17
- gem.add_dependency 'mongoid', '~> 3.x'
17
+ gem.add_dependency 'mongoid', '>= 3.0', '< 3.1.4'
18
18
  end
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require_relative "../spec_helper"
2
2
 
3
3
  describe Mongoid::Paranoia do
4
4
 
data/spec/spec_helper.rb CHANGED
@@ -7,6 +7,8 @@ $LOAD_PATH.unshift(MODELS)
7
7
  require "mongoid"
8
8
  require "rspec"
9
9
 
10
+ require "mongoid/paranoia"
11
+
10
12
  # These environment variables can be set if wanting to test against a database
11
13
  # that is not on the local machine.
12
14
  ENV["MONGOID_SPEC_HOST"] ||= "localhost"
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: mongoid-paranoia
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mario Uher
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-11 00:00:00.000000000 Z
12
+ date: 2013-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -31,17 +31,23 @@ dependencies:
31
31
  prerelease: false
32
32
  version_requirements: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ~>
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '3.0'
37
+ - - <
35
38
  - !ruby/object:Gem::Version
36
- version: 3.x
39
+ version: 3.1.4
37
40
  none: false
38
41
  type: :runtime
39
42
  name: mongoid
40
43
  requirement: !ruby/object:Gem::Requirement
41
44
  requirements:
42
- - - ~>
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ - - <
43
49
  - !ruby/object:Gem::Version
44
- version: 3.x
50
+ version: 3.1.4
45
51
  none: false
46
52
  description: There may be times when you don't want documents to actually get deleted
47
53
  from the database, but "flagged" as deleted.
@@ -51,10 +57,12 @@ extensions: []
51
57
  extra_rdoc_files: []
52
58
  files:
53
59
  - .gitignore
60
+ - .travis.yml
54
61
  - CHANGELOG.md
55
62
  - Gemfile
56
63
  - README.md
57
64
  - Rakefile
65
+ - gemfiles/mongoid_master.gemfile
58
66
  - lib/mongoid/paranoia.rb
59
67
  - lib/mongoid/paranoia/version.rb
60
68
  - mongoid-paranoia.gemspec