rireader 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzViZDIzZWU1NDlhNTNiMjk2ZDkxZmQxZDJmMGQxNGUzMTI2MTRjMg==
4
+ YWQwNTYzMzk0ODFlZDRmMWY0NDU3NTZkYmQ4ZDY0YTg2MGU4ZmFhOQ==
5
5
  data.tar.gz: !binary |-
6
- ZGYxZTM3MWIyMjgwNmRjM2IwYjljN2Q0MmE0NTgxZjRlNzIzNzhkNA==
6
+ ZmNlOWEzMzBiZjU0NjU1ODMxNjQ0NmU3NTMxNjIzYTdiYzljMDU4MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDAyYzc1ZmE0YTJlMDI5YzI3ZGMwZmVlYjkxNDIyN2I0Njk3NTA1NDE5NWZh
10
- MTMxM2MzYTg0ZjJiNWU4NTlmZTMwMWM1MjdjMjUyOTU1NTAyODBkNjg3MGZk
11
- YjllZmM2OTIzYmY4ZDdhNTg4Y2I1ZDM5YmUxODk1MjdhNDI0Yzc=
9
+ NmZiMjliYTQ2YjliNzQzMzE3ZWQ3OTdlYmZiODY4OWVlMGFiNzBhM2JjYjcx
10
+ MWExYTAwMjQ1ZmE5MWU5MzQ5ZjRhNzBmNTkyZmZmZjRjMTU5NjViYmZiZGEw
11
+ N2U2MGYzYjYyZjA0YmVjOGQyYjg5OTlkMjJmNjY3ZmU0OWE4NzY=
12
12
  data.tar.gz: !binary |-
13
- YmYyOGQyZjY1YTdkYjE2MTg1MTI0NzRiMTIxOTNlOGEyNmU2NTI5YmMwOTgx
14
- MmMzMTczNjJhODYyYTkzNmFhYWRiOWRlNWNlYTc2MjYwMmYxZTFkNGZkYTE0
15
- ODc3NTAxOTM2NmI4YWJhZTEyMGI2OTg5MDFiZjFkYjY1YzM1YmU=
13
+ ZDhkYmE3MGUzMjIwY2NmZGNlMzA2YmQyMDY0NTMwZjhmMjcyMTA3ZmMwMzE5
14
+ YjhkNTBjMWE1NDRhM2NkYThiYzk0YmZhODA2NmFiYWJlOWYyOWRjNjZjNTli
15
+ NzQyNmMyZmM4N2Y1MmEzNjEwNThhYjMyNmNmMTRlYzUyZjAyMjY=
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Rireader is a graphical user interface to read ri documentation.
1
+ Rireader is a graphical user interface to read ri documentation for Windows platform.
2
2
 
3
3
  Ruby has a wonderful reference of the language and all available libraries: ri.
4
4
 
@@ -20,7 +20,7 @@ Array#min # instance method lookup
20
20
  One really useful feature of the tool is the suggestions ri provides when you enter only part of what you are looking for. Try it out:
21
21
 
22
22
  Enumerable.each
23
- ```
23
+
24
24
  Enumerable.each not found, maybe you meant:
25
25
 
26
26
  Enumerable#each_cons
@@ -28,15 +28,23 @@ Enumerable#each_entry
28
28
  Enumerable#each_slice
29
29
  Enumerable#each_with_index
30
30
  Enumerable#each_with_object
31
- ```
31
+
32
+ Installing:
33
+ ======
34
+ This gem uses "Win32-shortcut" gem to install a Windows shortcut link on your c:\ drive which you can move to your desktop.
35
+
36
+ If this link does not appear on your c:\ directory, check the path in the file "set_link.rb"
37
+ and modify the default :
38
+ C:\\Ruby193\\lib\\ruby\\gems\\1.9.1\\gems\\rireader-0.1.1\\Rireader.rb
39
+
32
40
  Troubleshooting
33
41
  ==========
34
42
  If you are not in an RVM project and you are unable to find ri documentation, try this:
35
- ```
43
+
44
+
36
45
  gem install rdoc rdoc-data
37
46
  rdoc-data --install
38
- ````
47
+
39
48
  If you are in an RVM project, this should clear things up.
40
- ```
49
+
41
50
  rvm docs generate-ri
42
- ```
@@ -19,8 +19,8 @@ textvariable $var
19
19
  text = TkText.new(root){
20
20
  background "black"
21
21
  foreground "white"
22
- width 72
23
- height 20
22
+ width 73
23
+ height 19
24
24
  font TkFont.new('tahoma 16 bold')
25
25
  }
26
26
 
@@ -41,11 +41,11 @@ command(proc {
41
41
  scrollbar = TkScrollbar.new(root){command proc{|*args| text.yview(*args)}}
42
42
  text.yscrollcommand(proc{|first, last| scrollbar.set(first, last)})
43
43
 
44
- label.grid( 'row' => 0, 'column' => 0, 'sticky' => 'W')
45
- entry.grid( 'row' => 0, 'column' => 1, 'sticky' => 'W')
46
- button.grid( 'row' => 0, 'column' => 2, 'sticky' => 'WE')
47
- text.grid( 'row' => 1, 'columnspan' => 3)
48
- scrollbar.grid('row' => 1, 'column' => 4, 'sticky' =>'NS')
44
+ label.grid( 'row' => 0, 'column' => 1, 'sticky' => 'W')
45
+ entry.grid( 'row' => 0, 'column' => 2, 'sticky' => 'W')
46
+ button.grid( 'row' => 0, 'column' => 3, 'sticky' => 'WE')
47
+ text.grid( 'rowspan' => 1, 'columnspan' => 4)
48
+ scrollbar.grid('row' => 1, 'column' => 5, 'sticky' =>'NS')
49
49
 
50
50
  Tk.mainloop
51
51
 
data/lib/set_link.rb ADDED
@@ -0,0 +1,9 @@
1
+ require "win32/shortcut"
2
+ include Win32
3
+
4
+ Shortcut.new('c:/ri.lnk') do |s|
5
+ s.description = 'ri link'
6
+ s.path = 'C:\\Ruby193\\lib\\ruby\\gems\\1.9.1\\gems\\rireader-0.1.1\\Rireader.rb'
7
+ s.show_cmd = Shortcut::SHOWNORMAL
8
+ s.working_directory = 'C:/'
9
+ end
data/rireader.gemspec CHANGED
@@ -2,21 +2,23 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rireader"
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
  s.licenses = ['MIT']
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sabry Abdel Fattah"]
9
9
  s.date = "2015-03-03"
10
- s.description = "Rireader is a graphical user interface to read ri documentation."
10
+ s.description = "Rireader is a graphical user interface to read ri documentation for Windows platform."
11
11
  s.email = "sabryabdelfattah@gmail.com"
12
12
  s.extra_rdoc_files = ["README.md"]
13
- s.files = ["rireader.gemspec", "lib/rireader.rbw", "README.md"]
13
+ s.files = ["rireader.gemspec", "rireader.rb", "lib/reader.rbw", "lib/set_link.rb", "README.md"]
14
14
  s.homepage = "http://sabryfattah.com"
15
15
  s.rdoc_options = ["--main", "README.md"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubygems_version = "1.8.29"
18
- s.summary = "Rireader is a graphical user interface to read ri documentation. "
19
-
18
+ s.summary = "Rireader is a graphical user interface to read ri documentation on a Windows platform. Check Readme.md for usage and how to install ri documentation on your system if not already installed "
19
+ s.add_runtime_dependency "win32-shortcut",
20
+ ["= 0.2.4"]
21
+
20
22
  if s.respond_to? :specification_version then
21
23
  s.specification_version = 3
22
24
 
data/rireader.rb ADDED
@@ -0,0 +1,3 @@
1
+ require_relative 'lib/set_link'
2
+
3
+ `ruby set_link`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rireader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sabry Abdel Fattah
@@ -9,8 +9,23 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-03-03 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Rireader is a graphical user interface to read ri documentation.
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: win32-shortcut
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.4
27
+ description: Rireader is a graphical user interface to read ri documentation for Windows
28
+ platform.
14
29
  email: sabryabdelfattah@gmail.com
15
30
  executables: []
16
31
  extensions: []
@@ -18,8 +33,10 @@ extra_rdoc_files:
18
33
  - README.md
19
34
  files:
20
35
  - README.md
21
- - lib/rireader.rbw
36
+ - lib/reader.rbw
37
+ - lib/set_link.rb
22
38
  - rireader.gemspec
39
+ - rireader.rb
23
40
  homepage: http://sabryfattah.com
24
41
  licenses:
25
42
  - MIT
@@ -45,5 +62,7 @@ rubyforge_project:
45
62
  rubygems_version: 2.4.5
46
63
  signing_key:
47
64
  specification_version: 3
48
- summary: Rireader is a graphical user interface to read ri documentation.
65
+ summary: Rireader is a graphical user interface to read ri documentation on a Windows
66
+ platform. Check Readme.md for usage and how to install ri documentation on your
67
+ system if not already installed
49
68
  test_files: []