api_user_auth 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +36 -0
  4. data/Rakefile +53 -0
  5. data/app/assets/config/api_user_auth_manifest.js +2 -0
  6. data/app/assets/javascripts/api_user_auth/application.js +15 -0
  7. data/app/assets/stylesheets/api_user_auth/application.css +15 -0
  8. data/app/controllers/api_user_auth/auth_controller.rb +75 -0
  9. data/app/helpers/api_user_auth/application_helper.rb +5 -0
  10. data/app/jobs/api_user_auth/application_job.rb +4 -0
  11. data/app/mailers/api_user_auth/application_mailer.rb +7 -0
  12. data/app/mailers/api_user_auth/forgot_password_mailer.rb +12 -0
  13. data/app/mailers/api_user_auth/welcome_mailer.rb +11 -0
  14. data/app/models/api_user_auth/application_record.rb +5 -0
  15. data/app/models/api_user_auth/auth_user.rb +167 -0
  16. data/app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb +3 -0
  17. data/app/views/api_user_auth/welcome_mailer/welcome.html.erb +2 -0
  18. data/app/views/layouts/api_user_auth/application.html.erb +16 -0
  19. data/config/routes.rb +12 -0
  20. data/db/migrate/20180703111608_create_api_user_auth_auth_users.rb +16 -0
  21. data/lib/api_user_auth/controller.rb +39 -0
  22. data/lib/api_user_auth/engine.rb +10 -0
  23. data/lib/api_user_auth/exceptions.rb +9 -0
  24. data/lib/api_user_auth/providers/facebook.rb +61 -0
  25. data/lib/api_user_auth/providers/google.rb +59 -0
  26. data/lib/api_user_auth/providers/instagram.rb +53 -0
  27. data/lib/api_user_auth/version.rb +3 -0
  28. data/lib/api_user_auth.rb +11 -0
  29. data/lib/generators/api_user_auth_generator.rb +7 -0
  30. data/lib/tasks/api_user_auth_tasks.rake +4 -0
  31. data/spec/controllers/api_user_auth/auth_controller_spec.rb +344 -0
  32. data/spec/controllers/api_user_auth/controller_spec.rb +39 -0
  33. data/spec/dummy/Rakefile +6 -0
  34. data/spec/dummy/app/assets/config/manifest.js +4 -0
  35. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  36. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  37. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  38. data/spec/dummy/app/controllers/test_controller.rb +8 -0
  39. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  40. data/spec/dummy/app/jobs/application_job.rb +2 -0
  41. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  42. data/spec/dummy/app/models/application_record.rb +3 -0
  43. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  44. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  45. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  46. data/spec/dummy/bin/bundle +3 -0
  47. data/spec/dummy/bin/rails +4 -0
  48. data/spec/dummy/bin/rake +4 -0
  49. data/spec/dummy/bin/setup +36 -0
  50. data/spec/dummy/bin/update +31 -0
  51. data/spec/dummy/bin/yarn +11 -0
  52. data/spec/dummy/config/application.rb +30 -0
  53. data/spec/dummy/config/boot.rb +5 -0
  54. data/spec/dummy/config/database.yml +16 -0
  55. data/spec/dummy/config/environment.rb +5 -0
  56. data/spec/dummy/config/environments/development.rb +63 -0
  57. data/spec/dummy/config/environments/production.rb +89 -0
  58. data/spec/dummy/config/environments/test.rb +46 -0
  59. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  60. data/spec/dummy/config/initializers/assets.rb +14 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  63. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  64. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  65. data/spec/dummy/config/initializers/inflections.rb +16 -0
  66. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  67. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  68. data/spec/dummy/config/locales/en.yml +33 -0
  69. data/spec/dummy/config/puma.rb +34 -0
  70. data/spec/dummy/config/routes.rb +4 -0
  71. data/spec/dummy/config/spring.rb +6 -0
  72. data/spec/dummy/config/storage.yml +34 -0
  73. data/spec/dummy/config.ru +5 -0
  74. data/spec/dummy/db/development.sqlite3 +0 -0
  75. data/spec/dummy/db/schema.rb +31 -0
  76. data/spec/dummy/db/test.sqlite3 +0 -0
  77. data/spec/dummy/log/development.log +507 -0
  78. data/spec/dummy/log/test.log +42941 -0
  79. data/spec/dummy/package.json +5 -0
  80. data/spec/dummy/public/404.html +67 -0
  81. data/spec/dummy/public/422.html +67 -0
  82. data/spec/dummy/public/500.html +66 -0
  83. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  84. data/spec/dummy/public/apple-touch-icon.png +0 -0
  85. data/spec/dummy/public/favicon.ico +0 -0
  86. data/spec/models/api_user_auth/auth_user_spec.rb +16 -0
  87. data/spec/rails_helper.rb +61 -0
  88. data/spec/spec_helper.rb +93 -0
  89. data/spec/support/request_spec_helper.rb +13 -0
  90. metadata +273 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "dummy",
