vkhal 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7656eeddb644ab6a49be19332b26099feff4308cdf57a46584555cebc92c5617
4
- data.tar.gz: dad8852bb26084f25ea3a118fb620b6de8a25a05cb9ce566e6df9babdc364bed
3
+ metadata.gz: 3ac6d905242f6631cbb6083e073a6f208a8b9f2c205086cc7189934ef63ce177
4
+ data.tar.gz: 4e727ad70058d86fc3baf655eefac481afcfe83369ab8feb1dbac58959dfa8f9
5
5
  SHA512:
6
- metadata.gz: 88d2b9834aedeb1f10709cd0d46c8e1922eb2e61aa4a0b32780ea7773366b49e286ed17f13b2116151df506dadbb6c8e826dbb4e1d4b78059ab06cb239be5b5d
7
- data.tar.gz: 524bcb934998a354db7fe7dddc8d70316446731ffff1d16430394bdf9f9b40b8c4832381567c94684a7cf1a7a82564b36e515f5adb73a8d69125e587e5e3f531
6
+ metadata.gz: d514d3aed85a440b378f782e38e188665f9f08ec14dbf154b3a42e75c1741d46c2e4bd65993e3c365c603d1cc452aa8687f2ae80830a964385d3e518f6babd8a
7
+ data.tar.gz: b238dcc033dc4b76de9274a63940251a79add927a3b1f007d6938295a94de62dc8a6b4d8d2d2b31d4104b58f2841704eb214f7b5cfe98c1c5f03a31151afb3f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vkhal (0.1.0)
4
+ vkhal (0.1.1)
5
5
  icalendar (~> 2.5)
6
6
 
7
7
  GEM
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
- text/calendar; ~/Projects/vkhal/bin/vkhal -s %s; copiousoutput
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
- <enter-command>unset wait_key<enter>\
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> ~/Projects/vkhal/bin/vkhal -k /tmp/events.ics<enter>\
28
+ <shell-escape> vkhal -k /tmp/events.ics<enter>\
21
29
  "
30
+ ```
22
31
 
23
32
  ## License
24
33
 
data/lib/vkhal.rb CHANGED
@@ -8,6 +8,6 @@ require 'vkhal/khal_service'
8
8
  require 'vkhal/presenter'
9
9
 
10
10
  module Vkhal
11
- VERSION = '0.1.1'
11
+ VERSION = '0.1.2'
12
12
  class Error < StandardError; end
13
13
  end
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 = "MIT"
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.bindir = "exe"
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Wieland
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
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
- - MIT
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