webmate-sprockets 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,14 +16,14 @@ module Webmate
16
16
  environment.append_path(File.join(config.app.root, path))
17
17
  end
18
18
 
19
- # require webmate assets
20
- webmate_path = if Gem::Specification.respond_to?(:find_by_name)
21
- Gem::Specification.find_by_name("webmate").full_gem_path
22
- else
23
- Gem.source_index.search("webmate").first.full_gem_path
24
- end
25
- ['stylesheets', 'javascripts', 'images'].each do |dir|
26
- environment.append_path(File.join(webmate_path, 'vendor', 'assets', dir))
19
+ # require assets from other gems
20
+ Gem::Specification.to_a.each do |gem_spec|
21
+ ['stylesheets', 'javascripts', 'images'].each do |dir|
22
+ assets_path = File.join(gem_spec.full_gem_path, 'vendor', 'assets', dir)
23
+ if Dir.exists?(assets_path)
24
+ environment.append_path(assets_path)
25
+ end
26
+ end
27
27
  end
28
28
 
29
29
  if config.compress_assets?
@@ -1,5 +1,5 @@
1
1
  module Webmate
2
2
  module Sprockets
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = s.name
16
16
 
17
- s.add_runtime_dependency 'sprockets', '~> 2.0'
17
+ s.add_runtime_dependency 'sprockets', '~> 2.10'
18
18
 
19
19
  s.files = [
20
20
  "Gemfile",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmate-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-07 00:00:00.000000000 Z
13
+ date: 2013-07-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sprockets
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: '2.0'
22
+ version: '2.10'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: '2.0'
30
+ version: '2.10'
31
31
  description: Use Sprockets effectively with Webmate.
32
32
  email:
33
33
  - jessereiss@gmail.com