3
+ "private": true,
4
+ "dependencies": {}
5
+ }
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
@@ -0,0 +1,16 @@
1
+ require 'rails_helper'
2
+
3
+ module ApiUserAuth
4
+ RSpec.describe AuthUser, type: :model do
5
+ context '#create_by_params' do
6
+ it 'Valid' do
7
+ expect(AuthUser.count).to eq(0)
8
+ AuthUser.create_by_params(
9
+ email: 'user@mail.com',
10
+ password: '123456'
11
+ )
12
+ expect(AuthUser.count).to eq(1)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,61 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ require 'spec_helper'
3
+ ENV['RAILS_ENV'] ||= 'test'
4
+
5
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
6
+ # require File.expand_path('../../config/environment', __FILE__)
7
+ # Prevent database truncation if the environment is production
8
+ abort("The Rails environment is running in production mode!") if Rails.env.production?
9
+ require 'rspec/rails'
10
+ # Add additional requires below this line. Rails is not loaded until this point!
11
+ Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
12
+
13
+ # Requires supporting ruby files with custom matchers and macros, etc, in
14
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
15
+ # run as spec files by default. This means that files in spec/support that end
16
+ # in _spec.rb will both be required and run as specs, causing the specs to be
17
+ # run twice. It is recommended that you do not name files matching this glob to
18
+ # end with _spec.rb. You can configure this pattern with the --pattern
19
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
20
+ #
21
+ # The following line is provided for convenience purposes. It has the downside
22
+ # of increasing the boot-up time by auto-requiring all files in the support
23
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
24
+ # require only the support files necessary.
25
+ #
26
+ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
27
+
28
+ # Checks for pending migrations and applies them before tests are run.
29
+ # If you are not using ActiveRecord, you can remove this line.
30
+ ActiveRecord::Migration.maintain_test_schema!
31
+
32
+ RSpec.configure do |config|
33
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
34
+ # config.fixture_path = "#{::Rails.root}/spec/fixtures"
35
+ config.include RequestSpecHelper, type: :controller
36
+
37
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
38
+ # examples within a transaction, remove the following line or assign false
39
+ # instead of true.
40
+ config.use_transactional_fixtures = true
41
+
42
+ # RSpec Rails can automatically mix in different behaviours to your tests
43
+ # based on their file location, for example enabling you to call `get` and
44
+ # `post` in specs under `spec/controllers`.
45
+ #
46
+ # You can disable this behaviour by removing the line below, and instead
47
+ # explicitly tag your specs with their type, e.g.:
48
+ #
49
+ # RSpec.describe UsersController, :type => :controller do
50
+ # # ...
51
+ # end
52
+ #
53
+ # The different available types are documented in the features, such as in
54
+ # https://relishapp.com/rspec/rspec-rails/docs
55
+ config.infer_spec_type_from_file_location!
56
+
57
+ # Filter lines from Rails gems in backtraces.
58
+ config.filter_rails_from_backtrace!
59
+ # arbitrary gems may also be filtered via:
60
+ # config.filter_gems_from_backtrace("gem name")
61
+ end
@@ -0,0 +1,93 @@
1
+ # This file was generated by the `rails generate rspec:install` command.
2
+ # Conventionally, all specs live under a `spec` directory, which RSpec adds to
3
+ # the `$LOAD_PATH`.
4
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
5
+ # this file to always be loaded, without a need to explicitly require it in any
6
+ # files.
7
+ #
8
+ # Given that it is always loaded, you are encouraged to keep this file as
9
+ # light-weight as possible. Requiring heavyweight dependencies from this file
10
+ # will add to the boot time of your test suite on EVERY test run, even for an
11
+ # individual file that may not need all of that loaded. Instead, consider making
12
+ # a separate helper file that requires the additional dependencies and performs
13
+ # the additional setup, and require it from the spec files that actually need
14
+ # it.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+ RSpec.configure do |config|
18
+ # rspec-expectations config goes here. You can use an alternate
19
+ # assertion/expectation library such as wrong or the stdlib/minitest
20
+ # assertions if you prefer.
21
+ config.expect_with :rspec do |expectations|
22
+ # This option will default to `true` in RSpec 4. It makes the `description`
23
+ # and `failure_message` of custom matchers include text for helper methods
24
+ # defined using `chain`, e.g.:
25
+ # be_bigger_than(2).and_smaller_than(4).description
26
+ # # => "be bigger than 2 and smaller than 4"
27
+ # ...rather than:
28
+ # # => "be bigger than 2"
29
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
30
+ end
31
+
32
+ # rspec-mocks config goes here. You can use an alternate test double
33
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
34
+ config.mock_with :rspec do |mocks|
35
+ # Prevents you from mocking or stubbing a method that does not exist on
36
+ # a real object. This is generally recommended, and will default to
37
+ # `true` in RSpec 4.
38
+ mocks.verify_partial_doubles = true
39
+ end
40
+
41
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
42
+ # have no way to turn it off -- the option exists only for backwards
43
+ # compatibility in RSpec 3). It causes shared context metadata to be
44
+ # inherited by the metadata hash of host groups and examples, rather than
45
+ # triggering implicit auto-inclusion in groups with matching metadata.
46
+ config.shared_context_metadata_behavior = :apply_to_host_groups
47
+
48
+ # The settings below are suggested to provide a good initial experience
49
+ # with RSpec, but feel free to customize to your heart's content.
50
+ # This allows you to limit a spec run to individual examples or groups
51
+ # you care about by tagging them with `:focus` metadata. When nothing
52
+ # is tagged with `:focus`, all examples get run. RSpec also provides
53
+ # aliases for `it`, `describe`, and `context` that include `:focus`
54
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
55
+ # config.filter_run_when_matching :focus
56
+
57
+ # Allows RSpec to persist some state between runs in order to support
58
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
59
+ # you configure your source control system to ignore this file.
60
+ # config.example_status_persistence_file_path = "spec/examples.txt"
61
+
62
+ # Limits the available syntax to the non-monkey patched syntax that is
63
+ # recommended. For more details, see:
64
+ #- http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
65
+ # config.disable_monkey_patching!
66
+
67
+ # Many RSpec users commonly either run the entire suite or an individual
68
+ # file, and it's useful to allow more verbose output when running an
69
+ # individual spec file.
70
+ # if config.files_to_run.one?
71
+ # # Use the documentation formatter for detailed output,
72
+ # # unless a formatter has already been configured
73
+ # # (e.g. via a command-line flag).
74
+ # config.default_formatter = "doc"
75
+ # end
76
+
77
+ # Print the 10 slowest examples and example groups at the
78
+ # end of the spec run, to help surface which specs are running
79
+ # particularly slow.
80
+ # config.profile_examples = 10
81
+
82
+ # Run specs in random order to surface order dependencies. If you find an
83
+ # order dependency and want to debug it, you can fix the order by providing
84
+ # the seed, which is printed after each run.
85
+ # --seed 1234
86
+ config.order = :random
87
+
88
+ # Seed global randomization in this process using the `--seed` CLI option.
89
+ # Setting this allows you to use `--seed` to deterministically reproduce
90
+ # test failures related to randomization by passing the same `--seed` value
91
+ # as the one that triggered the failure.
92
+ # Kernel.srand config.seed
93
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # spec/support/request_spec_helper
4
+ module RequestSpecHelper
5
+ # Parse JSON response to ruby hash
6
+ def resp_json
7
+ JSON.parse(response.body, symbolize_names: true)
8
+ end
9
+
10
+ def current_user
11
+ @current_user ||= create(:current_user)
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,273 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: api_user_auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.12
5
+ platform: ruby
6
+ authors:
7
+ - Alex M
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-07-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.2'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.2.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '5.2'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.2.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: factory_bot_rails
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '4'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 4.8.0
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '4'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 4.8.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: pg
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ - !ruby/object:Gem::Dependency
68
+ name: rspec-rails
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '3.6'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '3.6'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rubocop
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.57'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.57'
95
+ description:
96
+ email:
97
+ - alexey.m@done-it.net
98
+ executables: []
99
+ extensions: []
100
+ extra_rdoc_files: []
101
+ files:
102
+ - MIT-LICENSE
103
+ - README.md
104
+ - Rakefile
105
+ - app/assets/config/api_user_auth_manifest.js
106
+ - app/assets/javascripts/api_user_auth/application.js
107
+ - app/assets/stylesheets/api_user_auth/application.css
108
+ - app/controllers/api_user_auth/auth_controller.rb
109
+ - app/helpers/api_user_auth/application_helper.rb
110
+ - app/jobs/api_user_auth/application_job.rb
111
+ - app/mailers/api_user_auth/application_mailer.rb
112
+ - app/mailers/api_user_auth/forgot_password_mailer.rb
113
+ - app/mailers/api_user_auth/welcome_mailer.rb
114
+ - app/models/api_user_auth/application_record.rb
115
+ - app/models/api_user_auth/auth_user.rb
116
+ - app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb
117
+ - app/views/api_user_auth/welcome_mailer/welcome.html.erb
118
+ - app/views/layouts/api_user_auth/application.html.erb
119
+ - config/routes.rb
120
+ - db/migrate/20180703111608_create_api_user_auth_auth_users.rb
121
+ - lib/api_user_auth.rb
122
+ - lib/api_user_auth/controller.rb
123
+ - lib/api_user_auth/engine.rb
124
+ - lib/api_user_auth/exceptions.rb
125
+ - lib/api_user_auth/providers/facebook.rb
126
+ - lib/api_user_auth/providers/google.rb
127
+ - lib/api_user_auth/providers/instagram.rb
128
+ - lib/api_user_auth/version.rb
129
+ - lib/generators/api_user_auth_generator.rb
130
+ - lib/tasks/api_user_auth_tasks.rake
131
+ - spec/controllers/api_user_auth/auth_controller_spec.rb
132
+ - spec/controllers/api_user_auth/controller_spec.rb
133
+ - spec/dummy/Rakefile
134
+ - spec/dummy/app/assets/config/manifest.js
135
+ - spec/dummy/app/assets/javascripts/application.js
136
+ - spec/dummy/app/assets/stylesheets/application.css
137
+ - spec/dummy/app/controllers/application_controller.rb
138
+ - spec/dummy/app/controllers/test_controller.rb
139
+ - spec/dummy/app/helpers/application_helper.rb
140
+ - spec/dummy/app/jobs/application_job.rb
141
+ - spec/dummy/app/mailers/application_mailer.rb
142
+ - spec/dummy/app/models/application_record.rb
143
+ - spec/dummy/app/views/layouts/application.html.erb
144
+ - spec/dummy/app/views/layouts/mailer.html.erb
145
+ - spec/dummy/app/views/layouts/mailer.text.erb
146
+ - spec/dummy/bin/bundle
147
+ - spec/dummy/bin/rails
148
+ - spec/dummy/bin/rake
149
+ - spec/dummy/bin/setup
150
+ - spec/dummy/bin/update
151
+ - spec/dummy/bin/yarn
152
+ - spec/dummy/config.ru
153
+ - spec/dummy/config/application.rb
154
+ - spec/dummy/config/boot.rb
155
+ - spec/dummy/config/database.yml
156
+ - spec/dummy/config/environment.rb
157
+ - spec/dummy/config/environments/development.rb
158
+ - spec/dummy/config/environments/production.rb
159
+ - spec/dummy/config/environments/test.rb
160
+ - spec/dummy/config/initializers/application_controller_renderer.rb
161
+ - spec/dummy/config/initializers/assets.rb
162
+ - spec/dummy/config/initializers/backtrace_silencers.rb
163
+ - spec/dummy/config/initializers/content_security_policy.rb
164
+ - spec/dummy/config/initializers/cookies_serializer.rb
165
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
166
+ - spec/dummy/config/initializers/inflections.rb
167
+ - spec/dummy/config/initializers/mime_types.rb
168
+ - spec/dummy/config/initializers/wrap_parameters.rb
169
+ - spec/dummy/config/locales/en.yml
170
+ - spec/dummy/config/puma.rb
171
+ - spec/dummy/config/routes.rb
172
+ - spec/dummy/config/spring.rb
173
+ - spec/dummy/config/storage.yml
174
+ - spec/dummy/db/development.sqlite3
175
+ - spec/dummy/db/schema.rb
176
+ - spec/dummy/db/test.sqlite3
177
+ - spec/dummy/log/development.log
178
+ - spec/dummy/log/test.log
179
+ - spec/dummy/package.json
180
+ - spec/dummy/public/404.html
181
+ - spec/dummy/public/422.html
182
+ - spec/dummy/public/500.html
183
+ - spec/dummy/public/apple-touch-icon-precomposed.png
184
+ - spec/dummy/public/apple-touch-icon.png
185
+ - spec/dummy/public/favicon.ico
186
+ - spec/models/api_user_auth/auth_user_spec.rb
187
+ - spec/rails_helper.rb
188
+ - spec/spec_helper.rb
189
+ - spec/support/request_spec_helper.rb
190
+ homepage:
191
+ licenses:
192
+ - MIT
193
+ metadata: {}
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
203
+ required_rubygems_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ requirements: []
209
+ rubyforge_project:
210
+ rubygems_version: 2.7.6
211
+ signing_key:
212
+ specification_version: 4
213
+ summary: API user auth engine
214
+ test_files:
215
+ - spec/rails_helper.rb
216
+ - spec/dummy/public/favicon.ico
217
+ - spec/dummy/public/422.html
218
+ - spec/dummy/public/apple-touch-icon-precomposed.png
219
+ - spec/dummy/public/apple-touch-icon.png
220
+ - spec/dummy/public/404.html
221
+ - spec/dummy/public/500.html
222
+ - spec/dummy/app/mailers/application_mailer.rb
223
+ - spec/dummy/app/controllers/test_controller.rb
224
+ - spec/dummy/app/controllers/application_controller.rb
225
+ - spec/dummy/app/assets/config/manifest.js
226
+ - spec/dummy/app/assets/stylesheets/application.css
227
+ - spec/dummy/app/assets/javascripts/application.js
228
+ - spec/dummy/app/views/layouts/mailer.text.erb
229
+ - spec/dummy/app/views/layouts/application.html.erb
230
+ - spec/dummy/app/views/layouts/mailer.html.erb
231
+ - spec/dummy/app/helpers/application_helper.rb
232
+ - spec/dummy/app/models/application_record.rb
233
+ - spec/dummy/app/jobs/application_job.rb
234
+ - spec/dummy/config/puma.rb
235
+ - spec/dummy/config/database.yml
236
+ - spec/dummy/config/storage.yml
237
+ - spec/dummy/config/application.rb
238
+ - spec/dummy/config/boot.rb
239
+ - spec/dummy/config/environments/production.rb
240
+ - spec/dummy/config/environments/development.rb
241
+ - spec/dummy/config/environments/test.rb
242
+ - spec/dummy/config/routes.rb
243
+ - spec/dummy/config/environment.rb
244
+ - spec/dummy/config/initializers/assets.rb
245
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
246
+ - spec/dummy/config/initializers/application_controller_renderer.rb
247
+ - spec/dummy/config/initializers/mime_types.rb
248
+ - spec/dummy/config/initializers/content_security_policy.rb
249
+ - spec/dummy/config/initializers/cookies_serializer.rb
250
+ - spec/dummy/config/initializers/wrap_parameters.rb
251
+ - spec/dummy/config/initializers/backtrace_silencers.rb
252
+ - spec/dummy/config/initializers/inflections.rb
253
+ - spec/dummy/config/spring.rb
254
+ - spec/dummy/config/locales/en.yml
255
+ - spec/dummy/Rakefile
256
+ - spec/dummy/log/test.log
257
+ - spec/dummy/log/development.log
258
+ - spec/dummy/config.ru
259
+ - spec/dummy/db/test.sqlite3
260
+ - spec/dummy/db/schema.rb
261
+ - spec/dummy/db/development.sqlite3
262
+ - spec/dummy/package.json
263
+ - spec/dummy/bin/setup
264
+ - spec/dummy/bin/yarn
265
+ - spec/dummy/bin/rake
266
+ - spec/dummy/bin/bundle
267
+ - spec/dummy/bin/rails
268
+ - spec/dummy/bin/update
269
+ - spec/controllers/api_user_auth/controller_spec.rb
270
+ - spec/controllers/api_user_auth/auth_controller_spec.rb
271
+ - spec/models/api_user_auth/auth_user_spec.rb
272
+ - spec/spec_helper.rb
273
+ - spec/support/request_spec_helper.rb