rib 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGES
2
2
 
3
+ ## Rib 1.0.5 -- 2012-05-15
4
+
5
+ * [app/rails] Fixed SystemStackError issue. It's because ConsoleMethods
6
+ should not pollute the Object, redefining `app` method.
7
+
3
8
  ## Rib 1.0.4 -- 2012-03-20
4
9
 
5
10
  * [core/multiline] Fixed a corner case:
data/lib/rib/app/rails.rb CHANGED
@@ -101,7 +101,7 @@ module Rib::Rails
101
101
 
102
102
  # rails 3.2
103
103
  if ::Rails.const_defined?(:ConsoleMethods)
104
- Object.send(:include, ::Rails::ConsoleMethods)
104
+ Rib.shell.config[:binding].eval('extend ::Rails::ConsoleMethods')
105
105
  end
106
106
  end
107
107
 
data/lib/rib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Rib
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
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.0.4"
5
+ s.version = "1.0.5"
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 = "2012-03-20"
9
+ s.date = "2012-05-15"
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 = [
@@ -80,7 +80,7 @@ Gem::Specification.new do |s|
80
80
  "test/test_shell.rb"]
81
81
  s.homepage = "https://github.com/godfat/rib"
82
82
  s.require_paths = ["lib"]
83
- s.rubygems_version = "1.8.19"
83
+ s.rubygems_version = "1.8.24"
84
84
  s.summary = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell"
85
85
  s.test_files = [
86
86
  "test/core/test_completion.rb",
data/task/gemgem.rb CHANGED
@@ -32,7 +32,8 @@ module Gemgem
32
32
  }
33
33
  @readme ||=
34
34
  if path
35
- ps = File.read(path).scan(/#+[^\n]+\n\n.+?(?=\n\n#+[^\n]+\n)/m)
35
+ ps = "##{File.read(path)}".
36
+ scan(/((#+)[^\n]+\n\n.+?(?=\n\n\2[^#\n]+\n))/m).map(&:first)
36
37
  ps.inject({'HEADER' => ps.first}){ |r, s, i|
37
38
  r[s[/\w+/]] = s
38
39
  r
@@ -61,12 +62,13 @@ module Gemgem
61
62
  end
62
63
 
63
64
  def ann_md
64
- "##{readme['HEADER'].sub(/([\w\-]+)/, "[\\1](#{spec.homepage})")}\n\n" \
65
+ "#{readme['HEADER'].sub(/([\w\-]+)/, "[\\1](#{spec.homepage})")}\n\n" \
65
66
  "##{readme['DESCRIPTION'][/[^\n]+\n\n[^\n]+/]}\n\n" \
66
67
  "### CHANGES:\n\n" \
67
68
  "###{changes}\n\n" \
68
69
  "##{readme['INSTALLATION']}\n\n" +
69
- if readme['SYNOPSIS'] then "##{readme['SYNOPSIS']}" else '' end
70
+ if readme['SYNOPSIS'] then "##{readme['SYNOPSIS'][/[^\n]+\n\n[^\n]+/]}"
71
+ else '' end
70
72
  end
71
73
 
72
74
  def ann_html
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-20 00:00:00.000000000 Z
12
+ date: 2012-05-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
15
15
 
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 1.8.19
124
+ rubygems_version: 1.8.24
125
125
  signing_key:
126
126
  specification_version: 3
127
127
  summary: Ruby-Interactive-ruBy -- Yet another interactive Ruby shell