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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be227f876729f06842ce987e72bb7a49d0bc9e93f9b3d63f2563b23697689dd7
4
- data.tar.gz: 7864f127af91355f4180520c91ee730ee4b17633f2bbf10b8989ed56ae362079
3
+ metadata.gz: 8d85f0721481729f9f0d9156738982fbbea49ecb47965c91e7b42ac041309a81
4
+ data.tar.gz: 1b073e7a5818885f695f55b981a514dc87829750e8da42a109db82c978090ee9
5
5
  SHA512:
6
- metadata.gz: df17d32a85881cf2da67f6f11b858c70c00a233a33cf3806d97b9c459f65c69c483c0b5d8d87da1d943643a0e4a66fd03fb3b5460bf1546308383e44c9911b72
7
- data.tar.gz: 8b5ed465dffcbe9f139337bec792ae7861b52b81e49d16d6fc0ea342fc982f9c74f0ef0152c3e4b65c342cd3040446a00e9039873d1130a4340b8f20823377e8
6
+ metadata.gz: 7be5ae4485ae959ed8e3ac630aaaa1d860e77fcf02223652e9c8f409eeb55f4376a7e493036dcc051d5712016405ee82a7e48c5baa496210f420a8a031b73326
7
+ data.tar.gz: 7b66b2d0efcd6769898552de677b1775272789842c6ba4d5f3b262bdb3b4943f8986c2586f146e31eaa6d597accd72e685b235797bc0f909dc89e2fe9ce3c542
data/README.md CHANGED
@@ -1,13 +1,15 @@
1
1
  # YardView
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/yardview_gtk3.svg)](https://badge.fury.io/rb/yardview_gtk3)
3
+ Simple GUI `yard server -g` viewer.
4
4
 
5
- simple GTK3 GUI `yard server -g` viewer.
5
+ ![Screenshot](/resources/yardview_screenshot.png?raw=true "screenshot")
6
6
 
7
- $ yardview
7
+ Installation
8
8
 
9
- ![Screenshot](/resources/yardview_screenshot.png?raw=true "screenshot")
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
- ## Installation
13
+ Usage
12
14
 
13
- $ gem install yardview_gtk3
15
+ yardview
@@ -41,7 +41,7 @@ module YardView
41
41
  end
42
42
 
43
43
  def port_open?(port)
44
- !system("lsof -i:#{port}", out: '/dev/null')
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
- @yard = spawn("yard server -g -p #{port} -s thin --reload")
66
- sleep 1
67
- else
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YardView
4
- VERSION = '0.4.3'
4
+ VERSION = '0.5.0'
5
5
  end
@@ -1,34 +1,44 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Generated with glade 3.22.2 -->
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="can_focus">False</property>
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="default_width">800</property>
10
- <property name="default_height">600</property>
11
- <property name="show_menubar">False</property>
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="can_focus">False</property>
16
- <property name="show_close_button">True</property>
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="can_focus">False</property>
21
- <property name="layout_style">expand</property>
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="can_focus">False</property>
35
+ <property name="can-focus">False</property>
26
36
  <property name="halign">start</property>
27
- <property name="margin_left">3</property>
28
- <property name="margin_right">3</property>
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="use_underline">True</property>
31
- <property name="stock_id">gtk-home</property>
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="can_focus">False</property>
53
+ <property name="can-focus">False</property>
44
54
  <property name="halign">start</property>
45
- <property name="margin_left">3</property>
46
- <property name="margin_right">3</property>
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="use_underline">True</property>
49
- <property name="stock_id">gtk-go-back</property>
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="can_focus">False</property>
71
+ <property name="can-focus">False</property>
62
72
  <property name="halign">start</property>
63
- <property name="margin_left">3</property>
64
- <property name="margin_right">3</property>
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="use_underline">True</property>
67
- <property name="stock_id">gtk-goto-top</property>
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="can_focus">False</property>
89
+ <property name="can-focus">False</property>
80
90
  <property name="halign">start</property>
81
- <property name="margin_left">3</property>
82
- <property name="margin_right">3</property>
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="use_underline">True</property>
85
- <property name="stock_id">gtk-refresh</property>
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.3
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: 2021-01-05 00:00:00.000000000 Z
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: webkit2-gtk
28
+ name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
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: '0'
40
+ version: '3'
41
41
  - !ruby/object:Gem::Dependency
42
- name: thin
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: yard
56
+ name: webrick
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
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: '0'
68
+ version: 1.7.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: webrick
70
+ name: yard
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
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: '0'
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.2.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
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /vendor/
10
- *.lock
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
data/Rakefile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- task default: :spec
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