oauth_service 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/oauth_service/access_controller.rb +6 -6
- data/app/controllers/oauth_service/login_controller.rb +50 -46
- data/app/models/oauth_service/url.rb +1 -1
- data/app/models/oauth_service/user_group.rb +1 -0
- data/app/models/oauth_service/users_url.rb +1 -1
- data/config/routes.rb +1 -1
- data/lib/generators/templates/migrations/create_tables.rb +10 -8
- data/lib/oauth_service/version.rb +1 -1
- data/test/dummy/Guest +0 -0
- data/test/dummy/app/controllers/test_controller.rb +5 -0
- data/test/dummy/config/routes.rb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160514163909_create_tables.rb +2 -8
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/guest +0 -0
- data/test/dummy/guest_url1.id, +0 -0
- data/test/dummy/guest_url2.id, +0 -0
- data/test/dummy/guest_url3.id, +0 -0
- data/test/dummy/guest_user.id, +0 -0
- data/test/dummy/guest_user_group.id +0 -0
- data/test/dummy/log/development.log +1355 -0
- data/test/dummy/log/test.log +6946 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kd/KdigzwGrQTqj2flci68yo521CArM4ud2rtF9LJYHYKg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tb/TbNNT2ADDg0nsOqddkrls4KLYP00SwI0Mu9N0Map59I.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gt/gtIZouUfo47GX64nbj9TVIbdodEWvOtDa3m_ya6c6ms.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pr/pr7yzrpqKSQI10FniqVIsZ9wiTs-DKEGBV_zmGiIxOs.cache +0 -0
- data/test/helpers/capybara_helper.rb +65 -0
- data/test/{test_helper.rb → helpers/test_helper.rb} +2 -8
- data/test/oauth_service_provider_test.rb +40 -3
- metadata +40 -26
- data/test/dummy/test/fixtures/urls.yml +0 -17
- data/test/dummy/test/fixtures/user_groups.yml +0 -7
- data/test/dummy/test/fixtures/users.yml +0 -9
- data/test/dummy/test/fixtures/users_groups.yml +0 -9
- data/test/dummy/test/fixtures/users_urls.yml +0 -9
- data/test/dummy/test/models/url_test.rb +0 -7
- data/test/dummy/test/models/user_group_test.rb +0 -7
- data/test/dummy/test/models/user_test.rb +0 -7
- data/test/dummy/test/models/users_group_test.rb +0 -7
- data/test/dummy/test/models/users_url_test.rb +0 -7
- data/test/oauth_service_test.rb +0 -7
data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"}app/assets/stylesheets/application.css?type=text/css&id=dd58ed0d83518cb6a53b708ab84dbe71e4b2595d55dbf35eea0cc4a8d2f78949:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kd/KdigzwGrQTqj2flci68yo521CArM4ud2rtF9LJYHYKg.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&id=f9f4332042a7d438db0f879814a5681f34b869f8b0e9ca49d2ba61a0992a8937:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tb/TbNNT2ADDg0nsOqddkrls4KLYP00SwI0Mu9N0Map59I.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=679b4a97d52fb81934410297fc496636f67e87cbba80ec9dbce27780012c6e9d:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=411dba9514766e3512757ce241313c82150aa11942717fb18ee603dffef10696:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/gt/gtIZouUfo47GX64nbj9TVIbdodEWvOtDa3m_ya6c6ms.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/pr/pr7yzrpqKSQI10FniqVIsZ9wiTs-DKEGBV_zmGiIxOs.cache
ADDED
Binary file
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require "capybara/rails"
|
2
|
+
require "capybara/poltergeist"
|
3
|
+
require "database_cleaner"
|
4
|
+
|
5
|
+
module CapybaraHelper
|
6
|
+
include Capybara::DSL
|
7
|
+
|
8
|
+
Capybara.register_driver :poltergeist do |app|
|
9
|
+
Capybara::Poltergeist::Driver.new(app, { timeout: 180, js_errors: true })
|
10
|
+
end
|
11
|
+
|
12
|
+
def create_test_data
|
13
|
+
guest_user = User.create :name => "guest"
|
14
|
+
guest_url1 = Url.create :url_pattern => "^/login", :name => "Login page", :http_method => "GET"
|
15
|
+
guest_url2 = Url.create :url_pattern => "^/oauth/.*", :name => "AuthCallback page", :http_method => "GET"
|
16
|
+
guest_url3 = Url.create :url_pattern => "^/login/logout", :name => "Logout page", :http_method => "GET"
|
17
|
+
guest_user_group = UserGroup.create :name => "Guest"
|
18
|
+
guest_users_group = UsersGroup.create :user_id => guest_user.id, :user_group_id => guest_user_group.id
|
19
|
+
UsersUrl.create :url_id => guest_url1.id, :user_group_id => guest_user_group.id
|
20
|
+
UsersUrl.create :url_id => guest_url2.id, :user_group_id => guest_user_group.id
|
21
|
+
UsersUrl.create :url_id => guest_url3.id, :user_group_id => guest_user_group.id
|
22
|
+
|
23
|
+
test_user = User.create name: ENV["TEST_USER_LOGIN"]
|
24
|
+
test_user_group = UserGroup.create :name => "Test"
|
25
|
+
test_users_group = UsersGroup.create :user_id => test_user.id, :user_group_id => test_user_group.id
|
26
|
+
test_users_group2 = UsersGroup.create :user_id => test_user.id, :user_group_id => guest_user_group.id
|
27
|
+
test_url = Url.create :url_pattern => "^/test", :name => "Test page", :http_method => "GET"
|
28
|
+
UsersUrl.create :url_id => test_url.id, :user_group_id => test_user_group.id
|
29
|
+
end
|
30
|
+
|
31
|
+
def setup
|
32
|
+
DatabaseCleaner.strategy = nil
|
33
|
+
|
34
|
+
while (defined? @@suite_setup_completed) && !@@suite_setup_completed do
|
35
|
+
sleep(10)
|
36
|
+
end
|
37
|
+
before_suite until (defined? @@suite_setup_completed) && @@suite_setup_completed
|
38
|
+
end
|
39
|
+
|
40
|
+
def setup_driver
|
41
|
+
Capybara.configure do |config|
|
42
|
+
config.current_driver = :poltergeist
|
43
|
+
config.run_server = true
|
44
|
+
config.app_host = "http://localhost:3000"
|
45
|
+
config.server_port = 3000
|
46
|
+
config.default_max_wait_time = 180
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def before_suite
|
51
|
+
@@suite_setup_completed = false
|
52
|
+
|
53
|
+
DatabaseCleaner.clean
|
54
|
+
|
55
|
+
setup_driver
|
56
|
+
|
57
|
+
create_test_data
|
58
|
+
|
59
|
+
@@suite_setup_completed = true
|
60
|
+
end
|
61
|
+
|
62
|
+
def parse_json(page)
|
63
|
+
ActiveSupport::JSON.decode(page.first("pre").text).symbolize_keys
|
64
|
+
end
|
65
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Configure Rails Environment
|
2
2
|
ENV["RAILS_ENV"] = "test"
|
3
3
|
|
4
|
-
require File.expand_path("
|
5
|
-
ActiveRecord::Migrator.migrations_paths = [File.expand_path("
|
4
|
+
require File.expand_path("../../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../../test/dummy/db/migrate", __FILE__)]
|
6
6
|
require "rails/test_help"
|
7
7
|
|
8
8
|
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
@@ -11,9 +11,3 @@ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
|
11
11
|
|
12
12
|
# Load support files
|
13
13
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
-
|
15
|
-
# Load fixtures from the engine
|
16
|
-
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
17
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
18
|
-
ActiveSupport::TestCase.fixtures :all
|
19
|
-
end
|
@@ -1,8 +1,45 @@
|
|
1
|
-
require
|
1
|
+
require "helpers/test_helper"
|
2
|
+
require "helpers/capybara_helper"
|
2
3
|
|
3
4
|
class OauthServiceProviderTest < ActiveSupport::TestCase
|
4
|
-
|
5
|
-
|
5
|
+
include CapybaraHelper
|
6
|
+
self.use_transactional_fixtures = false
|
7
|
+
self.use_instantiated_fixtures = false
|
8
|
+
|
9
|
+
def test_login
|
10
|
+
page.reset!
|
11
|
+
login
|
12
|
+
|
13
|
+
visit "http://localhost:3000/test"
|
14
|
+
assert(parse_json(page)[:hello], "Should be true")
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_logout
|
18
|
+
page.reset!
|
19
|
+
login
|
20
|
+
|
21
|
+
logout
|
22
|
+
|
23
|
+
visit "http://localhost:3000/test"
|
24
|
+
assert_equal(parse_json(page)[:error], "Permission denied", "Permission should be denied")
|
25
|
+
end
|
26
|
+
|
27
|
+
def login
|
28
|
+
visit "http://localhost:3000/login"
|
29
|
+
click_link "Авторизация через YANDEX"
|
30
|
+
fill_in "login", with: ENV["TEST_USER_LOGIN"]
|
31
|
+
fill_in "passwd", with: ENV["TEST_USER_PASSWORD"]
|
32
|
+
click_button "Войти"
|
33
|
+
|
34
|
+
res = parse_json(page)
|
35
|
+
assert_equal(res[:api_code], User.find_by(name: ENV["TEST_USER_LOGIN"]).api_code, "API_CODE should be same")
|
36
|
+
page.driver.add_headers("API_CODE" => res[:api_code])
|
37
|
+
end
|
38
|
+
|
39
|
+
def logout
|
40
|
+
visit "http://localhost:3000/login/logout"
|
6
41
|
|
42
|
+
assert_equal(nil, User.find_by(name: ENV["TEST_USER_LOGIN"]).api_code, "API_CODE should be nil")
|
43
|
+
assert(parse_json(page)[:success], "Logout should be true")
|
7
44
|
end
|
8
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DCrow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/oauth_service/provider.rb
|
77
77
|
- lib/oauth_service/version.rb
|
78
78
|
- lib/tasks/oauth_service_tasks.rake
|
79
|
+
- test/dummy/Guest
|
79
80
|
- test/dummy/README.rdoc
|
80
81
|
- test/dummy/Rakefile
|
81
82
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -83,6 +84,7 @@ files:
|
|
83
84
|
- test/dummy/app/controllers/application_controller.rb
|
84
85
|
- test/dummy/app/controllers/d_controller.rb
|
85
86
|
- test/dummy/app/controllers/login_controller.rb
|
87
|
+
- test/dummy/app/controllers/test_controller.rb
|
86
88
|
- test/dummy/app/helpers/application_helper.rb
|
87
89
|
- test/dummy/app/models/url.rb
|
88
90
|
- test/dummy/app/models/user.rb
|
@@ -118,49 +120,54 @@ files:
|
|
118
120
|
- test/dummy/db/development.sqlite3
|
119
121
|
- test/dummy/db/migrate/20160514163909_create_tables.rb
|
120
122
|
- test/dummy/db/schema.rb
|
123
|
+
- test/dummy/db/test.sqlite3
|
124
|
+
- test/dummy/guest
|
125
|
+
- test/dummy/guest_url1.id,
|
126
|
+
- test/dummy/guest_url2.id,
|
127
|
+
- test/dummy/guest_url3.id,
|
128
|
+
- test/dummy/guest_user.id,
|
129
|
+
- test/dummy/guest_user_group.id
|
121
130
|
- test/dummy/log/development.log
|
122
131
|
- test/dummy/log/test.log
|
123
132
|
- test/dummy/public/404.html
|
124
133
|
- test/dummy/public/422.html
|
125
134
|
- test/dummy/public/500.html
|
126
135
|
- test/dummy/public/favicon.ico
|
127
|
-
- test/dummy/test/fixtures/urls.yml
|
128
|
-
- test/dummy/test/fixtures/user_groups.yml
|
129
|
-
- test/dummy/test/fixtures/users.yml
|
130
|
-
- test/dummy/test/fixtures/users_groups.yml
|
131
|
-
- test/dummy/test/fixtures/users_urls.yml
|
132
|
-
- test/dummy/test/models/url_test.rb
|
133
|
-
- test/dummy/test/models/user_group_test.rb
|
134
|
-
- test/dummy/test/models/user_test.rb
|
135
|
-
- test/dummy/test/models/users_group_test.rb
|
136
|
-
- test/dummy/test/models/users_url_test.rb
|
137
136
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
138
137
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/6I/6Iapn2T9iTksiIpNjV38wlfVmi1jq4PD1Xh1Dr0fR0o.cache
|
139
138
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/CN/CN681ktqxLiK3U4MteA6Q4ZunlBxEgm2YFdmwxg3I6E.cache
|
140
139
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ch/Ch2bQFHkYziI9Erdkuj8uoPJyw0W2aA5prtYAqlccww.cache
|
141
140
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
|
142
141
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Fr/FrVwswdDNGIkD24DY-aVGVj_ODmW3_o_Ji5khIzOlMI.cache
|
142
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache
|
143
143
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/JY/JYpZExAhxpesd9z2s7dJupiDc-rDf6RBnmWH-HYpr2A.cache
|
144
144
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_9ERjsyvsou7I7CNLORkwcBYyxCSdQRj9el7fbYNx4.cache
|
145
145
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/K9/K9ZheMi0hi4DNLzmDMRnv9A_lOVz33kNImc16Now42o.cache
|
146
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Kd/KdigzwGrQTqj2flci68yo521CArM4ud2rtF9LJYHYKg.cache
|
146
147
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/LH/LHgjtAV8kdldaJ_dX0RCznzjmWYRuLdhU29fZCJ0VmU.cache
|
147
148
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Nn/NnUCa7jNYx9HCmEB7E7WPWT00DwaM4IYICy1Ju1jjcs.cache
|
148
149
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
150
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache
|
151
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Tb/TbNNT2ADDg0nsOqddkrls4KLYP00SwI0Mu9N0Map59I.cache
|
149
152
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Uo/Uon_Y1HqDVimN2TgfScHxbXPjDSsOsj6d7l8v4pJEO0.cache
|
153
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache
|
150
154
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/b-/b-1gw2MCeaTZEWFQ_udDtgx4hJmooIz9uDVlHE97S2g.cache
|
151
155
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/bs/bsek6r8m5C0VziFPGuHOVymYEpIXo5gZyfU-8nPj01M.cache
|
152
156
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
|
157
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache
|
158
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/gt/gtIZouUfo47GX64nbj9TVIbdodEWvOtDa3m_ya6c6ms.cache
|
153
159
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
154
160
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/kz/kzdSvu57G4i6eTuarsZCAfbhbICnkRa0Xhi0b9ua6qk.cache
|
155
161
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/lz/lz4_WSikXa5YohqgYmqCvVmW_r_ncbvtgDX7bJoO03s.cache
|
156
162
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
163
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/pr/pr7yzrpqKSQI10FniqVIsZ9wiTs-DKEGBV_zmGiIxOs.cache
|
157
164
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qS/qSORh00SA5qx5xcvNgMx-S-T737dJS6smxZEhRaf0J4.cache
|
158
165
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qd/qdZCi8acwxpvAQAC8sNXRjkz73Pdy7yQpG7_rNCxcYs.cache
|
159
166
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/rC/rCO5-bHVJ6Y_GsPBmOPUL23pfjvc2Gw2zt_ODmZsygw.cache
|
160
167
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/uV/uVnTx3UxyufXVkCnR8AW30pR5GiIUTCMcOMEPWt38dY.cache
|
168
|
+
- test/helpers/capybara_helper.rb
|
169
|
+
- test/helpers/test_helper.rb
|
161
170
|
- test/oauth_service_provider_test.rb
|
162
|
-
- test/oauth_service_test.rb
|
163
|
-
- test/test_helper.rb
|
164
171
|
homepage: https://github.com/DCrow/OauthService
|
165
172
|
licenses:
|
166
173
|
- MIT
|
@@ -187,9 +194,18 @@ specification_version: 4
|
|
187
194
|
summary: Authorization and authentication service.
|
188
195
|
test_files:
|
189
196
|
- test/oauth_service_provider_test.rb
|
197
|
+
- test/helpers/capybara_helper.rb
|
198
|
+
- test/helpers/test_helper.rb
|
199
|
+
- test/dummy/guest_url1.id,
|
200
|
+
- test/dummy/guest_url2.id,
|
201
|
+
- test/dummy/Guest
|
202
|
+
- test/dummy/guest_user.id,
|
190
203
|
- test/dummy/db/migrate/20160514163909_create_tables.rb
|
191
204
|
- test/dummy/db/schema.rb
|
192
205
|
- test/dummy/db/development.sqlite3
|
206
|
+
- test/dummy/db/test.sqlite3
|
207
|
+
- test/dummy/guest_url3.id,
|
208
|
+
- test/dummy/guest_user_group.id
|
193
209
|
- test/dummy/public/favicon.ico
|
194
210
|
- test/dummy/public/422.html
|
195
211
|
- test/dummy/public/500.html
|
@@ -199,18 +215,9 @@ test_files:
|
|
199
215
|
- test/dummy/bin/bundle
|
200
216
|
- test/dummy/bin/rake
|
201
217
|
- test/dummy/bin/rails
|
202
|
-
- test/dummy/test/fixtures/user_groups.yml
|
203
|
-
- test/dummy/test/fixtures/users.yml
|
204
|
-
- test/dummy/test/fixtures/users_urls.yml
|
205
|
-
- test/dummy/test/fixtures/urls.yml
|
206
|
-
- test/dummy/test/fixtures/users_groups.yml
|
207
|
-
- test/dummy/test/models/user_group_test.rb
|
208
|
-
- test/dummy/test/models/user_test.rb
|
209
|
-
- test/dummy/test/models/url_test.rb
|
210
|
-
- test/dummy/test/models/users_group_test.rb
|
211
|
-
- test/dummy/test/models/users_url_test.rb
|
212
218
|
- test/dummy/README.rdoc
|
213
219
|
- test/dummy/config.ru
|
220
|
+
- test/dummy/guest
|
214
221
|
- test/dummy/app/assets/javascripts/application.js
|
215
222
|
- test/dummy/app/assets/stylesheets/application.css
|
216
223
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -220,6 +227,7 @@ test_files:
|
|
220
227
|
- test/dummy/app/models/url.rb
|
221
228
|
- test/dummy/app/models/user_group.rb
|
222
229
|
- test/dummy/app/controllers/application_controller.rb
|
230
|
+
- test/dummy/app/controllers/test_controller.rb
|
223
231
|
- test/dummy/app/controllers/login_controller.rb
|
224
232
|
- test/dummy/app/controllers/d_controller.rb
|
225
233
|
- test/dummy/app/views/login/index.html.erb
|
@@ -245,17 +253,23 @@ test_files:
|
|
245
253
|
- test/dummy/config/environments/test.rb
|
246
254
|
- test/dummy/config/environments/development.rb
|
247
255
|
- test/dummy/config/locales/en.yml
|
256
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Kd/KdigzwGrQTqj2flci68yo521CArM4ud2rtF9LJYHYKg.cache
|
257
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvDM1j8-H1H6kEjVCsyIW8N2zla-aIp9q_OE9PVZtVw.cache
|
248
258
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/JY/JYpZExAhxpesd9z2s7dJupiDc-rDf6RBnmWH-HYpr2A.cache
|
249
259
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/kz/kzdSvu57G4i6eTuarsZCAfbhbICnkRa0Xhi0b9ua6qk.cache
|
250
260
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
251
261
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/rC/rCO5-bHVJ6Y_GsPBmOPUL23pfjvc2Gw2zt_ODmZsygw.cache
|
252
262
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/CN/CN681ktqxLiK3U4MteA6Q4ZunlBxEgm2YFdmwxg3I6E.cache
|
263
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/gt/gtIZouUfo47GX64nbj9TVIbdodEWvOtDa3m_ya6c6ms.cache
|
253
264
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/6I/6Iapn2T9iTksiIpNjV38wlfVmi1jq4PD1Xh1Dr0fR0o.cache
|
265
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/pr/pr7yzrpqKSQI10FniqVIsZ9wiTs-DKEGBV_zmGiIxOs.cache
|
254
266
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qS/qSORh00SA5qx5xcvNgMx-S-T737dJS6smxZEhRaf0J4.cache
|
255
267
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Fr/FrVwswdDNGIkD24DY-aVGVj_ODmW3_o_Ji5khIzOlMI.cache
|
256
268
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Uo/Uon_Y1HqDVimN2TgfScHxbXPjDSsOsj6d7l8v4pJEO0.cache
|
257
269
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/uV/uVnTx3UxyufXVkCnR8AW30pR5GiIUTCMcOMEPWt38dY.cache
|
258
270
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/K9/K9ZheMi0hi4DNLzmDMRnv9A_lOVz33kNImc16Now42o.cache
|
271
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpiWtnqpufka8lRtMznM6Ko0aWJrcH_j8cfZwdYmzNI.cache
|
272
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ol/OlBX9JIv9SAOmK2t35x1SYDx1sxCXF0yvqpna3WMyH0.cache
|
259
273
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
260
274
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ch/Ch2bQFHkYziI9Erdkuj8uoPJyw0W2aA5prtYAqlccww.cache
|
261
275
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
|
@@ -263,11 +277,11 @@ test_files:
|
|
263
277
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
|
264
278
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/b-/b-1gw2MCeaTZEWFQ_udDtgx4hJmooIz9uDVlHE97S2g.cache
|
265
279
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Nn/NnUCa7jNYx9HCmEB7E7WPWT00DwaM4IYICy1Ju1jjcs.cache
|
280
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Yr/YrZ0OIHu42cExs1kqngMA6ShVDKhfGmhyW-E9haNo5Y.cache
|
266
281
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_9ERjsyvsou7I7CNLORkwcBYyxCSdQRj9el7fbYNx4.cache
|
267
282
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/lz/lz4_WSikXa5YohqgYmqCvVmW_r_ncbvtgDX7bJoO03s.cache
|
283
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Tb/TbNNT2ADDg0nsOqddkrls4KLYP00SwI0Mu9N0Map59I.cache
|
268
284
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/qd/qdZCi8acwxpvAQAC8sNXRjkz73Pdy7yQpG7_rNCxcYs.cache
|
269
285
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
270
286
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/bs/bsek6r8m5C0VziFPGuHOVymYEpIXo5gZyfU-8nPj01M.cache
|
271
287
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/LH/LHgjtAV8kdldaJ_dX0RCznzjmWYRuLdhU29fZCJ0VmU.cache
|
272
|
-
- test/test_helper.rb
|
273
|
-
- test/oauth_service_test.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
-
|
3
|
-
one:
|
4
|
-
url_pattern: MyString
|
5
|
-
string: MyString
|
6
|
-
name: MyString
|
7
|
-
string: MyString
|
8
|
-
hhtp_method: MyString
|
9
|
-
string: MyString
|
10
|
-
|
11
|
-
two:
|
12
|
-
url_pattern: MyString
|
13
|
-
string: MyString
|
14
|
-
name: MyString
|
15
|
-
string: MyString
|
16
|
-
hhtp_method: MyString
|
17
|
-
string: MyString
|