open 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
data/open.gemspec ADDED
@@ -0,0 +1,36 @@
1
+ # =========================================================================== #
2
+ # Gemspec for this project.
3
+ # =========================================================================== #
4
+ require 'open'
5
+ require 'roebe'
6
+
7
+ Gem::Specification.new { |s|
8
+
9
+ s.name = 'open'
10
+ s.version = Open::VERSION
11
+ s.date = Time.now.strftime('%Y-%m-%d')
12
+
13
+ DESCRIPTION = <<-EOF
14
+
15
+ This project can be used to open an URL in a browser, usually
16
+ via a browser such as firefo, palemoon or vivaldi. It can also be used
17
+ to open a local file in an editor. The latter has been a reason
18
+ why the API was created in the first place, via Open.in_editor()
19
+ or Open.in_browser().
20
+
21
+ EOF
22
+
23
+ s.summary = DESCRIPTION
24
+ s.description = DESCRIPTION
25
+
26
+ s.authors = ['Robert A. Heiler']
27
+ s.email = Roebe.email?
28
+ s.files = Dir['**/*']
29
+ s.license = 'MIT'
30
+ s.homepage = 'https://rubygems.org/gems/open_in_browser'
31
+
32
+ s.required_ruby_version = '>= '+Roebe.third_most_stable_version_of_ruby
33
+ s.required_rubygems_version = '>= '+Gem::VERSION
34
+ s.rubygems_version = '>= '+Gem::VERSION
35
+
36
+ }
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ require 'colours/autoinclude'
6
+ require 'open'
7
+
8
+ # =========================================================================== #
9
+ # === TEST_THIS_FILE
10
+ # =========================================================================== #
11
+ TEST_THIS_FILE = Open::RUBY_SRC+
12
+ 'open/lib/open/constants/constants.rb'
13
+
14
+ e
15
+ e 'First testing the browser-functionality of this gem.'
16
+ e
17
+ e ' - Testing open_in_browser() functionality next:'
18
+ e
19
+ open_in_browser 'google.at'
20
+ open_in_browser 'linux', '?pdf'
21
+ open_in_browser 'http://localhost/programming/ruby/src/chemistry_paradise/lib/chemistry_paradise/www/chemistry/chemistry.cgi',
22
+ 'Absolutkonfiguration'
23
+ e
24
+ e 'Next testing the project called '+sfancy('open')+'.'
25
+ e
26
+
27
+ e
28
+ Open.in_editor('/home/x/programming/ruby/src/open/open.gemspec')
29
+ e
30
+ e
31
+ e "Now opening file #{sfile(TEST_THIS_FILE)}."
32
+ e
33
+
34
+ Open::InEditor[TEST_THIS_FILE]
35
+ Open[TEST_THIS_FILE]
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: open
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.30
5
+ platform: ruby
6
+ authors:
7
+ - Robert A. Heiler
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |2+
14
+
15
+ This project can be used to open an URL in a browser, usually
16
+ via a browser such as firefo, palemoon or vivaldi. It can also be used
17
+ to open a local file in an editor. The latter has been a reason
18
+ why the API was created in the first place, via Open.in_editor()
19
+ or Open.in_browser().
20
+
21
+ email: shevy@inbox.lt
22
+ executables: []
23
+ extensions: []
24
+ extra_rdoc_files: []
25
+ files:
26
+ - README.md
27
+ - bin/nano_open
28
+ - bin/open
29
+ - bin/open_in_browser
30
+ - bin/open_these_files
31
+ - bin/open_with_delay
32
+ - doc/README.gen
33
+ - lib/open.rb
34
+ - lib/open/base/base.rb
35
+ - lib/open/constants/constants.rb
36
+ - lib/open/in_browser/in_browser.rb
37
+ - lib/open/in_editor/in_editor.rb
38
+ - lib/open/last/last.rb
39
+ - lib/open/last_url/last_url.rb
40
+ - lib/open/nano_open/nano_open.rb
41
+ - lib/open/open.rb
42
+ - lib/open/project/project.rb
43
+ - lib/open/requires/require_the_project.rb
44
+ - lib/open/these_files/these_files.rb
45
+ - lib/open/toplevel_code/toplevel_code.rb
46
+ - lib/open/version/version.rb
47
+ - lib/open/with_delay/with_delay.rb
48
+ - lib/open/yaml/shortcuts.yml
49
+ - lib/open/yaml/use_this_browser.yml
50
+ - lib/open/yaml/use_this_delay.yml
51
+ - lib/open/yaml/use_this_editor.yml
52
+ - open.gemspec
53
+ - test/testing_open.rb
54
+ homepage: https://rubygems.org/gems/open_in_browser
55
+ licenses:
56
+ - MIT
57
+ metadata: {}
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 2.7.6
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 3.4.13
72
+ requirements: []
73
+ rubygems_version: 3.4.13
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: This project can be used to open an URL in a browser, usually via a browser
77
+ such as firefo, palemoon or vivaldi. It can also be used to open a local file in
78
+ an editor. The latter has been a reason why the API was created in the first place,
79
+ via Open.in_editor() or Open.in_browser().
80
+ test_files: []
81
+ ...