irust 1.1.0 → 1.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
  SHA1:
3
- metadata.gz: d71c1afd38f1f48fc58a4705783bd9de7f058f20
4
- data.tar.gz: ae752373a7856bd1cb5b9fc2c81feee7e12ed0fb
3
+ metadata.gz: a9bfb0bc7d02ab895c1997bce90ae057e5b1d9a1
4
+ data.tar.gz: b2cd75e03c51dfb488e66b0b3b4675c8e06cd3d7
5
5
  SHA512:
6
- metadata.gz: 9a90fcd4505d163b5f28ac2e496dfb14251386519039d35e9e41a7a57d24112763d8e98b879d0f873268cbd7078f740439edac06b4223dd33771ee0c225c714c
7
- data.tar.gz: 1157872356efef33da734d5be8be7c9a344723463cbddba868138f2ef2b2d43b5a0135f7fac5ba4619438ce02b477afc0e3284b8cbd2428dcbedc78a4a2810bd
6
+ metadata.gz: a38e74bdc5b51192509ac5dd9351a9a5cb0f85fd43f86be395ad7de16aa5c6419aa9177917d8c19049bebdf9d38dd83c4330ddcf2f74a73e294d41da5aa9ab29
7
+ data.tar.gz: 5d0d7c5236e5a776a05dcf3e18b4c8e22e6a242e35c1704ef16526dac4248a430752ffc797967106d7add89032c382b508f37fc24c6867bc60bea353e0a7b77f
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.1.1 (2014-01-05)
2
+ ------------------
3
+ * Detect and display installed Rust version
4
+
1
5
  1.1.0 (2014-01-05)
2
6
  ------------------
3
7
  * Keep a basic history
data/README.md CHANGED
@@ -41,6 +41,7 @@ Now that you have iRust installed, run:
41
41
 
42
42
  This should give you the following prompt:
43
43
 
44
+ Using rustc 0.9-pre (619c4fc 2013-12-23 11:26:34 -0800)
44
45
  irust>
45
46
 
46
47
  Now type some fancy Rust expressions and watch them get magically evaluated
data/lib/irust.rb CHANGED
@@ -7,6 +7,15 @@ require "irust/template_renderer"
7
7
  module IRust
8
8
  module_function
9
9
 
10
+ def detect_rust
11
+ rust_version = `rustc -v`
12
+ puts "Using #{rust_version.split("\n").first}"
13
+ rescue Errno::ENOENT
14
+ STDERR.puts "No rustc detected! Please install Rust first!"
15
+ STDERR.puts "See the Quick Start at: https://github.com/mozilla/rust/blob/master/README.md"
16
+ exit 1
17
+ end
18
+
10
19
  def read
11
20
  Readline.readline("irust> ", true)
12
21
  end
@@ -45,6 +54,7 @@ module IRust
45
54
  end
46
55
 
47
56
  def run
57
+ detect_rust
48
58
  history = ""
49
59
  loop { history = eval read, history }
50
60
  end
data/lib/irust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module IRust
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irust
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri