spree_easy_admin_redirect 2.3.1
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 +7 -0
- data/.gitignore +15 -0
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +7 -0
- data/LICENSE +21 -0
- data/README.md +48 -0
- data/Rakefile +21 -0
- data/app/controllers/spree/admin/root_controller.rb +16 -0
- data/bin/rails +7 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +3 -0
- data/lib/generators/spree_easy_admin_redirect/install/install_generator.rb +10 -0
- data/lib/spree_easy_admin_redirect.rb +2 -0
- data/lib/spree_easy_admin_redirect/engine.rb +20 -0
- data/lib/spree_easy_admin_redirect/factories.rb +6 -0
- data/spec/controllers/spree/admin/root_controller_spec.rb +35 -0
- data/spec/rails_helper.rb +98 -0
- data/spec/spec_helper.rb +83 -0
- data/spree_easy_admin_redirect.gemspec +33 -0
- metadata +235 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 09fffff038799eb404fc6193965a88b5e1171043
|
4
|
+
data.tar.gz: 8211a388c428b785741c8fafcaa7513ad0b4cfdf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ca26845b6e0faedaa11620b7db30e74118926118ba425ca31c82090072fbdba38a6ee9f3ee13ac59272822031f690b24e7ce4649bad398c5b54fc9295d01ef0f
|
7
|
+
data.tar.gz: 67a2301b9dadde53c16fdb58e4b74675c096c64f058098b12ca5aa1ed8a09c965dafea0875210cb045b55f844157529b1301be22bfeec108d1c2757f512ce88f
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
global
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.1.2
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014-ω Sergio Arbeo
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
SpreeEasyAdminRedirect
|
2
|
+
======================
|
3
|
+
|
4
|
+
Provides an easy way to redirect an user after login in.
|
5
|
+
|
6
|
+
Installation
|
7
|
+
------------
|
8
|
+
|
9
|
+
Add spree_easy_admin_redirect to your Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'spree_easy_admin_redirect', git: 'git@github.com:Serabe/spree_easy_admin_redirect.git', branch: '2-3-stable'
|
13
|
+
```
|
14
|
+
|
15
|
+
Bundle your dependencies and run the installation generator:
|
16
|
+
|
17
|
+
```shell
|
18
|
+
bundle
|
19
|
+
bundle exec rails g spree_easy_admin_redirect:install
|
20
|
+
```
|
21
|
+
|
22
|
+
The generator does nothing but showing a message. It is provided because it is
|
23
|
+
what spree extensions do and somebody might not read this README.
|
24
|
+
|
25
|
+
Overriding the redirection
|
26
|
+
------
|
27
|
+
|
28
|
+
For overriding the redirection path you just need to redefine
|
29
|
+
`Spree::Admin::RootController#admin_root_redirect_path`. If you want a more complex behaviour, you might override `Spree::Admin::RootController#index`.
|
30
|
+
|
31
|
+
Testing
|
32
|
+
-------
|
33
|
+
|
34
|
+
First bundle your dependencies, then run `rake`. `rake` will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using `rake test_app`.
|
35
|
+
|
36
|
+
```shell
|
37
|
+
bundle
|
38
|
+
bundle exec rake
|
39
|
+
```
|
40
|
+
|
41
|
+
When testing your applications integration with this extension you may use it's factories.
|
42
|
+
Simply add this require statement to your spec_helper:
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
require 'spree_easy_admin_redirect/factories'
|
46
|
+
```
|
47
|
+
|
48
|
+
Copyright (c) 2014 [name of extension creator], released under the New BSD License
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
require 'spree/testing_support/extension_rake'
|
6
|
+
|
7
|
+
RSpec::Core::RakeTask.new
|
8
|
+
|
9
|
+
task :default do
|
10
|
+
if Dir["spec/dummy"].empty?
|
11
|
+
Rake::Task[:test_app].invoke
|
12
|
+
Dir.chdir("../../")
|
13
|
+
end
|
14
|
+
Rake::Task[:spec].invoke
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'Generates a dummy app for testing'
|
18
|
+
task :test_app do
|
19
|
+
ENV['LIB_NAME'] = 'spree_easy_admin_redirect'
|
20
|
+
Rake::Task['extension:test_app'].invoke
|
21
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Spree
|
2
|
+
module Admin
|
3
|
+
class RootController < Spree::Admin::BaseController
|
4
|
+
skip_before_filter :authorize_admin
|
5
|
+
|
6
|
+
def index
|
7
|
+
redirect_to admin_root_redirect_path
|
8
|
+
end
|
9
|
+
|
10
|
+
protected
|
11
|
+
def admin_root_redirect_path
|
12
|
+
spree.admin_orders_path
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/bin/rails
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
2
|
+
|
3
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
4
|
+
ENGINE_PATH = File.expand_path('../../lib/spree_easy_admin_redirect/engine', __FILE__)
|
5
|
+
|
6
|
+
require 'rails/all'
|
7
|
+
require 'rails/engine/commands'
|
data/config/routes.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
module SpreeEasyAdminRedirect
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
require 'spree/core'
|
4
|
+
isolate_namespace Spree
|
5
|
+
engine_name 'spree_easy_admin_redirect'
|
6
|
+
|
7
|
+
# use rspec for tests
|
8
|
+
config.generators do |g|
|
9
|
+
g.test_framework :rspec
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.activate
|
13
|
+
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
|
14
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
config.to_prepare &method(:activate).to_proc
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
# Define your Spree extensions Factories within this file to enable applications, and other extensions to use and override them.
|
3
|
+
#
|
4
|
+
# Example adding this to your spec_helper will load these Factories for use:
|
5
|
+
# require 'spree_easy_admin_redirect/factories'
|
6
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe Spree::Admin::RootController, type: :controller do
|
4
|
+
|
5
|
+
context "unauthorized request" do
|
6
|
+
|
7
|
+
before :each do
|
8
|
+
Spree::Admin::RootController.any_instance.stub(:spree_current_user).and_return(nil)
|
9
|
+
end
|
10
|
+
|
11
|
+
it "redirects to orders path by default" do
|
12
|
+
get :index, use_route: 'admin'
|
13
|
+
|
14
|
+
expect(response).to redirect_to '/admin/orders'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context "authorized request" do
|
19
|
+
stub_authorization!
|
20
|
+
|
21
|
+
it "redirects to orders path by default" do
|
22
|
+
get :index, use_route: 'admin'
|
23
|
+
|
24
|
+
expect(response).to redirect_to '/admin/orders'
|
25
|
+
end
|
26
|
+
|
27
|
+
it "redirects to wherever admin_root_redirects_path tells it to" do
|
28
|
+
Spree::Admin::RootController.any_instance.stub(:admin_root_redirect_path).and_return('/grooot')
|
29
|
+
|
30
|
+
get :index, use_route: 'admin'
|
31
|
+
|
32
|
+
expect(response).to redirect_to '/grooot'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# Run Coverage report
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter 'spec/dummy'
|
5
|
+
add_group 'Controllers', 'app/controllers'
|
6
|
+
add_group 'Helpers', 'app/helpers'
|
7
|
+
add_group 'Mailers', 'app/mailers'
|
8
|
+
add_group 'Models', 'app/models'
|
9
|
+
add_group 'Views', 'app/views'
|
10
|
+
add_group 'Libraries', 'lib'
|
11
|
+
end
|
12
|
+
|
13
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
14
|
+
ENV["RAILS_ENV"] ||= 'test'
|
15
|
+
require 'spec_helper'
|
16
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
17
|
+
|
18
|
+
require 'rspec/rails'
|
19
|
+
require 'database_cleaner'
|
20
|
+
require 'ffaker'
|
21
|
+
|
22
|
+
|
23
|
+
# Requires factories and other useful helpers defined in spree_core.
|
24
|
+
require 'spree/testing_support/authorization_helpers'
|
25
|
+
require 'spree/testing_support/capybara_ext'
|
26
|
+
require 'spree/testing_support/controller_requests'
|
27
|
+
require 'spree/testing_support/factories'
|
28
|
+
require 'spree/testing_support/url_helpers'
|
29
|
+
# Requires factories defined in lib/spree_easy_admin_redirect/factories.rb
|
30
|
+
require 'spree_easy_admin_redirect/factories'
|
31
|
+
|
32
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
33
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
34
|
+
# run as spec files by default. This means that files in spec/support that end
|
35
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
36
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
37
|
+
# end with _spec.rb. You can configure this pattern with with the --pattern
|
38
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
39
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
40
|
+
|
41
|
+
# Checks for pending migrations before tests are run.
|
42
|
+
# If you are not using ActiveRecord, you can remove this line.
|
43
|
+
ActiveRecord::Migration.maintain_test_schema!
|
44
|
+
|
45
|
+
RSpec.configure do |config|
|
46
|
+
config.include FactoryGirl::Syntax::Methods
|
47
|
+
|
48
|
+
# == URL Helpers
|
49
|
+
#
|
50
|
+
# Allows access to Spree's routes in specs:
|
51
|
+
#
|
52
|
+
# visit spree.admin_path
|
53
|
+
# current_path.should eql(spree.products_path)
|
54
|
+
config.include Spree::TestingSupport::UrlHelpers
|
55
|
+
|
56
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
57
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
58
|
+
|
59
|
+
# Capybara javascript drivers require transactional fixtures set to false, and we use DatabaseCleaner
|
60
|
+
# to cleanup after each test instead. Without transactional fixtures set to false the records created
|
61
|
+
# to setup a test will be unavailable to the browser, which runs under a separate server instance.
|
62
|
+
config.use_transactional_fixtures = false
|
63
|
+
|
64
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
65
|
+
# based on their file location, for example enabling you to call `get` and
|
66
|
+
# `post` in specs under `spec/controllers`.
|
67
|
+
#
|
68
|
+
# You can disable this behaviour by removing the line below, and instead
|
69
|
+
# explicitly tag your specs with their type, e.g.:
|
70
|
+
#
|
71
|
+
# RSpec.describe UsersController, :type => :controller do
|
72
|
+
# # ...
|
73
|
+
# end
|
74
|
+
#
|
75
|
+
# The different available types are documented in the features, such as in
|
76
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
77
|
+
config.infer_spec_type_from_file_location!
|
78
|
+
|
79
|
+
# Ensure Suite is set to use transactions for speed.
|
80
|
+
config.before :suite do
|
81
|
+
DatabaseCleaner.strategy = :transaction
|
82
|
+
DatabaseCleaner.clean_with :truncation
|
83
|
+
end
|
84
|
+
|
85
|
+
# Before each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
|
86
|
+
config.before :each do |example|
|
87
|
+
DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
|
88
|
+
DatabaseCleaner.start
|
89
|
+
end
|
90
|
+
|
91
|
+
# After each spec clean the database.
|
92
|
+
config.after :each do
|
93
|
+
DatabaseCleaner.clean
|
94
|
+
end
|
95
|
+
|
96
|
+
config.fail_fast = ENV['FAIL_FAST'] || false
|
97
|
+
config.order = "random"
|
98
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'pry'
|
2
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
3
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
4
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
5
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, make a
|
11
|
+
# separate helper file that requires this one and then use it only in the specs
|
12
|
+
# that actually need it.
|
13
|
+
#
|
14
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
15
|
+
# users commonly want.
|
16
|
+
#
|
17
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
18
|
+
RSpec.configure do |config|
|
19
|
+
|
20
|
+
config.mock_with :rspec
|
21
|
+
config.color = true
|
22
|
+
|
23
|
+
# The settings below are suggested to provide a good initial experience
|
24
|
+
# with RSpec, but feel free to customize to your heart's content.
|
25
|
+
=begin
|
26
|
+
# These two settings work together to allow you to limit a spec run
|
27
|
+
# to individual examples or groups you care about by tagging them with
|
28
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
29
|
+
# get run.
|
30
|
+
config.filter_run :focus
|
31
|
+
config.run_all_when_everything_filtered = true
|
32
|
+
|
33
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
34
|
+
# file, and it's useful to allow more verbose output when running an
|
35
|
+
# individual spec file.
|
36
|
+
if config.files_to_run.one?
|
37
|
+
# Use the documentation formatter for detailed output,
|
38
|
+
# unless a formatter has already been configured
|
39
|
+
# (e.g. via a command-line flag).
|
40
|
+
config.default_formatter = 'doc'
|
41
|
+
end
|
42
|
+
|
43
|
+
# Print the 10 slowest examples and example groups at the
|
44
|
+
# end of the spec run, to help surface which specs are running
|
45
|
+
# particularly slow.
|
46
|
+
config.profile_examples = 10
|
47
|
+
|
48
|
+
# Run specs in random order to surface order dependencies. If you find an
|
49
|
+
# order dependency and want to debug it, you can fix the order by providing
|
50
|
+
# the seed, which is printed after each run.
|
51
|
+
# --seed 1234
|
52
|
+
config.order = :random
|
53
|
+
|
54
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
55
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
56
|
+
# test failures related to randomization by passing the same `--seed` value
|
57
|
+
# as the one that triggered the failure.
|
58
|
+
Kernel.srand config.seed
|
59
|
+
|
60
|
+
# rspec-expectations config goes here. You can use an alternate
|
61
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
62
|
+
# assertions if you prefer.
|
63
|
+
config.expect_with :rspec do |expectations|
|
64
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
65
|
+
# For more details, see:
|
66
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
67
|
+
expectations.syntax = :expect
|
68
|
+
end
|
69
|
+
|
70
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
71
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
72
|
+
config.mock_with :rspec do |mocks|
|
73
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
74
|
+
# For more details, see:
|
75
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
76
|
+
mocks.syntax = :expect
|
77
|
+
|
78
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
79
|
+
# a real object. This is generally recommended.
|
80
|
+
mocks.verify_partial_doubles = true
|
81
|
+
end
|
82
|
+
=end
|
83
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
s.platform = Gem::Platform::RUBY
|
4
|
+
s.name = 'spree_easy_admin_redirect'
|
5
|
+
s.version = '2.3.1'
|
6
|
+
s.summary = 'Provides easy redirection in Spree after login in.'
|
7
|
+
s.description = 'Provides easy redirection in Spree after login in.'
|
8
|
+
s.required_ruby_version = '>= 1.9.3'
|
9
|
+
s.licenses = ["MIT"]
|
10
|
+
|
11
|
+
s.authors = ['Sergio Arbeo']
|
12
|
+
s.email = 'serabe@gmail.com'
|
13
|
+
s.homepage = 'https://github.com/Serabe/spree_easy_admin_redirect'
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.require_path = 'lib'
|
18
|
+
s.requirements << 'none'
|
19
|
+
|
20
|
+
s.add_dependency 'spree_core', '~> 2.3.1'
|
21
|
+
|
22
|
+
s.add_development_dependency 'capybara', '~> 2.1'
|
23
|
+
s.add_development_dependency 'coffee-rails'
|
24
|
+
s.add_development_dependency 'database_cleaner'
|
25
|
+
s.add_development_dependency 'factory_girl', '~> 4.4'
|
26
|
+
s.add_development_dependency 'ffaker'
|
27
|
+
s.add_development_dependency 'pry'
|
28
|
+
s.add_development_dependency 'rspec-rails', '~> 3.0'
|
29
|
+
s.add_development_dependency 'sass-rails', '~> 4.0.2'
|
30
|
+
s.add_development_dependency 'selenium-webdriver'
|
31
|
+
s.add_development_dependency 'simplecov'
|
32
|
+
s.add_development_dependency 'sqlite3'
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,235 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spree_easy_admin_redirect
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.3.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sergio Arbeo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: spree_core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.3.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.3.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: capybara
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: coffee-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: database_cleaner
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: ffaker
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sass-rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 4.0.2
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 4.0.2
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: selenium-webdriver
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sqlite3
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
description: Provides easy redirection in Spree after login in.
|
182
|
+
email: serabe@gmail.com
|
183
|
+
executables: []
|
184
|
+
extensions: []
|
185
|
+
extra_rdoc_files: []
|
186
|
+
files:
|
187
|
+
- ".gitignore"
|
188
|
+
- ".rspec"
|
189
|
+
- ".ruby-gemset"
|
190
|
+
- ".ruby-version"
|
191
|
+
- Gemfile
|
192
|
+
- LICENSE
|
193
|
+
- README.md
|
194
|
+
- Rakefile
|
195
|
+
- app/controllers/spree/admin/root_controller.rb
|
196
|
+
- bin/rails
|
197
|
+
- config/locales/en.yml
|
198
|
+
- config/routes.rb
|
199
|
+
- lib/generators/spree_easy_admin_redirect/install/install_generator.rb
|
200
|
+
- lib/spree_easy_admin_redirect.rb
|
201
|
+
- lib/spree_easy_admin_redirect/engine.rb
|
202
|
+
- lib/spree_easy_admin_redirect/factories.rb
|
203
|
+
- spec/controllers/spree/admin/root_controller_spec.rb
|
204
|
+
- spec/rails_helper.rb
|
205
|
+
- spec/spec_helper.rb
|
206
|
+
- spree_easy_admin_redirect.gemspec
|
207
|
+
homepage: https://github.com/Serabe/spree_easy_admin_redirect
|
208
|
+
licenses:
|
209
|
+
- MIT
|
210
|
+
metadata: {}
|
211
|
+
post_install_message:
|
212
|
+
rdoc_options: []
|
213
|
+
require_paths:
|
214
|
+
- lib
|
215
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - ">="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: 1.9.3
|
220
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '0'
|
225
|
+
requirements:
|
226
|
+
- none
|
227
|
+
rubyforge_project:
|
228
|
+
rubygems_version: 2.2.2
|
229
|
+
signing_key:
|
230
|
+
specification_version: 4
|
231
|
+
summary: Provides easy redirection in Spree after login in.
|
232
|
+
test_files:
|
233
|
+
- spec/controllers/spree/admin/root_controller_spec.rb
|
234
|
+
- spec/rails_helper.rb
|
235
|
+
- spec/spec_helper.rb
|