irt 1.2.11 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +15 -9
  2. data/VERSION +1 -1
  3. data/bin/irt +4 -4
  4. metadata +2 -2
data/README.markdown CHANGED
@@ -43,17 +43,9 @@ but that you actually want to fix it! IRT assumes that...
43
43
  - you want to eventually edit and possibly fix it, right in the console
44
44
  - you want to rerun the fix right away, without waiting for the end of the whole suite
45
45
 
46
- ### Feedback!!!
47
-
48
- This is feedback-driven software. Just send me a line about you and/or what you think about IRT:
49
- that will be a wonderful contribution that will help me to keep improving (and documenting) this software.
50
-
51
- My email address is ddnexus at gmail.com ... waiting for your. Ciao.
52
-
53
46
  ## Try the Tutorial first!
54
47
 
55
- You can have a quick enlightening look (with a lot of screenshots) by reading the [IRT Tutorial](https://github.com/ddnexus/irt/raw/master/irt-tutorial.pdf "IRT Tutorial")
56
- first, then if you want more details you can read this documentation.
48
+ You can have a quick enlightening look (with a lot of screenshots) by reading the [IRT Tutorial](https://github.com/ddnexus/irt/raw/master/irt-tutorial.pdf "IRT Tutorial") first, then if you want more details you can read this documentation.
57
49
 
58
50
  ## Installation
59
51
 
@@ -441,6 +433,20 @@ That is specially useful when you want to add a test with the 'add_test' (or 'tt
441
433
 
442
434
  IRT offers the 'ri' command implemented with fastri for RUBY_VERSION < 1.9.2, or 'bri' for RUBY_VERSION >= 1.9.2:
443
435
  you must install the right gem for your ruby version in order to make it work.
436
+
437
+ You may also need:
438
+
439
+ $ gem install rdoc-data
440
+
441
+ # Regenerate system docs
442
+ $ rdoc-data --install
443
+
444
+ # Regenerate all gem docs #mistake were here
445
+ $ gem rdoc --all --overwrite
446
+
447
+ # Regenerate specific gem doc with specific version
448
+ $ gem rdoc gemname -v 1.2.3 --overwrite
449
+
444
450
  See also the IRT.ri_command_format option if you want to customize it.
445
451
 
446
452
  In its basic form the 'ri' command can accept a string as the system ri command does (you can even omit the quotes).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.11
1
+ 1.2.12
data/bin/irt CHANGED
@@ -36,7 +36,7 @@ EOB
36
36
 
37
37
  options[:rails_env] = ENV['RAILS_ENV'] || 'development'
38
38
  opts.on( '-e', '--rails-env [ENVIRONMENT]', 'Sets the Rails Environment' ) do |env|
39
- options[:rails_env] = env
39
+ ENV['RAILS_ENV'] = options[:rails_env] = env
40
40
  end
41
41
 
42
42
  options[:no_rails] = false
@@ -85,13 +85,13 @@ if files.empty?
85
85
  end
86
86
 
87
87
  cmd_format = if File.exists?('./config/environment.rb') && !options[:no_rails]
88
- ENV['RAILS_ENV'] = options[:rails_env] if options[:rails_env]
89
88
  if File.exists?('./script/rails')
90
- gemfile = File.read('Gemfile')
89
+ gemfile_path = ENV['BUNDLE_GEMFILE'] || 'Gemfile'
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
93
  IRT::Prompter.yes?("Do you want to add irt to your Gemfile?", :hint => '[enter=y|n]', :default => 'y') do
94
- File.open('Gemfile', 'a') do |f|
94
+ File.open(gemfile_path, 'a') do |f|
95
95
  f.puts %(\ngem "irt")
96
96
  end
97
97
  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.2.11
4
+ version: 1.2.12
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: 2012-07-10 00:00:00.000000000 Z
12
+ date: 2012-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: differ