bastion 0.1.10 → 0.1.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8ffeee982685674e514ec036fb70f5c46267247
4
- data.tar.gz: 1c2513f3cf4b6d764000c11c89654259b09f580e
3
+ metadata.gz: 215e758692928b45be50032619813c27e60d4f9a
4
+ data.tar.gz: f94dde9b9f3a7c2b8f23f06d9d1535576460779c
5
5
  SHA512:
6
- metadata.gz: bb30797fdee0fc1ec84de971713c901d4c5dbde02563ae66cdf5d4fbd6c8253163aa2063b3bcb0fe9e385b5e9350d8e519933efbfa80f060108918d63736915b
7
- data.tar.gz: fdef65e2a62df3d92ed7467da02022e4ad072a5280a2aa1b954096eda3f18db413e469de4e27866ec38c1215cc28ad29990e459815f8b3ce0933932e3b0b02b7
6
+ metadata.gz: 1b1b70043f1d2dde8ef1f67fd73ef0a5f773fd2ec0787cb1cab5eccf41be2586e08fa88ee6703277afd5c0a517c9394732bb1325da531db3942bbc5a516c5e89
7
+ data.tar.gz: 921f02922c74e79c88f84308195a6f01612a27d8faec0860bd2ae75d00b4842ec89cdfd35d0d25fd388b29dae549ebcf9c59b43ede36bced14565f8195e31cfd
@@ -14,10 +14,15 @@ module Bastion
14
14
  app.routes_reloader.paths.unshift("#{Bastion::Engine.root}/config/routes.rb")
15
15
  end
16
16
 
17
- initializer "bastion.plugin", :group => :all do |app|
18
- app.config.assets.paths << "#{Bastion::Engine.root}/vendor/assets/stylesheets/bastion"
19
- app.middleware.use ::ActionDispatch::Static, "#{Bastion::Engine.root}/app/assets/javascripts/bastion"
17
+ initializer "bastion.assets", :group => :all do |app|
18
+ if Rails.env.production?
19
+ app.config.assets.paths << "#{Bastion::Engine.root}/vendor/assets/stylesheets/bastion"
20
+ else
21
+ app.config.less.paths << "#{Bastion::Engine.root}/vendor/assets/stylesheets/bastion"
22
+ end
23
+ end
20
24
 
25
+ initializer "bastion.plugin", :group => :all do |app|
21
26
  SETTINGS[:bastion] = {:assets => {}} if SETTINGS[:bastion].nil?
22
27
 
23
28
  SETTINGS[:bastion][:assets][:precompile] = [
@@ -1,3 +1,3 @@
1
1
  module Bastion
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
data/lib/bastion.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # to make Foreman#in_rake? helper available if Foreman's lib is available
2
2
  require 'rails'
3
- lib_foreman = File.expand_path('lib/foreman', Rails.root)
4
- require lib_foreman unless !Dir.exist?(lib_foreman)
5
3
 
6
4
  require 'less-rails' unless Rails.env.production?
7
5
  require 'angular-rails-templates'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bastion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katello
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-01 00:00:00.000000000 Z
11
+ date: 2014-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: angular-rails-templates