gaffo-jasmine_webos 0.0.2 → 0.0.3

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.
@@ -6,6 +6,7 @@ module Jasminewebos
6
6
 
7
7
  def start
8
8
  puts "Starting JasmineWebOS Server from #{@configuration.application_root}"
9
+ puts "on http://localhost:#{@configuration.port}"
9
10
 
10
11
  require File.expand_path(File.join(@configuration.jasmine_root,
11
12
  "contrib",
@@ -13,7 +14,6 @@ module Jasminewebos
13
14
  "jasmine_spec_builder"))
14
15
 
15
16
 
16
- puts source_files
17
17
  Jasmine::SimpleServer.start(@configuration.port,
18
18
  lambda{spec_files},
19
19
  dir_mappings,
@@ -35,10 +35,13 @@ module Jasminewebos
35
35
  sources = Dir.glob(File.join(application_src_dir, "**/*.js"))
36
36
  sources = sources.collect {|f| f.sub(application_src_dir, "/app")}
37
37
 
38
+ javascripts_sources = Dir.glob(File.join(javascripts_sources_dir, "**/*.js"))
39
+ javascripts_sources = javascripts_sources.collect {|f| f.sub(javascripts_sources_dir, "/javascripts")}
40
+
38
41
  framework = Dir.glob(File.join(framework_dir, "**/*.js"))
39
42
  framework = framework.collect {|f| f.sub(framework_dir, "/framework")}
40
43
 
41
- framework + jasmine.sort.reverse + matchers.sort + sources.sort
44
+ framework + jasmine.sort.reverse + matchers.sort + sources.sort + other_sources.sort
42
45
  end
43
46
 
44
47
  def dir_mappings
@@ -48,11 +51,16 @@ module Jasminewebos
48
51
  "/spec" => @configuration.specs_dir,
49
52
  "/matchers" => @configuration.matchers_dir,
50
53
  "/lib" => jasmine_lib_dir,
51
- "/matchers" => @configuration.matchers_dir
54
+ "/matchers" => @configuration.matchers_dir,
55
+ "/javascripts" => javascripts_sources_dir
52
56
  }
53
57
  end
54
58
 
55
59
  private
60
+ def javascripts_sources_dir
61
+ File.join(@configuration.application_root, "javascripts")
62
+ end
63
+
56
64
  def framework_dir
57
65
  File.join(@configuration.jasminewebos_root, "jslib")
58
66
  end
data/lib/jasminewebos.rb CHANGED
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Jasminewebos
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
 
7
7
  # def configure(&block)
8
8
  # @@configuration = Jasminewebos::Configuration.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaffo-jasmine_webos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Gaffney
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-21 00:00:00 -07:00
12
+ date: 2009-09-23 00:00:00 -07:00
13
13
  default_executable: jasmine_webos
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency