oauth2-me 0.0.1a → 0.1.1

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: f0a2840365a25e30eb6b8333263c2f5accfc6ebe
4
- data.tar.gz: 90a2fe6cf51c6adffab4756496e6b2a7197cc6f7
3
+ metadata.gz: 91e48623670b8e0887c16c2a9488482556c4a388
4
+ data.tar.gz: 3e490dc793b91dc3935770b2ad60e8ab9691d379
5
5
  SHA512:
6
- metadata.gz: 1b99dbd84abb6327397351cb3e7ba5d9e8b66d2612750854ad321e7f86b3dace36affa0fdf3f49f7799d0960d26b73caf1227068f4451d25b11ae00748435cd0
7
- data.tar.gz: 36ddc52e0e9ac64cdea69629d491880d984edfc58b1d34d2aedcbf57f75b6feff955dffe59e2285c83a675bdd48f3ab07acc6054e43c081e9c9d20497209d8d7
6
+ metadata.gz: ab2fd33437041cf1f86a1a0a789f72add596a178f7d01c50446a4253a928de21d386c48d0d86bbf63a3a24b7f5acb42d6e9ce28eff4dde0484b128bfedc16f34
7
+ data.tar.gz: 071fa0d169ee14cb7924956542c5a444d428ae48aa21ea7fe71a322d6fce3d14099ec72eb7781439924cbd0cfa4b61de44c92f639b453a44f9ceab135aa3f5db
data/README.md CHANGED
@@ -18,14 +18,6 @@ $ bundle
18
18
 
19
19
  ## Usage
20
20
 
21
- ### Devise
22
-
23
- If you are using devise in your application, you should add this to your `initializers/devise.rb`:
24
-
25
- ```ruby
26
- OAuth2Me.setup_devise! unless Rails.env.production?
27
- ```
28
-
29
21
  ### Omniauth
30
22
 
31
23
  The work is still in progress.
data/lib/oauth2-me.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'base64'
2
2
  require 'oauth2-me/omniauth_strategy_updater'
3
+ require 'oauth2-me/railtie' if defined?(Rails)
3
4
 
4
5
  module OAuth2Me
5
6
  class BannedEnvironmentError < StandardError; end
@@ -0,0 +1,9 @@
1
+ module OAuth2Me
2
+ class Railtie < Rails::Railtie
3
+ initializer "oauthtome" do
4
+ if defined?(Devise)
5
+ OAuth2Me.setup_devise! unless Rails.env.production?
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module OAuth2Me
2
- VERSION = '0.0.1a'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth2-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1a
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Dudkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-26 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,7 @@ files:
52
52
  - Rakefile
53
53
  - lib/oauth2-me.rb
54
54
  - lib/oauth2-me/omniauth_strategy_updater.rb
55
+ - lib/oauth2-me/railtie.rb
55
56
  - lib/oauth2-me/version.rb
56
57
  - oauth2-me-ruby.gemspec
57
58
  homepage: http://oauth2.me/
@@ -69,9 +70,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
70
  version: '0'
70
71
  required_rubygems_version: !ruby/object:Gem::Requirement
71
72
  requirements:
72
- - - ">"
73
+ - - ">="
73
74
  - !ruby/object:Gem::Version
74
- version: 1.3.1
75
+ version: '0'
75
76
  requirements: []
76
77
  rubyforge_project:
77
78
  rubygems_version: 2.2.2