ripl-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
14
  s.rubyforge_project = 'tagaholic'
15
15
  s.executables = ['ripl-rails']
16
- s.add_dependency 'ripl', '>= 0.1.2'
16
+ s.add_dependency 'ripl', '>= 0.3.1'
17
17
  s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
18
18
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
19
19
  s.license = 'MIT'
data/CHANGELOG.rdoc CHANGED
@@ -1,2 +1,6 @@
1
+ = 0.1.1
2
+ * Fix argument bug preventing global options from being passed
3
+ * Fix rails3 loading irb
4
+
1
5
  == 0.1.0
2
6
  * Initial plugin and executable for Rails 2.3.x and Rails 3.x
data/README.rdoc CHANGED
@@ -5,7 +5,12 @@ app-specific shells. Compatible with Rails 2.3.x and Rails 3.x.
5
5
  == Install
6
6
  Install the gem with:
7
7
 
8
- sudo gem install ripl-rails
8
+ gem install ripl-rails
9
+
10
+ == Setup
11
+ Add ripl-rails to your Gemfile:
12
+
13
+ gem 'ripl-rails', :require => 'ripl/rails'
9
14
 
10
15
  == Executable Usage
11
16
 
data/deps.rip CHANGED
@@ -1 +1 @@
1
- ripl >=0.1.2
1
+ ripl >=0.3.1
data/lib/ripl/rails.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Ripl
2
2
  module Rails
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
 
5
5
  def before_loop
6
6
  load_rails
@@ -9,13 +9,14 @@ module Ripl
9
9
 
10
10
  def load_rails
11
11
  abort "Not in a Rails environment" unless File.exists?("#{Dir.pwd}/config/boot.rb")
12
- ENV['RAILS_ENV'] = ARGV[0] if ARGV[0]
12
+ ENV['RAILS_ENV'] = ARGV[0] if ARGV[0].to_s[/^[^-]/]
13
13
 
14
14
  require "#{Dir.pwd}/config/boot"
15
15
  require 'rails' unless defined? ::Rails
16
16
  if ::Rails.version >= '3.0'
17
17
  Object.const_set :APP_PATH, File.expand_path("#{Dir.pwd}/config/application")
18
- require 'rails/commands/console'
18
+ require 'rails/console/app'
19
+ require 'rails/console/helpers'
19
20
  require APP_PATH
20
21
  ::Rails.application.require_environment!
21
22
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabriel Horner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-01 00:00:00 -04:00
18
+ date: 2011-02-05 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 31
29
+ hash: 17
30
30
  segments:
31
31
  - 0
32
+ - 3
32
33
  - 1
33
- - 2
34
- version: 0.1.2
34
+ version: 0.3.1
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: This provides an alternative to script/console and a ripl Rails plugin to be reused with app-specific shells. Compatible with Rails 2.3.x and Rails 3.x.