yardview_gtk3 0.4.0 → 0.4.4

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: 8352cc578a2d92e778412e2109d4e597d1d3a29ed7f15465c3fa22c55866ac3a
4
- data.tar.gz: d8b7f4d0f49de130fd7dead0c21a6b83b3630777f4d815eb9a1f19f74ed83379
3
+ metadata.gz: 97997ee585de0047468a158c1519ae8a774c06304339cab9fdf869f317b6c31f
4
+ data.tar.gz: 190e49346d89932228fd99c955014c96d360d292cb39c5ada2c14b91fbd0f2c2
5
5
  SHA512:
6
- metadata.gz: 00065cecaf47e58f041fbfd91f279c9dc41ac712b2f27e5eb8d23cc6b4be7fcb4d37b33ac9f42396f52d6d9175da47dd3518d6aa8e5719ce294aaa6371bb95ee
7
- data.tar.gz: adef1a3bcf5732468a7e17ecc91d801084f5d0b919f003b2e861affdce83e8bfa9ebb94aeb5c03e3fc9e9fa657e4174628840834cd17a2bb3c46d9ff0484b4ed
6
+ metadata.gz: 83ec8e6bbd9dad07cda9580ba720418c0e77a2d3f6c4356327858a2a925f60ec23b85280a1ac726dc451b3b3fae8536a3392ed364f2be90f2224643f5578f24d
7
+ data.tar.gz: a94a91ed8aa7d2de7452643d93018fba10980a7eba4734f5c44189edd4653f084f869b1fbdbafb31ffe754f6e16d4ea5c89444c4a0192bd7c6217943678c256b
@@ -0,0 +1,2 @@
1
+ github: kojix2
2
+ ko_fi: kojix2
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /vendor/
10
+ *.lock
data/Gemfile CHANGED
@@ -2,7 +2,4 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
-
7
- # Specify your gem's dependencies in yardview.gemspec
8
5
  gemspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Yardview
