brainopia-assets 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/assets.gemspec +1 -1
  3. data/lib/assets.rb +5 -1
  4. metadata +2 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.4
data/assets.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{assets}
8
- s.version = "0.9.2"
8
+ s.version = "0.9.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ravil Bayramgalin"]
data/lib/assets.rb CHANGED
@@ -5,7 +5,11 @@ require 'assets/stylesheet'
5
5
 
6
6
  module Assets
7
7
  def self.config
8
- @config or raise 'You need to define config for assets'
8
+ @config or if File.exists?(default_path='config/assets.yml')
9
+ @config = YAML.load_file default_path
10
+ else
11
+ raise 'You need to set a path for assets config or create one in default location (config/assets.yml)'
12
+ end
9
13
  end
10
14
 
11
15
  def self.config=(file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainopia-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ravil Bayramgalin
@@ -33,7 +33,6 @@ files:
33
33
  - lib/assets/stylesheet.rb
34
34
  has_rdoc: false
35
35
  homepage: http://github.com/brainopia/assets
36
- licenses:
37
36
  post_install_message:
38
37
  rdoc_options:
39
38
  - --charset=UTF-8
@@ -54,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
53
  requirements: []
55
54
 
56
55
  rubyforge_project:
57
- rubygems_version: 1.3.5
56
+ rubygems_version: 1.2.0
58
57
  signing_key:
59
58
  specification_version: 3
60
59
  summary: Library to manage css and js assets in any rack-based framework