rumrunner 0.4.0 → 0.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dd5856ce9705196280daf49018154662a937c97f6920401d880828744f1d042
4
- data.tar.gz: 28b6ba6f5162b0446e0f36273627b6b5fdf766f95d9d949bf7a210ff3bbee5f9
3
+ metadata.gz: ead63f96d28a203a6138bad38b5d2a03287807e5d155036493c43e6d3d939333
4
+ data.tar.gz: a785198de4a88a50d0aa33d05b5fd0a45dfd8aed6c5451d95b4ce021c4993a61
5
5
  SHA512:
6
- metadata.gz: 7ff1900f6e1287812077722c9ffeac04916591011eecc0d1b44145aed0274861beb04d8715b35d0f026fae8046b26757cc00fddad7f7e461ab729b590ac65419
7
- data.tar.gz: 8e829a928fa46f634a0d80fae78e787dd7c9342559a0a0f6b5e79aea4f68865ad23f2276403b419d957dd3947838e0e280c198cf35d8a2b3384ee6ad071a19a9
6
+ metadata.gz: 7ec0fca40235a7b3c6c412d50a86c53f7b3c696de800a899edca238ec4ad769aa4466e1457a60216616ce8cbdc5cf5f9e325981332f0d3a895ddcb056d2134a5
7
+ data.tar.gz: 9f8a97f043c8b9defd0d97ed3600887901ef80338c51dc2c3b80066b888eafc1a01e24757562a07e4b2c85bd03762530fd99fc556ca8934954c1db6db62749d4
data/bin/rum CHANGED
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "rumrunner"
3
- if ARGV.first == "init" && Rum::Application::DEFAULT_RAKEFILES.map{|x| File.size? x }.none?
4
- Rum.init
5
- else
6
- Rake.application = Rum::Application.new
7
- Rake.application.run
8
- end
3
+ Rake.application = Rum::Application.new
4
+ Rake.application.run
@@ -30,5 +30,19 @@ module Rum
30
30
  def init(app_name="rum", argv = ARGV)
31
31
  super "rum", argv
32
32
  end
33
+
34
+ def rumfile?
35
+ DEFAULT_RAKEFILES.map{|x| File.size? x }.any?
36
+ end
37
+
38
+ def run(argv = ARGV)
39
+ if argv.first == "init" && !rumfile?
40
+ Rum.init
41
+ elsif ["-V", "--version"].include? argv.first
42
+ puts "rum, version #{Rum::VERSION}"
43
+ else
44
+ super
45
+ end
46
+ end
33
47
  end
34
48
  end
@@ -1,5 +1,5 @@
1
1
  module Rum
2
2
  ##
3
3
  # Rum Runner gem version.
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumrunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Mancevice
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-10 00:00:00.000000000 Z
11
+ date: 2019-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake