rad_assets 0.2.3 → 0.2.4
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.
- data/lib/rad/assets/assets.rb +2 -3
- metadata +2 -2
data/lib/rad/assets/assets.rb
CHANGED
|
@@ -5,7 +5,7 @@ class Rad::Assets
|
|
|
5
5
|
# Config
|
|
6
6
|
#
|
|
7
7
|
attr_accessor :static_path_prefix
|
|
8
|
-
require_attr :static_path_prefix
|
|
8
|
+
# require_attr :static_path_prefix
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def resolve_http_paths http_path
|
|
@@ -22,8 +22,7 @@ class Rad::Assets
|
|
|
22
22
|
paths.each do |path|
|
|
23
23
|
path = path.to_dir
|
|
24
24
|
raise "asset path should exist (#{path})!" unless path.exist?
|
|
25
|
-
raise "asset path should be a directory (#{path})!" unless path.dir?
|
|
26
|
-
p path, "#{rad.http.public_path}#{static_path_prefix}"
|
|
25
|
+
raise "asset path should be a directory (#{path})!" unless path.dir?
|
|
27
26
|
path.copy_to! "#{rad.http.public_path}#{static_path_prefix}".to_dir
|
|
28
27
|
end
|
|
29
28
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rad_assets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-07-
|
|
13
|
+
date: 2011-07-05 00:00:00 +04:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies: []
|
|
16
16
|
|