mongoid-observers 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
 - data/.ruby-version +1 -1
 - data/.travis.yml +2 -6
 - data/Gemfile +10 -7
 - data/README.md +9 -6
 - data/Rakefile +5 -5
 - data/gemfiles/mongoid_4.gemfile +6 -4
 - data/gemfiles/mongoid_4.gemfile.lock +43 -58
 - data/gemfiles/mongoid_5.gemfile +6 -4
 - data/gemfiles/mongoid_5.gemfile.lock +47 -62
 - data/gemfiles/mongoid_6.gemfile +16 -0
 - data/gemfiles/mongoid_6.gemfile.lock +171 -0
 - data/lib/mongoid/observers/railtie.rb +3 -1
 - data/lib/mongoid/observers/version.rb +1 -1
 - data/mongoid-observers.gemspec +0 -4
 - data/spec/config/mongoid_6.yml +6 -0
 - data/spec/spec_helper.rb +6 -6
 - metadata +6 -44
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 3bde41fb061bedb4e9c9c056ff82fc0f7735a2f4
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3c724bbbf3a66120621797411b2d54aa80c76bf3
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 39f49c7766373bb1e00e12489e3bb68150746082c8c3aa9e248706db8846ba472bb31ad21d846b724b7ae5231bbf64ca76a6115c3857fe51db47d81f236002e7
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6747e080b04d84a60dc75a3b1f49de2165f9200af1fc7599507cf4f1b69a8fbd046676a80cc24b77d8875c607759324e7991b641f767b06f2c60f42f770380b9
         
     | 
    
        data/.ruby-version
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ruby-2.3. 
     | 
| 
      
 1 
     | 
    
         
            +
            ruby-2.3.1
         
     | 
    
        data/.travis.yml
    CHANGED
    
    | 
         @@ -1,11 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            services: mongodb
         
     | 
| 
       2 
2 
     | 
    
         
             
            language: ruby
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            script: "bundle exec rake spec"
         
     | 
| 
      
 3 
     | 
    
         
            +
            script: "bundle exec rake spec:mongoid_6"
         
     | 
| 
       5 
4 
     | 
    
         
             
            rvm:
         
     | 
| 
       6 
     | 
    
         
            -
              - 1.9.3
         
     | 
| 
       7 
     | 
    
         
            -
              - 2.0.0
         
     | 
| 
       8 
     | 
    
         
            -
              - 2.1.5
         
     | 
| 
       9 
5 
     | 
    
         
             
              - 2.3.0
         
     | 
| 
       10 
6 
     | 
    
         
             
            env:
         
     | 
| 
       11 
7 
     | 
    
         
             
              - CODECLIMATE_REPO_TOKEN=f506e465f1ed0571aeaa5e1cb9c14214c9f7567a92d1af70903f3d0bc8015ed6
         
     | 
| 
         @@ -13,4 +9,4 @@ notifications: 
     | 
|
| 
       13 
9 
     | 
    
         
             
              email: false
         
     | 
| 
       14 
10 
     | 
    
         
             
            addons:
         
     | 
| 
       15 
11 
     | 
    
         
             
              code_climate:
         
     | 
| 
       16 
     | 
    
         
            -
                repo_token: f506e465f1ed0571aeaa5e1cb9c14214c9f7567a92d1af70903f3d0bc8015ed6
         
     | 
| 
      
 12 
     | 
    
         
            +
                repo_token: f506e465f1ed0571aeaa5e1cb9c14214c9f7567a92d1af70903f3d0bc8015ed6
         
     | 
    
        data/Gemfile
    CHANGED
    
    | 
         @@ -1,14 +1,17 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            source 'https://rubygems.org'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            gem 'mongoid',          '~>  
     | 
| 
      
 3 
     | 
    
         
            +
            gem 'mongoid',          '~> 6.0.2'
         
     | 
| 
      
 4 
     | 
    
         
            +
            gem 'rails-observers',  github: 'rails/rails-observers'
         
     | 
| 
       4 
5 
     | 
    
         
             
            gem 'rake',             '~> 10.4.2'
         
     | 
| 
       5 
     | 
    
         
            -
            gem 'rspec',            '~> 3. 
     | 
| 
       6 
     | 
    
         
            -
            gem ' 
     | 
| 
      
 6 
     | 
    
         
            +
            gem 'rspec',            '~> 3.5.0'
         
     | 
| 
      
 7 
     | 
    
         
            +
            gem 'rspec-rails',      '~> 3.5.2'
         
     | 
| 
      
 8 
     | 
    
         
            +
            gem 'guard-rspec',      '~> 4.7.3'
         
     | 
| 
       7 
9 
     | 
    
         
             
            gem 'pry',              '~> 0.9.12.6'
         
     | 
| 
       8 
     | 
    
         
            -
            gem 'simplecov',        '~> 0. 
     | 
| 
       9 
     | 
    
         
            -
            gem 'coveralls',        '~> 0.8. 
     | 
| 
       10 
     | 
    
         
            -
            gem ' 
     | 
| 
       11 
     | 
    
         
            -
            gem ' 
     | 
| 
      
 10 
     | 
    
         
            +
            gem 'simplecov',        '~> 0.12.0'
         
     | 
| 
      
 11 
     | 
    
         
            +
            gem 'coveralls',        '~> 0.8.15', require: false
         
     | 
| 
      
 12 
     | 
    
         
            +
            gem 'railties',         '~> 5.0.0.1'
         
     | 
| 
      
 13 
     | 
    
         
            +
            gem 'ammeter',          '~> 1.1.4'
         
     | 
| 
      
 14 
     | 
    
         
            +
            gem 'bundler'
         
     | 
| 
       12 
15 
     | 
    
         | 
| 
       13 
16 
     | 
    
         
             
            # Specify your gem's dependencies in mongoid-observers.gemspec
         
     | 
| 
       14 
17 
     | 
    
         
             
            gemspec
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -4,17 +4,20 @@ Mongoid Observers (removed from core in Mongoid 4.0). Because this gem doesn't e 
     | 
|
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            ## Installation
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
            Add this line to your application's Gemfile:
         
     | 
| 
      
 7 
     | 
    
         
            +
            For Rails 5+, Add this line to your application's Gemfile:
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                gem 'mongoid-observers'
         
     | 
| 
      
 9 
     | 
    
         
            +
                gem 'mongoid-observers', '~> 0.3.0'
         
     | 
| 
      
 10 
     | 
    
         
            +
                gem 'rails-observers',  github: 'rails/rails-observers'
         
     | 
| 
       10 
11 
     | 
    
         | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
      
 12 
     | 
    
         
            +
            **NOTE:** `mongoid-observers` depends on `rails-observers` mostly, but it is not yet ready for a new release on Rails 5 yet, https://github.com/rails/rails-observers/issues/53.
         
     | 
| 
       12 
13 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
      
 14 
     | 
    
         
            +
            For Rails 4 and below, Add this line to your application's Gemfile:
         
     | 
| 
       14 
15 
     | 
    
         | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
      
 16 
     | 
    
         
            +
                gem 'mongoid-observers', '~> 0.2.0'
         
     | 
| 
       16 
17 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
      
 18 
     | 
    
         
            +
            And then execute:
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
                $ bundle
         
     | 
| 
       18 
21 
     | 
    
         | 
| 
       19 
22 
     | 
    
         
             
            ## Usage
         
     | 
| 
       20 
23 
     | 
    
         | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -10,19 +10,19 @@ end 
     | 
|
| 
       10 
10 
     | 
    
         
             
            task :default => "spec:all"
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
            namespace :spec do
         
     | 
| 
       13 
     | 
    
         
            -
              %w(mongoid_4 mongoid_5).each do |gemfile|
         
     | 
| 
      
 13 
     | 
    
         
            +
              %w(mongoid_4 mongoid_5 mongoid_6).each do |gemfile|
         
     | 
| 
       14 
14 
     | 
    
         
             
                desc "Run Tests against #{gemfile}"
         
     | 
| 
       15 
15 
     | 
    
         
             
                task gemfile do
         
     | 
| 
       16 
     | 
    
         
            -
                  sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
         
     | 
| 
      
 16 
     | 
    
         
            +
                  sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle install --quiet"
         
     | 
| 
       17 
17 
     | 
    
         
             
                  sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
         
     | 
| 
       18 
18 
     | 
    
         
             
                end
         
     | 
| 
       19 
19 
     | 
    
         
             
              end
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
              desc "Run Tests against rails versions"
         
     | 
| 
       22 
22 
     | 
    
         
             
              task :all do
         
     | 
| 
       23 
     | 
    
         
            -
                %w(mongoid_4 mongoid_5).each do |gemfile|
         
     | 
| 
       24 
     | 
    
         
            -
                  sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
         
     | 
| 
      
 23 
     | 
    
         
            +
                %w(mongoid_4 mongoid_5 mongoid_6).each do |gemfile|
         
     | 
| 
      
 24 
     | 
    
         
            +
                  sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle install --quiet"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
         
     | 
| 
       26 
26 
     | 
    
         
             
                end
         
     | 
| 
       27 
27 
     | 
    
         
             
              end
         
     | 
| 
       28 
     | 
    
         
            -
            end
         
     | 
| 
      
 28 
     | 
    
         
            +
            end
         
     | 
    
        data/gemfiles/mongoid_4.gemfile
    CHANGED
    
    | 
         @@ -1,13 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            source 'https://rubygems.org'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            gem 'mongoid',          '~> 4.0.2'
         
     | 
| 
      
 4 
     | 
    
         
            +
            gem 'rails-observers',  '~> 0.1.2'
         
     | 
| 
       4 
5 
     | 
    
         
             
            gem 'rake',             '~> 10.4.2'
         
     | 
| 
       5 
6 
     | 
    
         
             
            gem 'rspec',            '~> 3.1.0'
         
     | 
| 
       6 
7 
     | 
    
         
             
            gem 'guard-rspec',      '~> 4.6.4'
         
     | 
| 
       7 
8 
     | 
    
         
             
            gem 'pry',              '~> 0.9.12.6'
         
     | 
| 
       8 
     | 
    
         
            -
            gem 'simplecov',        '~> 0. 
     | 
| 
       9 
     | 
    
         
            -
            gem 'coveralls',        '~> 0.8. 
     | 
| 
       10 
     | 
    
         
            -
            gem ' 
     | 
| 
       11 
     | 
    
         
            -
            gem ' 
     | 
| 
      
 9 
     | 
    
         
            +
            gem 'simplecov',        '~> 0.12.0'
         
     | 
| 
      
 10 
     | 
    
         
            +
            gem 'coveralls',        '~> 0.8.15', require: false
         
     | 
| 
      
 11 
     | 
    
         
            +
            gem 'railties',         '~> 4.2.6'
         
     | 
| 
      
 12 
     | 
    
         
            +
            gem 'ammeter',          '~> 1.1.4'
         
     | 
| 
      
 13 
     | 
    
         
            +
            gem 'bundler'
         
     | 
| 
       12 
14 
     | 
    
         | 
| 
       13 
15 
     | 
    
         
             
            gemspec :path => '../'
         
     | 
| 
         @@ -1,62 +1,56 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            PATH
         
     | 
| 
       2 
2 
     | 
    
         
             
              remote: ../
         
     | 
| 
       3 
