softwear-lib 2.0.9 → 2.0.9.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 +4 -4
- data/lib/softwear/auth/spec.rb +2 -2
- data/lib/softwear/{library → lib}/api_controller.rb +2 -2
- data/lib/softwear/{library → lib}/capistrano.rb +1 -1
- data/lib/softwear/{library → lib}/controller_authentication.rb +1 -1
- data/lib/softwear/{library → lib}/enqueue.rb +2 -2
- data/lib/softwear/{library → lib}/spec.rb +1 -1
- data/lib/softwear/{library → lib}/tcp_server.rb +0 -0
- data/lib/softwear/lib/version.rb +5 -0
- data/lib/softwear/lib.rb +8 -8
- data/softwear-lib.gemspec +2 -2
- metadata +8 -8
- data/lib/softwear/library/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dd027e12f98c6b1ad7bea6420da9ad0b577640e
|
4
|
+
data.tar.gz: fb95c9f382137931d1b0ab8f3a22bf1de43ba2d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1e9eb8b7c21d9a4ff1835e9ac60b264a44ce6743ad3a40b9d614e59a0147f25d979581e69f096ec76882b0b82e624ad2c263385e53374a75bdce485705d30f
|
7
|
+
data.tar.gz: ec1259860b4e6cbcb7c69bd0f7d840ab71a3261f634ecc2e0e8376cf9753f4281c37d8001b9a1e714baca0d0bb5ec362ac806fce668fb534c29901e3e35e55e9
|
data/lib/softwear/auth/spec.rb
CHANGED
@@ -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::
|
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::
|
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
|
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::
|
23
|
+
Softwear::Lib::ApiController
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.token_authenticate(user_class, options = {})
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'sidekiq'
|
2
2
|
|
3
3
|
module Softwear
|
4
|
-
module
|
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::
|
43
|
+
'class' => ::Softwear::Lib::Enqueue::Worker,
|
44
44
|
'args' => [name, id, #{method_name.inspect}] + args,
|
45
45
|
'queue' => #{options[:queue].inspect}
|
46
46
|
)
|
File without changes
|
data/lib/softwear/lib.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
require "softwear/engine"
|
2
|
-
require "softwear/error_catcher"
|
3
|
-
require "softwear/
|
4
|
-
require "softwear/
|
5
|
-
require "softwear/
|
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/
|
7
|
+
require "softwear/lib/enqueue"
|
8
8
|
rescue LoadError
|
9
9
|
end
|
10
10
|
|
11
|
-
require "softwear/
|
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
|
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/
|
4
|
+
require 'softwear/lib/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "softwear-lib"
|
8
|
-
spec.version = Softwear::
|
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/
|
112
|
-
- lib/softwear/
|
113
|
-
- lib/softwear/
|
114
|
-
- lib/softwear/
|
115
|
-
- lib/softwear/
|
116
|
-
- lib/softwear/
|
117
|
-
- lib/softwear/
|
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
|