dailycred 0.1.42 → 0.1.43
Sign up to get free protection for your applications and to get access to all the features.
- data/dailycred.gemspec +1 -1
- data/dummy/app/controllers/posts_controller.rb +1 -0
- data/dummy/app/views/layouts/application.html.erb +4 -0
- data/dummy/db/migrate/20121108192739_add_column_to_posts.rb +5 -0
- data/dummy/db/schema.rb +2 -1
- data/lib/dailycred/engine.rb +1 -0
- data/lib/dailycred/helper.rb +3 -2
- data/lib/generators/templates/migration_create_user.rb +2 -2
- metadata +3 -2
data/dailycred.gemspec
CHANGED
data/dummy/db/schema.rb
CHANGED
@@ -11,12 +11,13 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20121108192739) do
|
15
15
|
|
16
16
|
create_table "posts", :force => true do |t|
|
17
17
|
t.string "title"
|
18
18
|
t.datetime "created_at", :null => false
|
19
19
|
t.datetime "updated_at", :null => false
|
20
|
+
t.datetime "created"
|
20
21
|
end
|
21
22
|
|
22
23
|
create_table "users", :force => true do |t|
|
data/lib/dailycred/engine.rb
CHANGED
data/lib/dailycred/helper.rb
CHANGED
@@ -25,10 +25,10 @@ module Dailycred
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def login_path(params={})
|
28
|
-
|
28
|
+
connect_path params
|
29
29
|
end
|
30
30
|
|
31
|
-
def connect_path(params)
|
31
|
+
def connect_path(params={})
|
32
32
|
url = "#{request.protocol}#{request.host_with_port}/auth/dailycred"
|
33
33
|
p = []
|
34
34
|
params.each do |k,v|
|
@@ -46,6 +46,7 @@ module Dailycred
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def redirect_to_auth opts={}
|
49
|
+
p 'redirecting to auth'
|
49
50
|
conf = Rails.configuration.DAILYCRED_OPTIONS
|
50
51
|
path = !conf[:after_auth].nil? ? conf[:after_auth] : dailycred_engine.auth_info_path
|
51
52
|
redirect_to path, opts
|
@@ -5,7 +5,7 @@ class CreateUsers < ActiveRecord::Migration
|
|
5
5
|
t.string :provider
|
6
6
|
t.string :uid
|
7
7
|
t.string :email
|
8
|
-
t.
|
8
|
+
t.timestamp :created
|
9
9
|
t.string :username
|
10
10
|
t.boolean :verified
|
11
11
|
t.boolean :admin
|
@@ -28,7 +28,7 @@ class CreateUsers < ActiveRecord::Migration
|
|
28
28
|
safe_column :users, :provider, :string
|
29
29
|
safe_column :users, :uid, :string
|
30
30
|
safe_column :users, :email, :string
|
31
|
-
safe_column :users, :created, :
|
31
|
+
safe_column :users, :created, :timestamp
|
32
32
|
safe_column :users, :username, :string
|
33
33
|
safe_column :users, :verified, :booleanied
|
34
34
|
safe_column :users, :admin, :boolean
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dailycred
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.43
|
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: 2012-11-
|
12
|
+
date: 2012-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- dummy/db/migrate/20120925172903_create_users.rb
|
123
123
|
- dummy/db/migrate/20120926012555_create_posts.rb
|
124
124
|
- dummy/db/migrate/20121002192037_update_users_2.rb
|
125
|
+
- dummy/db/migrate/20121108192739_add_column_to_posts.rb
|
125
126
|
- dummy/db/schema.rb
|
126
127
|
- dummy/db/seeds.rb
|
127
128
|
- dummy/lib/assets/.gitkeep
|