ripl-rails 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -1,19 +1,18 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'rubygems' unless Object.const_defined?(:Gem)
3
3
  require File.dirname(__FILE__) + "/lib/ripl/rails"
4
-
4
+
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "ripl-rails"
7
7
  s.version = Ripl::Rails::VERSION
8
8
  s.authors = ["Gabriel Horner"]
9
9
  s.email = "gabriel.horner@gmail.com"
10
10
  s.homepage = "http://github.com/cldwalker/ripl-rails"
11
- s.summary = "Alternative to script/console using ripl"
11
+ s.summary = "Alternative to rails console (aka script/console) using ripl"
12
12
  s.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."
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
- s.rubyforge_project = 'tagaholic'
15
14
  s.executables = ['ripl-rails']
16
- s.add_dependency 'ripl', '>= 0.3.1'
15
+ s.add_dependency 'ripl', '>= 0.7.0'
17
16
  s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
18
17
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
19
18
  s.license = 'MIT'
@@ -1,3 +1,6 @@
1
+ == 0.2.0
2
+ * Add support for Rails 3.2.x
3
+
1
4
  == 0.1.3
2
5
  * Leave rails requiring order to rails app
3
6
 
@@ -15,7 +15,8 @@ Add ripl-rails to your Gemfile:
15
15
  == Executable Usage
16
16
 
17
17
  $ ripl rails
18
- Loading development environment (Rails 3.0.0)
18
+ Loading development environment (Rails 3.2.8)
19
+ # Interact with your usual console methods: app, reload!, controller, helper
19
20
  >> ...
20
21
 
21
22
  == Plugin Usage
data/deps.rip CHANGED
@@ -1 +1 @@
1
- ripl >=0.3.1
1
+ ripl >=0.7.0
@@ -2,7 +2,7 @@ require 'ripl'
2
2
  require 'pathname'
3
3
 
4
4
  module Ripl::Rails
5
- VERSION = '0.1.3'
5
+ VERSION = '0.2.0'
6
6
 
7
7
  def self.find_rails_root!
8
8
  until Pathname.pwd.join('config', 'boot.rb').exist?
@@ -18,8 +18,13 @@ module Ripl::Rails
18
18
  if File.exists?("#{Dir.pwd}/config/application.rb")
19
19
  Object.const_set :APP_PATH, File.expand_path("#{Dir.pwd}/config/application")
20
20
  require APP_PATH
21
+
21
22
  require 'rails/console/app'
22
23
  require 'rails/console/helpers'
24
+ if defined?(Rails::ConsoleMethods)
25
+ Ripl::Commands.include Rails::ConsoleMethods
26
+ end
27
+
23
28
  ::Rails.application.require_environment!
24
29
  else
25
30
  ["#{Dir.pwd}/config/environment", 'console_app', 'console_with_helpers'].each {|e| require e }
metadata CHANGED
@@ -1,39 +1,42 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ripl-rails
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
4
5
  prerelease:
5
- version: 0.1.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Gabriel Horner
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-27 00:00:00 -04:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-09-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: ripl
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 0.3.1
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.7.0
25
22
  type: :runtime
26
- version_requirements: *id001
27
- 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.
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.7.0
30
+ description: This provides an alternative to script/console and a ripl Rails plugin
31
+ to be reused with app-specific shells. Compatible with Rails 2.3.x and Rails 3.x.
28
32
  email: gabriel.horner@gmail.com
29
- executables:
33
+ executables:
30
34
  - ripl-rails
31
35
  extensions: []
32
-
33
- extra_rdoc_files:
36
+ extra_rdoc_files:
34
37
  - README.rdoc
35
38
  - LICENSE.txt
36
- files:
39
+ files:
37
40
  - lib/ripl/rails.rb
38
41
  - bin/ripl-rails
39
42
  - LICENSE.txt
@@ -42,33 +45,29 @@ files:
42
45
  - deps.rip
43
46
  - Rakefile
44
47
  - .gemspec
45
- has_rdoc: true
46
48
  homepage: http://github.com/cldwalker/ripl-rails
47
- licenses:
49
+ licenses:
48
50
  - MIT
49
51
  post_install_message:
50
52
  rdoc_options: []
51
-
52
- require_paths:
53
+ require_paths:
53
54
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
55
+ required_ruby_version: !ruby/object:Gem::Requirement
55
56
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: "0"
60
- required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
62
  none: false
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
65
66
  version: 1.3.6
66
67
  requirements: []
67
-
68
- rubyforge_project: tagaholic
69
- rubygems_version: 1.6.2
68
+ rubyforge_project:
69
+ rubygems_version: 1.8.24
70
70
  signing_key:
71
71
  specification_version: 3
72
- summary: Alternative to script/console using ripl
72
+ summary: Alternative to rails console (aka script/console) using ripl
73
73
  test_files: []
74
-