yardview_gtk3 0.4.4 → 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: 97997ee585de0047468a158c1519ae8a774c06304339cab9fdf869f317b6c31f
4
- data.tar.gz: 190e49346d89932228fd99c955014c96d360d292cb39c5ada2c14b91fbd0f2c2
3
+ metadata.gz: 8d85f0721481729f9f0d9156738982fbbea49ecb47965c91e7b42ac041309a81
4
+ data.tar.gz: 1b073e7a5818885f695f55b981a514dc87829750e8da42a109db82c978090ee9
5
5
  SHA512:
6
- metadata.gz: 83ec8e6bbd9dad07cda9580ba720418c0e77a2d3f6c4356327858a2a925f60ec23b85280a1ac726dc451b3b3fae8536a3392ed364f2be90f2224643f5578f24d
7
- data.tar.gz: a94a91ed8aa7d2de7452643d93018fba10980a7eba4734f5c44189edd4653f084f869b1fbdbafb31ffe754f6e16d4ea5c89444c4a0192bd7c6217943678c256b
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.4'
4
+ VERSION = '0.5.0'
5
5
  end
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.4
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-09-22 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,12 +116,8 @@ executables:
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - ".github/FUNDING.yml"
120
- - ".gitignore"
121
- - Gemfile
122
119
  - LICENSE.txt
123
120
  - README.md
124
- - Rakefile
125
121
  - exe/yardview
126
122
  - lib/yardview.rb
127
123
  - lib/yardview/application.rb
@@ -132,7 +128,6 @@ files:
132
128
  - resources/ruby.png
133
129
  - resources/yardview.ui
134
130
  - resources/yardview_screenshot.png
135
- - yardview.gemspec
136
131
  homepage: https://github.com/kojix2/yardview
137
132
  licenses:
138
133
  - MIT
@@ -152,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
147
  - !ruby/object:Gem::Version
153
148
  version: '0'
154
149
  requirements: []
155
- rubygems_version: 3.2.22
150
+ rubygems_version: 3.4.1
156
151
  signing_key:
157
152
  specification_version: 4
158
153
  summary: GUI Yard document viewer
data/.github/FUNDING.yml DELETED
@@ -1,2 +0,0 @@
1
- github: kojix2
2
- ko_fi: kojix2
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