irt 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/irt +2 -2
  3. data/irt.gemspec +1 -2
  4. data/lib/irt.rb +5 -0
  5. metadata +7 -18
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
data/bin/irt CHANGED
@@ -70,7 +70,7 @@ paths = if ARGV.empty?
70
70
 
71
71
  files = paths.map do |path|
72
72
  unless File.exists?(path)
73
- next if IRT::Prompter.no? %(Do you want to create the file "#{path}"?), :hint => '[<enter=y|n]', :default => 'y'
73
+ next if IRT::Prompter.no? %(Do you want to create the file "#{path}"?), :hint => '[<enter>=y|n]', :default => 'y'
74
74
  options[:interactive_eof] = true
75
75
  dirname = File.dirname(path)
76
76
  FileUtils.mkdir_p(dirname) unless File.directory?(dirname)
@@ -90,7 +90,7 @@ cmd_format = if File.exists?('./config/environment.rb') && !options[:no_rails]
90
90
  gemfile = File.read(gemfile_path)
91
91
  unless gemfile.match(/\bgem\b.+\birt\b/)
92
92
  IRT::Prompter.say_warning %(The Gemfile doesn't look to include any 'gem "irt"' statement.\nIRT will probably not work until you add it!)
93
- IRT::Prompter.yes?("Do you want to add irt to your Gemfile?", :hint => '[enter=y|n]', :default => 'y') do
93
+ IRT::Prompter.yes?("Do you want to add irt to your Gemfile?", :hint => '[<enter>=y|n]', :default => 'y') do
94
94
  File.open(gemfile_path, 'a') do |f|
95
95
  f.puts %(\ngem "irt")
96
96
  end
data/irt.gemspec CHANGED
@@ -42,6 +42,5 @@ ________________________________________________________________________________
42
42
 
43
43
  EOM
44
44
  s.add_runtime_dependency('differ', [">= 0.1.1"])
45
- s.add_runtime_dependency('dye', [">= 0.1.3"])
46
- s.add_runtime_dependency('prompter', [">= 0.1.4"])
45
+ s.add_runtime_dependency('prompter', [">= 0.1.5"])
47
46
  end
data/lib/irt.rb CHANGED
@@ -131,6 +131,11 @@ module IRT
131
131
  end
132
132
  end
133
133
  end
134
+ # sets the AR logger to Rails logger, so it will be available
135
+ # inline in the IRT console (with the same log color)
136
+ if defined?(ActiveRecord::Base)
137
+ ActiveRecord::Base.logger = ::Rails.logger
138
+ end
134
139
  @initialized = true
135
140
  init_file
136
141
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-21 00:00:00.000000000 Z
12
+ date: 2012-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: differ
16
- requirement: &70259239749540 !ruby/object:Gem::Requirement
16
+ requirement: &70249094957620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,29 +21,18 @@ dependencies:
21
21
  version: 0.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70259239749540
25
- - !ruby/object:Gem::Dependency
26
- name: dye
27
- requirement: &70259239749020 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: 0.1.3
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70259239749020
24
+ version_requirements: *70249094957620
36
25
  - !ruby/object:Gem::Dependency
37
26
  name: prompter
38
- requirement: &70259239748540 !ruby/object:Gem::Requirement
27
+ requirement: &70249094957140 !ruby/object:Gem::Requirement
39
28
  none: false
40
29
  requirements:
41
30
  - - ! '>='
42
31
  - !ruby/object:Gem::Version
43
- version: 0.1.4
32
+ version: 0.1.5
44
33
  type: :runtime
45
34
  prerelease: false
46
- version_requirements: *70259239748540
35
+ version_requirements: *70249094957140
47
36
  description: If you use IRT in place of irb or Rails Console, you will have more tools
48
37
  that will make your life a lot easier.
49
38
  email: dd.nexus@gmail.com