authic_client 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,17 +3,55 @@ module AuthicUserMixin
3
3
 
4
4
  def self.included(base)
5
5
  base.extend(ClassMethods)
6
+ base.extend(InstanceMethods)
6
7
  end
7
8
 
8
9
  module ClassMethods
9
10
  def find_for_authic_oauth(auth, signed_in_resource=nil)
10
11
  user = User.where(:provider => auth.provider, :uid => auth.uid).first
11
- return user if user
12
- create! do |new_user|
13
- new_user.provider = auth.provider
14
- new_user.uid = auth.uid
15
- new_user.email = auth.info.email
16
- end
12
+ user = User.new unless user
13
+
14
+ user.provider = auth.provider
15
+ user.uid = auth.uid
16
+ user.email = auth.info.email
17
+ user.first_name = auth.info.first_name
18
+ user.last_name = auth.info.last_name
19
+ user.full_name = auth.info.full_name
20
+ user.mobile = auth.info.mobile
21
+ user.phone = auth.info.phone
22
+ user.birth_date = auth.info.birth_date
23
+ user.groups = (auth.info.groups.join(",") if auth.info.groups)
24
+ user.roles = (auth.info.roles.join(",") if auth.info.roles)
25
+ user.authic_data = (auth.extra.raw_info.to_json.to_s if auth.extra.raw_info)
26
+
27
+ user.save
28
+ return users
17
29
  end
18
30
  end
31
+
32
+ module InstanceMethods
33
+ def in_group(group_name)
34
+ self.groups.include? group_name
35
+ end
36
+
37
+ def groups
38
+ groups_string = self.read_attribute(:groups)
39
+ groups_string.blank? ? [] : groups_string.split(",")
40
+ end
41
+
42
+ def has_role(role_name)
43
+ self.roles.include? role_name
44
+ end
45
+
46
+ def roles
47
+ roles_string = self.read_attribute(:roles)
48
+ roles_string.blank? ? [] : roles_string.split(",")
49
+ end
50
+
51
+ def authic_data
52
+ authic_data_string = self.read_attribute(:authic_data)
53
+ authic_data_string.blank? ? {} : JSON.load(authic_data_string)
54
+ end
55
+
56
+ end
19
57
  end
@@ -1,3 +1,3 @@
1
1
  module AuthicClient
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -6,6 +6,15 @@ class AuthicCreate<%= table_name.camelize %> < ActiveRecord::Migration
6
6
  t.string :uid
7
7
  t.string :authic_data
8
8
 
9
+ t.string :first_name
10
+ t.string :last_name
11
+ t.string :full_name
12
+ t.string :mobile
13
+ t.string :phone
14
+ t.date :birth_date
15
+ t.string :groups
16
+ t.string :roles
17
+
9
18
 
10
19
  <% attributes.each do |attribute| -%>
11
20
  t.<%= attribute.type %> :<%= attribute.name %>
@@ -6,6 +6,15 @@ class AddAuthicTo<%= table_name.camelize %> < ActiveRecord::Migration
6
6
  t.string :uid unless t.column_exists?(:uid)
7
7
  t.string :authic_data unless t.column_exists?(:authic_data)
8
8
 
9
+ t.string :first_name unless t.column_exists?(:first_name)
10
+ t.string :last_name unless t.column_exists?(:last_name)
11
+ t.string :full_name unless t.column_exists?(:full_name)
12
+ t.string :mobile unless t.column_exists?(:mobile)
13
+ t.string :phone unless t.column_exists?(:phone)
14
+ t.date :birth_date unless t.column_exists?(:birth_date)
15
+ t.string :groups unless t.column_exists?(:groups)
16
+ t.string :roles unless t.column_exists?(:roles)
17
+
9
18
  t.index :email, :unique => true unless t.index_exists?(:email, :unique => true)
10
19
  t.index :provider unless t.index_exists?(:provider)
11
20
  t.index :uid unless t.index_exists?(:uid)
@@ -11,15 +11,23 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20121105131850) do
14
+ ActiveRecord::Schema.define(:version => 20121109231104) do
15
15
 
16
16
  create_table "users", :force => true do |t|
17
17
  t.string "email", :default => "", :null => false
18
- t.datetime "created_at", :null => false
19
- t.datetime "updated_at", :null => false
20
18
  t.string "provider"
21
19
  t.string "uid"
22
20
  t.string "authic_data"
21
+ t.string "first_name"
22
+ t.string "last_name"
23
+ t.string "full_name"
24
+ t.string "mobile"
25
+ t.string "phone"
26
+ t.date "birth_date"
27
+ t.string "groups"
28
+ t.string "roles"
29
+ t.datetime "created_at", :null => false
30
+ t.datetime "updated_at", :null => false
23
31
  end
24
32
 
25
33
  add_index "users", ["email"], :name => "index_users_on_email", :unique => true
@@ -3805,3 +3805,842 @@ Migrating to AddAuthicToUsers (20121105131850)
3805
3805
   (0.1ms) PRAGMA index_info('index_users_on_uid')
3806
3806
   (0.0ms) PRAGMA index_info('index_users_on_provider')
3807
3807
   (0.0ms) PRAGMA index_info('index_users_on_email')
3808
+ Connecting to database specified by database.yml
3809
+ Connecting to database specified by database.yml
3810
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
3811
+ Migrating to AuthicCreateUsers (20121107133659)
3812
+  (0.0ms) select sqlite_version(*)
3813
+  (0.0ms) begin transaction
3814
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "provider" varchar(255), "uid" varchar(255), "authic_data" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "mobile" varchar(255), "phone" varchar(255), "birth_date" date, "groups" varchar(255), "roles" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3815
+ SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "provider" varchar(255), "uid" varchar(255), "authic_data" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "mobile" varchar(255), "phone" varchar(255), "birth_date" date, "groups" varchar(255), "roles" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3816
+  (0.1ms) rollback transaction
3817
+ Connecting to database specified by database.yml
3818
+ Connecting to database specified by database.yml
3819
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
3820
+ Migrating to AddAuthicToUsers (20121107133804)
3821
+  (0.0ms) select sqlite_version(*)
3822
+  (0.0ms) begin transaction
3823
+  (0.5ms) ALTER TABLE "users" ADD "first_name" varchar(255)
3824
+  (0.2ms) ALTER TABLE "users" ADD "last_name" varchar(255)
3825
+  (0.2ms) ALTER TABLE "users" ADD "mobile" varchar(255)
3826
+  (0.2ms) ALTER TABLE "users" ADD "phone" varchar(255)
3827
+  (0.2ms) ALTER TABLE "users" ADD "birth_date" date
3828
+  (0.2ms) ALTER TABLE "users" ADD "groups" varchar(255)
3829
+  (0.2ms) ALTER TABLE "users" ADD "roles" varchar(255)
3830
+  (0.0ms) PRAGMA index_list("users")
3831
+  (0.0ms) PRAGMA index_info('index_users_on_uid')
3832
+  (0.0ms) PRAGMA index_info('index_users_on_provider')
3833
+  (0.0ms) PRAGMA index_info('index_users_on_email')
3834
+  (0.0ms) PRAGMA index_list("users")
3835
+  (0.0ms) PRAGMA index_info('index_users_on_uid')
3836
+  (0.0ms) PRAGMA index_info('index_users_on_provider')
3837
+  (0.0ms) PRAGMA index_info('index_users_on_email')
3838
+  (0.0ms) PRAGMA index_list("users")
3839
+  (0.0ms) PRAGMA index_info('index_users_on_uid')
3840
+  (0.0ms) PRAGMA index_info('index_users_on_provider')
3841
+  (0.0ms) PRAGMA index_info('index_users_on_email')
3842
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121107133804')
3843
+  (3.0ms) commit transaction
3844
+  (0.3ms) select sqlite_version(*)
3845
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
3846
+  (0.0ms) PRAGMA index_list("users")
3847
+  (0.0ms) PRAGMA index_info('index_users_on_uid')
3848
+  (0.0ms) PRAGMA index_info('index_users_on_provider')
3849
+  (0.0ms) PRAGMA index_info('index_users_on_email')
3850
+ Connecting to database specified by database.yml
3851
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
3852
+ Connecting to database specified by database.yml
3853
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
3854
+ Connecting to database specified by database.yml
3855
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
3856
+ Connecting to database specified by database.yml
3857
+ Connecting to database specified by database.yml
3858
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
3859
+ Connecting to database specified by database.yml
3860
+ Connecting to database specified by database.yml
3861
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
3862
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
3863
+ Migrating to AddAuthicToUsers (20121107133804)
3864
+  (0.0ms) select sqlite_version(*)
3865
+  (0.0ms) begin transaction
3866
+  (0.1ms) rollback transaction
3867
+ Connecting to database specified by database.yml
3868
+ Connecting to database specified by database.yml
3869
+  (0.1ms) select sqlite_version(*)
3870
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3871
+  (0.0ms) PRAGMA index_list("schema_migrations")
3872
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3873
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
3874
+ Migrating to AuthicCreateUsers (20121109231104)
3875
+  (0.0ms) begin transaction
3876
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "provider" varchar(255), "uid" varchar(255), "authic_data" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "full_name" varchar(255), "mobile" varchar(255), "phone" varchar(255), "birth_date" date, "groups" varchar(255), "roles" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3877
+  (0.0ms) PRAGMA index_list("users")
3878
+  (0.4ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
3879
+  (0.0ms) PRAGMA index_list("users")
3880
+  (0.0ms) PRAGMA index_info('index_users_on_email')
3881
+  (0.1ms) CREATE INDEX "index_users_on_provider" ON "users" ("provider")
3882
+  (0.0ms) PRAGMA index_list("users")
3883
+  (0.0ms) PRAGMA index_info('index_users_on_provider')
3884
+  (0.0ms) PRAGMA index_info('index_users_on_email')
3885
+  (0.1ms) CREATE INDEX "index_users_on_uid" ON "users" ("uid")
3886
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121109231104')
3887
+  (2.2ms) commit transaction
3888
+  (0.3ms) select sqlite_version(*)
3889
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
3890
+  (0.0ms) PRAGMA index_list("users")
3891
+  (0.0ms) PRAGMA index_info('index_users_on_uid')
3892
+  (0.0ms) PRAGMA index_info('index_users_on_provider')
3893
+  (0.0ms) PRAGMA index_info('index_users_on_email')
3894
+
3895
+
3896
+ Started GET "/" for 127.0.0.1 at 2012-11-10 14:17:17 +1100
3897
+ Connecting to database specified by database.yml
3898
+ Processing by WelcomeController#index as HTML
3899
+ Rendered welcome/index.html.erb within layouts/application (12.6ms)
3900
+ Compiled application.js (28ms) (pid 75155)
3901
+ Completed 200 OK in 177ms (Views: 176.6ms | ActiveRecord: 0.0ms)
3902
+
3903
+
3904
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 14:17:18 +1100
3905
+ Served asset /jquery.js - 304 Not Modified (12ms)
3906
+
3907
+
3908
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 14:17:18 +1100
3909
+ Served asset /application.css - 304 Not Modified (3ms)
3910
+
3911
+
3912
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 14:17:18 +1100
3913
+ Served asset /welcome.css - 304 Not Modified (3ms)
3914
+
3915
+
3916
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 14:17:18 +1100
3917
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
3918
+
3919
+
3920
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 14:17:18 +1100
3921
+ Served asset /welcome.js - 304 Not Modified (2ms)
3922
+
3923
+
3924
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 14:17:18 +1100
3925
+ Served asset /application.js - 304 Not Modified (71ms)
3926
+
3927
+
3928
+ Started GET "/auth/authic?&authic_action=signin" for 127.0.0.1 at 2012-11-10 14:17:22 +1100
3929
+
3930
+
3931
+ Started GET "/" for 127.0.0.1 at 2012-11-10 14:19:44 +1100
3932
+ Processing by WelcomeController#index as HTML
3933
+ Rendered welcome/index.html.erb within layouts/application (0.2ms)
3934
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
3935
+
3936
+
3937
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 14:19:44 +1100
3938
+ Served asset /application.css - 304 Not Modified (1ms)
3939
+
3940
+
3941
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 14:19:44 +1100
3942
+ Served asset /welcome.css - 304 Not Modified (0ms)
3943
+
3944
+
3945
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 14:19:44 +1100
3946
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3947
+
3948
+
3949
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 14:19:44 +1100
3950
+ Served asset /jquery.js - 304 Not Modified (0ms)
3951
+
3952
+
3953
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 14:19:44 +1100
3954
+ Served asset /welcome.js - 304 Not Modified (0ms)
3955
+
3956
+
3957
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 14:19:44 +1100
3958
+ Served asset /application.js - 304 Not Modified (0ms)
3959
+
3960
+
3961
+ Started GET "/auth/authic?&authic_action=signin" for 127.0.0.1 at 2012-11-10 14:19:47 +1100
3962
+
3963
+
3964
+ Started GET "/" for 127.0.0.1 at 2012-11-10 14:40:16 +1100
3965
+ Processing by WelcomeController#index as HTML
3966
+ Rendered welcome/index.html.erb within layouts/application (0.2ms)
3967
+ Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)
3968
+
3969
+
3970
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 14:40:16 +1100
3971
+ Served asset /welcome.css - 304 Not Modified (0ms)
3972
+
3973
+
3974
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 14:40:16 +1100
3975
+ Served asset /jquery.js - 304 Not Modified (0ms)
3976
+
3977
+
3978
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 14:40:16 +1100
3979
+ Served asset /application.css - 304 Not Modified (0ms)
3980
+
3981
+
3982
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 14:40:16 +1100
3983
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3984
+
3985
+
3986
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 14:40:16 +1100
3987
+ Served asset /welcome.js - 304 Not Modified (0ms)
3988
+
3989
+
3990
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 14:40:16 +1100
3991
+ Served asset /application.js - 304 Not Modified (0ms)
3992
+
3993
+
3994
+ Started GET "/auth/authic?&authic_action=signin" for 127.0.0.1 at 2012-11-10 14:40:17 +1100
3995
+
3996
+
3997
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:18:15 +1100
3998
+ Connecting to database specified by database.yml
3999
+ Processing by WelcomeController#index as HTML
4000
+ Rendered welcome/index.html.erb within layouts/application (10.3ms)
4001
+ Completed 200 OK in 89ms (Views: 88.2ms | ActiveRecord: 0.0ms)
4002
+
4003
+
4004
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:18:17 +1100
4005
+ Served asset /application.css - 304 Not Modified (8ms)
4006
+
4007
+
4008
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:18:17 +1100
4009
+ Served asset /jquery.js - 200 OK (3ms)
4010
+
4011
+
4012
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:18:17 +1100
4013
+ Served asset /welcome.css - 304 Not Modified (2ms)
4014
+
4015
+
4016
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:18:17 +1100
4017
+ Served asset /jquery_ujs.js - 200 OK (2ms)
4018
+
4019
+
4020
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:18:17 +1100
4021
+ Served asset /welcome.js - 304 Not Modified (1ms)
4022
+
4023
+
4024
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:18:17 +1100
4025
+ Served asset /application.js - 304 Not Modified (5ms)
4026
+
4027
+
4028
+ Started GET "/auth/authic?&authic_action=signin" for 127.0.0.1 at 2012-11-10 15:18:21 +1100
4029
+
4030
+
4031
+ Started GET "/auth/authic?&authic_action=signup" for 127.0.0.1 at 2012-11-10 15:18:34 +1100
4032
+
4033
+
4034
+ Started GET "/auth/authic?&authic_action=signup" for 127.0.0.1 at 2012-11-10 15:18:49 +1100
4035
+
4036
+
4037
+ Started GET "/auth/authic/callback?code=HmCp0Ox1uZC6G03AXazw&state=36fae63bec2826b436e7c6282f51dfc5ca8a7fb224eb660c" for 127.0.0.1 at 2012-11-10 15:19:48 +1100
4038
+
4039
+ Faraday::Error::ConnectionFailed (Connection reset by peer):
4040
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135:in `read_nonblock'
4041
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135:in `rbuf_fill'
4042
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
4043
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
4044
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2222:in `read_status_line'
4045
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2211:in `read_new'
4046
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1194:in `transport_request'
4047
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1180:in `request'
4048
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1173:in `block in request'
4049
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:630:in `start'
4050
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1171:in `request'
4051
+ faraday (0.8.4) lib/faraday/adapter/net_http.rb:74:in `perform_request'
4052
+ faraday (0.8.4) lib/faraday/adapter/net_http.rb:37:in `call'
4053
+ faraday (0.8.4) lib/faraday/request/url_encoded.rb:14:in `call'
4054
+ faraday (0.8.4) lib/faraday/connection.rb:226:in `run_request'
4055
+ oauth2 (0.8.0) lib/oauth2/client.rb:88:in `request'
4056
+ oauth2 (0.8.0) lib/oauth2/client.rb:102:in `request'
4057
+ oauth2 (0.8.0) lib/oauth2/client.rb:131:in `get_token'
4058
+ oauth2 (0.8.0) lib/oauth2/strategy/auth_code.rb:29:in `get_token'
4059
+ omniauth-oauth2 (1.1.1) lib/omniauth/strategies/oauth2.rb:103:in `build_access_token'
4060
+ omniauth-oauth2 (1.1.1) lib/omniauth/strategies/oauth2.rb:78:in `callback_phase'
4061
+ omniauth (1.1.1) lib/omniauth/strategy.rb:219:in `callback_call'
4062
+ omniauth (1.1.1) lib/omniauth/strategy.rb:175:in `call!'
4063
+ omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call'
4064
+ omniauth (1.1.1) lib/omniauth/builder.rb:48:in `call'
4065
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
4066
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
4067
+ rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
4068
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
4069
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
4070
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
4071
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
4072
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
4073
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
4074
+ activerecord (3.2.8) lib/active_record/query_cache.rb:64:in `call'
4075
+ activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
4076
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
4077
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__3948008509953952102__call__3900245888015617529__callbacks'
4078
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
4079
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
4080
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
4081
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4082
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
4083
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
4084
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
4085
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
4086
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
4087
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
4088
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
4089
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
4090
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
4091
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
4092
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
4093
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
4094
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
4095
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
4096
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
4097
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
4098
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
4099
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
4100
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
4101
+ /Users/ctrand/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
4102
+
4103
+
4104
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.2-p180@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
4105
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.2-p180@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
4106
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.2-p180@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.4ms)
4107
+
4108
+
4109
+ Started GET "/auth/authic/callback?code=HmCp0Ox1uZC6G03AXazw&state=36fae63bec2826b436e7c6282f51dfc5ca8a7fb224eb660c" for 127.0.0.1 at 2012-11-10 15:27:27 +1100
4110
+ Connecting to database specified by database.yml
4111
+
4112
+ URI::InvalidURIError (bad URI(is not URI?): http://< your authic subdomain >.authic.com):
4113
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:176:in `split'
4114
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:211:in `parse'
4115
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:747:in `parse'
4116
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:994:in `URI'
4117
+ faraday (0.8.4) lib/faraday/connection.rb:169:in `URI'
4118
+ faraday (0.8.4) lib/faraday/connection.rb:190:in `url_prefix='
4119
+ faraday (0.8.4) lib/faraday/connection.rb:40:in `initialize'
4120
+ faraday (0.8.4) lib/faraday.rb:11:in `new'
4121
+ faraday (0.8.4) lib/faraday.rb:11:in `new'
4122
+ oauth2 (0.8.0) lib/oauth2/client.rb:51:in `connection'
4123
+ oauth2 (0.8.0) lib/oauth2/client.rb:70:in `token_url'
4124
+ oauth2 (0.8.0) lib/oauth2/client.rb:131:in `get_token'
4125
+ oauth2 (0.8.0) lib/oauth2/strategy/auth_code.rb:29:in `get_token'
4126
+ omniauth-oauth2 (1.1.1) lib/omniauth/strategies/oauth2.rb:99:in `build_access_token'
4127
+ omniauth-oauth2 (1.1.1) lib/omniauth/strategies/oauth2.rb:74:in `callback_phase'
4128
+ omniauth (1.1.1) lib/omniauth/strategy.rb:219:in `callback_call'
4129
+ omniauth (1.1.1) lib/omniauth/strategy.rb:175:in `call!'
4130
+ omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call'
4131
+ omniauth (1.1.1) lib/omniauth/builder.rb:48:in `call'
4132
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
4133
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
4134
+ rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
4135
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
4136
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
4137
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
4138
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
4139
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
4140
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
4141
+ activerecord (3.2.8) lib/active_record/query_cache.rb:64:in `call'
4142
+ activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
4143
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
4144
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__2293366689710997425__call__3853446439037193768__callbacks'
4145
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
4146
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
4147
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
4148
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4149
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
4150
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
4151
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
4152
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
4153
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
4154
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
4155
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
4156
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
4157
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
4158
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
4159
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
4160
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
4161
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
4162
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
4163
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
4164
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
4165
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
4166
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
4167
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
4168
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
4169
+
4170
+
4171
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.3-p286@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
4172
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.3-p286@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
4173
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.3-p286@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.9ms)
4174
+
4175
+
4176
+ Started GET "/auth/authic/callback?code=HmCp0Ox1uZC6G03AXazw&state=36fae63bec2826b436e7c6282f51dfc5ca8a7fb224eb660c" for 127.0.0.1 at 2012-11-10 15:29:33 +1100
4177
+
4178
+ URI::InvalidURIError (bad URI(is not URI?): http://< your authic subdomain >.authic.com):
4179
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:176:in `split'
4180
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:211:in `parse'
4181
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:747:in `parse'
4182
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/uri/common.rb:994:in `URI'
4183
+ faraday (0.8.4) lib/faraday/connection.rb:169:in `URI'
4184
+ faraday (0.8.4) lib/faraday/connection.rb:190:in `url_prefix='
4185
+ faraday (0.8.4) lib/faraday/connection.rb:40:in `initialize'
4186
+ faraday (0.8.4) lib/faraday.rb:11:in `new'
4187
+ faraday (0.8.4) lib/faraday.rb:11:in `new'
4188
+ oauth2 (0.8.0) lib/oauth2/client.rb:51:in `connection'
4189
+ oauth2 (0.8.0) lib/oauth2/client.rb:70:in `token_url'
4190
+ oauth2 (0.8.0) lib/oauth2/client.rb:131:in `get_token'
4191
+ oauth2 (0.8.0) lib/oauth2/strategy/auth_code.rb:29:in `get_token'
4192
+ omniauth-oauth2 (1.1.1) lib/omniauth/strategies/oauth2.rb:99:in `build_access_token'
4193
+ omniauth-oauth2 (1.1.1) lib/omniauth/strategies/oauth2.rb:74:in `callback_phase'
4194
+ omniauth (1.1.1) lib/omniauth/strategy.rb:219:in `callback_call'
4195
+ omniauth (1.1.1) lib/omniauth/strategy.rb:175:in `call!'
4196
+ omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call'
4197
+ omniauth (1.1.1) lib/omniauth/builder.rb:48:in `call'
4198
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
4199
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
4200
+ rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
4201
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
4202
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
4203
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
4204
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
4205
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
4206
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
4207
+ activerecord (3.2.8) lib/active_record/query_cache.rb:64:in `call'
4208
+ activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
4209
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
4210
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__2293366689710997425__call__3853446439037193768__callbacks'
4211
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
4212
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
4213
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
4214
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4215
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
4216
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
4217
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
4218
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
4219
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
4220
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
4221
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
4222
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
4223
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
4224
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
4225
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
4226
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
4227
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
4228
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
4229
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
4230
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
4231
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
4232
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
4233
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
4234
+ /Users/ctrand/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
4235
+
4236
+
4237
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.3-p286@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
4238
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.3-p286@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
4239
+ Rendered /Users/ctrand/.rvm/gems/ruby-1.9.3-p286@authic_client/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.8ms)
4240
+
4241
+
4242
+ Started GET "/auth/authic/callback?code=HmCp0Ox1uZC6G03AXazw&state=36fae63bec2826b436e7c6282f51dfc5ca8a7fb224eb660c" for 127.0.0.1 at 2012-11-10 15:29:48 +1100
4243
+ Connecting to database specified by database.yml
4244
+ Processing by AuthicClient::SessionsController#create as HTML
4245
+ Parameters: {"code"=>"HmCp0Ox1uZC6G03AXazw", "state"=>"36fae63bec2826b436e7c6282f51dfc5ca8a7fb224eb660c"}
4246
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
4247
+ User Load (11.3ms) SELECT "users".* FROM "users" WHERE "users"."provider" = 'authic' AND "users"."uid" = 4 LIMIT 1
4248
+  (0.1ms) begin transaction
4249
+ SQL (4.8ms) INSERT INTO "users" ("authic_data", "birth_date", "created_at", "email", "first_name", "full_name", "groups", "last_name", "mobile", "phone", "provider", "roles", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["authic_data", "{\"id\":4,\"email\":\"carl@authic.com\",\"first_name\":null,\"last_name\":null,\"full_name\":null,\"birth_date\":null,\"mobile\":null,\"phone\":null,\"groups\":[\"users\"],\"roles\":null}"], ["birth_date", nil], ["created_at", Sat, 10 Nov 2012 04:29:52 UTC +00:00], ["email", "carl@authic.com"], ["first_name", nil], ["full_name", nil], ["groups", nil], ["last_name", nil], ["mobile", nil], ["phone", nil], ["provider", "authic"], ["roles", nil], ["uid", 4], ["updated_at", Sat, 10 Nov 2012 04:29:52 UTC +00:00]]
4250
+  (2.5ms) commit transaction
4251
+ Redirected to http://localhost:3000/
4252
+ Completed 302 Found in 139ms (ActiveRecord: 20.6ms)
4253
+
4254
+
4255
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:29:52 +1100
4256
+ Processing by WelcomeController#index as HTML
4257
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4258
+ Rendered welcome/index.html.erb within layouts/application (4.4ms)
4259
+ Compiled jquery.js (4ms) (pid 76187)
4260
+ Compiled jquery_ujs.js (0ms) (pid 76187)
4261
+ Compiled application.js (58ms) (pid 76187)
4262
+ Completed 200 OK in 116ms (Views: 114.9ms | ActiveRecord: 0.2ms)
4263
+
4264
+
4265
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:29:52 +1100
4266
+ Served asset /application.css - 304 Not Modified (2ms)
4267
+
4268
+
4269
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:29:52 +1100
4270
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
4271
+
4272
+
4273
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:29:53 +1100
4274
+ Served asset /jquery.js - 304 Not Modified (4ms)
4275
+
4276
+
4277
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:29:53 +1100
4278
+ Served asset /application.js - 304 Not Modified (7ms)
4279
+
4280
+
4281
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:29:53 +1100
4282
+ Served asset /welcome.js - 304 Not Modified (1ms)
4283
+
4284
+
4285
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:29:53 +1100
4286
+ Served asset /welcome.css - 304 Not Modified (1ms)
4287
+
4288
+
4289
+ Started GET "/signout" for 127.0.0.1 at 2012-11-10 15:30:22 +1100
4290
+ Processing by AuthicClient::SessionsController#destroy as HTML
4291
+ Redirected to https://testapp.authic.com/authic_sign_out?&return_path=http://localhost:3000/
4292
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
4293
+
4294
+
4295
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:30:23 +1100
4296
+ Processing by WelcomeController#index as HTML
4297
+ Rendered welcome/index.html.erb within layouts/application (0.2ms)
4298
+ Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
4299
+
4300
+
4301
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:30:23 +1100
4302
+ Served asset /application.css - 304 Not Modified (0ms)
4303
+
4304
+
4305
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:30:23 +1100
4306
+ Served asset /welcome.css - 304 Not Modified (0ms)
4307
+
4308
+
4309
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:23 +1100
4310
+ Served asset /jquery.js - 304 Not Modified (0ms)
4311
+
4312
+
4313
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:23 +1100
4314
+ Served asset /application.js - 304 Not Modified (0ms)
4315
+
4316
+
4317
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:23 +1100
4318
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
4319
+
4320
+
4321
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:23 +1100
4322
+ Served asset /welcome.js - 304 Not Modified (0ms)
4323
+
4324
+
4325
+ Started GET "/auth/authic?&authic_action=signin" for 127.0.0.1 at 2012-11-10 15:30:25 +1100
4326
+
4327
+
4328
+ Started GET "/auth/authic/callback?code=1Q9ehaBWwTToTAO34r36&state=0663003092c9a12f26897d691c7bc98253259ce68e175d2e" for 127.0.0.1 at 2012-11-10 15:30:38 +1100
4329
+ Processing by AuthicClient::SessionsController#create as HTML
4330
+ Parameters: {"code"=>"1Q9ehaBWwTToTAO34r36", "state"=>"0663003092c9a12f26897d691c7bc98253259ce68e175d2e"}
4331
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."provider" = 'authic' AND "users"."uid" = 4 LIMIT 1
4332
+ Redirected to http://localhost:3000/
4333
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
4334
+
4335
+
4336
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:30:42 +1100
4337
+ Processing by WelcomeController#index as HTML
4338
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4339
+ Rendered welcome/index.html.erb within layouts/application (1.3ms)
4340
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms)
4341
+
4342
+
4343
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:30:42 +1100
4344
+ Served asset /application.css - 304 Not Modified (0ms)
4345
+
4346
+
4347
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:42 +1100
4348
+ Served asset /jquery.js - 304 Not Modified (0ms)
4349
+
4350
+
4351
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:42 +1100
4352
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
4353
+
4354
+
4355
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:30:42 +1100
4356
+ Served asset /welcome.css - 304 Not Modified (0ms)
4357
+
4358
+
4359
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:42 +1100
4360
+ Served asset /welcome.js - 304 Not Modified (0ms)
4361
+
4362
+
4363
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:30:42 +1100
4364
+ Served asset /application.js - 304 Not Modified (0ms)
4365
+
4366
+
4367
+ Started GET "/signout" for 127.0.0.1 at 2012-11-10 15:33:52 +1100
4368
+ Connecting to database specified by database.yml
4369
+ Processing by AuthicClient::SessionsController#destroy as HTML
4370
+ Redirected to https://testapp.authic.com/authic_sign_out?&return_path=http://localhost:3000/
4371
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
4372
+
4373
+
4374
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:33:54 +1100
4375
+ Processing by WelcomeController#index as HTML
4376
+ Rendered welcome/index.html.erb within layouts/application (2.1ms)
4377
+ Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.0ms)
4378
+
4379
+
4380
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:33:54 +1100
4381
+ Served asset /application.css - 304 Not Modified (27ms)
4382
+
4383
+
4384
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:33:54 +1100
4385
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
4386
+
4387
+
4388
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:33:54 +1100
4389
+ Served asset /jquery.js - 304 Not Modified (8ms)
4390
+
4391
+
4392
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:33:54 +1100
4393
+ Served asset /welcome.js - 304 Not Modified (1ms)
4394
+
4395
+
4396
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:33:54 +1100
4397
+ Served asset /welcome.css - 304 Not Modified (1ms)
4398
+
4399
+
4400
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:33:54 +1100
4401
+ Served asset /application.js - 304 Not Modified (17ms)
4402
+
4403
+
4404
+ Started GET "/auth/authic?&authic_action=signin" for 127.0.0.1 at 2012-11-10 15:33:56 +1100
4405
+
4406
+
4407
+ Started GET "/auth/authic/callback?code=UzWGcF4UtcMIpgb9pP3p&state=a362da05be0a06d520b6035e9a792a661c58f09cd1de5ca9" for 127.0.0.1 at 2012-11-10 15:34:06 +1100
4408
+ Processing by AuthicClient::SessionsController#create as HTML
4409
+ Parameters: {"code"=>"UzWGcF4UtcMIpgb9pP3p", "state"=>"a362da05be0a06d520b6035e9a792a661c58f09cd1de5ca9"}
4410
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
4411
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."provider" = 'authic' AND "users"."uid" = 4 LIMIT 1
4412
+ Redirected to http://localhost:3000/
4413
+ Completed 302 Found in 71ms (ActiveRecord: 2.1ms)
4414
+
4415
+
4416
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:34:09 +1100
4417
+ Processing by WelcomeController#index as HTML
4418
+ User Load (3.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4419
+ Rendered welcome/index.html.erb within layouts/application (5.1ms)
4420
+ Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 3.5ms)
4421
+
4422
+
4423
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:10 +1100
4424
+ Served asset /application.css - 304 Not Modified (0ms)
4425
+
4426
+
4427
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:10 +1100
4428
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
4429
+
4430
+
4431
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:10 +1100
4432
+ Served asset /jquery.js - 304 Not Modified (0ms)
4433
+
4434
+
4435
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:10 +1100
4436
+ Served asset /welcome.css - 304 Not Modified (0ms)
4437
+
4438
+
4439
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:10 +1100
4440
+ Served asset /welcome.js - 304 Not Modified (0ms)
4441
+
4442
+
4443
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:10 +1100
4444
+ Served asset /application.js - 304 Not Modified (0ms)
4445
+
4446
+
4447
+ Started GET "/signout" for 127.0.0.1 at 2012-11-10 15:34:13 +1100
4448
+ Processing by AuthicClient::SessionsController#destroy as HTML
4449
+ Redirected to https://testapp.authic.com/authic_sign_out?&return_path=http://localhost:3000/
4450
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
4451
+
4452
+
4453
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:34:14 +1100
4454
+ Processing by WelcomeController#index as HTML
4455
+ Rendered welcome/index.html.erb within layouts/application (0.1ms)
4456
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
4457
+
4458
+
4459
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:14 +1100
4460
+ Served asset /application.css - 304 Not Modified (0ms)
4461
+
4462
+
4463
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:14 +1100
4464
+ Served asset /welcome.css - 304 Not Modified (0ms)
4465
+
4466
+
4467
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:14 +1100
4468
+ Served asset /application.js - 304 Not Modified (0ms)
4469
+
4470
+
4471
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:14 +1100
4472
+ Served asset /jquery.js - 304 Not Modified (0ms)
4473
+
4474
+
4475
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:14 +1100
4476
+ Served asset /welcome.js - 304 Not Modified (0ms)
4477
+
4478
+
4479
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:14 +1100
4480
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
4481
+
4482
+
4483
+ Started GET "/auth/authic?&authic_action=signup" for 127.0.0.1 at 2012-11-10 15:34:16 +1100
4484
+
4485
+
4486
+ Started GET "/auth/authic/callback?code=Hx6UM0aSZXLTByQVNfJs&state=f3e878d6d028c6973f6692f5d09058ee1a62b65087c22c9c" for 127.0.0.1 at 2012-11-10 15:34:32 +1100
4487
+ Processing by AuthicClient::SessionsController#create as HTML
4488
+ Parameters: {"code"=>"Hx6UM0aSZXLTByQVNfJs", "state"=>"f3e878d6d028c6973f6692f5d09058ee1a62b65087c22c9c"}
4489
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."provider" = 'authic' AND "users"."uid" = 5 LIMIT 1
4490
+  (0.0ms) begin transaction
4491
+ SQL (1.7ms) INSERT INTO "users" ("authic_data", "birth_date", "created_at", "email", "first_name", "full_name", "groups", "last_name", "mobile", "phone", "provider", "roles", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["authic_data", "{\"id\":5,\"email\":\"james@authic.com\",\"first_name\":null,\"last_name\":null,\"full_name\":null,\"birth_date\":null,\"mobile\":null,\"phone\":null,\"groups\":[\"users\"],\"roles\":null}"], ["birth_date", nil], ["created_at", Sat, 10 Nov 2012 04:34:35 UTC +00:00], ["email", "james@authic.com"], ["first_name", nil], ["full_name", nil], ["groups", "users"], ["last_name", nil], ["mobile", nil], ["phone", nil], ["provider", "authic"], ["roles", nil], ["uid", 5], ["updated_at", Sat, 10 Nov 2012 04:34:35 UTC +00:00]]
4492
+  (3.1ms) commit transaction
4493
+ Redirected to http://localhost:3000/
4494
+ Completed 302 Found in 10ms (ActiveRecord: 5.2ms)
4495
+
4496
+
4497
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:34:35 +1100
4498
+ Processing by WelcomeController#index as HTML
4499
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
4500
+ Rendered welcome/index.html.erb within layouts/application (1.6ms)
4501
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.1ms)
4502
+
4503
+
4504
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:35 +1100
4505
+ Served asset /welcome.css - 304 Not Modified (0ms)
4506
+
4507
+
4508
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:35 +1100
4509
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
4510
+
4511
+
4512
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:35 +1100
4513
+ Served asset /application.css - 304 Not Modified (0ms)
4514
+
4515
+
4516
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:35 +1100
4517
+ Served asset /welcome.js - 304 Not Modified (0ms)
4518
+
4519
+
4520
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:35 +1100
4521
+ Served asset /application.js - 304 Not Modified (0ms)
4522
+
4523
+
4524
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:35 +1100
4525
+ Served asset /jquery.js - 304 Not Modified (0ms)
4526
+
4527
+
4528
+ Started GET "/signout" for 127.0.0.1 at 2012-11-10 15:34:45 +1100
4529
+ Processing by AuthicClient::SessionsController#destroy as HTML
4530
+ Redirected to https://testapp.authic.com/authic_sign_out?&return_path=http://localhost:3000/
4531
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
4532
+
4533
+
4534
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:34:45 +1100
4535
+ Processing by WelcomeController#index as HTML
4536
+ Rendered welcome/index.html.erb within layouts/application (0.2ms)
4537
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
4538
+
4539
+
4540
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:45 +1100
4541
+ Served asset /application.css - 304 Not Modified (0ms)
4542
+
4543
+
4544
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:34:45 +1100
4545
+ Served asset /welcome.css - 304 Not Modified (0ms)
4546
+
4547
+
4548
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:45 +1100
4549
+ Served asset /application.js - 304 Not Modified (0ms)
4550
+
4551
+
4552
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:46 +1100
4553
+ Served asset /jquery.js - 304 Not Modified (0ms)
4554
+
4555
+
4556
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:46 +1100
4557
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
4558
+
4559
+
4560
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:34:46 +1100
4561
+ Served asset /welcome.js - 304 Not Modified (0ms)
4562
+ Connecting to database specified by database.yml
4563
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
4564
+
4565
+
4566
+ Started GET "/auth/authic?&authic_action=signin" for 127.0.0.1 at 2012-11-10 15:39:27 +1100
4567
+ Connecting to database specified by database.yml
4568
+
4569
+
4570
+ Started GET "/auth/authic/callback?code=LzNWqBA4TsYIgpyniJA9&state=7c757e8b226a8b4f25c0ee411457c266ddcef35a68e66c74" for 127.0.0.1 at 2012-11-10 15:39:36 +1100
4571
+ Processing by AuthicClient::SessionsController#create as HTML
4572
+ Parameters: {"code"=>"LzNWqBA4TsYIgpyniJA9", "state"=>"7c757e8b226a8b4f25c0ee411457c266ddcef35a68e66c74"}
4573
+ DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in AuthicUserMixin instead. (called from include at /Users/ctrand/Documents/authic/authic_client/test/dummy/app/models/user.rb:2)
4574
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."provider" = 'authic' AND "users"."uid" = 4 LIMIT 1
4575
+  (0.1ms) begin transaction
4576
+  (0.4ms) UPDATE "users" SET "uid" = 4, "groups" = 'users', "updated_at" = '2012-11-10 04:39:39.419869' WHERE "users"."id" = 1
4577
+  (2.2ms) commit transaction
4578
+ Redirected to http://localhost:3000/
4579
+ Completed 302 Found in 83ms (ActiveRecord: 4.6ms)
4580
+
4581
+
4582
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:39:39 +1100
4583
+ Processing by WelcomeController#index as HTML
4584
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4585
+ Rendered welcome/index.html.erb within layouts/application (4.1ms)
4586
+ Completed 200 OK in 28ms (Views: 27.5ms | ActiveRecord: 0.3ms)
4587
+
4588
+
4589
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:39 +1100
4590
+ Served asset /jquery_ujs.js - 304 Not Modified (32ms)
4591
+
4592
+
4593
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:39 +1100
4594
+ Served asset /jquery.js - 304 Not Modified (2ms)
4595
+
4596
+
4597
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:39:39 +1100
4598
+ Served asset /welcome.css - 304 Not Modified (1ms)
4599
+
4600
+
4601
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:39 +1100
4602
+ Served asset /welcome.js - 304 Not Modified (1ms)
4603
+
4604
+
4605
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:39:39 +1100
4606
+ Served asset /application.css - 304 Not Modified (4ms)
4607
+
4608
+
4609
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:39 +1100
4610
+ Served asset /application.js - 304 Not Modified (6ms)
4611
+
4612
+
4613
+ Started GET "/signout" for 127.0.0.1 at 2012-11-10 15:39:42 +1100
4614
+ Processing by AuthicClient::SessionsController#destroy as HTML
4615
+ Redirected to https://testapp.authic.com/authic_sign_out?&return_path=http://localhost:3000/
4616
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
4617
+
4618
+
4619
+ Started GET "/" for 127.0.0.1 at 2012-11-10 15:39:42 +1100
4620
+ Processing by WelcomeController#index as HTML
4621
+ Rendered welcome/index.html.erb within layouts/application (0.2ms)
4622
+ Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
4623
+
4624
+
4625
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-11-10 15:39:43 +1100
4626
+ Served asset /application.css - 304 Not Modified (0ms)
4627
+
4628
+
4629
+ Started GET "/assets/welcome.css?body=1" for 127.0.0.1 at 2012-11-10 15:39:43 +1100
4630
+ Served asset /welcome.css - 304 Not Modified (0ms)
4631
+
4632
+
4633
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:43 +1100
4634
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
4635
+
4636
+
4637
+ Started GET "/assets/welcome.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:43 +1100
4638
+ Served asset /welcome.js - 304 Not Modified (0ms)
4639
+
4640
+
4641
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:43 +1100
4642
+ Served asset /application.js - 304 Not Modified (0ms)
4643
+
4644
+
4645
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-11-10 15:39:43 +1100
4646
+ Served asset /jquery.js - 304 Not Modified (0ms)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: authic_client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - authic
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-11-05 00:00:00 Z
13
+ date: 2012-11-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -83,7 +83,6 @@ files:
83
83
  - test/dummy/app/controllers/welcome_controller.rb
84
84
  - test/dummy/app/helpers/application_helper.rb
85
85
  - test/dummy/app/helpers/welcome_helper.rb
86
- - test/dummy/app/models/user.rb
87
86
  - test/dummy/app/views/layouts/application.html.erb
88
87
  - test/dummy/app/views/welcome/index.html.erb
89
88
  - test/dummy/config/application.rb
@@ -104,8 +103,6 @@ files:
104
103
  - test/dummy/config/locales/en.yml
105
104
  - test/dummy/config/routes.rb
106
105
  - test/dummy/config.ru
107
- - test/dummy/db/development.sqlite3
108
- - test/dummy/db/migrate/20121105131850_add_authic_to_users.rb
109
106
  - test/dummy/db/schema.rb
110
107
  - test/dummy/log/development.log
111
108
  - test/dummy/public/404.html
@@ -121,10 +118,12 @@ files:
121
118
  - test/dummy/test/unit/user_test.rb
122
119
  - test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c
123
120
  - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
121
+ - test/dummy/tmp/cache/assets/CDA/780/sprockets%2Fc868b132d20fd2c5a247283ec51a6496
124
122
  - test/dummy/tmp/cache/assets/D12/B20/sprockets%2F13d2d9bb581816f1f01299f718eaf60d
125
123
  - test/dummy/tmp/cache/assets/D13/C60/sprockets%2F2dedb8177c20286c4259c1d58c5646cc
126
124
  - test/dummy/tmp/cache/assets/D17/B20/sprockets%2F6226b595a57d68875420daa5dab7c49d
127
125
  - test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
126
+ - test/dummy/tmp/cache/assets/D25/540/sprockets%2F578372cb0db8c34523a3ac2442bad0e2
128
127
  - test/dummy/tmp/cache/assets/D32/3B0/sprockets%2F3a2be21d903762bfe546c90a3d51af37
129
128
  - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
130
129
  - test/dummy/tmp/cache/assets/D36/8F0/sprockets%2Fa6aa5aa70c98eb18044f8e033648aa64
@@ -132,7 +131,9 @@ files:
132
131
  - test/dummy/tmp/cache/assets/D46/8E0/sprockets%2F9e49813ecc14d34d1f0e4c70e7f73e81
133
132
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
134
133
  - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
134
+ - test/dummy/tmp/cache/assets/D8F/7F0/sprockets%2Fbde95629ae8e7fbdb8454fa49989325d
135
135
  - test/dummy/tmp/cache/assets/D9B/460/sprockets%2F7981456e720ca160ccece6cfe77aa2a4
136
+ - test/dummy/tmp/cache/assets/DDB/710/sprockets%2Fba6b3f2f1b517bb50d2ec73c0ba7ca01
136
137
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
137
138
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
138
139
  - test/dummy/tmp/cache/assets/E34/750/sprockets%2Fafd8d2dbccef4926475f6dd4c0d07e7a
@@ -152,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
153
  requirements:
153
154
  - - ">="
154
155
  - !ruby/object:Gem::Version
155
- hash: 3037479912532428506
156
+ hash: -4069407001903133763
156
157
  segments:
157
158
  - 0
158
159
  version: "0"
@@ -161,14 +162,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
162
  requirements:
162
163
  - - ">="
163
164
  - !ruby/object:Gem::Version
164
- hash: 3037479912532428506
165
+ hash: -4069407001903133763
165
166
  segments:
166
167
  - 0
167
168
  version: "0"
168
169
  requirements: []
169
170
 
170
171
  rubyforge_project:
171
- rubygems_version: 1.8.24
172
+ rubygems_version: 1.8.23
172
173
  signing_key:
173
174
  specification_version: 3
174
175
  summary: Turn your Rails app into an Authic client
@@ -182,7 +183,6 @@ test_files:
182
183
  - test/dummy/app/controllers/welcome_controller.rb
183
184
  - test/dummy/app/helpers/application_helper.rb
184
185
  - test/dummy/app/helpers/welcome_helper.rb
185
- - test/dummy/app/models/user.rb
186
186
  - test/dummy/app/views/layouts/application.html.erb
187
187
  - test/dummy/app/views/welcome/index.html.erb
188
188
  - test/dummy/config/application.rb
@@ -203,8 +203,6 @@ test_files:
203
203
  - test/dummy/config/locales/en.yml
204
204
  - test/dummy/config/routes.rb
205
205
  - test/dummy/config.ru
206
- - test/dummy/db/development.sqlite3
207
- - test/dummy/db/migrate/20121105131850_add_authic_to_users.rb
208
206
  - test/dummy/db/schema.rb
209
207
  - test/dummy/log/development.log
210
208
  - test/dummy/public/404.html
@@ -220,10 +218,12 @@ test_files:
220
218
  - test/dummy/test/unit/user_test.rb
221
219
  - test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c
222
220
  - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
221
+ - test/dummy/tmp/cache/assets/CDA/780/sprockets%2Fc868b132d20fd2c5a247283ec51a6496
223
222
  - test/dummy/tmp/cache/assets/D12/B20/sprockets%2F13d2d9bb581816f1f01299f718eaf60d
224
223
  - test/dummy/tmp/cache/assets/D13/C60/sprockets%2F2dedb8177c20286c4259c1d58c5646cc
225
224
  - test/dummy/tmp/cache/assets/D17/B20/sprockets%2F6226b595a57d68875420daa5dab7c49d
226
225
  - test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
226
+ - test/dummy/tmp/cache/assets/D25/540/sprockets%2F578372cb0db8c34523a3ac2442bad0e2
227
227
  - test/dummy/tmp/cache/assets/D32/3B0/sprockets%2F3a2be21d903762bfe546c90a3d51af37
228
228
  - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
229
229
  - test/dummy/tmp/cache/assets/D36/8F0/sprockets%2Fa6aa5aa70c98eb18044f8e033648aa64
@@ -231,7 +231,9 @@ test_files:
231
231
  - test/dummy/tmp/cache/assets/D46/8E0/sprockets%2F9e49813ecc14d34d1f0e4c70e7f73e81
232
232
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
233
233
  - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
234
+ - test/dummy/tmp/cache/assets/D8F/7F0/sprockets%2Fbde95629ae8e7fbdb8454fa49989325d
234
235
  - test/dummy/tmp/cache/assets/D9B/460/sprockets%2F7981456e720ca160ccece6cfe77aa2a4
236
+ - test/dummy/tmp/cache/assets/DDB/710/sprockets%2Fba6b3f2f1b517bb50d2ec73c0ba7ca01
235
237
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
236
238
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
237
239
  - test/dummy/tmp/cache/assets/E34/750/sprockets%2Fafd8d2dbccef4926475f6dd4c0d07e7a
@@ -1,4 +0,0 @@
1
- class User < ActiveRecord::Base
2
- include AuthicUserMixin
3
- # attr_accessible :title, :body
4
- end
Binary file
@@ -1,25 +0,0 @@
1
- class AddAuthicToUsers < ActiveRecord::Migration
2
- def self.up
3
- change_table(:users) do |t|
4
- t.string :email, :null => false, :default => "" unless t.column_exists?(:email)
5
- t.string :provider unless t.column_exists?(:provider)
6
- t.string :uid unless t.column_exists?(:uid)
7
- t.string :authic_data unless t.column_exists?(:authic_data)
8
-
9
- t.index :email, :unique => true unless t.index_exists?(:email, :unique => true)
10
- t.index :provider unless t.index_exists?(:provider)
11
- t.index :uid unless t.index_exists?(:uid)
12
-
13
-
14
- # Uncomment below if timestamps were not included in your original model.
15
- # t.timestamps
16
- end
17
-
18
- end
19
-
20
- def self.down
21
- # By default, we don't want to make any assumption about how to roll back a migration when your
22
- # model already existed. Please edit below which fields you would like to remove in this migration.
23
- raise ActiveRecord::IrreversibleMigration
24
- end
25
- end