softwear-lib 2.0.9 → 2.0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e9ccfc74ca6035b578cae435e5511b08a230c34
4
- data.tar.gz: a09a9bd4ee16f9698533aefb1baf6cfbd56ad984
3
+ metadata.gz: 4dd027e12f98c6b1ad7bea6420da9ad0b577640e
4
+ data.tar.gz: fb95c9f382137931d1b0ab8f3a22bf1de43ba2d8
5
5
  SHA512:
6
- metadata.gz: 41f162a9423c3e93fb8c6e9f7dd2542ee1c406d1a7ab2929b86840428a54ebaae052fd9a74bf8256c03e158054cdef978a744e88d6c7708e1a0be50aff3e77e3
7
- data.tar.gz: bba7dac2745091bf6df1e8353b4283601a404981a9b05428fb4ca109a780e72add71d4307408c87117a5ddd5a0f7b798f435739719980e27cb08264897f9a917
6
+ metadata.gz: 0c1e9eb8b7c21d9a4ff1835e9ac60b264a44ce6743ad3a40b9d614e59a0147f25d979581e69f096ec76882b0b82e624ad2c263385e53374a75bdce485705d30f
7
+ data.tar.gz: ec1259860b4e6cbcb7c69bd0f7d840ab71a3261f634ecc2e0e8376cf9753f4281c37d8001b9a1e714baca0d0bb5ec362ac806fce668fb534c29901e3e35e55e9
@@ -16,7 +16,7 @@ module Softwear
16
16
 
17
17
  allow(Figaro.env).to receive(:softwear_hub_url).and_return 'http://hub.example.com'
18
18
 
19
- allow_any_instance_of(Softwear::Library::ControllerAuthentication)
19
+ allow_any_instance_of(Softwear::Lib::ControllerAuthentication)
20
20
  .to receive(:user_token)
21
21
  .and_return('')
22
22
 
@@ -48,7 +48,7 @@ module Softwear
48
48
  def sign_in_as(user)
49
49
  @_signed_in_user = user
50
50
 
51
- allow_any_instance_of(Softwear::Library::ControllerAuthentication)
51
+ allow_any_instance_of(Softwear::Lib::ControllerAuthentication)
52
52
  .to receive(:user_token).and_return 'abc123'
53
53
 
54
54
  if respond_to?(:session) && session.respond_to?(:[]=)
@@ -1,7 +1,7 @@
1
1
  require 'inherited_resources'
2
2
 
3
3
  module Softwear
4
- module Library
4
+ module Lib
5
5
  class ApiController < ActionController::Base
6
6
  include ::InheritedResources::Actions
7
7
  include ::InheritedResources::BaseHelpers
@@ -20,7 +20,7 @@ module Softwear
20
20
  self.class_attribute :parents_symbols, :resources_configuration, :instance_writer => false
21
21
 
22
22
  def self.base_class
23
- Softwear::Library::ApiController
23
+ Softwear::Lib::ApiController
24
24
  end
25
25
 
26
26
  def self.token_authenticate(user_class, options = {})
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
- module Library
2
+ module Lib
3
3
  def self.capistrano(context)
4
4
  context.instance_eval do
5
5
  Rake::Task["deploy:compile_assets"].clear
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
- module Library
2
+ module Lib
3
3
  module ControllerAuthentication
4
4
  extend ActiveSupport::Concern
5
5
 
@@ -1,7 +1,7 @@
1
1
  require 'sidekiq'
2
2
 
3
3
  module Softwear
4
- module Library
4
+ module Lib
5
5
  module Enqueue
6
6
  extend ActiveSupport::Concern
7
7
 
@@ -40,7 +40,7 @@ module Softwear
40
40
  enqueue_class_mod.module_eval <<-RUBY, __FILE__, __LINE__ + 1
41
41
  def enqueue_#{method_name}(id, *args)
42
42
  ::Sidekiq::Client.push(
43
- 'class' => ::Softwear::Library::Enqueue::Worker,
43
+ 'class' => ::Softwear::Lib::Enqueue::Worker,
44
44
  'args' => [name, id, #{method_name.inspect}] + args,
45
45
  'queue' => #{options[:queue].inspect}
46
46
  )
@@ -1,6 +1,6 @@
1
1
  require 'active_support/concern'
2
2
 
3
- module Softwear::Library
3
+ module Softwear::Lib
4
4
  module Spec
5
5
  extend ActiveSupport::Concern
6
6
 
File without changes
@@ -0,0 +1,5 @@
1
+ module Softwear
2
+ module Lib
3
+ VERSION = "2.0.9.1"
4
+ end
5
+ end
data/lib/softwear/lib.rb CHANGED
@@ -1,14 +1,14 @@
1
- require "softwear/engine"
2
- require "softwear/error_catcher"
3
- require "softwear/library/version"
4
- require "softwear/library/spec"
5
- require "softwear/library/api_controller"
1
+ #require "softwear/engine"
2
+ #require "softwear/error_catcher"
3
+ require "softwear/lib/version"
4
+ require "softwear/lib/spec"
5
+ require "softwear/lib/api_controller"
6
6
  begin
7
- require "softwear/library/enqueue"
7
+ require "softwear/lib/enqueue"
8
8
  rescue LoadError
9
9
  end
10
10
 
11
- require "softwear/library/controller_authentication"
11
+ require "softwear/lib/controller_authentication"
12
12
  require "softwear/auth/helper"
13
13
  require "softwear/auth/model"
14
14
  require "softwear/auth/belongs_to_user"
@@ -16,7 +16,7 @@ require "softwear/auth/spec"
16
16
  require "softwear/auth/token_authentication"
17
17
 
18
18
  module Softwear
19
- module Library
19
+ module Lib
20
20
  GEMFILE_OPENER = "# === BEGIN SOFTWEAR LIB GEMS === #"
21
21
  GEMFILE_CLOSER = "# === END SOFTWEAR LIB GEMS === #"
22
22
 
data/softwear-lib.gemspec CHANGED
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'softwear/library/version'
4
+ require 'softwear/lib/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "softwear-lib"
8
- spec.version = Softwear::Library::VERSION
8
+ spec.version = Softwear::Lib::VERSION
9
9
  spec.authors = ["Nigel Baillie"]
10
10
  spec.email = ["nigel@annarbortees.com"]
11
11
  spec.summary = %q{Common gems and logic for all softwear apps.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie
@@ -108,13 +108,13 @@ files:
108
108
  - lib/softwear/engine.rb
109
109
  - lib/softwear/error_catcher.rb
110
110
  - lib/softwear/lib.rb
111
- - lib/softwear/library/api_controller.rb
112
- - lib/softwear/library/capistrano.rb
113
- - lib/softwear/library/controller_authentication.rb
114
- - lib/softwear/library/enqueue.rb
115
- - lib/softwear/library/spec.rb
116
- - lib/softwear/library/tcp_server.rb
117
- - lib/softwear/library/version.rb
111
+ - lib/softwear/lib/api_controller.rb
112
+ - lib/softwear/lib/capistrano.rb
113
+ - lib/softwear/lib/controller_authentication.rb
114
+ - lib/softwear/lib/enqueue.rb
115
+ - lib/softwear/lib/spec.rb
116
+ - lib/softwear/lib/tcp_server.rb
117
+ - lib/softwear/lib/version.rb
118
118
  - softwear-lib.gemspec
119
119
  - spec/spec_helper.rb
120
120
  - vendor/assets/stylesheets/animate/animate.css
@@ -1,5 +0,0 @@
1
- module Softwear
2
- module Library
3
- VERSION = "2.0.9"
4
- end
5
- end