delayed_job_shallow_mongoid 0.2.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.
- data/.document +5 -0
 - data/Gemfile +18 -0
 - data/Gemfile.lock +113 -0
 - data/LICENSE.txt +20 -0
 - data/README.rdoc +19 -0
 - data/Rakefile +53 -0
 - data/VERSION +1 -0
 - data/delayed_job_shallow_mongoid.gemspec +77 -0
 - data/lib/delayed/performable_mailer.rb +7 -0
 - data/lib/delayed/performable_method.rb +17 -0
 - data/lib/delayed/shallow_mongoid/document_stub.rb +4 -0
 - data/lib/delayed/shallow_mongoid.rb +19 -0
 - data/lib/delayed_job_shallow_mongoid.rb +5 -0
 - data/spec/delayed_job_shallow_mongoid_spec.rb +66 -0
 - data/spec/spec_helper.rb +11 -0
 - data/test/helper.rb +18 -0
 - data/test/test_delayed_job_shallow_mongoid.rb +7 -0
 - metadata +156 -0
 
    
        data/.document
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    | 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            source "http://rubygems.org"
         
     | 
| 
      
 2 
     | 
    
         
            +
            # Add dependencies required to use your gem here.
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Example:
         
     | 
| 
      
 4 
     | 
    
         
            +
            #   gem "activesupport", ">= 2.3.5"
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            gem 'actionmailer'
         
     | 
| 
      
 7 
     | 
    
         
            +
            gem "delayed_job_mongoid", :git => "https://github.com/collectiveidea/delayed_job_mongoid.git"
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            # Add dependencies to develop your gem here.
         
     | 
| 
      
 10 
     | 
    
         
            +
            # Include everything needed to run rake, tests, features, etc.
         
     | 
| 
      
 11 
     | 
    
         
            +
            group :development do
         
     | 
| 
      
 12 
     | 
    
         
            +
              gem "shoulda", ">= 0"
         
     | 
| 
      
 13 
     | 
    
         
            +
              gem "bundler", "~> 1.0.0"
         
     | 
| 
      
 14 
     | 
    
         
            +
              gem "jeweler", "~> 1.6.4"
         
     | 
| 
      
 15 
     | 
    
         
            +
              gem "rcov", ">= 0"
         
     | 
| 
      
 16 
     | 
    
         
            +
              gem 'rspec'
         
     | 
| 
      
 17 
     | 
    
         
            +
              gem "ruby-debug19"
         
     | 
| 
      
 18 
     | 
    
         
            +
            end
         
     | 
    
        data/Gemfile.lock
    ADDED
    
    | 
         @@ -0,0 +1,113 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            GIT
         
     | 
| 
      
 2 
     | 
    
         
            +
              remote: https://github.com/collectiveidea/delayed_job_mongoid.git
         
     | 
| 
      
 3 
     | 
    
         
            +
              revision: 83a8dc6c56c78ee8c528bd03e8a4cfb3c0e6f4e3
         
     | 
| 
      
 4 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 5 
     | 
    
         
            +
                delayed_job_mongoid (1.0.6)
         
     | 
| 
      
 6 
     | 
    
         
            +
                  delayed_job (= 3.0.0.pre4)
         
     | 
| 
      
 7 
     | 
    
         
            +
                  mongoid (>= 2.0)
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            GEM
         
     | 
| 
      
 10 
     | 
    
         
            +
              remote: http://rubygems.org/
         
     | 
| 
      
 11 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 12 
     | 
    
         
            +
                actionmailer (3.1.3)
         
     | 
| 
      
 13 
     | 
    
         
            +
                  actionpack (= 3.1.3)
         
     | 
| 
      
 14 
     | 
    
         
            +
                  mail (~> 2.3.0)
         
     | 
| 
      
 15 
     | 
    
         
            +
                actionpack (3.1.3)
         
     | 
| 
      
 16 
     | 
    
         
            +
                  activemodel (= 3.1.3)
         
     | 
| 
      
 17 
     | 
    
         
            +
                  activesupport (= 3.1.3)
         
     | 
| 
      
 18 
     | 
    
         
            +
                  builder (~> 3.0.0)
         
     | 
| 
      
 19 
     | 
    
         
            +
                  erubis (~> 2.7.0)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  i18n (~> 0.6)
         
     | 
| 
      
 21 
     | 
    
         
            +
                  rack (~> 1.3.5)
         
     | 
| 
      
 22 
     | 
    
         
            +
                  rack-cache (~> 1.1)
         
     | 
| 
      
 23 
     | 
    
         
            +
                  rack-mount (~> 0.8.2)
         
     | 
| 
      
 24 
     | 
    
         
            +
                  rack-test (~> 0.6.1)
         
     | 
| 
      
 25 
     | 
    
         
            +
                  sprockets (~> 2.0.3)
         
     | 
| 
      
 26 
     | 
    
         
            +
                activemodel (3.1.3)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  activesupport (= 3.1.3)
         
     | 
| 
      
 28 
     | 
    
         
            +
                  builder (~> 3.0.0)
         
     | 
| 
      
 29 
     | 
    
         
            +
                  i18n (~> 0.6)
         
     | 
| 
      
 30 
     | 
    
         
            +
                activesupport (3.1.3)
         
     | 
| 
      
 31 
     | 
    
         
            +
                  multi_json (~> 1.0)
         
     | 
| 
      
 32 
     | 
    
         
            +
                archive-tar-minitar (0.5.2)
         
     | 
| 
      
 33 
     | 
    
         
            +
                bson (1.4.0)
         
     | 
| 
      
 34 
     | 
    
         
            +
                builder (3.0.0)
         
     | 
| 
      
 35 
     | 
    
         
            +
                columnize (0.3.5)
         
     | 
| 
      
 36 
     | 
    
         
            +
                daemons (1.0.10)
         
     | 
| 
      
 37 
     | 
    
         
            +
                delayed_job (3.0.0.pre4)
         
     | 
| 
      
 38 
     | 
    
         
            +
                  activesupport (~> 3.0)
         
     | 
| 
      
 39 
     | 
    
         
            +
                  daemons (= 1.0.10)
         
     | 
| 
      
 40 
     | 
    
         
            +
                diff-lcs (1.1.3)
         
     | 
| 
      
 41 
     | 
    
         
            +
                erubis (2.7.0)
         
     | 
| 
      
 42 
     | 
    
         
            +
                git (1.2.5)
         
     | 
| 
      
 43 
     | 
    
         
            +
                hike (1.2.1)
         
     | 
| 
      
 44 
     | 
    
         
            +
                i18n (0.6.0)
         
     | 
| 
      
 45 
     | 
    
         
            +
                jeweler (1.6.4)
         
     | 
| 
      
 46 
     | 
    
         
            +
                  bundler (~> 1.0)
         
     | 
| 
      
 47 
     | 
    
         
            +
                  git (>= 1.2.5)
         
     | 
| 
      
 48 
     | 
    
         
            +
                  rake
         
     | 
| 
      
 49 
     | 
    
         
            +
                linecache19 (0.5.12)
         
     | 
| 
      
 50 
     | 
    
         
            +
                  ruby_core_source (>= 0.1.4)
         
     | 
| 
      
 51 
     | 
    
         
            +
                mail (2.3.0)
         
     | 
| 
      
 52 
     | 
    
         
            +
                  i18n (>= 0.4.0)
         
     | 
| 
      
 53 
     | 
    
         
            +
                  mime-types (~> 1.16)
         
     | 
| 
      
 54 
     | 
    
         
            +
                  treetop (~> 1.4.8)
         
     | 
| 
      
 55 
     | 
    
         
            +
                mime-types (1.17.2)
         
     | 
| 
      
 56 
     | 
    
         
            +
                mongo (1.4.0)
         
     | 
| 
      
 57 
     | 
    
         
            +
                  bson (= 1.4.0)
         
     | 
| 
      
 58 
     | 
    
         
            +
                mongoid (2.3.4)
         
     | 
| 
      
 59 
     | 
    
         
            +
                  activemodel (~> 3.1)
         
     | 
| 
      
 60 
     | 
    
         
            +
                  mongo (~> 1.3)
         
     | 
| 
      
 61 
     | 
    
         
            +
                  tzinfo (~> 0.3.22)
         
     | 
| 
      
 62 
     | 
    
         
            +
                multi_json (1.0.4)
         
     | 
| 
      
 63 
     | 
    
         
            +
                polyglot (0.3.3)
         
     | 
| 
      
 64 
     | 
    
         
            +
                rack (1.3.5)
         
     | 
| 
      
 65 
     | 
    
         
            +
                rack-cache (1.1)
         
     | 
| 
      
 66 
     | 
    
         
            +
                  rack (>= 0.4)
         
     | 
| 
      
 67 
     | 
    
         
            +
                rack-mount (0.8.3)
         
     | 
| 
      
 68 
     | 
    
         
            +
                  rack (>= 1.0.0)
         
     | 
| 
      
 69 
     | 
    
         
            +
                rack-test (0.6.1)
         
     | 
| 
      
 70 
     | 
    
         
            +
                  rack (>= 1.0)
         
     | 
| 
      
 71 
     | 
    
         
            +
                rake (0.9.2.2)
         
     | 
| 
      
 72 
     | 
    
         
            +
                rcov (0.9.11)
         
     | 
| 
      
 73 
     | 
    
         
            +
                rspec (2.7.0)
         
     | 
| 
      
 74 
     | 
    
         
            +
                  rspec-core (~> 2.7.0)
         
     | 
| 
      
 75 
     | 
    
         
            +
                  rspec-expectations (~> 2.7.0)
         
     | 
| 
      
 76 
     | 
    
         
            +
                  rspec-mocks (~> 2.7.0)
         
     | 
| 
      
 77 
     | 
    
         
            +
                rspec-core (2.7.1)
         
     | 
| 
      
 78 
     | 
    
         
            +
                rspec-expectations (2.7.0)
         
     | 
| 
      
 79 
     | 
    
         
            +
                  diff-lcs (~> 1.1.2)
         
     | 
| 
      
 80 
     | 
    
         
            +
                rspec-mocks (2.7.0)
         
     | 
| 
      
 81 
     | 
    
         
            +
                ruby-debug-base19 (0.11.25)
         
     | 
| 
      
 82 
     | 
    
         
            +
                  columnize (>= 0.3.1)
         
     | 
| 
      
 83 
     | 
    
         
            +
                  linecache19 (>= 0.5.11)
         
     | 
| 
      
 84 
     | 
    
         
            +
                  ruby_core_source (>= 0.1.4)
         
     | 
| 
      
 85 
     | 
    
         
            +
                ruby-debug19 (0.11.6)
         
     | 
