nyaplot_on_web 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: a99cc83600a49d3b467bfb2dd076e06eefc9be1f
4
- data.tar.gz: b39d0a6a8cfb2424c409060d9d64230c84ae060e
3
+ metadata.gz: d5e2fafba91e8ce87c647805abaf8904230b6bc6
4
+ data.tar.gz: 51c45308bbe3bf0afabb66ca73df109d86f8eacf
5
5
  SHA512:
6
- metadata.gz: 64d61342ecf00133e631d7a99663f2c30e6a2bf715951d30fb600cff1248cdc045fee6fc7abda905d9b53b1e462d2135bc3c4916c8421c943151eb2fc38b552c
7
- data.tar.gz: d3ae0dc3ca7e9766ee3352e129bfeeb2537e80380c9325c7423e780cc579aba578ebd89ed996b478051008a905761988dd23ee584e15804925bc44ab953edb3e
6
+ metadata.gz: b0fa02862315aec492ef375d9d2f34eb47e2df33a49460732b6044de3fcab012c12a7f557c3f7ec64d9cb569a39c87598d04c5486012eda617ca226b9bd2605e
7
+ data.tar.gz: e1d4c4a9210d452fa8155089c3f6a838834ccc34b9e67f950a0319f31f7107c644dc85420a8b64947b06ba22f3507b503d9a78e2c62d8528a71bf44477a13758
@@ -34,7 +34,13 @@ module Nyaplot
34
34
  Launchy.open "http://localhost:#{port}/#{filename}"
35
35
  end
36
36
 
37
- alias_method :show, :show_on_web
37
+ def show
38
+ if defined? IRuby
39
+ super
40
+ else
41
+ show_on_web
42
+ end
43
+ end
38
44
 
39
45
  def shutdown_webserver
40
46
  if @@server
@@ -1,3 +1,3 @@
1
1
  module NyaplotOnWeb
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyaplot_on_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahashim