Skip to content

Commit

Permalink
Rename Signonotron2 to Signon
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenb committed Mar 28, 2017
1 parent 25b02ab commit 4cbb15a
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -7,6 +7,6 @@ require File.expand_path('../config/application', __FILE__)
require_relative 'lib/volatile_lock'
include VolatileLock::DSL

Signonotron2::Application.load_tasks
Signon::Application.load_tasks

task :default => [:test, :spec, :check_for_bad_time_handling, 'jasmine:ci']
2 changes: 1 addition & 1 deletion config.ru
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)
run Signonotron2::Application
run Signon::Application
2 changes: 1 addition & 1 deletion config/application.rb
Expand Up @@ -7,7 +7,7 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Signonotron2
module Signon
def self.mysql?
ENV.fetch("SIGNONOTRON2_DB_ADAPTER", "mysql") == "mysql"
end
Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Expand Up @@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)

# Initialize the rails application
Signonotron2::Application.initialize!
Signon::Application.initialize!
2 changes: 1 addition & 1 deletion config/environments/development.rb
@@ -1,4 +1,4 @@
Signonotron2::Application.configure do
Signon::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

# In the development environment your application's code is reloaded on
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
@@ -1,4 +1,4 @@
Signonotron2::Application.configure do
Signon::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# Code is not reloaded between requests.
Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
@@ -1,4 +1,4 @@
Signonotron2::Application.configure do
Signon::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# The test environment is used exclusively to run your application's
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/alphabetical_paginate_config.rb
Expand Up @@ -7,4 +7,4 @@
bootstrap3: true
}

ALPHABETICAL_PAGINATE_CONFIG[:db_mode] = true if Signonotron2.mysql?
ALPHABETICAL_PAGINATE_CONFIG[:db_mode] = true if Signon.mysql?
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
@@ -1,5 +1,5 @@
# Be sure to restart your server when you modify this file.

Signonotron2::Application.config.session_store :cookie_store, key: '_signonotron2_session',
Signon::Application.config.session_store :cookie_store, key: '_signonotron2_session',
secure: Rails.env.production?,
httponly: true
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -1,4 +1,4 @@
Signonotron2::Application.routes.draw do
Signon::Application.routes.draw do
use_doorkeeper

devise_for :users, controllers: {
Expand Down
2 changes: 1 addition & 1 deletion lib/exception_handler.rb
@@ -1,6 +1,6 @@
require 'sso_push_error'

module Signonotron2
module Signon
module ExceptionHandler
def with_exception_handling
yield
Expand Down
2 changes: 1 addition & 1 deletion lib/organisation_mappings/zendesk_to_signon.rb
Expand Up @@ -15,7 +15,7 @@ def self.apply
end

def self.substring_function
if Signonotron2.mysql?
if Signon.mysql?
"substring_index(email, '@', -1)"
else
"split_part(email, '@', 2)"
Expand Down
2 changes: 1 addition & 1 deletion lib/sso_push_client.rb
Expand Up @@ -2,7 +2,7 @@
require 'exception_handler'

class SSOPushClient < GdsApi::Base
include Signonotron2::ExceptionHandler
include Signon::ExceptionHandler

def initialize(application)
@application = application
Expand Down

0 comments on commit 4cbb15a

Please sign in to comment.