3 
     | 
    
         
             
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                mongoid-observers (0. 
     | 
| 
      
 4 
     | 
    
         
            +
                mongoid-observers (0.3.0)
         
     | 
| 
       5 
5 
     | 
    
         
             
                  mongoid (>= 4.0.0)
         
     | 
| 
       6 
     | 
    
         
            -
                  rails-observers (~> 0.1.2)
         
     | 
| 
       7 
6 
     | 
    
         | 
| 
       8 
7 
     | 
    
         
             
            GEM
         
     | 
| 
       9 
8 
     | 
    
         
             
              remote: https://rubygems.org/
         
     | 
| 
       10 
9 
     | 
    
         
             
              specs:
         
     | 
| 
       11 
     | 
    
         
            -
                actionpack (4.2. 
     | 
| 
       12 
     | 
    
         
            -
                  actionview (= 4.2. 
     | 
| 
       13 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 10 
     | 
    
         
            +
                actionpack (4.2.7.1)
         
     | 
| 
      
 11 
     | 
    
         
            +
                  actionview (= 4.2.7.1)
         
     | 
| 
      
 12 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       14 
13 
     | 
    
         
             
                  rack (~> 1.6)
         
     | 
| 
       15 
14 
     | 
    
         
             
                  rack-test (~> 0.6.2)
         
     | 
| 
       16 
15 
     | 
    
         
             
                  rails-dom-testing (~> 1.0, >= 1.0.5)
         
     | 
| 
       17 
16 
     | 
    
         
             
                  rails-html-sanitizer (~> 1.0, >= 1.0.2)
         
     | 
| 
       18 
     | 
    
         
            -
                actionview (4.2. 
     | 
| 
       19 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 17 
     | 
    
         
            +
                actionview (4.2.7.1)
         
     | 
| 
      
 18 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       20 
19 
     | 
    
         
             
                  builder (~> 3.1)
         
     | 
| 
       21 
20 
     | 
    
         
             
                  erubis (~> 2.7.0)
         
     | 
| 
       22 
21 
     | 
    
         
             
                  rails-dom-testing (~> 1.0, >= 1.0.5)
         
     | 
| 
       23 
22 
     | 
    
         
             
                  rails-html-sanitizer (~> 1.0, >= 1.0.2)
         
     | 
| 
       24 
     | 
    
         
            -
                activemodel (4.2. 
     | 
| 
       25 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 23 
     | 
    
         
            +
                activemodel (4.2.7.1)
         
     | 
| 
      
 24 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       26 
25 
     | 
    
         
             
                  builder (~> 3.1)
         
     | 
| 
       27 
     | 
    
         
            -
                activesupport (4.2. 
     | 
| 
      
 26 
     | 
    
         
            +
                activesupport (4.2.7.1)
         
     | 
| 
       28 
27 
     | 
    
         
             
                  i18n (~> 0.7)
         
     | 
| 
       29 
28 
     | 
    
         
             
                  json (~> 1.7, >= 1.7.7)
         
     | 
| 
       30 
29 
     | 
    
         
             
                  minitest (~> 5.1)
         
     | 
| 
       31 
30 
     | 
    
         
             
                  thread_safe (~> 0.3, >= 0.3.4)
         
     | 
| 
       32 
31 
     | 
    
         
             
                  tzinfo (~> 1.1)
         
     | 
| 
       33 
     | 
    
         
            -
                ammeter (1.1. 
     | 
| 
      
 32 
     | 
    
         
            +
                ammeter (1.1.4)
         
     | 
| 
       34 
33 
     | 
    
         
             
                  activesupport (>= 3.0)
         
     | 
| 
       35 
34 
     | 
    
         
             
                  railties (>= 3.0)
         
     | 
| 
       36 
35 
     | 
    
         
             
                  rspec-rails (>= 2.2)
         
     | 
| 
       37 
36 
     | 
    
         
             
                bson (3.2.6)
         
     | 
| 
       38 
37 
     | 
    
         
             
                builder (3.2.2)
         
     | 
| 
       39 
     | 
    
         
            -
                codeclimate-test-reporter (0.5.0)
         
     | 
| 
       40 
     | 
    
         
            -
                  simplecov (>= 0.7.1, < 1.0.0)
         
     | 
| 
       41 
38 
     | 
    
         
             
                coderay (1.1.1)
         
     | 
| 
       42 
39 
     | 
    
         
             
                connection_pool (2.2.0)
         
     | 
| 
       43 
     | 
    
         
            -
                coveralls (0.8. 
     | 
| 
       44 
     | 
    
         
            -
                  json ( 
     | 
| 
       45 
     | 
    
         
            -
                   
     | 
| 
       46 
     | 
    
         
            -
                  simplecov (~> 0.10.0)
         
     | 
| 
      
 40 
     | 
    
         
            +
                coveralls (0.8.15)
         
     | 
| 
      
 41 
     | 
    
         
            +
                  json (>= 1.8, < 3)
         
     | 
| 
      
 42 
     | 
    
         
            +
                  simplecov (~> 0.12.0)
         
     | 
| 
       47 
43 
     | 
    
         
             
                  term-ansicolor (~> 1.3)
         
     | 
| 
       48 
44 
     | 
    
         
             
                  thor (~> 0.19.1)
         
     | 
| 
       49 
     | 
    
         
            -
                  tins ( 
     | 
| 
      
 45 
     | 
    
         
            +
                  tins (>= 1.6.0, < 2)
         
     | 
| 
       50 
46 
     | 
    
         
             
                diff-lcs (1.2.5)
         
     | 
| 
       51 
47 
     | 
    
         
             
                docile (1.1.5)
         
     | 
| 
       52 
     | 
    
         
            -
                domain_name (0.5.20160310)
         
     | 
| 
       53 
     | 
    
         
            -
                  unf (>= 0.0.5, < 1.0.0)
         
     | 
| 
       54 
48 
     | 
    
         
             
                erubis (2.7.0)
         
     | 
| 
       55 
     | 
    
         
            -
                ffi (1.9. 
     | 
| 
      
 49 
     | 
    
         
            +
                ffi (1.9.14)
         
     | 
| 
       56 
50 
     | 
    
         
             
                formatador (0.2.5)
         
     | 
| 
       57 
     | 
    
         
            -
                guard (2. 
     | 
| 
      
 51 
     | 
    
         
            +
                guard (2.14.0)
         
     | 
| 
       58 
52 
     | 
    
         
             
                  formatador (>= 0.2.4)
         
     | 
| 
       59 
     | 
    
         
            -
                  listen (>= 2.7,  
     | 
| 
      
 53 
     | 
    
         
            +
                  listen (>= 2.7, < 4.0)
         
     | 
| 
       60 
54 
     | 
    
         
             
                  lumberjack (~> 1.0)
         
     | 
| 
       61 
55 
     | 
    
         
             
                  nenv (~> 0.1)
         
     | 
| 
       62 
56 
     | 
    
         
             
                  notiffany (~> 0.0)
         
     | 
| 
         @@ -68,20 +62,18 @@ GEM 
     | 
|
| 
       68 
62 
     | 
    
         
             
                  guard (~> 2.1)
         
     | 
| 
       69 
63 
     | 
    
         
             
                  guard-compat (~> 1.1)
         
     | 
| 
       70 
64 
     | 
    
         
             
                  rspec (>= 2.99.0, < 4.0)
         
     | 
| 
       71 
     | 
    
         
            -
                http-cookie (1.0.2)
         
     | 
| 
       72 
     | 
    
         
            -
                  domain_name (~> 0.5)
         
     | 
| 
       73 
65 
     | 
    
         
             
                i18n (0.7.0)
         
     | 
| 
       74 
66 
     | 
    
         
             
                json (1.8.3)
         
     | 
| 
       75 
     | 
    
         
            -
                listen (3. 
     | 
| 
       76 
     | 
    
         
            -
                  rb-fsevent (>= 0.9. 
     | 
| 
       77 
     | 
    
         
            -
                  rb-inotify (>= 0.9.7)
         
     | 
| 
      
 67 
     | 
    
         
            +
                listen (3.1.5)
         
     | 
| 
      
 68 
     | 
    
         
            +
                  rb-fsevent (~> 0.9, >= 0.9.4)
         
     | 
| 
      
 69 
     | 
    
         
            +
                  rb-inotify (~> 0.9, >= 0.9.7)
         
     | 
| 
      
 70 
     | 
    
         
            +
                  ruby_dep (~> 1.2)
         
     | 
| 
       78 
71 
     | 
    
         
             
                loofah (2.0.3)
         
     | 
| 
       79 
72 
     | 
    
         
             
                  nokogiri (>= 1.5.9)
         
     | 
| 
       80 
73 
     | 
    
         
             
                lumberjack (1.0.10)
         
     | 
| 
       81 
74 
     | 
    
         
             
                method_source (0.8.2)
         
     | 
| 
       82 
     | 
    
         
            -
                 
     | 
| 
       83 
     | 
    
         
            -
                 
     | 
| 
       84 
     | 
    
         
            -
                minitest (5.8.4)
         
     | 
| 
      
 75 
     | 
    
         
            +
                mini_portile2 (2.1.0)
         
     | 
| 
      
 76 
     | 
    
         
            +
                minitest (5.9.1)
         
     | 
| 
       85 
77 
     | 
    
         
             
                mongoid (4.0.2)
         
     | 
| 
       86 
78 
     | 
    
         
             
                  activemodel (~> 4.0)
         
     | 
| 
       87 
79 
     | 
    
         
             
                  moped (~> 2.0.0)
         
     | 
| 
         @@ -92,14 +84,13 @@ GEM 
     | 
|
| 
       92 
84 
     | 
    
         
             
                  connection_pool (~> 2.0)
         
     | 
| 
       93 
85 
     | 
    
         
             
                  optionable (~> 0.2.0)
         
     | 
| 
       94 
86 
     | 
    
         
             
                nenv (0.3.0)
         
     | 
| 
       95 
     | 
    
         
            -
                 
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
                notiffany (0.0.8)
         
     | 
| 
      
 87 
     | 
    
         
            +
                nokogiri (1.6.8.1)
         
     | 
| 
      
 88 
     | 
    
         
            +
                  mini_portile2 (~> 2.1.0)
         
     | 
| 
      
 89 
     | 
    
         
            +
                notiffany (0.1.1)
         
     | 
| 
       99 
90 
     | 
    
         
             
                  nenv (~> 0.1)
         
     | 
| 
       100 
91 
     | 
    
         
             
                  shellany (~> 0.0)
         
     | 
| 
       101 
92 
     | 
    
         
             
                optionable (0.2.0)
         
     | 
| 
       102 
     | 
    
         
            -
                origin (2.2. 
     | 
| 
      
 93 
     | 
    
         
            +
                origin (2.2.2)
         
     | 
| 
       103 
94 
     | 
    
         
             
                pry (0.9.12.6)
         
     | 
| 
       104 
95 
     | 
    
         
             
                  coderay (~> 1.0)
         
     | 
| 
       105 
96 
     | 
    
         
             
                  method_source (~> 0.8)
         
     | 
| 
         @@ -117,19 +108,15 @@ GEM 
     | 
|
| 
       117 
108 
     | 
    
         
             
                  loofah (~> 2.0)
         
     | 
| 
       118 
109 
     | 
    
         
             
                rails-observers (0.1.2)
         
     | 
| 
       119 
110 
     | 
    
         
             
                  activemodel (~> 4.0)
         
     | 
| 
       120 
     | 
    
         
            -
                railties (4.2. 
     | 
| 
       121 
     | 
    
         
            -
                  actionpack (= 4.2. 
     | 
| 
       122 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 111 
     | 
    
         
            +
                railties (4.2.7.1)
         
     | 
| 
      
 112 
     | 
    
         
            +
                  actionpack (= 4.2.7.1)
         
     | 
| 
      
 113 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       123 
114 
     | 
    
         
             
                  rake (>= 0.8.7)
         
     | 
| 
       124 
115 
     | 
    
         
             
                  thor (>= 0.18.1, < 2.0)
         
     | 
| 
       125 
116 
     | 
    
         
             
                rake (10.4.2)
         
     | 
| 
       126 
     | 
    
         
            -
                rb-fsevent (0.9. 
     | 
| 
      
 117 
     | 
    
         
            +
                rb-fsevent (0.9.8)
         
     | 
| 
       127 
118 
     | 
    
         
             
                rb-inotify (0.9.7)
         
     | 
| 
       128 
119 
     | 
    
         
             
                  ffi (>= 0.5.0)
         
     | 
| 
       129 
     | 
    
         
            -
                rest-client (1.8.0)
         
     | 
| 
       130 
     | 
    
         
            -
                  http-cookie (>= 1.0.2, < 2.0)
         
     | 
| 
       131 
     | 
    
         
            -
                  mime-types (>= 1.16, < 3.0)
         
     | 
| 
       132 
     | 
    
         
            -
                  netrc (~> 0.7)
         
     | 
| 
       133 
120 
     | 
    
         
             
                rspec (3.1.0)
         
     | 
| 
       134 
121 
     | 
    
         
             
                  rspec-core (~> 3.1.0)
         
     | 
| 
       135 
122 
     | 
    
         
             
                  rspec-expectations (~> 3.1.0)
         
     | 
| 
         @@ -150,40 +137,38 @@ GEM 
     | 
|
| 
       150 
137 
     | 
    
         
             
                  rspec-mocks (~> 3.1.0)
         
     | 
| 
       151 
138 
     | 
    
         
             
                  rspec-support (~> 3.1.0)
         
     | 
| 
       152 
139 
     | 
    
         
             
                rspec-support (3.1.2)
         
     | 
| 
      
 140 
     | 
    
         
            +
                ruby_dep (1.5.0)
         
     | 
| 
       153 
141 
     | 
    
         
             
                shellany (0.0.1)
         
     | 
| 
       154 
     | 
    
         
            -
                simplecov (0. 
     | 
| 
      
 142 
     | 
    
         
            +
                simplecov (0.12.0)
         
     | 
| 
       155 
143 
     | 
    
         
             
                  docile (~> 1.1.0)
         
     | 
| 
       156 
     | 
    
         
            -
                  json ( 
     | 
| 
      
 144 
     | 
    
         
            +
                  json (>= 1.8, < 3)
         
     | 
| 
       157 
145 
     | 
    
         
             
                  simplecov-html (~> 0.10.0)
         
     | 
| 
       158 
146 
     | 
    
         
             
                simplecov-html (0.10.0)
         
     | 
| 
       159 
147 
     | 
    
         
             
                slop (3.6.0)
         
     | 
| 
       160 
     | 
    
         
            -
                term-ansicolor (1. 
     | 
| 
      
 148 
     | 
    
         
            +
                term-ansicolor (1.4.0)
         
     | 
| 
       161 
149 
     | 
    
         
             
                  tins (~> 1.0)
         
     | 
| 
       162 
150 
     | 
    
         
             
                thor (0.19.1)
         
     | 
| 
       163 
151 
     | 
    
         
             
                thread_safe (0.3.5)
         
     | 
| 
       164 
     | 
    
         
            -
                tins (1. 
     | 
| 
      
 152 
     | 
    
         
            +
                tins (1.12.0)
         
     | 
| 
       165 
153 
     | 
    
         
             
                tzinfo (1.2.2)
         
     | 
| 
       166 
154 
     | 
    
         
             
                  thread_safe (~> 0.1)
         
     | 
| 
       167 
     | 
    
         
            -
                unf (0.1.4)
         
     | 
| 
       168 
     | 
    
         
            -
                  unf_ext
         
     | 
| 
       169 
     | 
    
         
            -
                unf_ext (0.0.7.2)
         
     | 
| 
       170 
155 
     | 
    
         | 
| 
       171 
156 
     | 
    
         
             
            PLATFORMS
         
     | 
| 
       172 
157 
     | 
    
         
             
              ruby
         
     | 
| 
       173 
158 
     | 
    
         | 
| 
       174 
159 
     | 
    
         
             
            DEPENDENCIES
         
     | 
| 
       175 
     | 
    
         
            -
              ammeter (~> 1.1. 
     | 
| 
       176 
     | 
    
         
            -
              bundler 
     | 
| 
       177 
     | 
    
         
            -
               
     | 
| 
       178 
     | 
    
         
            -
              coveralls (~> 0.8.2)
         
     | 
| 
      
 160 
     | 
    
         
            +
              ammeter (~> 1.1.4)
         
     | 
| 
      
 161 
     | 
    
         
            +
              bundler
         
     | 
| 
      
 162 
     | 
    
         
            +
              coveralls (~> 0.8.15)
         
     | 
| 
       179 
163 
     | 
    
         
             
              guard-rspec (~> 4.6.4)
         
     | 
| 
       180 
164 
     | 
    
         
             
              mongoid (~> 4.0.2)
         
     | 
| 
       181 
165 
     | 
    
         
             
              mongoid-observers!
         
     | 
| 
       182 
166 
     | 
    
         
             
              pry (~> 0.9.12.6)
         
     | 
| 
       183 
     | 
    
         
            -
               
     | 
| 
      
 167 
     | 
    
         
            +
              rails-observers (~> 0.1.2)
         
     | 
| 
      
 168 
     | 
    
         
            +
              railties (~> 4.2.6)
         
     | 
| 
       184 
169 
     | 
    
         
             
              rake (~> 10.4.2)
         
     | 
| 
       185 
170 
     | 
    
         
             
              rspec (~> 3.1.0)
         
     | 
| 
       186 
     | 
    
         
            -
              simplecov (~> 0. 
     | 
| 
      
 171 
     | 
    
         
            +
              simplecov (~> 0.12.0)
         
     | 
| 
       187 
172 
     | 
    
         | 
| 
       188 
173 
     | 
    
         
             
            BUNDLED WITH
         
     | 
| 
       189 
     | 
    
         
            -
               1. 
     | 
| 
      
 174 
     | 
    
         
            +
               1.13.6
         
     | 
    
        data/gemfiles/mongoid_5.gemfile
    CHANGED
    
    | 
         @@ -1,13 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            source 'https://rubygems.org'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            gem 'mongoid',          '~> 5.1.2'
         
     | 
| 
      
 4 
     | 
    
         
            +
            gem 'rails-observers',  '~> 0.1.2'
         
     | 
| 
       4 
5 
     | 
    
         
             
            gem 'rake',             '~> 10.4.2'
         
     | 
| 
       5 
6 
     | 
    
         
             
            gem 'rspec',            '~> 3.1.0'
         
     | 
| 
       6 
7 
     | 
    
         
             
            gem 'guard-rspec',      '~> 4.6.4'
         
     | 
| 
       7 
8 
     | 
    
         
             
            gem 'pry',              '~> 0.9.12.6'
         
     | 
| 
       8 
     | 
    
         
            -
            gem 'simplecov',        '~> 0. 
     | 
| 
       9 
     | 
    
         
            -
            gem 'coveralls',        '~> 0.8. 
     | 
| 
       10 
     | 
    
         
            -
            gem ' 
     | 
| 
       11 
     | 
    
         
            -
            gem ' 
     | 
| 
      
 9 
     | 
    
         
            +
            gem 'simplecov',        '~> 0.12.0'
         
     | 
| 
      
 10 
     | 
    
         
            +
            gem 'coveralls',        '~> 0.8.15', require: false
         
     | 
| 
      
 11 
     | 
    
         
            +
            gem 'railties',         '~> 4.2.6'
         
     | 
| 
      
 12 
     | 
    
         
            +
            gem 'ammeter',          '~> 1.1.4'
         
     | 
| 
      
 13 
     | 
    
         
            +
            gem 'bundler'
         
     | 
| 
       12 
14 
     | 
    
         | 
| 
       13 
15 
     | 
    
         
             
            gemspec :path => '../'
         
     | 
| 
         @@ -1,61 +1,55 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            PATH
         
     | 
| 
       2 
2 
     | 
    
         
             
              remote: ../
         
     | 
| 
       3 
3 
     | 
    
         
             
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                mongoid-observers (0. 
     | 
| 
      
 4 
     | 
    
         
            +
                mongoid-observers (0.3.0)
         
     | 
| 
       5 
5 
     | 
    
         
             
                  mongoid (>= 4.0.0)
         
     | 
| 
       6 
     | 
    
         
            -
                  rails-observers (~> 0.1.2)
         
     | 
| 
       7 
6 
     | 
    
         | 
| 
       8 
7 
     | 
    
         
             
            GEM
         
     | 
| 
       9 
8 
     | 
    
         
             
              remote: https://rubygems.org/
         
     | 
| 
       10 
9 
     | 
    
         
             
              specs:
         
     | 
| 
       11 
     | 
    
         
            -
                actionpack (4.2. 
     | 
| 
       12 
     | 
    
         
            -
                  actionview (= 4.2. 
     | 
| 
       13 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 10 
     | 
    
         
            +
                actionpack (4.2.7.1)
         
     | 
| 
      
 11 
     | 
    
         
            +
                  actionview (= 4.2.7.1)
         
     | 
| 
      
 12 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       14 
13 
     | 
    
         
             
                  rack (~> 1.6)
         
     | 
| 
       15 
14 
     | 
    
         
             
                  rack-test (~> 0.6.2)
         
     | 
| 
       16 
15 
     | 
    
         
             
                  rails-dom-testing (~> 1.0, >= 1.0.5)
         
     | 
| 
       17 
16 
     | 
    
         
             
                  rails-html-sanitizer (~> 1.0, >= 1.0.2)
         
     | 
| 
       18 
     | 
    
         
            -
                actionview (4.2. 
     | 
| 
       19 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 17 
     | 
    
         
            +
                actionview (4.2.7.1)
         
     | 
| 
      
 18 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       20 
19 
     | 
    
         
             
                  builder (~> 3.1)
         
     | 
| 
       21 
20 
     | 
    
         
             
                  erubis (~> 2.7.0)
         
     | 
| 
       22 
21 
     | 
    
         
             
                  rails-dom-testing (~> 1.0, >= 1.0.5)
         
     | 
| 
       23 
22 
     | 
    
         
             
                  rails-html-sanitizer (~> 1.0, >= 1.0.2)
         
     | 
| 
       24 
     | 
    
         
            -
                activemodel (4.2. 
     | 
| 
       25 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 23 
     | 
    
         
            +
                activemodel (4.2.7.1)
         
     | 
| 
      
 24 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       26 
25 
     | 
    
         
             
                  builder (~> 3.1)
         
     | 
| 
       27 
     | 
    
         
            -
                activesupport (4.2. 
     | 
| 
      
 26 
     | 
    
         
            +
                activesupport (4.2.7.1)
         
     | 
| 
       28 
27 
     | 
    
         
             
                  i18n (~> 0.7)
         
     | 
| 
       29 
28 
     | 
    
         
             
                  json (~> 1.7, >= 1.7.7)
         
     | 
| 
       30 
29 
     | 
    
         
             
                  minitest (~> 5.1)
         
     | 
| 
       31 
30 
     | 
    
         
             
                  thread_safe (~> 0.3, >= 0.3.4)
         
     | 
| 
       32 
31 
     | 
    
         
             
                  tzinfo (~> 1.1)
         
     | 
| 
       33 
     | 
    
         
            -
                ammeter (1.1. 
     | 
| 
      
 32 
     | 
    
         
            +
                ammeter (1.1.4)
         
     | 
| 
       34 
33 
     | 
    
         
             
                  activesupport (>= 3.0)
         
     | 
| 
       35 
34 
     | 
    
         
             
                  railties (>= 3.0)
         
     | 
| 
       36 
35 
     | 
    
         
             
                  rspec-rails (>= 2.2)
         
     | 
| 
       37 
     | 
    
         
            -
                bson (4. 
     | 
| 
      
 36 
     | 
    
         
            +
                bson (4.1.1)
         
     | 
| 
       38 
37 
     | 
    
         
             
                builder (3.2.2)
         
     | 
| 
       39 
     | 
    
         
            -
                codeclimate-test-reporter (0.5.0)
         
     | 
| 
       40 
     | 
    
         
            -
                  simplecov (>= 0.7.1, < 1.0.0)
         
     | 
| 
       41 
38 
     | 
    
         
             
                coderay (1.1.1)
         
     | 
| 
       42 
     | 
    
         
            -
                coveralls (0.8. 
     | 
| 
       43 
     | 
    
         
            -
                  json ( 
     | 
| 
       44 
     | 
    
         
            -
                   
     | 
| 
       45 
     | 
    
         
            -
                  simplecov (~> 0.10.0)
         
     | 
| 
      
 39 
     | 
    
         
            +
                coveralls (0.8.15)
         
     | 
| 
      
 40 
     | 
    
         
            +
                  json (>= 1.8, < 3)
         
     | 
| 
      
 41 
     | 
    
         
            +
                  simplecov (~> 0.12.0)
         
     | 
| 
       46 
42 
     | 
    
         
             
                  term-ansicolor (~> 1.3)
         
     | 
| 
       47 
43 
     | 
    
         
             
                  thor (~> 0.19.1)
         
     | 
| 
       48 
     | 
    
         
            -
                  tins ( 
     | 
| 
      
 44 
     | 
    
         
            +
                  tins (>= 1.6.0, < 2)
         
     | 
| 
       49 
45 
     | 
    
         
             
                diff-lcs (1.2.5)
         
     | 
| 
       50 
46 
     | 
    
         
             
                docile (1.1.5)
         
     | 
| 
       51 
     | 
    
         
            -
                domain_name (0.5.20160310)
         
     | 
| 
       52 
     | 
    
         
            -
                  unf (>= 0.0.5, < 1.0.0)
         
     | 
| 
       53 
47 
     | 
    
         
             
                erubis (2.7.0)
         
     | 
| 
       54 
     | 
    
         
            -
                ffi (1.9. 
     | 
| 
      
 48 
     | 
    
         
            +
                ffi (1.9.14)
         
     | 
| 
       55 
49 
     | 
    
         
             
                formatador (0.2.5)
         
     | 
| 
       56 
     | 
    
         
            -
                guard (2. 
     | 
| 
      
 50 
     | 
    
         
            +
                guard (2.14.0)
         
     | 
| 
       57 
51 
     | 
    
         
             
                  formatador (>= 0.2.4)
         
     | 
| 
       58 
     | 
    
         
            -
                  listen (>= 2.7,  
     | 
| 
      
 52 
     | 
    
         
            +
                  listen (>= 2.7, < 4.0)
         
     | 
| 
       59 
53 
     | 
    
         
             
                  lumberjack (~> 1.0)
         
     | 
| 
       60 
54 
     | 
    
         
             
                  nenv (~> 0.1)
         
     | 
| 
       61 
55 
     | 
    
         
             
                  notiffany (~> 0.0)
         
     | 
| 
         @@ -67,35 +61,32 @@ GEM 
     | 
|
| 
       67 
61 
     | 
    
         
             
                  guard (~> 2.1)
         
     | 
| 
       68 
62 
     | 
    
         
             
                  guard-compat (~> 1.1)
         
     | 
| 
       69 
63 
     | 
    
         
             
                  rspec (>= 2.99.0, < 4.0)
         
     | 
| 
       70 
     | 
    
         
            -
                http-cookie (1.0.2)
         
     | 
| 
       71 
     | 
    
         
            -
                  domain_name (~> 0.5)
         
     | 
| 
       72 
64 
     | 
    
         
             
                i18n (0.7.0)
         
     | 
| 
       73 
65 
     | 
    
         
             
                json (1.8.3)
         
     | 
| 
       74 
     | 
    
         
            -
                listen (3. 
     | 
| 
       75 
     | 
    
         
            -
                  rb-fsevent (>= 0.9. 
     | 
| 
       76 
     | 
    
         
            -
                  rb-inotify (>= 0.9.7)
         
     | 
| 
      
 66 
     | 
    
         
            +
                listen (3.1.5)
         
     | 
| 
      
 67 
     | 
    
         
            +
                  rb-fsevent (~> 0.9, >= 0.9.4)
         
     | 
| 
      
 68 
     | 
    
         
            +
                  rb-inotify (~> 0.9, >= 0.9.7)
         
     | 
| 
      
 69 
     | 
    
         
            +
                  ruby_dep (~> 1.2)
         
     | 
| 
       77 
70 
     | 
    
         
             
                loofah (2.0.3)
         
     | 
| 
       78 
71 
     | 
    
         
             
                  nokogiri (>= 1.5.9)
         
     | 
| 
       79 
72 
     | 
    
         
             
                lumberjack (1.0.10)
         
     | 
| 
       80 
73 
     | 
    
         
             
                method_source (0.8.2)
         
     | 
| 
       81 
     | 
    
         
            -
                 
     | 
| 
       82 
     | 
    
         
            -
                 
     | 
| 
       83 
     | 
    
         
            -
                 
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
       85 
     | 
    
         
            -
             
     | 
| 
       86 
     | 
    
         
            -
                mongoid (5.1.2)
         
     | 
| 
      
 74 
     | 
    
         
            +
                mini_portile2 (2.1.0)
         
     | 
| 
      
 75 
     | 
    
         
            +
                minitest (5.9.1)
         
     | 
| 
      
 76 
     | 
    
         
            +
                mongo (2.3.0)
         
     | 
| 
      
 77 
     | 
    
         
            +
                  bson (~> 4.1)
         
     | 
| 
      
 78 
     | 
    
         
            +
                mongoid (5.1.5)
         
     | 
| 
       87 
79 
     | 
    
         
             
                  activemodel (~> 4.0)
         
     | 
| 
       88 
80 
     | 
    
         
             
                  mongo (~> 2.1)
         
     | 
| 
       89 
81 
     | 
    
         
             
                  origin (~> 2.2)
         
     | 
| 
       90 
82 
     | 
    
         
             
                  tzinfo (>= 0.3.37)
         
     | 
| 
       91 
83 
     | 
    
         
             
                nenv (0.3.0)
         
     | 
| 
       92 
     | 
    
         
            -
                 
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
       94 
     | 
    
         
            -
             
     | 
| 
       95 
     | 
    
         
            -
                notiffany (0.0.8)
         
     | 
| 
      
 84 
     | 
    
         
            +
                nokogiri (1.6.8.1)
         
     | 
| 
      
 85 
     | 
    
         
            +
                  mini_portile2 (~> 2.1.0)
         
     | 
| 
      
 86 
     | 
    
         
            +
                notiffany (0.1.1)
         
     | 
| 
       96 
87 
     | 
    
         
             
                  nenv (~> 0.1)
         
     | 
| 
       97 
88 
     | 
    
         
             
                  shellany (~> 0.0)
         
     | 
| 
       98 
     | 
    
         
            -
                origin (2.2. 
     | 
| 
      
 89 
     | 
    
         
            +
                origin (2.2.2)
         
     | 
| 
       99 
90 
     | 
    
         
             
                pry (0.9.12.6)
         
     | 
| 
       100 
91 
     | 
    
         
             
                  coderay (~> 1.0)
         
     | 
| 
       101 
92 
     | 
    
         
             
                  method_source (~> 0.8)
         
     | 
| 
         @@ -113,19 +104,15 @@ GEM 
     | 
|
| 
       113 
104 
     | 
    
         
             
                  loofah (~> 2.0)
         
     | 
| 
       114 
105 
     | 
    
         
             
                rails-observers (0.1.2)
         
     | 
| 
       115 
106 
     | 
    
         
             
                  activemodel (~> 4.0)
         
     | 
| 
       116 
     | 
    
         
            -
                railties (4.2. 
     | 
| 
       117 
     | 
    
         
            -
                  actionpack (= 4.2. 
     | 
| 
       118 
     | 
    
         
            -
                  activesupport (= 4.2. 
     | 
| 
      
 107 
     | 
    
         
            +
                railties (4.2.7.1)
         
     | 
| 
      
 108 
     | 
    
         
            +
                  actionpack (= 4.2.7.1)
         
     | 
| 
      
 109 
     | 
    
         
            +
                  activesupport (= 4.2.7.1)
         
     | 
| 
       119 
110 
     | 
    
         
             
                  rake (>= 0.8.7)
         
     | 
| 
       120 
111 
     | 
    
         
             
                  thor (>= 0.18.1, < 2.0)
         
     | 
| 
       121 
112 
     | 
    
         
             
                rake (10.4.2)
         
     | 
| 
       122 
     | 
    
         
            -
                rb-fsevent (0.9. 
     | 
| 
      
 113 
     | 
    
         
            +
                rb-fsevent (0.9.8)
         
     | 
| 
       123 
114 
     | 
    
         
             
                rb-inotify (0.9.7)
         
     | 
| 
       124 
115 
     | 
    
         
             
                  ffi (>= 0.5.0)
         
     | 
| 
       125 
     | 
    
         
            -
                rest-client (1.8.0)
         
     | 
| 
       126 
     | 
    
         
            -
                  http-cookie (>= 1.0.2, < 2.0)
         
     | 
| 
       127 
     | 
    
         
            -
                  mime-types (>= 1.16, < 3.0)
         
     | 
| 
       128 
     | 
    
         
            -
                  netrc (~> 0.7)
         
     | 
| 
       129 
116 
     | 
    
         
             
                rspec (3.1.0)
         
     | 
| 
       130 
117 
     | 
    
         
             
                  rspec-core (~> 3.1.0)
         
     | 
| 
       131 
118 
     | 
    
         
             
                  rspec-expectations (~> 3.1.0)
         
     | 
| 
         @@ -146,40 +133,38 @@ GEM 
     | 
|
| 
       146 
133 
     | 
    
         
             
                  rspec-mocks (~> 3.1.0)
         
     | 
| 
       147 
134 
     | 
    
         
             
                  rspec-support (~> 3.1.0)
         
     | 
| 
       148 
135 
     | 
    
         
             
                rspec-support (3.1.2)
         
     | 
| 
      
 136 
     | 
    
         
            +
                ruby_dep (1.5.0)
         
     | 
| 
       149 
137 
     | 
    
         
             
                shellany (0.0.1)
         
     | 
| 
       150 
     | 
    
         
            -
                simplecov (0. 
     | 
| 
      
 138 
     | 
    
         
            +
                simplecov (0.12.0)
         
     | 
| 
       151 
139 
     | 
    
         
             
                  docile (~> 1.1.0)
         
     | 
| 
       152 
     | 
    
         
            -
                  json ( 
     | 
| 
      
 140 
     | 
    
         
            +
                  json (>= 1.8, < 3)
         
     | 
| 
       153 
141 
     | 
    
         
             
                  simplecov-html (~> 0.10.0)
         
     | 
| 
       154 
142 
     | 
    
         
             
                simplecov-html (0.10.0)
         
     | 
| 
       155 
143 
     | 
    
         
             
                slop (3.6.0)
         
     | 
| 
       156 
     | 
    
         
            -
                term-ansicolor (1. 
     | 
| 
      
 144 
     | 
    
         
            +
                term-ansicolor (1.4.0)
         
     | 
| 
       157 
145 
     | 
    
         
             
                  tins (~> 1.0)
         
     | 
| 
       158 
146 
     | 
    
         
             
                thor (0.19.1)
         
     | 
| 
       159 
147 
     | 
    
         
             
                thread_safe (0.3.5)
         
     | 
| 
       160 
     | 
    
         
            -
                tins (1. 
     | 
| 
      
 148 
     | 
    
         
            +
                tins (1.12.0)
         
     | 
| 
       161 
149 
     | 
    
         
             
                tzinfo (1.2.2)
         
     | 
| 
       162 
150 
     | 
    
         
             
                  thread_safe (~> 0.1)
         
     | 
| 
       163 
     | 
    
         
            -
                unf (0.1.4)
         
     | 
| 
       164 
     | 
    
         
            -
                  unf_ext
         
     | 
| 
       165 
     | 
    
         
            -
                unf_ext (0.0.7.2)
         
     | 
| 
       166 
151 
     | 
    
         | 
| 
       167 
152 
     | 
    
         
             
            PLATFORMS
         
     | 
| 
       168 
153 
     | 
    
         
             
              ruby
         
     | 
| 
       169 
154 
     | 
    
         | 
| 
       170 
155 
     | 
    
         
             
            DEPENDENCIES
         
     | 
| 
       171 
     | 
    
         
            -
              ammeter (~> 1.1. 
     | 
| 
       172 
     | 
    
         
            -
              bundler 
     | 
| 
       173 
     | 
    
         
            -
               
     | 
| 
       174 
     | 
    
         
            -
              coveralls (~> 0.8.2)
         
     | 
| 
      
 156 
     | 
    
         
            +
              ammeter (~> 1.1.4)
         
     | 
| 
      
 157 
     | 
    
         
            +
              bundler
         
     | 
| 
      
 158 
     | 
    
         
            +
              coveralls (~> 0.8.15)
         
     | 
| 
       175 
159 
     | 
    
         
             
              guard-rspec (~> 4.6.4)
         
     | 
| 
       176 
160 
     | 
    
         
             
              mongoid (~> 5.1.2)
         
     | 
| 
       177 
161 
     | 
    
         
             
              mongoid-observers!
         
     | 
| 
       178 
162 
     | 
    
         
             
              pry (~> 0.9.12.6)
         
     | 
| 
       179 
     | 
    
         
            -
               
     | 
| 
      
 163 
     | 
    
         
            +
              rails-observers (~> 0.1.2)
         
     | 
| 
      
 164 
     | 
    
         
            +
              railties (~> 4.2.6)
         
     | 
| 
       180 
165 
     | 
    
         
             
              rake (~> 10.4.2)
         
     | 
| 
       181 
166 
     | 
    
         
             
              rspec (~> 3.1.0)
         
     | 
| 
       182 
     | 
    
         
            -
              simplecov (~> 0. 
     | 
| 
      
 167 
     | 
    
         
            +
              simplecov (~> 0.12.0)
         
     | 
| 
       183 
168 
     | 
    
         | 
| 
       184 
169 
     | 
    
         
             
            BUNDLED WITH
         
     | 
| 
       185 
     | 
    
         
            -
               1. 
     | 
| 
      
 170 
     | 
    
         
            +
               1.13.6
         
     | 
| 
         @@ -0,0 +1,16 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            source 'https://rubygems.org'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            gem 'mongoid',          '~> 6.0.2'
         
     | 
| 
      
 4 
     | 
    
         
            +
            gem 'rails-observers',  github: 'rails/rails-observers'
         
     | 
| 
      
 5 
     | 
    
         
            +
            gem 'rake',             '~> 10.4.2'
         
     | 
| 
      
 6 
     | 
    
         
            +
            gem 'rspec',            '~> 3.5.0'
         
     | 
| 
      
 7 
     | 
    
         
            +
            gem 'rspec-rails',      '~> 3.5.2'
         
     | 
| 
      
 8 
     | 
    
         
            +
            gem 'guard-rspec',      '~> 4.7.3'
         
     | 
| 
      
 9 
     | 
    
         
            +
            gem 'pry',              '~> 0.9.12.6'
         
     | 
| 
      
 10 
     | 
    
         
            +
            gem 'simplecov',        '~> 0.12.0'
         
     | 
| 
      
 11 
     | 
    
         
            +
            gem 'coveralls',        '~> 0.8.15', require: false
         
     | 
| 
      
 12 
     | 
    
         
            +
            gem 'railties',         '~> 5.0.0.1'
         
     | 
| 
      
 13 
     | 
    
         
            +
            gem 'ammeter',          '~> 1.1.4'
         
     | 
| 
      
 14 
     | 
    
         
            +
            gem 'bundler'
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            gemspec :path => '../'
         
     | 
| 
         @@ -0,0 +1,171 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            GIT
         
     | 
| 
      
 2 
     | 
    
         
            +
              remote: git://github.com/rails/rails-observers.git
         
     | 
| 
      
 3 
     | 
    
         
            +
              revision: 3fe157d6cbb5b5e767ded248009fc59443d63fa1
         
     | 
| 
      
 4 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 5 
     | 
    
         
            +
                rails-observers (0.1.3.alpha)
         
     | 
| 
      
 6 
     | 
    
         
            +
                  activemodel (>= 4.0, < 5.1)
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            PATH
         
     | 
| 
      
 9 
     | 
    
         
            +
              remote: ../
         
     | 
| 
      
 10 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 11 
     | 
    
         
            +
                mongoid-observers (0.3.0)
         
     | 
| 
      
 12 
     | 
    
         
            +
                  mongoid (>= 4.0.0)
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            GEM
         
     | 
| 
      
 15 
     | 
    
         
            +
              remote: https://rubygems.org/
         
     | 
| 
      
 16 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 17 
     | 
    
         
            +
                actionpack (5.0.0.1)
         
     | 
| 
      
 18 
     | 
    
         
            +
                  actionview (= 5.0.0.1)
         
     | 
| 
      
 19 
     | 
    
         
            +
                  activesupport (= 5.0.0.1)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  rack (~> 2.0)
         
     | 
| 
      
 21 
     | 
    
         
            +
                  rack-test (~> 0.6.3)
         
     | 
| 
      
 22 
     | 
    
         
            +
                  rails-dom-testing (~> 2.0)
         
     | 
| 
      
 23 
     | 
    
         
            +
                  rails-html-sanitizer (~> 1.0, >= 1.0.2)
         
     | 
| 
      
 24 
     | 
    
         
            +
                actionview (5.0.0.1)
         
     | 
| 
      
 25 
     | 
    
         
            +
                  activesupport (= 5.0.0.1)
         
     | 
| 
      
 26 
     | 
    
         
            +
                  builder (~> 3.1)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  erubis (~> 2.7.0)
         
     | 
| 
      
 28 
     | 
    
         
            +
                  rails-dom-testing (~> 2.0)
         
     | 
| 
      
 29 
     | 
    
         
            +
                  rails-html-sanitizer (~> 1.0, >= 1.0.2)
         
     | 
| 
      
 30 
     | 
    
         
            +
                activemodel (5.0.0.1)
         
     | 
| 
      
 31 
     | 
    
         
            +
                  activesupport (= 5.0.0.1)
         
     | 
| 
      
 32 
     | 
    
         
            +
                activesupport (5.0.0.1)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  concurrent-ruby (~> 1.0, >= 1.0.2)
         
     | 
| 
      
 34 
     | 
    
         
            +
                  i18n (~> 0.7)
         
     | 
| 
      
 35 
     | 
    
         
            +
                  minitest (~> 5.1)
         
     | 
| 
      
 36 
     | 
    
         
            +
                  tzinfo (~> 1.1)
         
     | 
| 
      
 37 
     | 
    
         
            +
                ammeter (1.1.4)
         
     | 
| 
      
 38 
     | 
    
         
            +
                  activesupport (>= 3.0)
         
     | 
| 
      
 39 
     | 
    
         
            +
                  railties (>= 3.0)
         
     | 
| 
      
 40 
     | 
    
         
            +
                  rspec-rails (>= 2.2)
         
     | 
| 
      
 41 
     | 
    
         
            +
                bson (4.1.1)
         
     | 
| 
      
 42 
     | 
    
         
            +
                builder (3.2.2)
         
     | 
| 
      
 43 
     | 
    
         
            +
                coderay (1.1.1)
         
     | 
| 
      
 44 
     | 
    
         
            +
                concurrent-ruby (1.0.2)
         
     | 
| 
      
 45 
     | 
    
         
            +
                coveralls (0.8.15)
         
     | 
| 
      
 46 
     | 
    
         
            +
                  json (>= 1.8, < 3)
         
     | 
| 
      
 47 
     | 
    
         
            +
                  simplecov (~> 0.12.0)
         
     | 
| 
      
 48 
     | 
    
         
            +
                  term-ansicolor (~> 1.3)
         
     | 
| 
      
 49 
     | 
    
         
            +
                  thor (~> 0.19.1)
         
     | 
| 
      
 50 
     | 
    
         
            +
                  tins (>= 1.6.0, < 2)
         
     | 
| 
      
 51 
     | 
    
         
            +
                diff-lcs (1.2.5)
         
     | 
| 
      
 52 
     | 
    
         
            +
                docile (1.1.5)
         
     | 
| 
      
 53 
     | 
    
         
            +
                erubis (2.7.0)
         
     | 
| 
      
 54 
     | 
    
         
            +
                ffi (1.9.14)
         
     | 
| 
      
 55 
     | 
    
         
            +
                formatador (0.2.5)
         
     | 
| 
      
 56 
     | 
    
         
            +
                guard (2.14.0)
         
     | 
| 
      
 57 
     | 
    
         
            +
                  formatador (>= 0.2.4)
         
     | 
| 
      
 58 
     | 
    
         
            +
                  listen (>= 2.7, < 4.0)
         
     | 
| 
      
 59 
     | 
    
         
            +
                  lumberjack (~> 1.0)
         
     | 
| 
      
 60 
     | 
    
         
            +
                  nenv (~> 0.1)
         
     | 
| 
      
 61 
     | 
    
         
            +
                  notiffany (~> 0.0)
         
     | 
| 
      
 62 
     | 
    
         
            +
                  pry (>= 0.9.12)
         
     | 
| 
      
 63 
     | 
    
         
            +
                  shellany (~> 0.0)
         
     | 
| 
      
 64 
     | 
    
         
            +
                  thor (>= 0.18.1)
         
     | 
| 
      
 65 
     | 
    
         
            +
                guard-compat (1.2.1)
         
     | 
| 
      
 66 
     | 
    
         
            +
                guard-rspec (4.7.3)
         
     | 
| 
      
 67 
     | 
    
         
            +
                  guard (~> 2.1)
         
     | 
| 
      
 68 
     | 
    
         
            +
                  guard-compat (~> 1.1)
         
     | 
| 
      
 69 
     | 
    
         
            +
                  rspec (>= 2.99.0, < 4.0)
         
     | 
| 
      
 70 
     | 
    
         
            +
                i18n (0.7.0)
         
     | 
| 
      
 71 
     | 
    
         
            +
                json (2.0.2)
         
     | 
| 
      
 72 
     | 
    
         
            +
                listen (3.1.5)
         
     | 
| 
      
 73 
     | 
    
         
            +
                  rb-fsevent (~> 0.9, >= 0.9.4)
         
     | 
| 
      
 74 
     | 
    
         
            +
                  rb-inotify (~> 0.9, >= 0.9.7)
         
     | 
| 
      
 75 
     | 
    
         
            +
                  ruby_dep (~> 1.2)
         
     | 
| 
      
 76 
     | 
    
         
            +
                loofah (2.0.3)
         
     | 
| 
      
 77 
     | 
    
         
            +
                  nokogiri (>= 1.5.9)
         
     | 
| 
      
 78 
     | 
    
         
            +
                lumberjack (1.0.10)
         
     | 
| 
      
 79 
     | 
    
         
            +
                method_source (0.8.2)
         
     | 
| 
      
 80 
     | 
    
         
            +
                mini_portile2 (2.1.0)
         
     | 
| 
      
 81 
     | 
    
         
            +
                minitest (5.9.1)
         
     | 
| 
      
 82 
     | 
    
         
            +
                mongo (2.3.0)
         
     | 
| 
      
 83 
     | 
    
         
            +
                  bson (~> 4.1)
         
     | 
| 
      
 84 
     | 
    
         
            +
                mongoid (6.0.2)
         
     | 
| 
      
 85 
     | 
    
         
            +
                  activemodel (~> 5.0)
         
     | 
| 
      
 86 
     | 
    
         
            +
                  mongo (~> 2.3)
         
     | 
| 
      
 87 
     | 
    
         
            +
                nenv (0.3.0)
         
     | 
| 
      
 88 
     | 
    
         
            +
                nokogiri (1.6.8.1)
         
     | 
| 
      
 89 
     | 
    
         
            +
                  mini_portile2 (~> 2.1.0)
         
     | 
| 
      
 90 
     | 
    
         
            +
                notiffany (0.1.1)
         
     | 
| 
      
 91 
     | 
    
         
            +
                  nenv (~> 0.1)
         
     | 
| 
      
 92 
     | 
    
         
            +
                  shellany (~> 0.0)
         
     | 
| 
      
 93 
     | 
    
         
            +
                pry (0.9.12.6)
         
     | 
| 
      
 94 
     | 
    
         
            +
                  coderay (~> 1.0)
         
     | 
| 
      
 95 
     | 
    
         
            +
                  method_source (~> 0.8)
         
     | 
| 
      
 96 
     | 
    
         
            +
                  slop (~> 3.4)
         
     | 
| 
      
 97 
     | 
    
         
            +
                rack (2.0.1)
         
     | 
| 
      
 98 
     | 
    
         
            +
                rack-test (0.6.3)
         
     | 
| 
      
 99 
     | 
    
         
            +
                  rack (>= 1.0)
         
     | 
| 
      
 100 
     | 
    
         
            +
                rails-dom-testing (2.0.1)
         
     | 
| 
      
 101 
     | 
    
         
            +
                  activesupport (>= 4.2.0, < 6.0)
         
     | 
| 
      
 102 
     | 
    
         
            +
                  nokogiri (~> 1.6.0)
         
     | 
| 
      
 103 
     | 
    
         
            +
                rails-html-sanitizer (1.0.3)
         
     | 
| 
      
 104 
     | 
    
         
            +
                  loofah (~> 2.0)
         
     | 
| 
      
 105 
     | 
    
         
            +
                railties (5.0.0.1)
         
     | 
| 
      
 106 
     | 
    
         
            +
                  actionpack (= 5.0.0.1)
         
     | 
| 
      
 107 
     | 
    
         
            +
                  activesupport (= 5.0.0.1)
         
     | 
| 
      
 108 
     | 
    
         
            +
                  method_source
         
     | 
| 
      
 109 
     | 
    
         
            +
                  rake (>= 0.8.7)
         
     | 
| 
      
 110 
     | 
    
         
            +
                  thor (>= 0.18.1, < 2.0)
         
     | 
| 
      
 111 
     | 
    
         
            +
                rake (10.4.2)
         
     | 
| 
      
 112 
     | 
    
         
            +
                rb-fsevent (0.9.8)
         
     | 
| 
      
 113 
     | 
    
         
            +
                rb-inotify (0.9.7)
         
     | 
| 
      
 114 
     | 
    
         
            +
                  ffi (>= 0.5.0)
         
     | 
| 
      
 115 
     | 
    
         
            +
                rspec (3.5.0)
         
     | 
| 
      
 116 
     | 
    
         
            +
                  rspec-core (~> 3.5.0)
         
     | 
| 
      
 117 
     | 
    
         
            +
                  rspec-expectations (~> 3.5.0)
         
     | 
| 
      
 118 
     | 
    
         
            +
                  rspec-mocks (~> 3.5.0)
         
     | 
| 
      
 119 
     | 
    
         
            +
                rspec-core (3.5.4)
         
     | 
| 
      
 120 
     | 
    
         
            +
                  rspec-support (~> 3.5.0)
         
     | 
| 
      
 121 
     | 
    
         
            +
                rspec-expectations (3.5.0)
         
     | 
| 
      
 122 
     | 
    
         
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         
     | 
| 
      
 123 
     | 
    
         
            +
                  rspec-support (~> 3.5.0)
         
     | 
| 
      
 124 
     | 
    
         
            +
                rspec-mocks (3.5.0)
         
     | 
| 
      
 125 
     | 
    
         
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         
     | 
| 
      
 126 
     | 
    
         
            +
                  rspec-support (~> 3.5.0)
         
     | 
| 
      
 127 
     | 
    
         
            +
                rspec-rails (3.5.2)
         
     | 
| 
      
 128 
     | 
    
         
            +
                  actionpack (>= 3.0)
         
     | 
| 
      
 129 
     | 
    
         
            +
                  activesupport (>= 3.0)
         
     | 
| 
      
 130 
     | 
    
         
            +
                  railties (>= 3.0)
         
     | 
| 
      
 131 
     | 
    
         
            +
                  rspec-core (~> 3.5.0)
         
     | 
| 
      
 132 
     | 
    
         
            +
                  rspec-expectations (~> 3.5.0)
         
     | 
| 
      
 133 
     | 
    
         
            +
                  rspec-mocks (~> 3.5.0)
         
     | 
| 
      
 134 
     | 
    
         
            +
                  rspec-support (~> 3.5.0)
         
     | 
| 
      
 135 
     | 
    
         
            +
                rspec-support (3.5.0)
         
     | 
| 
      
 136 
     | 
    
         
            +
                ruby_dep (1.5.0)
         
     | 
| 
      
 137 
     | 
    
         
            +
                shellany (0.0.1)
         
     | 
| 
      
 138 
     | 
    
         
            +
                simplecov (0.12.0)
         
     | 
| 
      
 139 
     | 
    
         
            +
                  docile (~> 1.1.0)
         
     | 
| 
      
 140 
     | 
    
         
            +
                  json (>= 1.8, < 3)
         
     | 
| 
      
 141 
     | 
    
         
            +
                  simplecov-html (~> 0.10.0)
         
     | 
| 
      
 142 
     | 
    
         
            +
                simplecov-html (0.10.0)
         
     | 
| 
      
 143 
     | 
    
         
            +
                slop (3.6.0)
         
     | 
| 
      
 144 
     | 
    
         
            +
                term-ansicolor (1.4.0)
         
     | 
| 
      
 145 
     | 
    
         
            +
                  tins (~> 1.0)
         
     | 
| 
      
 146 
     | 
    
         
            +
                thor (0.19.1)
         
     | 
| 
      
 147 
     | 
    
         
            +
                thread_safe (0.3.5)
         
     | 
| 
      
 148 
     | 
    
         
            +
                tins (1.12.0)
         
     | 
| 
      
 149 
     | 
    
         
            +
                tzinfo (1.2.2)
         
     | 
| 
      
 150 
     | 
    
         
            +
                  thread_safe (~> 0.1)
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
            PLATFORMS
         
     | 
| 
      
 153 
     | 
    
         
            +
              ruby
         
     | 
| 
      
 154 
     | 
    
         
            +
             
     | 
| 
      
 155 
     | 
    
         
            +
            DEPENDENCIES
         
     | 
| 
      
 156 
     | 
    
         
            +
              ammeter (~> 1.1.4)
         
     | 
| 
      
 157 
     | 
    
         
            +
              bundler
         
     | 
| 
      
 158 
     | 
    
         
            +
              coveralls (~> 0.8.15)
         
     | 
| 
      
 159 
     | 
    
         
            +
              guard-rspec (~> 4.7.3)
         
     | 
| 
      
 160 
     | 
    
         
            +
              mongoid (~> 6.0.2)
         
     | 
| 
      
 161 
     | 
    
         
            +
              mongoid-observers!
         
     | 
| 
      
 162 
     | 
    
         
            +
              pry (~> 0.9.12.6)
         
     | 
| 
      
 163 
     | 
    
         
            +
              rails-observers!
         
     | 
| 
      
 164 
     | 
    
         
            +
              railties (~> 5.0.0.1)
         
     | 
| 
      
 165 
     | 
    
         
            +
              rake (~> 10.4.2)
         
     | 
| 
      
 166 
     | 
    
         
            +
              rspec (~> 3.5.0)
         
     | 
| 
      
 167 
     | 
    
         
            +
              rspec-rails (~> 3.5.2)
         
     | 
| 
      
 168 
     | 
    
         
            +
              simplecov (~> 0.12.0)
         
     | 
| 
      
 169 
     | 
    
         
            +
             
     | 
| 
      
 170 
     | 
    
         
            +
            BUNDLED WITH
         
     | 
| 
      
 171 
     | 
    
         
            +
               1.13.6
         
     | 
| 
         @@ -17,7 +17,9 @@ module Mongoid 
     | 
|
| 
       17 
17 
     | 
    
         
             
                    ActiveSupport.on_load(:mongoid) do
         
     | 
| 
       18 
18 
     | 
    
         
             
                      ::Mongoid::instantiate_observers
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
                      ActionDispatch::Reloader. 
     | 
| 
      
 20 
     | 
    
         
            +
                      # DEPRECATION WARNING: to_prepare on ActionDispatch::Reloader is deprecated and will be removed from Rails 5.1
         
     | 
| 
      
 21 
     | 
    
         
            +
                      constant = defined?(ActiveSupport::Reloader) ? ActiveSupport::Reloader : ActionDispatch::Reloader
         
     | 
| 
      
 22 
     | 
    
         
            +
                      constant.to_prepare do
         
     | 
| 
       21 
23 
     | 
    
         
             
                        ::Mongoid.instantiate_observers
         
     | 
| 
       22 
24 
     | 
    
         
             
                      end
         
     | 
| 
       23 
25 
     | 
    
         
             
                    end
         
     | 
    
        data/mongoid-observers.gemspec
    CHANGED
    
    | 
         @@ -18,9 +18,5 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       18 
18 
     | 
    
         
             
              spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
         
     | 
| 
       19 
19 
     | 
    
         
             
              spec.require_paths = ["lib"]
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
              spec.add_dependency "rails-observers", "~> 0.1.2"
         
     | 
| 
       22 
21 
     | 
    
         
             
              spec.add_dependency "mongoid", ">= 4.0.0"
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
              spec.add_development_dependency "ammeter", "~> 1.1.2"
         
     | 
| 
       25 
     | 
    
         
            -
              spec.add_development_dependency "bundler", "~> 1.11"
         
     | 
| 
       26 
22 
     | 
    
         
             
            end
         
     | 
    
        data/spec/spec_helper.rb
    CHANGED
    
    | 
         @@ -1,12 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require "simplecov"
         
     | 
| 
       2 
2 
     | 
    
         
             
            require "coveralls"
         
     | 
| 
       3 
     | 
    
         
            -
            require "codeclimate-test-reporter"
         
     | 
| 
       4 
3 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
            SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
         
     | 
| 
      
 4 
     | 
    
         
            +
            SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
         
     | 
| 
       6 
5 
     | 
    
         
             
              Coveralls::SimpleCov::Formatter,
         
     | 
| 
       7 
     | 
    
         
            -
              SimpleCov::Formatter::HTMLFormatter 
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            ]
         
     | 
| 
      
 6 
     | 
    
         
            +
              SimpleCov::Formatter::HTMLFormatter
         
     | 
| 
      
 7 
     | 
    
         
            +
            ])
         
     | 
| 
       10 
8 
     | 
    
         | 
| 
       11 
9 
     | 
    
         
             
            SimpleCov.start do
         
     | 
| 
       12 
10 
     | 
    
         
             
              add_filter "/spec/"
         
     | 
| 
         @@ -27,6 +25,8 @@ if Mongoid::VERSION.start_with?('4.') 
     | 
|
| 
       27 
25 
     | 
    
         
             
              Mongoid.load! File.dirname(__FILE__) + "/config/mongoid_4.yml", :test
         
     | 
| 
       28 
26 
     | 
    
         
             
            elsif Mongoid::VERSION.start_with?('5.')
         
     | 
| 
       29 
27 
     | 
    
         
             
              Mongoid.load! File.dirname(__FILE__) + "/config/mongoid_5.yml", :test
         
     | 
| 
      
 28 
     | 
    
         
            +
            elsif Mongoid::VERSION.start_with?('6.')
         
     | 
| 
      
 29 
     | 
    
         
            +
              Mongoid.load! File.dirname(__FILE__) + "/config/mongoid_6.yml", :test
         
     | 
| 
       30 
30 
     | 
    
         
             
            end
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
            # Autoload every model for the test suite that sits in spec/app/models.
         
     | 
| 
         @@ -42,4 +42,4 @@ RSpec.configure do |config| 
     | 
|
| 
       42 
42 
     | 
    
         
             
              config.before(:each) do
         
     | 
| 
       43 
43 
     | 
    
         
             
                Mongoid.purge!
         
     | 
| 
       44 
44 
     | 
    
         
             
              end
         
     | 
| 
       45 
     | 
    
         
            -
            end
         
     | 
| 
      
 45 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,29 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: mongoid-observers
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.3.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Chamnap Chhorn
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-10-31 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
     | 
    
         
            -
              name: rails-observers
         
     | 
| 
       15 
     | 
    
         
            -
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       16 
     | 
    
         
            -
                requirements:
         
     | 
| 
       17 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       18 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version: 0.1.2
         
     | 
| 
       20 
     | 
    
         
            -
              type: :runtime
         
     | 
| 
       21 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       22 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
     | 
    
         
            -
                requirements:
         
     | 
| 
       24 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       25 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version: 0.1.2
         
     | 
| 
       27 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
14 
     | 
    
         
             
              name: mongoid
         
     | 
| 
       29 
15 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -38,34 +24,6 @@ dependencies: 
     | 
|
| 
       38 
24 
     | 
    
         
             
                - - ">="
         
     | 
| 
       39 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
26 
     | 
    
         
             
                    version: 4.0.0
         
     | 
| 
       41 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency
         
     | 
| 
       42 
     | 
    
         
            -
              name: ammeter
         
     | 
| 
       43 
     | 
    
         
            -
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       44 
     | 
    
         
            -
                requirements:
         
     | 
| 
       45 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       46 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       47 
     | 
    
         
            -
                    version: 1.1.2
         
     | 
| 
       48 
     | 
    
         
            -
              type: :development
         
     | 
| 
       49 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       50 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       51 
     | 
    
         
            -
                requirements:
         
     | 
| 
       52 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       53 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       54 
     | 
    
         
            -
                    version: 1.1.2
         
     | 
| 
       55 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency
         
     | 
| 
       56 
     | 
    
         
            -
              name: bundler
         
     | 
| 
       57 
     | 
    
         
            -
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       58 
     | 
    
         
            -
                requirements:
         
     | 
| 
       59 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       60 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       61 
     | 
    
         
            -
                    version: '1.11'
         
     | 
| 
       62 
     | 
    
         
            -
              type: :development
         
     | 
| 
       63 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       64 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       65 
     | 
    
         
            -
                requirements:
         
     | 
| 
       66 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       67 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
     | 
    
         
            -
                    version: '1.11'
         
     | 
| 
       69 
27 
     | 
    
         
             
            description: Mongoid::Observer removed from Mongoid 4.0
         
     | 
| 
       70 
28 
     | 
    
         
             
            email:
         
     | 
| 
       71 
29 
     | 
    
         
             
            - chamnapchhorn@gmail.com
         
     | 
| 
         @@ -88,6 +46,8 @@ files: 
     | 
|
| 
       88 
46 
     | 
    
         
             
            - gemfiles/mongoid_4.gemfile.lock
         
     | 
| 
       89 
47 
     | 
    
         
             
            - gemfiles/mongoid_5.gemfile
         
     | 
| 
       90 
48 
     | 
    
         
             
            - gemfiles/mongoid_5.gemfile.lock
         
     | 
| 
      
 49 
     | 
    
         
            +
            - gemfiles/mongoid_6.gemfile
         
     | 
| 
      
 50 
     | 
    
         
            +
            - gemfiles/mongoid_6.gemfile.lock
         
     | 
| 
       91 
51 
     | 
    
         
             
            - lib/generators/mongoid/observer/observer_generator.rb
         
     | 
| 
       92 
52 
     | 
    
         
             
            - lib/generators/mongoid/observer/templates/observer.rb.tt
         
     | 
| 
       93 
53 
     | 
    
         
             
            - lib/mongoid-observers.rb
         
     | 
| 
         @@ -107,6 +67,7 @@ files: 
     | 
|
| 
       107 
67 
     | 
    
         
             
            - spec/app/models/record.rb
         
     | 
| 
       108 
68 
     | 
    
         
             
            - spec/config/mongoid_4.yml
         
     | 
| 
       109 
69 
     | 
    
         
             
            - spec/config/mongoid_5.yml
         
     | 
| 
      
 70 
     | 
    
         
            +
            - spec/config/mongoid_6.yml
         
     | 
| 
       110 
71 
     | 
    
         
             
            - spec/generators/mongoid/observer/observer_generator_spec.rb
         
     | 
| 
       111 
72 
     | 
    
         
             
            - spec/mongoid/observer_spec.rb
         
     | 
| 
       112 
73 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
         @@ -145,6 +106,7 @@ test_files: 
     | 
|
| 
       145 
106 
     | 
    
         
             
            - spec/app/models/record.rb
         
     | 
| 
       146 
107 
     | 
    
         
             
            - spec/config/mongoid_4.yml
         
     | 
| 
       147 
108 
     | 
    
         
             
            - spec/config/mongoid_5.yml
         
     | 
| 
      
 109 
     | 
    
         
            +
            - spec/config/mongoid_6.yml
         
     | 
| 
       148 
110 
     | 
    
         
             
            - spec/generators/mongoid/observer/observer_generator_spec.rb
         
     | 
| 
       149 
111 
     | 
    
         
             
            - spec/mongoid/observer_spec.rb
         
     | 
| 
       150 
112 
     | 
    
         
             
            - spec/spec_helper.rb
         
     |