yardview_gtk3 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/lib/yardview/application_window.rb +5 -7
- data/lib/yardview/version.rb +1 -1
- data/resources/yardview.ui +39 -39
- data/resources/yardview_screenshot.png +0 -0
- metadata +19 -23
- data/.gitignore +0 -10
- data/Gemfile +0 -5
- data/Rakefile +0 -4
- data/yardview.gemspec +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d85f0721481729f9f0d9156738982fbbea49ecb47965c91e7b42ac041309a81
|
4
|
+
data.tar.gz: 1b073e7a5818885f695f55b981a514dc87829750e8da42a109db82c978090ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be5ae4485ae959ed8e3ac630aaaa1d860e77fcf02223652e9c8f409eeb55f4376a7e493036dcc051d5712016405ee82a7e48c5baa496210f420a8a031b73326
|
7
|
+
data.tar.gz: 7b66b2d0efcd6769898552de677b1775272789842c6ba4d5f3b262bdb3b4943f8986c2586f146e31eaa6d597accd72e685b235797bc0f909dc89e2fe9ce3c542
|
data/README.md
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
# YardView
|
2
2
|
|
3
|
-
|
3
|
+
Simple GUI `yard server -g` viewer.
|
4
4
|
|
5
|
-
|
5
|
+
![Screenshot](/resources/yardview_screenshot.png?raw=true "screenshot")
|
6
6
|
|
7
|
-
|
7
|
+
Installation
|
8
8
|
|
9
|
-
![
|
9
|
+
[![Gem Version](https://badge.fury.io/rb/yardview_gtk3.svg)](https://badge.fury.io/rb/yardview_gtk3)
|
10
|
+
|
11
|
+
gem install yardview_gtk3
|
10
12
|
|
11
|
-
|
13
|
+
Usage
|
12
14
|
|
13
|
-
|
15
|
+
yardview
|
@@ -41,7 +41,7 @@ module YardView
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def port_open?(port)
|
44
|
-
|
44
|
+
system("lsof -i:#{port}", out: '/dev/null')
|
45
45
|
end
|
46
46
|
|
47
47
|
def on_home_clicked
|
@@ -61,12 +61,10 @@ module YardView
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def start_yard_server
|
64
|
-
if port_open? port
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
raise "port #{port} is in use!"
|
69
|
-
end
|
64
|
+
raise "port #{port} is in use!" if port_open? port
|
65
|
+
|
66
|
+
@yard = spawn('yard', 'server', '-g', '-p', "#{port}", '--reload')
|
67
|
+
sleep 1
|
70
68
|
end
|
71
69
|
end
|
72
70
|
end
|
data/lib/yardview/version.rb
CHANGED
data/resources/yardview.ui
CHANGED
@@ -1,34 +1,44 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!-- Generated with glade 3.
|
2
|
+
<!-- Generated with glade 3.38.2 -->
|
3
3
|
<interface>
|
4
4
|
<requires lib="gtk+" version="3.20"/>
|
5
5
|
<template class="YardViewApplicationWindow" parent="GtkApplicationWindow">
|
6
|
-
<property name="
|
6
|
+
<property name="can-focus">False</property>
|
7
7
|
<property name="opacity">0.90</property>
|
8
8
|
<property name="type">popup</property>
|
9
|
-
<property name="
|
10
|
-
<property name="
|
11
|
-
<property name="
|
9
|
+
<property name="default-width">800</property>
|
10
|
+
<property name="default-height">600</property>
|
11
|
+
<property name="show-menubar">False</property>
|
12
|
+
<child>
|
13
|
+
<object class="GtkBox" id="box">
|
14
|
+
<property name="visible">True</property>
|
15
|
+
<property name="can-focus">False</property>
|
16
|
+
<property name="orientation">vertical</property>
|
17
|
+
<child>
|
18
|
+
<placeholder/>
|
19
|
+
</child>
|
20
|
+
</object>
|
21
|
+
</child>
|
12
22
|
<child type="titlebar">
|
13
23
|
<object class="GtkHeaderBar">
|
14
24
|
<property name="visible">True</property>
|
15
|
-
<property name="
|
16
|
-
<property name="
|
25
|
+
<property name="can-focus">False</property>
|
26
|
+
<property name="show-close-button">True</property>
|
17
27
|
<child>
|
18
28
|
<object class="GtkButtonBox">
|
19
29
|
<property name="visible">True</property>
|
20
|
-
<property name="
|
21
|
-
<property name="
|
30
|
+
<property name="can-focus">False</property>
|
31
|
+
<property name="layout-style">expand</property>
|
22
32
|
<child>
|
23
33
|
<object class="GtkToolButton">
|
24
34
|
<property name="visible">True</property>
|
25
|
-
<property name="
|
35
|
+
<property name="can-focus">False</property>
|
26
36
|
<property name="halign">start</property>
|
27
|
-
<property name="
|
28
|
-
<property name="
|
37
|
+
<property name="margin-start">3</property>
|
38
|
+
<property name="margin-end">3</property>
|
29
39
|
<property name="label" translatable="yes">home</property>
|
30
|
-
<property name="
|
31
|
-
<property name="
|
40
|
+
<property name="use-underline">True</property>
|
41
|
+
<property name="icon-name">go-home</property>
|
32
42
|
<signal name="clicked" handler="on_home_clicked" swapped="no"/>
|
33
43
|
</object>
|
34
44
|
<packing>
|
@@ -40,13 +50,13 @@
|
|
40
50
|
<child>
|
41
51
|
<object class="GtkToolButton">
|
42
52
|
<property name="visible">True</property>
|
43
|
-
<property name="
|
53
|
+
<property name="can-focus">False</property>
|
44
54
|
<property name="halign">start</property>
|
45
|
-
<property name="
|
46
|
-
<property name="
|
55
|
+
<property name="margin-start">3</property>
|
56
|
+
<property name="margin-end">3</property>
|
47
57
|
<property name="label" translatable="yes">back</property>
|
48
|
-
<property name="
|
49
|
-
<property name="
|
58
|
+
<property name="use-underline">True</property>
|
59
|
+
<property name="icon-name">go-previous</property>
|
50
60
|
<signal name="clicked" handler="on_back_clicked" swapped="no"/>
|
51
61
|
</object>
|
52
62
|
<packing>
|
@@ -58,13 +68,13 @@
|
|
58
68
|
<child>
|
59
69
|
<object class="GtkToolButton">
|
60
70
|
<property name="visible">True</property>
|
61
|
-
<property name="
|
71
|
+
<property name="can-focus">False</property>
|
62
72
|
<property name="halign">start</property>
|
63
|
-
<property name="
|
64
|
-
<property name="
|
73
|
+
<property name="margin-start">3</property>
|
74
|
+
<property name="margin-end">3</property>
|
65
75
|
<property name="label" translatable="yes">top</property>
|
66
|
-
<property name="
|
67
|
-
<property name="
|
76
|
+
<property name="use-underline">True</property>
|
77
|
+
<property name="icon-name">go-top</property>
|
68
78
|
<signal name="clicked" handler="on_top_clicked" swapped="no"/>
|
69
79
|
</object>
|
70
80
|
<packing>
|
@@ -76,13 +86,13 @@
|
|
76
86
|
<child>
|
77
87
|
<object class="GtkToolButton">
|
78
88
|
<property name="visible">True</property>
|
79
|
-
<property name="
|
89
|
+
<property name="can-focus">False</property>
|
80
90
|
<property name="halign">start</property>
|
81
|
-
<property name="
|
82
|
-
<property name="
|
91
|
+
<property name="margin-start">3</property>
|
92
|
+
<property name="margin-end">3</property>
|
83
93
|
<property name="label" translatable="yes">refresh</property>
|
84
|
-
<property name="
|
85
|
-
<property name="
|
94
|
+
<property name="use-underline">True</property>
|
95
|
+
<property name="icon-name">view-refresh</property>
|
86
96
|
<signal name="clicked" handler="on_refresh_clicked" swapped="no"/>
|
87
97
|
</object>
|
88
98
|
<packing>
|
@@ -95,15 +105,5 @@
|
|
95
105
|
</child>
|
96
106
|
</object>
|
97
107
|
</child>
|
98
|
-
<child>
|
99
|
-
<object class="GtkBox" id="box">
|
100
|
-
<property name="visible">True</property>
|
101
|
-
<property name="can_focus">False</property>
|
102
|
-
<property name="orientation">vertical</property>
|
103
|
-
<child>
|
104
|
-
<placeholder/>
|
105
|
-
</child>
|
106
|
-
</object>
|
107
|
-
</child>
|
108
108
|
</template>
|
109
109
|
</interface>
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yardview_gtk3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -25,21 +25,21 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "<"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: webkit2-gtk
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,33 +53,33 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: webrick
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.7.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.7.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: yard
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.9.28
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.9.28
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,11 +116,8 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- ".gitignore"
|
120
|
-
- Gemfile
|
121
119
|
- LICENSE.txt
|
122
120
|
- README.md
|
123
|
-
- Rakefile
|
124
121
|
- exe/yardview
|
125
122
|
- lib/yardview.rb
|
126
123
|
- lib/yardview/application.rb
|
@@ -131,7 +128,6 @@ files:
|
|
131
128
|
- resources/ruby.png
|
132
129
|
- resources/yardview.ui
|
133
130
|
- resources/yardview_screenshot.png
|
134
|
-
- yardview.gemspec
|
135
131
|
homepage: https://github.com/kojix2/yardview
|
136
132
|
licenses:
|
137
133
|
- MIT
|
@@ -151,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
147
|
- !ruby/object:Gem::Version
|
152
148
|
version: '0'
|
153
149
|
requirements: []
|
154
|
-
rubygems_version: 3.
|
150
|
+
rubygems_version: 3.4.1
|
155
151
|
signing_key:
|
156
152
|
specification_version: 4
|
157
153
|
summary: GUI Yard document viewer
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/yardview.gemspec
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'yardview/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = 'yardview_gtk3'
|
9
|
-
spec.version = YardView::VERSION
|
10
|
-
spec.authors = ['kojix2']
|
11
|
-
spec.email = ['2xijok@gmail.com']
|
12
|
-
|
13
|
-
spec.summary = 'GUI Yard document viewer'
|
14
|
-
spec.description = 'Simple GUI application to show the yard documents of installed Gems.'
|
15
|
-
spec.homepage = 'https://github.com/kojix2/yardview'
|
16
|
-
spec.license = 'MIT'
|
17
|
-
|
18
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
-
end
|
21
|
-
spec.bindir = 'exe'
|
22
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
-
spec.require_paths = ['lib']
|
24
|
-
|
25
|
-
spec.add_dependency 'gtk3'
|
26
|
-
spec.add_dependency 'webkit2-gtk'
|
27
|
-
spec.add_dependency 'thin'
|
28
|
-
spec.add_dependency 'yard'
|
29
|
-
spec.add_dependency 'webrick'
|
30
|
-
spec.add_development_dependency 'bundler'
|
31
|
-
spec.add_development_dependency 'rake'
|
32
|
-
end
|