| 
      
 86 
     | 
    
         
            +
                  columnize (>= 0.3.1)
         
     | 
| 
      
 87 
     | 
    
         
            +
                  linecache19 (>= 0.5.11)
         
     | 
| 
      
 88 
     | 
    
         
            +
                  ruby-debug-base19 (>= 0.11.19)
         
     | 
| 
      
 89 
     | 
    
         
            +
                ruby_core_source (0.1.5)
         
     | 
| 
      
 90 
     | 
    
         
            +
                  archive-tar-minitar (>= 0.5.2)
         
     | 
| 
      
 91 
     | 
    
         
            +
                shoulda (2.11.3)
         
     | 
| 
      
 92 
     | 
    
         
            +
                sprockets (2.0.3)
         
     | 
| 
      
 93 
     | 
    
         
            +
                  hike (~> 1.2)
         
     | 
| 
      
 94 
     | 
    
         
            +
                  rack (~> 1.0)
         
     | 
| 
      
 95 
     | 
    
         
            +
                  tilt (~> 1.1, != 1.3.0)
         
     | 
| 
      
 96 
     | 
    
         
            +
                tilt (1.3.3)
         
     | 
| 
      
 97 
     | 
    
         
            +
                treetop (1.4.10)
         
     | 
| 
      
 98 
     | 
    
         
            +
                  polyglot
         
     | 
| 
      
 99 
     | 
    
         
            +
                  polyglot (>= 0.3.1)
         
     | 
| 
      
 100 
     | 
    
         
            +
                tzinfo (0.3.31)
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
            PLATFORMS
         
     | 
| 
      
 103 
     | 
    
         
            +
              ruby
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
            DEPENDENCIES
         
     | 
| 
      
 106 
     | 
    
         
            +
              actionmailer
         
     | 
| 
      
 107 
     | 
    
         
            +
              bundler (~> 1.0.0)
         
     | 
| 
      
 108 
     | 
    
         
            +
              delayed_job_mongoid!
         
     | 
| 
      
 109 
     | 
    
         
            +
              jeweler (~> 1.6.4)
         
     | 
| 
      
 110 
     | 
    
         
            +
              rcov
         
     | 
| 
      
 111 
     | 
    
         
            +
              rspec
         
     | 
| 
      
 112 
     | 
    
         
            +
              ruby-debug19
         
     | 
| 
      
 113 
     | 
    
         
            +
              shoulda
         
     | 
    
        data/LICENSE.txt
    ADDED
    
    | 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            Copyright (c) 2011 Joey Aghion
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Permission is hereby granted, free of charge, to any person obtaining
         
     | 
| 
      
 4 
     | 
    
         
            +
            a copy of this software and associated documentation files (the
         
     | 
| 
      
 5 
     | 
    
         
            +
            "Software"), to deal in the Software without restriction, including
         
     | 
| 
      
 6 
     | 
    
         
            +
            without limitation the rights to use, copy, modify, merge, publish,
         
     | 
| 
      
 7 
     | 
    
         
            +
            distribute, sublicense, and/or sell copies of the Software, and to
         
     | 
| 
      
 8 
     | 
    
         
            +
            permit persons to whom the Software is furnished to do so, subject to
         
     | 
| 
      
 9 
     | 
    
         
            +
            the following conditions:
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            The above copyright notice and this permission notice shall be
         
     | 
| 
      
 12 
     | 
    
         
            +
            included in all copies or substantial portions of the Software.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         
     | 
| 
      
 15 
     | 
    
         
            +
            EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         
     | 
| 
      
 16 
     | 
    
         
            +
            MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         
     | 
| 
      
 17 
     | 
    
         
            +
            NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         
     | 
| 
      
 18 
     | 
    
         
            +
            LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         
     | 
| 
      
 19 
     | 
    
         
            +
            OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         
     | 
| 
      
 20 
     | 
    
         
            +
            WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         
     | 
    
        data/README.rdoc
    ADDED
    
    | 
         @@ -0,0 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            = delayed_job_shallow_mongoid
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            When the object or arg to a delayed_job is a Mongoid document, store only a small stub of the object instead of the full serialization.
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            == Contributing to delayed_job_shallow_mongoid
         
     | 
| 
      
 6 
     | 
    
         
            +
             
         
     | 
| 
      
 7 
     | 
    
         
            +
            * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
         
     | 
| 
      
 8 
     | 
    
         
            +
            * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
         
     | 
| 
      
 9 
     | 
    
         
            +
            * Fork the project
         
     | 
| 
      
 10 
     | 
    
         
            +
            * Start a feature/bugfix branch
         
     | 
| 
      
 11 
     | 
    
         
            +
            * Commit and push until you are happy with your contribution
         
     | 
| 
      
 12 
     | 
    
         
            +
            * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
         
     | 
| 
      
 13 
     | 
    
         
            +
            * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            == Copyright
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            Copyright (c) 2011 Joey Aghion. See LICENSE.txt for
         
     | 
| 
      
 18 
     | 
    
         
            +
            further details.
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
    
        data/Rakefile
    ADDED
    
    | 
         @@ -0,0 +1,53 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # encoding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            require 'rubygems'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'bundler'
         
     | 
| 
      
 5 
     | 
    
         
            +
            begin
         
     | 
| 
      
 6 
     | 
    
         
            +
              Bundler.setup(:default, :development)
         
     | 
| 
      
 7 
     | 
    
         
            +
            rescue Bundler::BundlerError => e
         
     | 
