domp 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -49,8 +49,9 @@ Here's what the `User` model will look like:
49
49
  ```ruby
50
50
  class User < ActiveRecord::Base
51
51
  has_many :authentications, class_name: 'UserAuthentication'
52
- devise :omniauthable, :database_authenticatable, :registerable,
52
+ devise :omniauthable, :database_authenticatable, :registerable,
53
53
  :recoverable, :rememberable, :trackable, :validatable
54
+ end
54
55
  ```
55
56
 
56
57
  ### User::OmniauthCallbacksController
@@ -1,3 +1,3 @@
1
1
  module Domp
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -37,7 +37,7 @@ class DompGenerator < Rails::Generators::NamedBase
37
37
  end
38
38
 
39
39
  inject_into_file "app/models/#{file_name}.rb", after: " devise" do
40
- " :omniauthable, "
40
+ " :omniauthable,"
41
41
  end
42
42
  end
43
43
 
@@ -1,6 +1,7 @@
1
1
  <% module_namespacing do -%>
2
2
  class AuthenticationProvider < ActiveRecord::Base
3
3
  has_many :<%= table_name %>
4
+ has_many :<%= class_name.downcase %>_authentications
4
5
  <% if Rails::VERSION::MAJOR < 4 -%>
5
6
  attr_accessible :name
6
7
  <% end -%>
@@ -1,5 +1,5 @@
1
1
  <% module_namespacing do -%>
2
- class <%= class_name %>::OmniauthCallbacksController < Devise::OmniauthCallbacksController
2
+ class <%= class_name.pluralize %>::OmniauthCallbacksController < Devise::OmniauthCallbacksController
3
3
 
4
4
  <% providers.each do |provider| -%>
5
5
  def <%= provider %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-18 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Devise Omniauth Multiple Providers
15
15
  email: