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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4dd027e12f98c6b1ad7bea6420da9ad0b577640e
4
- data.tar.gz: fb95c9f382137931d1b0ab8f3a22bf1de43ba2d8
3
+ metadata.gz: 9389de5c1299e0c33d7cabc3f2d018c1e92c1a98
4
+ data.tar.gz: 0d696b1c8f5eda2190b198674f6b033ddfe0c5c9
5
5
  SHA512:
6
- metadata.gz: 0c1e9eb8b7c21d9a4ff1835e9ac60b264a44ce6743ad3a40b9d614e59a0147f25d979581e69f096ec76882b0b82e624ad2c263385e53374a75bdce485705d30f
7
- data.tar.gz: ec1259860b4e6cbcb7c69bd0f7d840ab71a3261f634ecc2e0e8376cf9753f4281c37d8001b9a1e714baca0d0bb5ec362ac806fce668fb534c29901e3e35e55e9
6
+ metadata.gz: bf8e5a7def2b11c3ff3d5b6c9c11183c87ae7878b8b69bc473e889bd0f692534daae0f65521f023d9d61a155b61904d12d97b0dc89d2cf1d8eb4b6fc8844f5c5
7
+ data.tar.gz: 69a11800934e7292e225edc3445081211a5c88128d3a18004bba7136ffbed21d6e5d7b1faa57474cdc2b2f2186defa8626e98d2ed0b6a2ad29e7bdcd385fc39d
@@ -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::Lib::ControllerAuthentication)
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::Lib::ControllerAuthentication)
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?(:[]=)
@@ -3,7 +3,7 @@ module Softwear
3
3
  isolate_namespace Softwear
4
4
 
5
5
  initializer "softwear_lib.assets.precompile" do |app|
6
- app.config.assets.precompile += %w(softwear.css softwear.js)
6
+ app.config.assets.precompile += %w(softwear.css softwear.js style.css)
7
7
  end
8
8
  end
9
9
  end
data/lib/softwear/lib.rb CHANGED
@@ -1,14 +1,14 @@
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"
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/lib/enqueue"
7
+ require "softwear/library/enqueue"
8
8
  rescue LoadError
9
9
  end
10
10
 
11
- require "softwear/lib/controller_authentication"
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 Lib
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 Lib
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::Lib::ApiController
23
+ Softwear::Library::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 Lib
2
+ module Library
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 Lib
2
+ module Library
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 Lib
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::Lib::Enqueue::Worker,
43
+ 'class' => ::Softwear::Library::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::Lib
3
+ module Softwear::Library
4
4
  module Spec
5
5
  extend ActiveSupport::Concern
6
6
 
File without changes
@@ -0,0 +1,5 @@
1
+ module Softwear
2
+ module Library
3
+ VERSION = "2.0.9.2"
4
+ end
5
+ end
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/lib/version'
4
+ require 'softwear/library/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "softwear-lib"
8
- spec.version = Softwear::Lib::VERSION
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.1
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/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
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
@@ -1,5 +0,0 @@
1
- module Softwear
2
- module Lib
3
- VERSION = "2.0.9.1"
4
- end
5
- end