| 
      
 8 
     | 
    
         
            +
              $stderr.puts e.message
         
     | 
| 
      
 9 
     | 
    
         
            +
              $stderr.puts "Run `bundle install` to install missing gems"
         
     | 
| 
      
 10 
     | 
    
         
            +
              exit e.status_code
         
     | 
| 
      
 11 
     | 
    
         
            +
            end
         
     | 
| 
      
 12 
     | 
    
         
            +
            require 'rake'
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            require 'jeweler'
         
     | 
| 
      
 15 
     | 
    
         
            +
            Jeweler::Tasks.new do |gem|
         
     | 
| 
      
 16 
     | 
    
         
            +
              # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
         
     | 
| 
      
 17 
     | 
    
         
            +
              gem.name = "delayed_job_shallow_mongoid"
         
     | 
| 
      
 18 
     | 
    
         
            +
              gem.homepage = "http://github.com/jaghion/delayed_job_shallow_mongoid"
         
     | 
| 
      
 19 
     | 
    
         
            +
              gem.license = "MIT"
         
     | 
| 
      
 20 
     | 
    
         
            +
              gem.summary = %Q{More efficient Mongoid document serialization for delayed_job.}
         
     | 
| 
      
 21 
     | 
    
         
            +
              gem.description = %Q{When the object or arg to a delayed_job is a Mongoid document, store only a small stub of the object instead of the full serialization.}
         
     | 
| 
      
 22 
     | 
    
         
            +
              gem.email = "joey@aghion.com"
         
     | 
| 
      
 23 
     | 
    
         
            +
              gem.authors = ["Joey Aghion"]
         
     | 
| 
      
 24 
     | 
    
         
            +
              # dependencies defined in Gemfile
         
     | 
| 
      
 25 
     | 
    
         
            +
            end
         
     | 
| 
      
 26 
     | 
    
         
            +
            Jeweler::RubygemsDotOrgTasks.new
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            require 'rake/testtask'
         
     | 
| 
      
 29 
     | 
    
         
            +
            Rake::TestTask.new(:test) do |test|
         
     | 
| 
      
 30 
     | 
    
         
            +
              test.libs << 'lib' << 'test'
         
     | 
| 
      
 31 
     | 
    
         
            +
              test.pattern = 'test/**/test_*.rb'
         
     | 
| 
      
 32 
     | 
    
         
            +
              test.verbose = true
         
     | 
| 
      
 33 
     | 
    
         
            +
            end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
            require 'rcov/rcovtask'
         
     | 
| 
      
 36 
     | 
    
         
            +
            Rcov::RcovTask.new do |test|
         
     | 
| 
      
 37 
     | 
    
         
            +
              test.libs << 'test'
         
     | 
| 
      
 38 
     | 
    
         
            +
              test.pattern = 'test/**/test_*.rb'
         
     | 
| 
      
 39 
     | 
    
         
            +
              test.verbose = true
         
     | 
| 
      
 40 
     | 
    
         
            +
              test.rcov_opts << '--exclude "gems/*"'
         
     | 
| 
      
 41 
     | 
    
         
            +
            end
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
            task :default => :test
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
            require 'rake/rdoctask'
         
     | 
| 
      
 46 
     | 
    
         
            +
            Rake::RDocTask.new do |rdoc|
         
     | 
| 
      
 47 
     | 
    
         
            +
              version = File.exist?('VERSION') ? File.read('VERSION') : ""
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
              rdoc.rdoc_dir = 'rdoc'
         
     | 
| 
      
 50 
     | 
    
         
            +
              rdoc.title = "delayed_job_shallow_mongoid #{version}"
         
     | 
| 
      
 51 
     | 
    
         
            +
              rdoc.rdoc_files.include('README*')
         
     | 
| 
      
 52 
     | 
    
         
            +
              rdoc.rdoc_files.include('lib/**/*.rb')
         
     | 
| 
      
 53 
     | 
    
         
            +
            end
         
     | 
    
        data/VERSION
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            0.2.0
         
     | 
| 
         @@ -0,0 +1,77 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Generated by jeweler
         
     | 
| 
      
 2 
     | 
    
         
            +
            # DO NOT EDIT THIS FILE DIRECTLY
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
         
     | 
| 
      
 4 
     | 
    
         
            +
            # -*- encoding: utf-8 -*-
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            Gem::Specification.new do |s|
         
     | 
| 
      
 7 
     | 
    
         
            +
              s.name = "delayed_job_shallow_mongoid"
         
     | 
| 
      
 8 
     | 
    
         
            +
              s.version = "0.2.0"
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         
     | 
| 
      
 11 
     | 
    
         
            +
              s.authors = ["Joey Aghion"]
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.date = "2011-11-29"
         
     | 
| 
      
 13 
     | 
    
         
            +
              s.description = "When the object or arg to a delayed_job is a Mongoid document, store only a small stub of the object instead of the full serialization."
         
     | 
| 
      
 14 
     | 
    
         
            +
              s.email = "joey@aghion.com"
         
     | 
| 
      
 15 
     | 
    
         
            +
              s.extra_rdoc_files = [
         
     | 
| 
      
 16 
     | 
    
         
            +
                "LICENSE.txt",
         
     | 
| 
      
 17 
     | 
    
         
            +
                "README.rdoc"
         
     | 
| 
      
 18 
     | 
    
         
            +
              ]
         
     | 
