cert_open_data_visualizer 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,8 @@ module CertOpenDataVisualizer
15
15
  second: "print_second_format",
16
16
  app: "start-app",
17
17
  city: "filter_by_city",
18
+ v: "version",
19
+ version: "version",
18
20
  help: "print_help"}
19
21
 
20
22
  return help if @argv[0].nil?
@@ -23,7 +25,7 @@ module CertOpenDataVisualizer
23
25
  exec = commands[command]
24
26
 
25
27
  return run_app if exec == "start-app"
26
-
28
+ return print_version if exec == "version"
27
29
  return help if exec == "print_help"
28
30
  return visualizer.send(exec, *argv) if exec
29
31
  puts "Invalid command #{command}"
@@ -50,6 +52,10 @@ further use. Cache may be cleared using `clean`
50
52
  EOF
51
53
  end
52
54
 
55
+ def print_version
56
+ puts CertOpenDataVisualizer::VERSION
57
+ end
58
+
53
59
  def run_app
54
60
  CertOpenDataVisualizer::Frontend::App.run!
55
61
  end
@@ -1,3 +1,3 @@
1
1
  module CertOpenDataVisualizer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cert_open_data_visualizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: