irb_rocket 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/irb_dollar.rb +9 -0
  3. metadata +15 -5
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake/gempackagetask'
3
3
 
4
4
  GEM_NAME = "irb_rocket"
5
- GEM_VERSION = "0.1.4"
5
+ GEM_VERSION = "0.2.0"
6
6
  AUTHOR = "Genki Takiuchi"
7
7
  EMAIL = "genki@s21g.com"
8
8
  HOMEPAGE = "http://blog.s21g.com/genki"
@@ -0,0 +1,9 @@
1
+ module IRB
2
+ class Context
3
+ alias :original_evaluate :evaluate
4
+ def evaluate(line, line_no)
5
+ line = line.split(/\$(?=\s|\n)/).inject{|a, b| "(#{a}).#{b}"}
6
+ original_evaluate(line, line_no)
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irb_rocket
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
- - 1
8
- - 4
9
- version: 0.1.4
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Genki Takiuchi
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-10-06 00:00:00 +09:00
18
+ date: 2011-01-04 00:00:00 +09:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: wirble
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 31
27
30
  segments:
28
31
  - 0
29
32
  - 1
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: ruby-terminfo
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 9
41
46
  segments:
42
47
  - 0
43
48
  - 1
@@ -55,6 +60,7 @@ extra_rdoc_files:
55
60
  files:
56
61
  - README
57
62
  - Rakefile
63
+ - lib/irb_dollar.rb
58
64
  - lib/irb_rocket.rb
59
65
  has_rdoc: true
60
66
  homepage: http://blog.s21g.com/genki
@@ -66,23 +72,27 @@ rdoc_options: []
66
72
  require_paths:
67
73
  - lib
68
74
  required_ruby_version: !ruby/object:Gem::Requirement
75
+ none: false
69
76
  requirements:
70
77
  - - ">="
71
78
  - !ruby/object:Gem::Version
79
+ hash: 3
72
80
  segments:
73
81
  - 0
74
82
  version: "0"
75
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
+ none: false
76
85
  requirements:
77
86
  - - ">="
78
87
  - !ruby/object:Gem::Version
88
+ hash: 3
79
89
  segments:
80
90
  - 0
81
91
  version: "0"
82
92
  requirements: []
83
93
 
84
94
  rubyforge_project: irb_rocket
85
- rubygems_version: 1.3.6
95
+ rubygems_version: 1.3.7
86
96
  signing_key:
87
97
  specification_version: 3
88
98
  summary: "irb plugin that makes irb #=> rocket"