open 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of open might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +292 -0
- data/bin/nano_open +7 -0
- data/bin/open +7 -0
- data/bin/open_in_browser +7 -0
- data/bin/open_these_files +7 -0
- data/bin/open_with_delay +7 -0
- data/doc/README.gen +248 -0
- data/lib/open/base/base.rb +311 -0
- data/lib/open/constants/constants.rb +110 -0
- data/lib/open/in_browser/in_browser.rb +572 -0
- data/lib/open/in_editor/in_editor.rb +316 -0
- data/lib/open/last/last.rb +143 -0
- data/lib/open/last_url/last_url.rb +149 -0
- data/lib/open/nano_open/nano_open.rb +73 -0
- data/lib/open/open.rb +1026 -0
- data/lib/open/project/project.rb +45 -0
- data/lib/open/requires/require_the_project.rb +15 -0
- data/lib/open/these_files/these_files.rb +116 -0
- data/lib/open/toplevel_code/toplevel_code.rb +162 -0
- data/lib/open/version/version.rb +19 -0
- data/lib/open/with_delay/with_delay.rb +261 -0
- data/lib/open/yaml/use_this_browser.yml +1 -0
- data/lib/open/yaml/use_this_editor.yml +1 -0
- data/lib/open.rb +5 -0
- data/open.gemspec +36 -0
- data/test/testing_open.rb +35 -0
- metadata +79 -0
@@ -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,79 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: open
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.23
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert A. Heiler
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-10-03 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/use_this_browser.yml
|
49
|
+
- lib/open/yaml/use_this_editor.yml
|
50
|
+
- open.gemspec
|
51
|
+
- test/testing_open.rb
|
52
|
+
homepage: https://rubygems.org/gems/open_in_browser
|
53
|
+
licenses:
|
54
|
+
- MIT
|
55
|
+
metadata: {}
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options: []
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 2.7.6
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.3.7
|
70
|
+
requirements: []
|
71
|
+
rubygems_version: 3.3.7
|
72
|
+
signing_key:
|
73
|
+
specification_version: 4
|
74
|
+
summary: This project can be used to open an URL in a browser, usually via a browser
|
75
|
+
such as firefo, palemoon or vivaldi. It can also be used to open a local file in
|
76
|
+
an editor. The latter has been a reason why the API was created in the first place,
|
77
|
+
via Open.in_editor() or Open.in_browser().
|
78
|
+
test_files: []
|
79
|
+
...
|