1
+ # YardView
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/yardview_gtk3.svg)](https://badge.fury.io/rb/yardview_gtk3)
4
4
 
data/exe/yardview CHANGED
@@ -1,35 +1,36 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
2
 
4
3
  require 'optparse'
5
4
  require 'yardview'
6
5
  require 'fileutils'
7
6
 
8
- Version = Yardview::VERSION
9
- opt = OptionParser.new
10
7
  port_num ||= 8808
8
+
9
+ opt = OptionParser.new
10
+ opt.program_name = 'YardView'
11
+ opt.version = YardView::VERSION
11
12
  opt.on('-p', '--port VAL', Integer) { |v| port_num = v }
12
13
  opt.parse!(ARGV)
13
14
 
14
15
  resource_xml = File.expand_path('../resources/gresources.xml', __dir__)
15
16
  resource_bin = File.expand_path('../gresource.bin', __dir__)
16
17
 
17
- app = Yardview.application
18
-
19
18
  system('glib-compile-resources',
20
19
  '--target', resource_bin,
21
20
  '--sourcedir', File.dirname(resource_xml),
22
21
  resource_xml)
23
22
 
24
- resource = Gio::Resource.load(resource_bin)
25
- Gio::Resources.register(resource)
26
-
27
23
  at_exit do
28
24
  FileUtils.rm_f(resource_bin)
29
25
  end
30
26
 
27
+ app = YardView.application
28
+
29
+ resource = Gio::Resource.load(resource_bin)
30
+ Gio::Resources.register(resource)
31
+
31
32
  app.signal_connect :activate do |application|
32
- window = Yardview::ApplicationWindow.new application, port: port_num
33
+ window = YardView::ApplicationWindow.new application, port: port_num
33
34
  window.present
34
35
  end
35
36
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'gtk3'
4
4
 
5
- module Yardview
5
+ module YardView
6
6
  class << self
7
7
  def application
8
8
  @@application ||= Gtk::Application.new('com.github.kojix2.yardview', :flags_none)
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'gtk3'
4
4
 
5
- module Yardview
5
+ module YardView
6
6
  class ApplicationWindow < Gtk::ApplicationWindow
7
7
  type_register
8
8
 
@@ -11,7 +11,7 @@ module Yardview
11
11
  bind_template_child 'box'
12
12
  set_connect_func do |handler_name|
13
13
  lambda do
14
- Yardview.application.active_window.__send__(handler_name)
14
+ YardView.application.active_window.__send__(handler_name)
15
15
  end
16
16
  end
17
17
  end
@@ -62,7 +62,7 @@ module Yardview
62
62
 
63
63
  def start_yard_server
64
64
  if port_open? port
65
- @yard = spawn("yard server -g -p #{port} --reload")
65
+ @yard = spawn("yard server -g -p #{port} -s thin --reload")
66
66
  sleep 1
67
67
  else
68
68
  raise "port #{port} is in use!"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Yardview
4
- VERSION = '0.4.0'
3
+ module YardView
4
+ VERSION = '0.4.4'
5
5
  end
data/lib/yardview.rb CHANGED
@@ -5,5 +5,5 @@ require 'yardview/application'
5
5
  require 'yardview/application_window'
6
6
  require 'webkit2-gtk'
7
7
 
8
- module Yardview
8
+ module YardView
9
9
  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
- <template class="YardviewApplicationWindow" parent="GtkApplicationWindow">
6
- <property name="can_focus">False</property>
5
+ <template class="YardViewApplicationWindow" parent="GtkApplicationWindow">
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>
data/yardview.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'yardview/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'yardview_gtk3'
9
- spec.version = Yardview::VERSION
9
+ spec.version = YardView::VERSION
10
10
  spec.authors = ['kojix2']
11
11
  spec.email = ['2xijok@gmail.com']
12
12
 
@@ -15,8 +15,6 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = 'https://github.com/kojix2/yardview'
16
16
  spec.license = 'MIT'
17
17
 
18
- # Specify which files should be added to the gem when it is released.
19
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
18
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
19
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
20
  end
@@ -24,18 +22,11 @@ Gem::Specification.new do |spec|
24
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
23
  spec.require_paths = ['lib']
26
24
 
27
- spec.add_dependency 'atk'
28
- spec.add_dependency 'cairo'
29
- spec.add_dependency 'cairo-gobject'
30
- spec.add_dependency 'gdk3'
31
- spec.add_dependency 'gdk_pixbuf2'
32
- spec.add_dependency 'gio2'
33
- spec.add_dependency 'glib2'
34
- spec.add_dependency 'pango'
35
- spec.add_dependency 'yard'
36
-
37
25
  spec.add_dependency 'gtk3'
38
26
  spec.add_dependency 'webkit2-gtk'
27
+ spec.add_dependency 'thin'
28
+ spec.add_dependency 'yard'
29
+ spec.add_dependency 'webrick'
39
30
  spec.add_development_dependency 'bundler'
40
31
  spec.add_development_dependency 'rake'
41
32
  end
metadata CHANGED
@@ -1,87 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yardview_gtk3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-12 00:00:00.000000000 Z
11
+ date: 2021-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: atk
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: cairo
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: cairo-gobject
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: gdk3
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: gdk_pixbuf2
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: gio2
14
+ name: gtk3
85
15
  requirement: !ruby/object:Gem::Requirement
86
16
  requirements:
87
17
  - - ">="
@@ -95,7 +25,7 @@ dependencies:
95
25
  - !ruby/object:Gem::Version
96
26
  version: '0'
97
27
  - !ruby/object:Gem::Dependency
98
- name: glib2
28
+ name: webkit2-gtk
99
29
  requirement: !ruby/object:Gem::Requirement
100
30
  requirements:
101
31
  - - ">="
@@ -109,7 +39,7 @@ dependencies:
109
39
  - !ruby/object:Gem::Version
110
40
  version: '0'
111
41
  - !ruby/object:Gem::Dependency
112
- name: pango
42
+ name: thin
113
43
  requirement: !ruby/object:Gem::Requirement
114
44
  requirements:
115
45
  - - ">="
@@ -137,21 +67,7 @@ dependencies:
137
67
  - !ruby/object:Gem::Version
138
68
  version: '0'
139
69
  - !ruby/object:Gem::Dependency
140
- name: gtk3
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: webkit2-gtk
70
+ name: webrick
155
71
  requirement: !ruby/object:Gem::Requirement
156
72
  requirements:
157
73
  - - ">="
@@ -200,13 +116,12 @@ executables:
200
116
  extensions: []
201
117
  extra_rdoc_files: []
202
118
  files:
119
+ - ".github/FUNDING.yml"
120
+ - ".gitignore"
203
121
  - Gemfile
204
- - Gemfile.lock
205
122
  - LICENSE.txt
206
123
  - README.md
207
124
  - Rakefile
208
- - bin/console
209
- - bin/setup
210
125
  - exe/yardview
211
126
  - lib/yardview.rb
212
127
  - lib/yardview/application.rb
@@ -237,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
152
  - !ruby/object:Gem::Version
238
153
  version: '0'
239
154
  requirements: []
240
- rubygems_version: 3.1.2
155
+ rubygems_version: 3.2.22
241
156
  signing_key:
242
157
  specification_version: 4
243
158
  summary: GUI Yard document viewer
data/Gemfile.lock DELETED
@@ -1,66 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- yardview_gtk3 (0.4.0)
5
- atk
6
- cairo
7
- cairo-gobject
8
- gdk3
9
- gdk_pixbuf2
10
- gio2
11
- glib2
12
- gtk3
13
- pango
14
- webkit2-gtk
15
- yard
16
-
17
- GEM
18
- remote: https://rubygems.org/
19
- specs:
20
- atk (3.4.3)
21
- glib2 (= 3.4.3)
22
- cairo (1.16.6)
23
- native-package-installer (>= 1.0.3)
24
- pkg-config (>= 1.2.2)
25
- cairo-gobject (3.4.3)
26
- cairo (>= 1.16.2)
27
- glib2 (= 3.4.3)
28
- gdk3 (3.4.3)
29
- cairo-gobject (= 3.4.3)
30
- gdk_pixbuf2 (= 3.4.3)
31
- pango (= 3.4.3)
32
- gdk_pixbuf2 (3.4.3)
33
- gio2 (= 3.4.3)
34
- gio2 (3.4.3)
35
- gobject-introspection (= 3.4.3)
36
- glib2 (3.4.3)
37
- native-package-installer (>= 1.0.3)
38
- pkg-config (>= 1.3.5)
39
- gobject-introspection (3.4.3)
40
- glib2 (= 3.4.3)
41
- gtk3 (3.4.3)
42
- atk (= 3.4.3)
43
- gdk3 (= 3.4.3)
44
- gdk_pixbuf2 (= 3.4.3)
45
- gio2 (= 3.4.3)
46
- pango (= 3.4.3)
47
- native-package-installer (1.0.9)
48
- pango (3.4.3)
49
- cairo-gobject (= 3.4.3)
50
- gobject-introspection (= 3.4.3)
51
- pkg-config (1.4.2)
52
- rake (13.0.1)
53
- webkit2-gtk (3.4.3)
54
- gtk3 (= 3.4.3)
55
- yard (0.9.25)
56
-
57
- PLATFORMS
58
- ruby
59
-
60
- DEPENDENCIES
61
- bundler
62
- rake
63
- yardview_gtk3!
64
-
65
- BUNDLED WITH
66
- 2.1.4
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'yardview'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here