rib 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: ed9203a2c38b4c5f777050704e017e59a3a0c3d4
4
+ data.tar.gz: c95415a6ffceb31192b831cdf40ca0c65160372d
5
+ !binary "U0hBNTEy":
6
+ metadata.gz: b8a716e4add8d185fc974694242db2a3284f23d4767c8e0b1180483923fcbf49fe7314c8a9a702da109d2d211da117afb0b0158077d811eae29cc2e9dc46ce8b
7
+ data.tar.gz: 44d81172d658cc298dca38c756ef25c3c08817beecad80eedcc4cb702df53683f71cea2e90b3eae8a5ad929547eaf69db060510c6a150656d7d875a8b4ae33da
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## Rib 1.1.2 -- 2013-04-02
4
+
5
+ * [core/multiline] Ruby 2.0 compatibility.
6
+
3
7
  ## Rib 1.1.1 -- 2013-01-25
4
8
 
5
9
  * Fixed some multiline issue with Rubinius and JRuby.
@@ -29,13 +29,18 @@ module Rib::Multiline
29
29
  # ruby -e 'eval "1+1.to_i |"'
30
30
  # ruby -e 'eval "1+1.to_i ^"'
31
31
  BINARY_OP = %w[tUPLUS tUMINUS tSTAR tREGEXP_BEG tAMPER]
32
+ RUBY20_IO = %w[unary+ unary- * tREGEXP_BEG &].
33
+ map(&Regexp.method(:escape))
32
34
  ERROR_REGEXP = case engine
33
35
  when 'ruby' ; Regexp.new(
34
36
  [ # string or regexp
35
37
  "unterminated \\w+ meets end of file",
36
38
  # mri and rubinius
39
+ "unexpected (#{BINARY_OP.join('|')}), expecting \\$end",
37
40
  "syntax error, unexpected \\$end" ,
38
- "unexpected (#{BINARY_OP.join('|')}), expecting \\$end"
41
+ # ruby 2.0
42
+ "syntax error, unexpected end-of-input",
43
+ "syntax error, unexpected (#{RUBY20_IO.join('|')}),"
39
44
  ].join('|'))
40
45
  when 'rbx' ; Regexp.new(
41
46
  [ # string or regexp
data/lib/rib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Rib
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
data/rib.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rib"
5
- s.version = "1.1.1"
5
+ s.version = "1.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lin Jen-Shin (godfat)"]
9
- s.date = "2013-01-25"
9
+ s.date = "2013-04-02"
10
10
  s.description = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell\n\nRib is based on the design of [ripl][] and the work of [ripl-rc][], some of\nthe features are also inspired by [pry][]. The aim of Rib is to be fully\nfeatured and yet very easy to opt-out or opt-in other features. It shall\nbe simple, lightweight and modular so that everyone could customize Rib.\n\n[ripl]: https://github.com/cldwalker/ripl\n[ripl-rc]: https://github.com/godfat/ripl-rc\n[pry]: https://github.com/pry/pry"
11
11
  s.email = ["godfat (XD) godfat.org"]
12
12
  s.executables = [
@@ -81,7 +81,7 @@ Gem::Specification.new do |s|
81
81
  "test/test_shell.rb"]
82
82
  s.homepage = "https://github.com/godfat/rib"
83
83
  s.require_paths = ["lib"]
84
- s.rubygems_version = "1.8.23"
84
+ s.rubygems_version = "2.0.0"
85
85
  s.summary = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell"
86
86
  s.test_files = [
87
87
  "test/core/test_completion.rb",
@@ -95,13 +95,4 @@ Gem::Specification.new do |s|
95
95
  "test/test_api.rb",
96
96
  "test/test_plugin.rb",
97
97
  "test/test_shell.rb"]
98
-
99
- if s.respond_to? :specification_version then
100
- s.specification_version = 3
101
-
102
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
103
- else
104
- end
105
- else
106
- end
107
98
  end
data/task/gemgem.rb CHANGED
@@ -179,7 +179,7 @@ namespace :gem do
179
179
 
180
180
  desc 'Install gem'
181
181
  task :install => [:build] do
182
- sh("#{Gem.ruby} -S gem install pkg/#{Gemgem.gem_tag}")
182
+ sh("#{Gem.ruby} -S gem install pkg/#{Gemgem.gem_tag}.gem")
183
183
  end
184
184
 
185
185
  desc 'Build gem'
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Lin Jen-Shin (godfat)
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-25 00:00:00.000000000 Z
11
+ date: 2013-04-02 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: ! 'Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
15
14
 
@@ -104,27 +103,26 @@ files:
104
103
  - test/test_shell.rb
105
104
  homepage: https://github.com/godfat/rib
106
105
  licenses: []
106
+ metadata: {}
107
107
  post_install_message:
108
108
  rdoc_options: []
109
109
  require_paths:
110
110
  - lib
111
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
- none: false
113
112
  requirements:
114
113
  - - ! '>='
115
114
  - !ruby/object:Gem::Version
116
115
  version: '0'
117
116
  required_rubygems_version: !ruby/object:Gem::Requirement
118
- none: false
119
117
  requirements:
120
118
  - - ! '>='
121
119
  - !ruby/object:Gem::Version
122
120
  version: '0'
123
121
  requirements: []
124
122
  rubyforge_project:
125
- rubygems_version: 1.8.23
123
+ rubygems_version: 2.0.0
126
124
  signing_key:
127
- specification_version: 3
125
+ specification_version: 4
128
126
  summary: Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
129
127
  test_files:
130
128
  - test/core/test_completion.rb