ripl-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/README.rdoc +1 -0
  3. data/lib/ripl/rails.rb +3 -4
  4. metadata +4 -22
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.1.3
2
+ * Leave rails requiring order to rails app
3
+
1
4
  == 0.1.2
2
5
  * Call ripl-rails from an app's subdirectory
3
6
 
data/README.rdoc CHANGED
@@ -29,3 +29,4 @@ The ripl plugin can be used to create Rails app-specific shells:
29
29
 
30
30
  == Credits
31
31
  * janlelis
32
+ * wuputah
data/lib/ripl/rails.rb CHANGED
@@ -2,7 +2,7 @@ require 'ripl'
2
2
  require 'pathname'
3
3
 
4
4
  module Ripl::Rails
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
 
7
7
  def self.find_rails_root!
8
8
  until Pathname.pwd.join('config', 'boot.rb').exist?
@@ -15,12 +15,11 @@ module Ripl::Rails
15
15
  ENV['RAILS_ENV'] = ARGV[0] if ARGV[0].to_s[/^[^-]/]
16
16
 
17
17
  require "#{Dir.pwd}/config/boot"
18
- require 'rails' unless defined? ::Rails
19
- if ::Rails.version >= '3.0'
18
+ if File.exists?("#{Dir.pwd}/config/application.rb")
20
19
  Object.const_set :APP_PATH, File.expand_path("#{Dir.pwd}/config/application")
20
+ require APP_PATH
21
21
  require 'rails/console/app'
22
22
  require 'rails/console/helpers'
23
- require APP_PATH
24
23
  ::Rails.application.require_environment!
25
24
  else
26
25
  ["#{Dir.pwd}/config/environment", 'console_app', 'console_with_helpers'].each {|e| require e }
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
4
+ prerelease:
5
+ version: 0.1.3
11
6
  platform: ruby
12
7
  authors:
13
8
  - Gabriel Horner
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-03-30 00:00:00 -04:00
13
+ date: 2011-06-27 00:00:00 -04:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 17
30
- segments:
31
- - 0
32
- - 3
33
- - 1
34
24
  version: 0.3.1
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -66,25 +56,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
56
  requirements:
67
57
  - - ">="
68
58
  - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
59
  version: "0"
73
60
  required_rubygems_version: !ruby/object:Gem::Requirement
74
61
  none: false
75
62
  requirements:
76
63
  - - ">="
77
64
  - !ruby/object:Gem::Version
78
- hash: 23
79
- segments:
80
- - 1
81
- - 3
82
- - 6
83
65
  version: 1.3.6
84
66
  requirements: []
85
67
 
86
68
  rubyforge_project: tagaholic
87
- rubygems_version: 1.3.7
69
+ rubygems_version: 1.6.2
88
70
  signing_key:
89
71
  specification_version: 3
90
72
  summary: Alternative to script/console using ripl