vkhal 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -5
- data/lib/vkhal.rb +1 -1
- data/vkhal.gemspec +2 -3
- metadata +6 -5
- data/exe/vkhal +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ac6d905242f6631cbb6083e073a6f208a8b9f2c205086cc7189934ef63ce177
|
4
|
+
data.tar.gz: 4e727ad70058d86fc3baf655eefac481afcfe83369ab8feb1dbac58959dfa8f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d514d3aed85a440b378f782e38e188665f9f08ec14dbf154b3a42e75c1741d46c2e4bd65993e3c365c603d1cc452aa8687f2ae80830a964385d3e518f6babd8a
|
7
|
+
data.tar.gz: b238dcc033dc4b76de9274a63940251a79add927a3b1f007d6938295a94de62dc8a6b4d8d2d2b31d4104b58f2841704eb214f7b5cfe98c1c5f03a31151afb3f3
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,17 +8,26 @@ Utility to help integrate the amazing [Mutt][1]/[NeoMutt][2] with the beautiful
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
+
Vkhal can both display an `ics` file in Mutt and import it in Khal.
|
11
12
|
|
12
|
-
|
13
|
-
application/ics; ~/Projects/vkhal/bin/vkhal -s %s; copiousoutput
|
13
|
+
In order to display the events inside your emails add these two lines in your `mailcap`
|
14
14
|
|
15
|
+
```
|
16
|
+
text/calendar; vkhal -s %s; copiousoutput
|
17
|
+
application/ics; vkhal -s %s; copiousoutput
|
18
|
+
```
|
15
19
|
|
16
|
-
|
17
|
-
|
20
|
+
Then add a macro to import events into Khal:
|
21
|
+
|
22
|
+
```
|
23
|
+
macro attach K \
|
24
|
+
"\
|
25
|
+
"<enter-command>unset wait_key<enter>\
|
18
26
|
<shell-escape>rm -f /tmp/events.ics<enter>\
|
19
27
|
<save-entry><kill-line>/tmp/events.ics<enter>\
|
20
|
-
<shell-escape>
|
28
|
+
<shell-escape> vkhal -k /tmp/events.ics<enter>\
|
21
29
|
"
|
30
|
+
```
|
22
31
|
|
23
32
|
## License
|
24
33
|
|
data/lib/vkhal.rb
CHANGED
data/vkhal.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = %q{Send vcalendar invites to Khal}
|
12
12
|
spec.homepage = "https://gitlab.com/nofeed/vkhal"
|
13
|
-
spec.license = "
|
13
|
+
spec.license = "Beerware"
|
14
14
|
|
15
15
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
16
16
|
|
@@ -22,8 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
24
|
end
|
25
|
-
spec.
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
27
26
|
spec.require_paths = ["lib"]
|
28
27
|
|
29
28
|
spec.add_dependency "icalendar", "~> 2.5"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vkhal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Wieland
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: icalendar
|
@@ -70,6 +70,8 @@ description:
|
|
70
70
|
email:
|
71
71
|
- ngw@nofeed.org
|
72
72
|
executables:
|
73
|
+
- console
|
74
|
+
- setup
|
73
75
|
- vkhal
|
74
76
|
extensions: []
|
75
77
|
extra_rdoc_files: []
|
@@ -85,7 +87,6 @@ files:
|
|
85
87
|
- bin/console
|
86
88
|
- bin/setup
|
87
89
|
- bin/vkhal
|
88
|
-
- exe/vkhal
|
89
90
|
- lib/vkhal.rb
|
90
91
|
- lib/vkhal/cli.rb
|
91
92
|
- lib/vkhal/khal_service.rb
|
@@ -93,7 +94,7 @@ files:
|
|
93
94
|
- vkhal.gemspec
|
94
95
|
homepage: https://gitlab.com/nofeed/vkhal
|
95
96
|
licenses:
|
96
|
-
-
|
97
|
+
- Beerware
|
97
98
|
metadata:
|
98
99
|
allowed_push_host: https://rubygems.org
|
99
100
|
homepage_uri: https://gitlab.com/nofeed/vkhal
|
data/exe/vkhal
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
lib_path = File.expand_path('../lib', __dir__)
|
5
|
-
$:.unshift(lib_path) if !$:.include?(lib_path)
|
6
|
-
require 'vkhal'
|
7
|
-
|
8
|
-
Signal.trap('INT') do
|
9
|
-
warn("\n#{ caller.join }\n: interrupted")
|
10
|
-
exit(1)
|
11
|
-
end
|
12
|
-
|
13
|
-
cli = Vkhal::CLI.new
|
14
|
-
cli.perform
|