rdoc_osx_dictionary 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +10 -0
- data/lib/rdoc_osx_dictionary.rb +5 -4
- metadata +46 -33
data/History.txt
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
=== 1.3.1 / 2010-03-30
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* automatic hooks now require you to touch ~/.ri/autorun
|
6
|
+
|
7
|
+
* 1 bug fix:
|
8
|
+
|
9
|
+
* I R DUM. I keep doing 'return' in at_exit blocks. Using next. :(
|
10
|
+
|
1
11
|
=== 1.3.0 / 2010-02-09
|
2
12
|
|
3
13
|
* 4 minor enhancements:
|
data/lib/rdoc_osx_dictionary.rb
CHANGED
@@ -10,7 +10,7 @@ ENV['LANG'] = ""
|
|
10
10
|
ENV['LC_ALL'] = "C"
|
11
11
|
|
12
12
|
class RDoc::OSXDictionary
|
13
|
-
VERSION = '1.3.
|
13
|
+
VERSION = '1.3.1'
|
14
14
|
|
15
15
|
EXCLUDE = {
|
16
16
|
"StringScanner#pre_match" => true,
|
@@ -338,6 +338,7 @@ class RDoc::OSXDictionary
|
|
338
338
|
|
339
339
|
def self.install_gem_hooks
|
340
340
|
return if @hooked[:hook]
|
341
|
+
return unless File.exist? File.expand_path("~/.ri/autorun")
|
341
342
|
|
342
343
|
rdoc_osx_dictionary_path = File.expand_path File.join(__FILE__, "../../bin/rdoc_osx_dictionary")
|
343
344
|
cmd = "#{Gem.ruby} #{rdoc_osx_dictionary_path}"
|
@@ -346,7 +347,7 @@ class RDoc::OSXDictionary
|
|
346
347
|
# force via at_exit :(
|
347
348
|
Gem.post_install do |i|
|
348
349
|
at_exit do
|
349
|
-
|
350
|
+
next if @hooked[:install]
|
350
351
|
@hooked[:install] = true
|
351
352
|
warn "updating OSX ruby + gem dictionary, if necessary"
|
352
353
|
system cmd
|
@@ -355,11 +356,11 @@ class RDoc::OSXDictionary
|
|
355
356
|
|
356
357
|
Gem.post_uninstall do |i|
|
357
358
|
at_exit do
|
358
|
-
|
359
|
+
next if @hooked[:uninstall]
|
359
360
|
@hooked[:uninstall] = true
|
360
361
|
require 'fileutils'
|
361
362
|
warn "nuking old ri cache to force rebuild"
|
362
|
-
FileUtils.rm_r File.expand_path("~/.ri")
|
363
|
+
FileUtils.rm_r File.expand_path("~/.ri/cache")
|
363
364
|
system cmd
|
364
365
|
end
|
365
366
|
end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc_osx_dictionary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 3
|
8
|
+
- 1
|
9
|
+
version: 1.3.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Ryan Davis
|
@@ -9,59 +14,65 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-03-30 00:00:00 -07:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: rdoc
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ~>
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 4
|
30
|
+
- 3
|
23
31
|
version: 2.4.3
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: rubyforge
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
35
|
-
-
|
36
|
-
|
41
|
+
segments:
|
42
|
+
- 2
|
43
|
+
- 0
|
44
|
+
- 4
|
45
|
+
version: 2.0.4
|
37
46
|
type: :development
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.3.0
|
44
|
-
version:
|
47
|
+
version_requirements: *id002
|
45
48
|
- !ruby/object:Gem::Dependency
|
46
49
|
name: minitest
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
52
|
requirements:
|
51
53
|
- - ">="
|
52
54
|
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
+
segments:
|
56
|
+
- 1
|
57
|
+
- 6
|
58
|
+
- 0
|
59
|
+
version: 1.6.0
|
60
|
+
type: :development
|
61
|
+
version_requirements: *id003
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: hoe
|
57
|
-
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
60
66
|
requirements:
|
61
67
|
- - ">="
|
62
68
|
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
69
|
+
segments:
|
70
|
+
- 2
|
71
|
+
- 6
|
72
|
+
- 0
|
73
|
+
version: 2.6.0
|
74
|
+
type: :development
|
75
|
+
version_requirements: *id004
|
65
76
|
description: |-
|
66
77
|
rdoc via Apple's Dictionary.app. Automatically builds and installs an
|
67
78
|
Apple Dictionary with all rdoc nicely formatted.
|
@@ -101,18 +112,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
112
|
requirements:
|
102
113
|
- - ">="
|
103
114
|
- !ruby/object:Gem::Version
|
115
|
+
segments:
|
116
|
+
- 0
|
104
117
|
version: "0"
|
105
|
-
version:
|
106
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
119
|
requirements:
|
108
120
|
- - ">="
|
109
121
|
- !ruby/object:Gem::Version
|
122
|
+
segments:
|
123
|
+
- 0
|
110
124
|
version: "0"
|
111
|
-
version:
|
112
125
|
requirements: []
|
113
126
|
|
114
127
|
rubyforge_project: seattlerb
|
115
|
-
rubygems_version: 1.3.
|
128
|
+
rubygems_version: 1.3.6
|
116
129
|
signing_key:
|
117
130
|
specification_version: 3
|
118
131
|
summary: rdoc via Apple's Dictionary.app
|