faster_gem_script 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +41 -0
  2. data/bin/faster_gem_script +1 -1
  3. metadata +2 -2
data/README CHANGED
@@ -0,0 +1,41 @@
1
+ Example:
2
+
3
+ # install it
4
+ C:\> gem install faster_gem_script
5
+
6
+ # install something to optimize
7
+
8
+ C:\> gem install whichr
9
+
10
+ C:\>whichr whichr
11
+ higher in the list is executed first
12
+ C:\installs\ruby19_mingw\bin\whichr.bat
13
+
14
+ C:\>faster_gem_script C:\installs\ruby19_mingw\bin\whichr
15
+
16
+ # now run it twice
17
+
18
+
19
+
20
+ C:\> timer whichr whichr
21
+ higher in the list is executed first
22
+ C:\installs\ruby19_mingw\bin\whichr.bat
23
+
24
+ 2.484375
25
+
26
+ C:\dev\ruby\faster_gem_script>timer whichr whichr
27
+ higher in the list is executed first
28
+ C:\installs\ruby19_mingw\bin\whichr.bat
29
+
30
+ 0.40625
31
+
32
+ Yea much faster now.
33
+
34
+ You can revert back to the original performance, too.
35
+
36
+ C:\> gem install whichr
37
+ C:\> timer whichr whichr
38
+ higher in the list is executed first
39
+ C:\installs\ruby19_mingw\bin\whichr.bat
40
+
41
+ 2.5625
@@ -1,5 +1,5 @@
1
1
  require 'sane'
2
- require_rel '../lib/faster_gem_scripts'
2
+ require_relative '../lib/faster_gem_scripts'
3
3
  if ARGV.length == 0 || ARGV[0] == '-h' || ARGV[0] == '--help'
4
4
  puts "syntax: gem binary, like bin/abc (no .rb)"
5
5
  exit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faster_gem_script
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-28 00:00:00 -07:00
12
+ date: 2010-01-27 00:00:00 -07:00
13
13
  default_executable: faster_gem_script
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency