zfben_libjs 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/lib/zfben_libjs.rb CHANGED
@@ -30,9 +30,10 @@ end
30
30
 
31
31
  class Zfben_libjs::Libjs
32
32
  def build!
33
- tip '== Starting Build'
33
+ tip '== Starting Build =='
34
34
 
35
35
  if @opts[:config].has_key?('before')
36
+ tip '== Runing Before Scripts =='
36
37
  load @opts[:config]['before']
37
38
  end
38
39
  tip '== [1/2] Starting Progress Source =='
@@ -74,7 +75,6 @@ class Zfben_libjs::Libjs
74
75
 
75
76
  @urls = {}
76
77
 
77
- p @libs
78
78
  @libs.each do |lib, path|
79
79
  path = [path] unless path.class == Array
80
80
  path = path.map{ |url|
@@ -96,12 +96,13 @@ class Zfben_libjs::Libjs
96
96
  opts[name]
97
97
  options[name] = options[name].merge(opts[name])
98
98
  when 'Array'
99
+ opts[name] = [opts[name]] if opts[name].class.to_s != 'Array'
99
100
  options[name] = (options[name] + opts[name]).uniq
100
101
  end
101
102
  end
102
103
  end
103
104
 
104
- options[:support_source].each{ |f| require f }
105
+ options[:support_source].each{ |f| require File.realpath(f) }
105
106
 
106
107
  return options
107
108
  end
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.13'
6
+ s.version = '0.0.14'
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.13
4
+ version: 0.0.14
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-01 00:00:00.000000000Z
12
+ date: 2011-09-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
16
- requirement: &24349840 !ruby/object:Gem::Requirement
16
+ requirement: &14147480 !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: *24349840
24
+ version_requirements: *14147480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &24349380 !ruby/object:Gem::Requirement
27
+ requirement: &14147020 !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: *24349380
35
+ version_requirements: *14147020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: compass
38
- requirement: &24348960 !ruby/object:Gem::Requirement
38
+ requirement: &14146600 !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: *24348960
46
+ version_requirements: *14146600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: coffee-script
49
- requirement: &24348540 !ruby/object:Gem::Requirement
49
+ requirement: &14146180 !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: *24348540
57
+ version_requirements: *14146180
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: uglifier
60
- requirement: &24377940 !ruby/object:Gem::Requirement
60
+ requirement: &14145760 !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: *24377940
68
+ version_requirements: *14145760
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
- requirement: &24377520 !ruby/object:Gem::Requirement
71
+ requirement: &14145340 !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: *24377520
79
+ version_requirements: *14145340
80
80
  description: ''
81
81
  email:
82
82
  - ben@zfben.com