socialite 0.1.0.pre.6 → 0.1.0.pre.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,11 @@ module Socialite
10
10
  template 'socialite.rb', 'config/initializers/socialite.rb'
11
11
  end
12
12
 
13
+ desc 'Copies the socialite i18n translation file'
14
+ def copy_locale
15
+ copy_file "../../../../config/locales/en.yml", "config/locales/socialite.en.yml"
16
+ end
17
+
13
18
  def mount_engine
14
19
  puts "Mounting Socialite::Engine at \"/socialite\" in config/routes.rb..."
15
20
  insert_into_file("config/routes.rb", :after => /routes.draw.do\n/) do
@@ -1,6 +1,5 @@
1
1
  require 'haml'
2
2
  require 'omniauth'
3
- require 'simple_form'
4
3
 
5
4
  module Socialite
6
5
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module Socialite
2
- VERSION = '0.1.0.pre.6'
2
+ VERSION = '0.1.0.pre.7'
3
3
  end
@@ -10,6 +10,7 @@ require "sprockets/railtie"
10
10
 
11
11
  Bundler.require
12
12
  require "socialite"
13
+ require "simple_form" # TODO FIXME remove this dependency all together.
13
14
 
14
15
  module Dummy
15
16
  class Application < Rails::Application
@@ -1,3 +1,6 @@
1
+ require 'socialite'
2
+ require 'simple_form'
3
+
1
4
  Socialite.setup do |config|
2
5
  ## Configure Classes
3
6
  # If you are not using the default names set below. Please change them to
@@ -0,0 +1,53 @@
1
+ en:
2
+ socialite:
3
+ already_registered: "You are already registered"
4
+ already_linked_account: "You have already linked this account"
5
+ successful_signup: "Account successfully authenticated"
6
+ successful_signin: "Signed in!"
7
+ successful_signout: "Signed out!"
8
+ unsuccessful_signup: "Authentication failed, please try again."
9
+ welcome: "Welcome to the app!"
10
+ confirm_unlink: "Are your sure?"
11
+ login_required: "You must be logged in to use this feature"
12
+
13
+ identities:
14
+ new:
15
+ header: "New Account"
16
+ submit_label: "Register"
17
+
18
+ sessions:
19
+ new:
20
+ header: "Sign In"
21
+ services_header: "Sign in through one of these services:"
22
+ identity_header: "Don't use these services?"
23
+ create_account_link_text: "Create an account"
24
+ create_account_text:
25
+ html: "%{create_account_link} or login below."
26
+
27
+ users:
28
+ new:
29
+ header: "Create an Account"
30
+
31
+ #### Providers
32
+ providers:
33
+ twitter: "Twitter"
34
+ facebook: "Facebook"
35
+
36
+ #### LABELS
37
+ labels:
38
+ provider: "Provider"
39
+ unique_id: "Unique ID"
40
+ additional_auth_information: "Additional"
41
+ actions: "Actions"
42
+ auth_key: "Email"
43
+ password: "Password"
44
+ unlink_account: "Unlink"
45
+ register: "Register"
46
+ confirm_password: "Confirm Password"
47
+ sign_up: "Sign Up!"
48
+ sign_in: "Sign in"
49
+
50
+ errors:
51
+ create_fail:
52
+ one: "%{error_count} error prohibited this account from being saved:"
53
+ other: "%{error_count} errors prohibited this account from being saved:"
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: socialite
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 0.1.0.pre.6
5
+ version: 0.1.0.pre.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Justin Smestad
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-19 00:00:00.000000000 Z
12
+ date: 2013-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -93,7 +93,7 @@ dependencies:
93
93
  prerelease: false
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: bcrypt-ruby
96
- type: :development
96
+ type: :runtime
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ! '>='
@@ -366,6 +366,7 @@ files:
366
366
  - spec/dummy/config/initializers/socialite.rb
367
367
  - spec/dummy/config/initializers/wrap_parameters.rb
368
368
  - spec/dummy/config/locales/en.yml
369
+ - spec/dummy/config/locales/socialite.en.yml
369
370
  - spec/dummy/config/routes.rb
370
371
  - spec/dummy/db/migrate/20130207223009_create_socialite_users.rb
371
372
  - spec/dummy/db/migrate/20130207223010_create_socialite_identities.rb
@@ -409,7 +410,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
409
410
  - !ruby/object:Gem::Version
410
411
  segments:
411
412
  - 0
412
- hash: 1237804995330320058
413
+ hash: 4120783235960115135
413
414
  version: '0'
414
415
  none: false
415
416
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -455,6 +456,7 @@ test_files:
455
456
  - spec/dummy/config/initializers/socialite.rb
456
457
  - spec/dummy/config/initializers/wrap_parameters.rb
457
458
  - spec/dummy/config/locales/en.yml
459
+ - spec/dummy/config/locales/socialite.en.yml
458
460
  - spec/dummy/config/routes.rb
459
461
  - spec/dummy/db/migrate/20130207223009_create_socialite_users.rb
460
462
  - spec/dummy/db/migrate/20130207223010_create_socialite_identities.rb