js2 0.3.0.pre7 → 0.3.0

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.
Files changed (3) hide show
  1. data/lib/js2/command.rb +0 -3
  2. data/lib/js2/js2.js +3 -2
  3. metadata +5 -5
data/lib/js2/command.rb CHANGED
@@ -1,8 +1,5 @@
1
- require 'optparse'
2
-
3
1
  module JS2
4
2
  class Command
5
- DEFAULT_INTERVAL = 3
6
3
  def initialize(argv)
7
4
  @ctx = JS2::Context.new
8
5
  @ctx['JS2']['FS'] = JS2::FS.new(@ctx)
data/lib/js2/js2.js CHANGED
@@ -1181,6 +1181,7 @@ JS2.Class.extend('Commander', {
1181
1181
  " * watch <inDir> <outDir> -- Similar to compile, but update will keep looping while watching for modifications\n" +
1182
1182
  " Options:\n" +
1183
1183
  " -n -- Do NOT traverse directories recursively\n" +
1184
+ " -f=<format> -- Compile for different formats: node, ringo, or browser\n" +
1184
1185
  " -i=<seconds> -- Interval time in seconds between loops\n",
1185
1186
 
1186
1187
  "DEFAULT_CONFIG":{
@@ -1220,8 +1221,8 @@ JS2.Class.extend('Commander', {
1220
1221
  },
1221
1222
 
1222
1223
  getUpdater:function () {
1223
- var inDir = this.config.args[0] || '.';
1224
- var outDir = this.config.args[1] || inDir;
1224
+ var inDir = this.config.args[0] || this.config.inDir || '.';
1225
+ var outDir = this.config.args[1] || this.config.outDir || inDir;
1225
1226
  return new JS2.Updater(this.fs, inDir, outDir, this.config.recursive);
1226
1227
  },
1227
1228
 
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js2
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 0.3.0.pre7
4
+ prerelease:
5
+ version: 0.3.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeff Su
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-08 00:00:00 +08:00
13
+ date: 2011-03-09 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -60,9 +60,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
- - - ">"
63
+ - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 1.3.1
65
+ version: "0"
66
66
  requirements: []
67
67
 
68
68
  rubyforge_project: