zfben_libjs 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,15 +4,8 @@ class Zfben_libjs::Libjs
4
4
  :config => {
5
5
 
6
6
  'src' => 'src',
7
- 'src/source' => 'src/.source',
8
- 'src/javascripts' => 'src/javascripts',
9
- 'src/images' => 'src/images',
10
- 'src/stylesheets' => 'src/stylesheets',
11
7
 
12
8
  'url' => '',
13
- 'url/javascripts' => '/javascripts',
14
- 'url/images' => '/images',
15
- 'url/stylesheets' => '/stylesheets',
16
9
 
17
10
  'download' => false,
18
11
  'minify' => true,
@@ -48,10 +41,16 @@ class Zfben_libjs::Libjs
48
41
  @path_gem = File.realpath(File.dirname(__FILE__))
49
42
 
50
43
  # config
51
- ['src', 'src/source', 'src/javascripts', 'src/images', 'src/stylesheets'].each do |path|
52
- FileUtils.mkdir(@opts[:config][path]) unless File.exists?(@opts[:config][path])
44
+ FileUtils.mkdir(@opts[:config]['src']) unless File.exists?(@opts[:config]['src'])
45
+ ['source', 'javascripts', 'images', 'stylesheets'].each do |path|
46
+ key = 'src/' + path
47
+ @opts[:config][key] = File.join(@opts[:config]['src'], path) unless @opts[:config].has_key?(key)
48
+ FileUtils.mkdir(@opts[:config][key]) unless File.exists?(@opts[:config][key])
49
+ @opts[:config]['url/' + path] = @opts[:config]['url'] + '/' + path unless @opts[:config].has_key?('url/' + path)
53
50
  end
54
51
 
52
+ p @opts
53
+
55
54
  # Merge default libs
56
55
  @libs = {
57
56
  'lazyload' => 'https://raw.github.com/rgrove/lazyload/master/lazyload.js'
data/zfben_libjs.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'zfben_libjs'
6
- s.version = '0.0.14'
6
+ s.version = '0.0.15'
7
7
  s.authors = ["Ben"]
8
8
  s.email = ["ben@zfben.com"]
9
9
  s.homepage = "https://github.com/benz303/zfben_libjs"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zfben_libjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-02 00:00:00.000000000Z
12
+ date: 2011-09-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
16
- requirement: &14147480 !ruby/object:Gem::Requirement
16
+ requirement: &24261320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *14147480
24
+ version_requirements: *24261320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &14147020 !ruby/object:Gem::Requirement
27
+ requirement: &24260860 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *14147020
35
+ version_requirements: *24260860
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: compass
38
- requirement: &14146600 !ruby/object:Gem::Requirement
38
+ requirement: &24260440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *14146600
46
+ version_requirements: *24260440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: coffee-script
49
- requirement: &14146180 !ruby/object:Gem::Requirement
49
+ requirement: &24260020 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *14146180
57
+ version_requirements: *24260020
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: uglifier
60
- requirement: &14145760 !ruby/object:Gem::Requirement
60
+ requirement: &24259600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *14145760
68
+ version_requirements: *24259600
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
- requirement: &14145340 !ruby/object:Gem::Requirement
71
+ requirement: &24259180 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *14145340
79
+ version_requirements: *24259180
80
80
  description: ''
81
81
  email:
82
82
  - ben@zfben.com