softwear-lib 2.0.9.1 → 2.0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softwear/auth/spec.rb +2 -2
- data/lib/softwear/engine.rb +1 -1
- data/lib/softwear/lib.rb +8 -8
- data/lib/softwear/{lib → library}/api_controller.rb +2 -2
- data/lib/softwear/{lib → library}/capistrano.rb +1 -1
- data/lib/softwear/{lib → library}/controller_authentication.rb +1 -1
- data/lib/softwear/{lib → library}/enqueue.rb +2 -2
- data/lib/softwear/{lib → library}/spec.rb +1 -1
- data/lib/softwear/{lib → library}/tcp_server.rb +0 -0
- data/lib/softwear/library/version.rb +5 -0
- data/softwear-lib.gemspec +2 -2
- metadata +8 -8
- data/lib/softwear/lib/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: 9389de5c1299e0c33d7cabc3f2d018c1e92c1a98
|
4
|
+
data.tar.gz: 0d696b1c8f5eda2190b198674f6b033ddfe0c5c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8e5a7def2b11c3ff3d5b6c9c11183c87ae7878b8b69bc473e889bd0f692534daae0f65521f023d9d61a155b61904d12d97b0dc89d2cf1d8eb4b6fc8844f5c5
|
7
|
+
data.tar.gz: 69a11800934e7292e225edc3445081211a5c88128d3a18004bba7136ffbed21d6e5d7b1faa57474cdc2b2f2186defa8626e98d2ed0b6a2ad29e7bdcd385fc39d
|
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::Library::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::Library::ControllerAuthentication)
|
52
52
|
.to receive(:user_token).and_return 'abc123'
|
53
53
|
|
54
54
|
if respond_to?(:session) && session.respond_to?(:[]=)
|
data/lib/softwear/engine.rb
CHANGED
data/lib/softwear/lib.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require "softwear/
|
4
|
-
require "softwear/
|
5
|
-
require "softwear/
|
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"
|
6
6
|
begin
|
7
|
-
require "softwear/
|
7
|
+
require "softwear/library/enqueue"
|
8
8
|
rescue LoadError
|
9
9
|
end
|
10
10
|
|
11
|
-
require "softwear/
|
11
|
+
require "softwear/library/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 Library
|
20
20
|
GEMFILE_OPENER = "# === BEGIN SOFTWEAR LIB GEMS === #"
|
21
21
|
GEMFILE_CLOSER = "# === END SOFTWEAR LIB GEMS === #"
|
22
22
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'inherited_resources'
|
2
2
|
|
3
3
|
module Softwear
|
4
|
-
module
|
4
|
+
module Library
|
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::Library::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 Library
|
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::Library::Enqueue::Worker,
|
44
44
|
'args' => [name, id, #{method_name.inspect}] + args,
|
45
45
|
'queue' => #{options[:queue].inspect}
|
46
46
|
)
|
File without changes
|
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/library/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "softwear-lib"
|
8
|
-
spec.version = Softwear::
|
8
|
+
spec.version = Softwear::Library::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.2
|
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/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
|
118
118
|
- softwear-lib.gemspec
|
119
119
|
- spec/spec_helper.rb
|
120
120
|
- vendor/assets/stylesheets/animate/animate.css
|