| 
      
 19 
     | 
    
         
            +
              s.files = [
         
     | 
| 
      
 20 
     | 
    
         
            +
                ".document",
         
     | 
| 
      
 21 
     | 
    
         
            +
                "Gemfile",
         
     | 
| 
      
 22 
     | 
    
         
            +
                "Gemfile.lock",
         
     | 
| 
      
 23 
     | 
    
         
            +
                "LICENSE.txt",
         
     | 
| 
      
 24 
     | 
    
         
            +
                "README.rdoc",
         
     | 
| 
      
 25 
     | 
    
         
            +
                "Rakefile",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "VERSION",
         
     | 
| 
      
 27 
     | 
    
         
            +
                "delayed_job_shallow_mongoid.gemspec",
         
     | 
| 
      
 28 
     | 
    
         
            +
                "lib/delayed/performable_mailer.rb",
         
     | 
| 
      
 29 
     | 
    
         
            +
                "lib/delayed/performable_method.rb",
         
     | 
| 
      
 30 
     | 
    
         
            +
                "lib/delayed/shallow_mongoid.rb",
         
     | 
| 
      
 31 
     | 
    
         
            +
                "lib/delayed/shallow_mongoid/document_stub.rb",
         
     | 
| 
      
 32 
     | 
    
         
            +
                "lib/delayed_job_shallow_mongoid.rb",
         
     | 
| 
      
 33 
     | 
    
         
            +
                "spec/delayed_job_shallow_mongoid_spec.rb",
         
     | 
| 
      
 34 
     | 
    
         
            +
                "spec/spec_helper.rb",
         
     | 
| 
      
 35 
     | 
    
         
            +
                "test/helper.rb",
         
     | 
| 
      
 36 
     | 
    
         
            +
                "test/test_delayed_job_shallow_mongoid.rb"
         
     | 
| 
      
 37 
     | 
    
         
            +
              ]
         
     | 
| 
      
 38 
     | 
    
         
            +
              s.homepage = "http://github.com/jaghion/delayed_job_shallow_mongoid"
         
     | 
| 
      
 39 
     | 
    
         
            +
              s.licenses = ["MIT"]
         
     | 
| 
      
 40 
     | 
    
         
            +
              s.require_paths = ["lib"]
         
     | 
| 
      
 41 
     | 
    
         
            +
              s.rubygems_version = "1.8.10"
         
     | 
| 
      
 42 
     | 
    
         
            +
              s.summary = "More efficient Mongoid document serialization for delayed_job."
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
              if s.respond_to? :specification_version then
         
     | 
| 
      
 45 
     | 
    
         
            +
                s.specification_version = 3
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
         
     | 
| 
      
 48 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<actionmailer>, [">= 0"])
         
     | 
| 
      
 49 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<delayed_job_mongoid>, [">= 0"])
         
     | 
| 
      
 50 
     | 
    
         
            +
                  s.add_development_dependency(%q<shoulda>, [">= 0"])
         
     | 
| 
      
 51 
     | 
    
         
            +
                  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
         
     | 
| 
      
 52 
     | 
    
         
            +
                  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
         
     | 
| 
      
 53 
     | 
    
         
            +
                  s.add_development_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 54 
     | 
    
         
            +
                  s.add_development_dependency(%q<rspec>, [">= 0"])
         
     | 
| 
      
 55 
     | 
    
         
            +
                  s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
         
     | 
| 
      
 56 
     | 
    
         
            +
                else
         
     | 
| 
      
 57 
     | 
    
         
            +
                  s.add_dependency(%q<actionmailer>, [">= 0"])
         
     | 
| 
      
 58 
     | 
    
         
            +
                  s.add_dependency(%q<delayed_job_mongoid>, [">= 0"])
         
     | 
| 
      
 59 
     | 
    
         
            +
                  s.add_dependency(%q<shoulda>, [">= 0"])
         
     | 
| 
      
 60 
     | 
    
         
            +
                  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
         
     | 
| 
      
 61 
     | 
    
         
            +
                  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
         
     | 
| 
      
 62 
     | 
    
         
            +
                  s.add_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 63 
     | 
    
         
            +
                  s.add_dependency(%q<rspec>, [">= 0"])
         
     | 
| 
      
 64 
     | 
    
         
            +
                  s.add_dependency(%q<ruby-debug19>, [">= 0"])
         
     | 
| 
      
 65 
     | 
    
         
            +
                end
         
     | 
| 
      
 66 
     | 
    
         
            +
              else
         
     | 
| 
      
 67 
     | 
    
         
            +
                s.add_dependency(%q<actionmailer>, [">= 0"])
         
     | 
| 
      
 68 
     | 
    
         
            +
                s.add_dependency(%q<delayed_job_mongoid>, [">= 0"])
         
     | 
| 
      
 69 
     | 
    
         
            +
                s.add_dependency(%q<shoulda>, [">= 0"])
         
     | 
| 
      
 70 
     | 
    
         
            +
                s.add_dependency(%q<bundler>, ["~> 1.0.0"])
         
     | 
| 
      
 71 
     | 
    
         
            +
                s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
         
     | 
| 
      
 72 
     | 
    
         
            +
                s.add_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 73 
     | 
    
         
            +
                s.add_dependency(%q<rspec>, [">= 0"])
         
     | 
| 
      
 74 
     | 
    
         
            +
                s.add_dependency(%q<ruby-debug19>, [">= 0"])
         
     | 
| 
      
 75 
     | 
    
         
            +
              end
         
     | 
| 
      
 76 
     | 
    
         
            +
            end
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,17 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module Delayed
         
     | 
| 
      
 2 
     | 
    
         
            +
              class PerformableMethod
         
     | 
| 
      
 3 
     | 
    
         
            +
                def initialize(object, method_name, args)
         
     | 
| 
      
 4 
     | 
    
         
            +
                  raise NoMethodError, "undefined method `#{method_name}' for #{object.inspect}" unless object.respond_to?(method_name, true)
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
                  self.object       = ShallowMongoid.dump(object)
         
     | 
| 
      
 7 
     | 
    
         
            +
                  self.args         = args.map{|a| ShallowMongoid.dump(a) }
         
     | 
| 
      
 8 
     | 
    
         
            +
                  self.method_name  = method_name.to_sym
         
     | 
| 
      
 9 
     | 
    
         
            +
                end
         
     | 
| 
      
 10 
     | 
    
         
            +
                
         
     | 
| 
      
 11 
     | 
    
         
            +
                def perform
         
     | 
| 
      
 12 
     | 
    
         
            +
                  ShallowMongoid.load(object).send(method_name, *args.map{|a| ShallowMongoid.load(a) })
         
     | 
| 
      
 13 
     | 
    
         
            +
                rescue Mongoid::Errors::DocumentNotFound
         
     | 
| 
      
 14 
     | 
    
         
            +
                  true  # do nothing if document has been removed
         
     | 
| 
      
 15 
     | 
    
         
            +
                end
         
     | 
| 
      
 16 
     | 
    
         
            +
              end
         
     | 
| 
      
 17 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module Delayed
         
     | 
| 
      
 2 
     | 
    
         
            +
              module ShallowMongoid
         
     | 
| 
      
 3 
     | 
    
         
            +
                def self.dump(arg)
         
     | 
| 
      
 4 
     | 
    
         
            +
                  if arg.is_a?(::Mongoid::Document)
         
     | 
| 
      
 5 
     | 
    
         
            +
                    ShallowMongoid::DocumentStub.new(arg.class, arg._id.to_s)
         
     | 
| 
      
 6 
     | 
    
         
            +
                  else
         
     | 
| 
      
 7 
     | 
    
         
            +
                    arg
         
     | 
| 
      
 8 
     | 
    
         
            +
                  end
         
     | 
| 
      
 9 
     | 
    
         
            +
                end
         
     | 
| 
      
 10 
     | 
    
         
            +
              
         
     | 
| 
      
 11 
     | 
    
         
            +
                def self.load(arg)
         
     | 
| 
      
 12 
     | 
    
         
            +
                  if arg.is_a?(ShallowMongoid::DocumentStub)
         
     | 
| 
      
 13 
     | 
    
         
            +
                    arg.klass.find(arg.id)
         
     | 
| 
      
 14 
     | 
    
         
            +
                  else
         
     | 
| 
      
 15 
     | 
    
         
            +
                    arg
         
     | 
| 
      
 16 
     | 
    
         
            +
                  end
         
     | 
| 
      
 17 
     | 
    
         
            +
                end
         
     | 
| 
      
 18 
     | 
    
         
            +
              end
         
     | 
| 
      
 19 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,5 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'delayed_job'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require File.dirname(__FILE__) + '/delayed/shallow_mongoid'
         
     | 
| 
      
 3 
     | 
    
         
            +
            require File.dirname(__FILE__) + '/delayed/shallow_mongoid/document_stub'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require File.dirname(__FILE__) + '/delayed/performable_method'
         
     | 
| 
      
 5 
     | 
    
         
            +
            require File.dirname(__FILE__) + '/delayed/performable_mailer'
         
     | 
| 
         @@ -0,0 +1,66 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'spec_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            class TestModel
         
     | 
| 
      
 4 
     | 
    
         
            +
              include ::Mongoid::Document
         
     | 
| 
      
 5 
     | 
    
         
            +
            end
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            describe Delayed::ShallowMongoid::DocumentStub do
         
     | 
| 
      
 8 
     | 
    
         
            +
              before(:each) do
         
     | 
| 
      
 9 
     | 
    
         
            +
                @shallow = Delayed::ShallowMongoid::DocumentStub.new(TestModel, 111)
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
              it "should have a klass" do
         
     | 
| 
      
 12 
     | 
    
         
            +
                @shallow.klass.should == TestModel
         
     | 
| 
      
 13 
     | 
    
         
            +
              end
         
     | 
| 
      
 14 
     | 
    
         
            +
              it "should have an id" do
         
     | 
| 
      
 15 
     | 
    
         
            +
                @shallow.id.should == 111
         
     | 
| 
      
 16 
     | 
    
         
            +
              end
         
     | 
| 
      
 17 
     | 
    
         
            +
            end
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            describe ::Delayed::PerformableMethod do
         
     | 
| 
      
 20 
     | 
    
         
            +
              before(:each) do
         
     | 
| 
      
 21 
     | 
    
         
            +
                @model = TestModel.new(:_id => ::BSON::ObjectId.new)
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              context 'when saving job' do
         
     | 
| 
      
 25 
     | 
    
         
            +
                it "should transform object into shallow version" do
         
     | 
| 
      
 26 
     | 
    
         
            +
                  method = ::Delayed::PerformableMethod.new(@model, :to_s, [])
         
     | 
| 
      
 27 
     | 
    
         
            +
                  method.object.should be_a_kind_of(Delayed::ShallowMongoid::DocumentStub)
         
     | 
| 
      
 28 
     | 
    
         
            +
                  method.object.id.should == @model._id.to_s
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
                it "should transform arg into shallow version" do
         
     | 
| 
      
 31 
     | 
    
         
            +
                  method = ::Delayed::PerformableMethod.new('test', :lines, [@model])
         
     | 
| 
      
 32 
     | 
    
         
            +
                  method.args.first.should be_a_kind_of(Delayed::ShallowMongoid::DocumentStub)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  method.args.first.id.should == @model._id.to_s
         
     | 
| 
      
 34 
     | 
    
         
            +
                end
         
     | 
| 
      
 35 
     | 
    
         
            +
              end
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
              context 'when running job' do
         
     | 
| 
      
 38 
     | 
    
         
            +
                before(:each) do
         
     | 
| 
      
 39 
     | 
    
         
            +
                  @method = ::Delayed::PerformableMethod.new(@model, :to_s, [])
         
     | 
| 
      
 40 
     | 
    
         
            +
                end
         
     | 
| 
      
 41 
     | 
    
         
            +
                it "should look up document" do
         
     | 
| 
      
 42 
     | 
    
         
            +
                  TestModel.should_receive(:find).with(@model._id.to_s).and_return(@model)
         
     | 
| 
      
 43 
     | 
    
         
            +
                  @method.perform
         
     | 
| 
      
 44 
     | 
    
         
            +
                end
         
     | 
| 
      
 45 
     | 
    
         
            +
                it "should do nothing if document not found" do
         
     | 
| 
      
 46 
     | 
    
         
            +
                  error = ::Mongoid::Errors::DocumentNotFound.new(TestModel, @model._id)
         
     | 
| 
      
 47 
     | 
    
         
            +
                  TestModel.should_receive(:find).with(@model._id.to_s).and_raise(error)
         
     | 
| 
      
 48 
     | 
    
         
            +
                  @method.perform.should be_true
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
            describe ::Delayed::PerformableMailer do
         
     | 
| 
      
 54 
     | 
    
         
            +
              before do
         
     | 
| 
      
 55 
     | 
    
         
            +
                @model = TestModel.new(:_id => ::BSON::ObjectId.new)
         
     | 
| 
      
 56 
     | 
    
         
            +
                @email = mock('email', :deliver => true)
         
     | 
| 
      
 57 
     | 
    
         
            +
                @mailer_class = mock('MailerClass', :signup => @email)
         
     | 
| 
      
 58 
     | 
    
         
            +
                @mailer = ::Delayed::PerformableMailer.new(@mailer_class, :signup, [@model])
         
     | 
| 
      
 59 
     | 
    
         
            +
              end
         
     | 
| 
      
 60 
     | 
    
         
            +
              it "should call the method and #deliver on the mailer" do
         
     | 
| 
      
 61 
     | 
    
         
            +
                TestModel.should_receive(:find).with(@model._id.to_s).and_return(@model)
         
     | 
| 
      
 62 
     | 
    
         
            +
                @mailer_class.should_receive(:signup).with(@model)
         
     | 
| 
      
 63 
     | 
    
         
            +
                @email.should_receive(:deliver)
         
     | 
| 
      
 64 
     | 
    
         
            +
                @mailer.perform
         
     | 
| 
      
 65 
     | 
    
         
            +
              end
         
     | 
| 
      
 66 
     | 
    
         
            +
            end
         
     | 
    
        data/spec/spec_helper.rb
    ADDED
    
    
    
        data/test/helper.rb
    ADDED
    
    | 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'rubygems'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'bundler'
         
     | 
| 
      
 3 
     | 
    
         
            +
            begin
         
     | 
| 
      
 4 
     | 
    
         
            +
              Bundler.setup(:default, :development)
         
     | 
| 
      
 5 
     | 
    
         
            +
            rescue Bundler::BundlerError => e
         
     | 
| 
      
 6 
     | 
    
         
            +
              $stderr.puts e.message
         
     | 
| 
      
 7 
     | 
    
         
            +
              $stderr.puts "Run `bundle install` to install missing gems"
         
     | 
| 
      
 8 
     | 
    
         
            +
              exit e.status_code
         
     | 
| 
      
 9 
     | 
    
         
            +
            end
         
     | 
| 
      
 10 
     | 
    
         
            +
            require 'test/unit'
         
     | 
| 
      
 11 
     | 
    
         
            +
            require 'shoulda'
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
         
     | 
| 
      
 14 
     | 
    
         
            +
            $LOAD_PATH.unshift(File.dirname(__FILE__))
         
     | 
| 
      
 15 
     | 
    
         
            +
            require 'delayed_job_shallow_mongoid'
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            class Test::Unit::TestCase
         
     | 
| 
      
 18 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,156 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: delayed_job_shallow_mongoid
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.0
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
      
 6 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 7 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 8 
     | 
    
         
            +
            - Joey Aghion
         
     | 
| 
      
 9 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 10 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 11 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2011-11-29 00:00:00.000000000Z
         
     | 
| 
      
 13 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 14 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 15 
     | 
    
         
            +
              name: actionmailer
         
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: &2168634720 !ruby/object:Gem::Requirement
         
     | 
| 
      
 17 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 18 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 19 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 20 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 21 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 22 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 23 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: *2168634720
         
     | 
| 
      
 25 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 26 
     | 
    
         
            +
              name: delayed_job_mongoid
         
     | 
