gusto 1.0.0.beta6 → 1.0.0.beta7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0d60b26b8242dc202dc9449165409a42d237b9f
4
- data.tar.gz: b02b6c3e680e45d7ddcc7694e7d28b3b1b98f7f4
3
+ metadata.gz: 9cb89e7f84fe3fb0a47e43723a10af344c7ca402
4
+ data.tar.gz: 8074d16248b2502e1e9956075e96bae3f627d8c6
5
5
  SHA512:
6
- metadata.gz: 696d0053da6fcabc6aae8fd7705bdf20435db33bd3b1fb743f59187772213f67f469b4b42a381837b5011c6953a045641f5f43f86c5b789b1d1c305ba2420a2d
7
- data.tar.gz: 1af4df4ed92749ac953d4ee16782c6750f148759d2a5f83280c31d2d4e47f234d06460722ea5230b021a4c562319514c02e68fe51c46722bfdc9773aa69a1dd0
6
+ metadata.gz: b4fd7211078f026578acd2e6ad06e9bd05bf81bdc324ef92485ba130e75b619ef9885de44b0eaafea3f4ee473101381aea9ca915a6db2667061188d0245ce1ad
7
+ data.tar.gz: 60a926b02d75a4027b3215323ad51ccd18f926c0bd5956e6a45354f67160c35a7cd6931db782d1be9d4497cb28da488c01f1a96754cab28387a86f33e6ec477d
@@ -40,6 +40,10 @@ module Gusto
40
40
  def spec_paths
41
41
  @data['spec_paths']
42
42
  end
43
+
44
+ def sprockets_extensions
45
+ @data['sprockets_extensions']
46
+ end
43
47
  end
44
48
  end
45
49
  end
@@ -5,6 +5,7 @@ module Gusto
5
5
  def environment
6
6
  @environment ||= ::Sprockets::Environment.new.tap do |environment|
7
7
  configure_environment(environment)
8
+ load_sprockets_extensions(environment)
8
9
  end
9
10
  end
10
11
 
@@ -17,6 +18,14 @@ module Gusto
17
18
  all_paths.each{ |path| environment.append_path(path) }
18
19
  end
19
20
 
21
+ def load_sprockets_extensions(environment)
22
+ if Configuration.sprockets_extensions
23
+ puts "Loading sprockets extensions from #{Configuration.sprockets_extensions}"
24
+ extensions = File.read(Configuration.sprockets_extensions)
25
+ environment.instance_eval extensions
26
+ end
27
+ end
28
+
20
29
  def all_paths
21
30
  Configuration.lib_paths + Configuration.spec_paths
22
31
  end
data/lib/gusto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gusto
2
- VERSION = "1.0.0.beta6"
2
+ VERSION = "1.0.0.beta7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gusto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta6
4
+ version: 1.0.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Cohen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-16 00:00:00.000000000 Z
11
+ date: 2013-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: 1.3.1
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.0.3
196
+ rubygems_version: 2.0.0
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Coffeescript testing framework