omniauth-scaffold 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,13 +9,13 @@ class User < ActiveRecord::Base
9
9
  #---------------------------#
10
10
  def self.create_with_omniauth( auth )
11
11
  user = User.new
12
- user[:provider] = auth["provider"]
13
- user[:uid] = auth["uid"]
12
+ user.provider = auth["provider"]
13
+ user.uid = auth["uid"]
14
14
 
15
15
  unless auth["info"].blank?
16
- user[:name] = auth["info"]["name"]
17
- user[:nickname] = auth["info"]["nickname"]
18
- user[:image] = auth["info"]["image"]
16
+ user.name = auth["info"]["name"]
17
+ user.nickname = auth["info"]["nickname"]
18
+ user.image = auth["info"]["image"]
19
19
  end
20
20
 
21
21
  unless auth["credentials"].blank?
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Scaffold
3
- VERSION = "0.1.22"
3
+ VERSION = "0.1.23"
4
4
  end
5
5
  end
@@ -46,9 +46,9 @@ module Omniauth
46
46
  # content += " config.active_record.default_timezone = :local\n"
47
47
  insert_into_file( "config/application.rb", content.force_encoding('ASCII-8BIT'), after: "# config.time_zone = 'Central Time (US & Canada)'\n" )
48
48
  insert_into_file( "config/application.rb", " config.i18n.default_locale = :ja\n", after: "# config.i18n.default_locale = :de\n" )
49
- content = "\n # For Heroku\n"
50
- content += " config.assets.initialize_on_precompile = false\n"
51
- content += "\n # For Tapp\n"
49
+ # content = "\n # For Heroku\n"
50
+ # content += " config.assets.initialize_on_precompile = false\n"
51
+ content = "\n # For Tapp\n"
52
52
  content += " Tapp.config.default_printer = :awesome_print\n"
53
53
  insert_into_file( "config/application.rb", content.force_encoding('ASCII-8BIT'), after: "config.assets.version = '1.0'\n" )
54
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
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-12-18 00:00:00.000000000 Z
12
+ date: 2012-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails_config