GithubHelp home page GithubHelp logo

employer-mongoid's Introduction

Employer::Mongoid Build Status

NOTE: This code is still experimental

Mongoid backend for Employer

Installation

Add this line to your application's Gemfile:

gem 'employer-mongoid'

And then execute:

$ bundle

Or install it yourself as:

$ gem install employer-mongoid

Usage

Ensure that your Employer configuration starts with something like the below:

require "./config/environment.rb"
require "employer-mongoid"

pipeline_backend Employer::Mongoid::Pipeline.new

If you're not using Rails then require whatever sets up your application's environment instead of config/environment.rb before requiring employer-mongoid.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

employer-mongoid's People

Contributors

mrkcor avatar

Watchers

 avatar

employer-mongoid's Issues

Moped error

This error appears in an application that I'm working on, I am going to investigate the cause:

/home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/sockets/connectable.rb:46:in `read': negative length -8 given (ArgumentError)
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/sockets/connectable.rb:46:in `block in read'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/sockets/connectable.rb:118:in `handle_socket_errors'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/sockets/connectable.rb:46:in `read'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/connection.rb:177:in `read_data'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/connection.rb:113:in `block in read'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/connection.rb:202:in `with_connection'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/connection.rb:97:in `read'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/protocol/query.rb:163:in `receive_replies'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/connection.rb:135:in `block in receive_replies'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/connection.rb:134:in `map'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/connection.rb:134:in `receive_replies'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/node.rb:553:in `block (2 levels) in flush'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/node.rb:129:in `ensure_connected'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/libmoped/node.rb:551:in `block in flush'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/node.rb:566:in `logging'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/node.rb:550:in `flush'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/node.rb:539:in `process'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/node.rb:349:in `query'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/cursor.rb:138:in `block in load_docs'                                    
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/session/context.rb:105:in `block in with_node'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/cluster.rb:250:in `with_secondary'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/session/context.rb:104:in `with_node'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/cursor.rb:137:in `load_docs'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/cursor.rb:25:in `each'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/query.rb:76:in `each'
from /home/vagrant/.gem/ruby/1.9.3/gems/moped-1.4.2/lib/moped/query.rb:76:in `each'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/contextual/mongo.rb:118:in `block in each'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/contextual/mongo.rb:612:in `selecting'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/contextual/mongo.rb:117:in `each'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/contextual.rb:19:in `each' 
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/criterion/findable.rb:125:in `entries'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/criterion/findable.rb:125:in `from_database'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/criterion/findable.rb:93:in `multiple_from_map_or_db'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/libmongoid/criterion/findable.rb:19:in `execute_or_raise'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/criterion/findable.rb:40:in `find'
from /home/vagrant/.gem/ruby/1.9.3/gems/mongoid-3.1.1/lib/mongoid/finders.rb:85:in `find'
from /opt/rubies/ruby-1.9.3-p374/lib/ruby/gems/1.9.1/gems/employer-mongoid-0.2/lib/employer-mongoid/pipeline.rb:32:in `fail'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/pipeline.rb:54:in `fail'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/boss.rb:72:in `update_job_status'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/boss.rb:57:in `block in progress_update'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/boss.rb:56:in `each'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/boss.rb:56:in `progress_update'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/boss.rb:31:in `manage'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/workshop.rb:31:in `run'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/lib/employer/cli.rb:30:in `work'
from /opt/rubies/ruby-1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.17.0/lib/thor/task.rb:27:in `run'
from /opt/rubies/ruby-1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.17.0/lib/thor/invocation.rb:120:in `invoke_task'
from /opt/rubies/ruby-1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.17.0/lib/thor.rb:344:in `dispatch'
from /opt/rubies/ruby-1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.17.0/lib/thor/base.rb:434:in `start'
from /home/vagrant/.gem/ruby/1.9.3/gems/employer-0.3.1/bin/employer:7:in `<top (required)>'
from /home/vagrant/.gem/ruby/1.9.3/bin/employer:23:in `load'
from /home/vagrant/.gem/ruby/1.9.3/bin/employer:23:in `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.