xoauth 0.2.1 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3272b273bb3bf13c03b95736f8d6e2a74ccb831b
4
- data.tar.gz: c9f4b7d298effe10aa670808f7ac2766ee17bb2f
3
+ metadata.gz: 9ff36db4fe2bd2c912ff958062f467afccd84cd8
4
+ data.tar.gz: 2c101b864a19b76e600f7daea968c60b5e0ac1f1
5
5
  SHA512:
6
- metadata.gz: a4b2e82a8c9cc75c3bcd27ea2456864d079324197140d933fa6266e2b8a5738ad26ad0feccc05d362e80f3e05aab62c958037e4c016507a86808a0a73989c52c
7
- data.tar.gz: 23b31ebb2bfea25c83a1d6c6da434f58cbc23e8476af2dc77099bb75121532810be7d40f70c819d6d18da6dd78a20f517841dd36efc950c0454aa8104d0ca20a
6
+ metadata.gz: 3484f1c7bef635ab0281791228b833c85b4dbdeae9c528b14d3e332f4da290a7f3df60b9389fe9590e587dd667240915f7231bbb82604b2a91d2cb33752f19ac
7
+ data.tar.gz: da580e963aeee725068c8aff2ab3e2355e8883f2ea844a30927f69be99b9885f9a3e9897be184057242339be74a526ff2b92e7c3559f367cc51cfa8f96f9660a
@@ -1,6 +1,9 @@
1
+ require 'mongoid'
2
+
1
3
  module Mongoid
2
4
  module Xoauth
3
5
  extend ActiveSupport::Concern
6
+
4
7
  included do
5
8
  index "oauths.uid" => 1, "oauths._type" => 1
6
9
  end
@@ -62,4 +62,4 @@ module Oauth
62
62
  end
63
63
  end
64
64
 
65
- Dir[File.dirname(__FILE__) + '/provider/*.rb'].each {|file| require file }
65
+ Dir[File.dirname(__FILE__) + '/provider/*.rb'].each {|file| require file }
data/lib/oauth/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oauth
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.5"
3
3
  end
data/lib/oauth.rb CHANGED
@@ -1,7 +1,10 @@
1
- require "oauth/version"
2
- require "oauth/provider"
3
- require "oauth/configure"
1
+ require 'mongoid'
2
+ require 'mongoid/xoauth'
4
3
 
5
4
  module Oauth
6
5
  # Your code goes here...
7
6
  end
7
+
8
+ require "oauth/version"
9
+ require "oauth/provider"
10
+ require "oauth/configure"
data/spec/xoauth_spec.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'mongoid'
2
- require 'mongoid/xoauth'
3
2
  require 'oauth'
4
3
 
5
4
  class User
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xoauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - binz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-15 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,7 +64,6 @@ files:
64
64
  - LICENSE.txt
65
65
  - README.md
66
66
  - Rakefile
67
- - lib/mongoid.rb
68
67
  - lib/mongoid/xoauth.rb
69
68
  - lib/oauth.rb
70
69
  - lib/oauth/configure.rb
data/lib/mongoid.rb DELETED
@@ -1,4 +0,0 @@
1
- require "mongoid/xoauth"
2
-
3
- module Mongoid
4
- end