| 
      
 27 
     | 
    
         
            +
              requirement: &2168632740 !ruby/object:Gem::Requirement
         
     | 
| 
      
 28 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 29 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 30 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 31 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 32 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 33 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 34 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 35 
     | 
    
         
            +
              version_requirements: *2168632740
         
     | 
| 
      
 36 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 37 
     | 
    
         
            +
              name: shoulda
         
     | 
| 
      
 38 
     | 
    
         
            +
              requirement: &2168628960 !ruby/object:Gem::Requirement
         
     | 
| 
      
 39 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 40 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 41 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 42 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 43 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 44 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 45 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 46 
     | 
    
         
            +
              version_requirements: *2168628960
         
     | 
| 
      
 47 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 48 
     | 
    
         
            +
              name: bundler
         
     | 
| 
      
 49 
     | 
    
         
            +
              requirement: &2168626360 !ruby/object:Gem::Requirement
         
     | 
| 
      
 50 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 51 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 52 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: 1.0.0
         
     | 
| 
      
 55 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 56 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 57 
     | 
    
         
            +
              version_requirements: *2168626360
         
     | 
| 
      
 58 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 59 
     | 
    
         
            +
              name: jeweler
         
     | 
| 
      
 60 
     | 
    
         
            +
              requirement: &2168624280 !ruby/object:Gem::Requirement
         
     | 
| 
      
 61 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 62 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 63 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 64 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 65 
     | 
    
         
            +
                    version: 1.6.4
         
     | 
| 
      
 66 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 67 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 68 
     | 
    
         
            +
              version_requirements: *2168624280
         
     | 
| 
      
 69 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 70 
     | 
    
         
            +
              name: rcov
         
     | 
| 
      
 71 
     | 
    
         
            +
              requirement: &2168617660 !ruby/object:Gem::Requirement
         
     | 
| 
      
 72 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 73 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 74 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 75 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 76 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 77 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 78 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 79 
     | 
    
         
            +
              version_requirements: *2168617660
         
     | 
| 
      
 80 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 81 
     | 
    
         
            +
              name: rspec
         
     | 
| 
      
 82 
     | 
    
         
            +
              requirement: &2168616520 !ruby/object:Gem::Requirement
         
     | 
| 
      
 83 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 84 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 85 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 86 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 87 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 88 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 89 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 90 
     | 
    
         
            +
              version_requirements: *2168616520
         
     | 
| 
      
 91 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 92 
     | 
    
         
            +
              name: ruby-debug19
         
     | 
| 
      
 93 
     | 
    
         
            +
              requirement: &2168613960 !ruby/object:Gem::Requirement
         
     | 
| 
      
 94 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 95 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 96 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 97 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 98 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 99 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 100 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 101 
     | 
    
         
            +
              version_requirements: *2168613960
         
     | 
| 
      
 102 
     | 
    
         
            +
            description: When the object or arg to a delayed_job is a Mongoid document, store
         
     | 
| 
      
 103 
     | 
    
         
            +
              only a small stub of the object instead of the full serialization.
         
     | 
| 
      
 104 
     | 
    
         
            +
            email: joey@aghion.com
         
     | 
| 
      
 105 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 106 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 107 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
      
 108 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 109 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 110 
     | 
    
         
            +
            files:
         
     | 
| 
      
 111 
     | 
    
         
            +
            - .document
         
     | 
| 
      
 112 
     | 
    
         
            +
            - Gemfile
         
     | 
| 
      
 113 
     | 
    
         
            +
            - Gemfile.lock
         
     | 
| 
      
 114 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 115 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 116 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 117 
     | 
    
         
            +
            - VERSION
         
     | 
| 
      
 118 
     | 
    
         
            +
            - delayed_job_shallow_mongoid.gemspec
         
     | 
| 
      
 119 
     | 
    
         
            +
            - lib/delayed/performable_mailer.rb
         
     | 
| 
      
 120 
     | 
    
         
            +
            - lib/delayed/performable_method.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            - lib/delayed/shallow_mongoid.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            - lib/delayed/shallow_mongoid/document_stub.rb
         
     | 
| 
      
 123 
     | 
    
         
            +
            - lib/delayed_job_shallow_mongoid.rb
         
     | 
| 
      
 124 
     | 
    
         
            +
            - spec/delayed_job_shallow_mongoid_spec.rb
         
     | 
| 
      
 125 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 126 
     | 
    
         
            +
            - test/helper.rb
         
     | 
| 
      
 127 
     | 
    
         
            +
            - test/test_delayed_job_shallow_mongoid.rb
         
     | 
| 
      
 128 
     | 
    
         
            +
            homepage: http://github.com/jaghion/delayed_job_shallow_mongoid
         
     | 
| 
      
 129 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 130 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 131 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 132 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 133 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 134 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 135 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 136 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 137 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 138 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 139 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 140 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 141 
     | 
    
         
            +
                  segments:
         
     | 
| 
      
 142 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 143 
     | 
    
         
            +
                  hash: -1287393219772870351
         
     | 
| 
      
 144 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 145 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 146 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 147 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 148 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 149 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 150 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 151 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 152 
     | 
    
         
            +
            rubygems_version: 1.8.10
         
     | 
| 
      
 153 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 154 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 155 
     | 
    
         
            +
            summary: More efficient Mongoid document serialization for delayed_job.
         
     | 
| 
      
 156 
     | 
    
         
            +
            test_files: []
         
     |