rib 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CHANGES
2
2
 
3
+ ## Rib 1.0.3 -- 2012-01-21
4
+
5
+ ### Bugs fixes
6
+
7
+ * [rib-rails] Fixed sandbox mode.
8
+ * [rib-rails] Bring back `reload!`, `new_session`, and `app` for Rails 3.2.0
9
+
3
10
  ## Rib 1.0.2 -- 2011-12-24
4
11
 
5
12
  ### Bugs fixes
data/lib/rib/app/rails.rb CHANGED
@@ -93,10 +93,15 @@ module Rib::Rails
93
93
  end
94
94
 
95
95
  if options[:sandbox]
96
- puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})"
96
+ puts "Loading #{::Rails.env} environment in sandbox (Rails #{::Rails.version})"
97
97
  puts "Any modifications you make will be rolled back on exit"
98
98
  else
99
- puts "Loading #{Rails.env} environment (Rails #{Rails.version})"
99
+ puts "Loading #{::Rails.env} environment (Rails #{::Rails.version})"
100
+ end
101
+
102
+ # rails 3.2
103
+ if ::Rails.const_defined?(:ConsoleMethods)
104
+ Object.send(:include, ::Rails::ConsoleMethods)
100
105
  end
101
106
  end
102
107
 
@@ -78,7 +78,7 @@ module Rib::Autoindent
78
78
  Thread.new do
79
79
  sleep(0.01)
80
80
  ::Readline.line_buffer = current_autoindent if
81
- ::Readline.line_buffer.empty?
81
+ ::Readline.line_buffer && ::Readline.line_buffer.empty?
82
82
  end
83
83
 
84
84
  super
data/lib/rib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Rib
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
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.2"
5
+ s.version = "1.0.3"
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 = "2011-12-24"
9
+ s.date = "2012-01-21"
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.13"
83
+ s.rubygems_version = "1.8.15"
84
84
  s.summary = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell"
85
85
  s.test_files = [
86
86
  "test/core/test_completion.rb",
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.2
4
+ version: 1.0.3
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: 2011-12-24 00:00:00.000000000 Z
12
+ date: 2012-01-21 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.13
124
+ rubygems_version: 1.8.15
125
125
  signing_key:
126
126
  specification_version: 3
127
127
  summary: Ruby-Interactive-ruBy -- Yet another interactive Ruby shell