irust 1.1.2 → 1.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: b9debcb414133ceb3d964ef6e18d61b4fc2d638d
4
- data.tar.gz: e39312da8354aba888c2e55d0c8c60dfaf3f54e6
3
+ metadata.gz: 1e7697ca0c60ecca3edd607de9bd8731b69debaa
4
+ data.tar.gz: af1967f6426938d4f709f29c46f548f418db2f04
5
5
  SHA512:
6
- metadata.gz: ba493d4832c350dfb4cd22191fc1a4f22eec0f25e09fd3b06d7ebca552dc139423b98f133df3cc71bb265d5b9af3b30b9390f387a8acc85f6644e12522ddde98
7
- data.tar.gz: eb0ef17740eea2ac4f688a6a6c81e650302a6a47ce7d8e7c3dc0bd178b7fd4c583c564151584eb4682acd1bdbf7323320f1b97f02ed19f6e655a6ef10c14ff14
6
+ metadata.gz: 5f577c81c74059fb4ba7721d28b058ffce4030e703aff74cd5d8d7333b831b2561bead40cc0cc5137f72be7e5127d7d46a71650c22904e58861d6c8de1714270
7
+ data.tar.gz: 485d355e5a0fcba48b3d8ca7e32e8498d40342381ac6c208c1a7a74a967d0a10da8a5c9f20dedfefa82808699efb8150dd33c38d1386a4a20cb3f6bf97b36dad
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.2.0 (2015-04-05)
2
+ ------------------
3
+ * Support for Rust 1.0.0-beta
4
+
1
5
  1.1.2 (2014-01-23)
2
6
  ------------------
3
7
  * Display failing program (with line numbers) for debugging assistance
@@ -9,7 +9,7 @@ module IRust
9
9
  module_function
10
10
 
11
11
  def detect_rust
12
- rust_version = `rustc -v`
12
+ rust_version = `rustc --version`
13
13
  puts "Using #{rust_version.split("\n").first}"
14
14
  rescue Errno::ENOENT
15
15
  STDERR.puts "No rustc detected! Please install Rust first!"
@@ -1,18 +1,5 @@
1
- #[feature(globs, macro_rules, struct_variant)];
2
- extern mod extra;
3
-
4
- fn type_of<T>(_: &T) -> &'static str {
5
- unsafe { (*std::unstable::intrinsics::get_tydesc::<T>()).name }
6
- }
7
-
8
1
  fn main() {
9
2
  <%= history %>;
10
-
11
- <% if let_var %>
12
- <%= rust_code %>;
13
- println!("<%= let_var%> = {:?} : {:s}", <%= let_var %>, type_of(&<%= let_var %>));
14
- <% else %>
15
- let _result = { <%= rust_code %> };
16
- println!("{:?} : {:s}", _result, type_of(&_result));
17
- <% end %>
3
+ let _irust_eval_result = { <%= rust_code %> };
4
+ println!("{:?}", _irust_eval_result);
18
5
  }
@@ -1,3 +1,3 @@
1
1
  module IRust
2
- VERSION = "1.1.2"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irust
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-24 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.2.0
95
+ rubygems_version: 2.4.5
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Read, Eval, and Print Rust code to your heart's desire!