ruby2js 5.1.0 → 5.1.1

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
  SHA256:
3
- metadata.gz: 709b38712553ae1a4f14aad4f1a994ba45e54f81ebb1d0a11ec5ae54b55eedcf
4
- data.tar.gz: eba029d424058e50057a226fb65b81d9eebc8956d645947e4dccf212e2b7a5b3
3
+ metadata.gz: b6436ac11f25e564ac1a5c8efdc17cd8c2f20e6d024899abdaa9badcb35c7c2b
4
+ data.tar.gz: c9f18781880390e3fd6db9a699a9de8c92c0ca34d853d416ff0a1daf3fa5b64f
5
5
  SHA512:
6
- metadata.gz: 246f1a73f71cfac86e0021a509ef5342ccba199a695e9716b61247ccd2cd54e3d5579dda27289dbd01a2bfc2f04a52060357238ce1ccf3cbf64eda5a5174b599
7
- data.tar.gz: ce88cde76f203294a84eaefcf0d61136e30c981fc25682516ed617d2ea884610d21db6b51c7a1fd2fc3552413b4a3222491c8abef6b1dea76f82a53a8ec61646
6
+ metadata.gz: c6531b7bdae9313e665ed2801e78db70aa8fc22fd667aaed1d2ec9ce17824f2a812efa123c0341e518a40303c264c929d084f2160e98f9c6132a47684a3cf4c7
7
+ data.tar.gz: f0a805108a89a46132625ab5541a490e8e08c1fdd62483009a415aa2bff71d11c4427f35d8f9bc6b6e24f4512ab8bc50108ba18d3abb3370e76216f2c51bbcca
data/demo/ruby2js.rb CHANGED
@@ -57,9 +57,11 @@ def parse_request(env=ENV)
57
57
 
58
58
  opts.on('--preset', "use sane defaults (modern eslevel & common filters)") {options[:preset] = true}
59
59
 
60
- opts.on('-C', '--config [FILE]', "configuration file to use (default is config/ruby2js.rb)") {|filename|
61
- options[:config_file] = filename
62
- }
60
+ unless env['QUERY_STRING']
61
+ opts.on('-C', '--config [FILE]', "configuration file to use (default is config/ruby2js.rb)") {|filename|
62
+ options[:config_file] = filename
63
+ }
64
+ end
63
65
 
64
66
  opts.on('--autoexports [default]', "add export statements for top level constants") {|option|
65
67
  options[:autoexports] = option ? option.to_sym : true
@@ -2,7 +2,7 @@ module Ruby2JS
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 5
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2js
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-02-20 00:00:00.000000000 Z
12
+ date: 2024-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parser