karabiner 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 54eca927143367b5272357cf58664363593c5b9b
4
- data.tar.gz: 0bdcaaaee69fa945cab5e71d29d1b53b890c783f
3
+ metadata.gz: c5d00c913848983372f0894abb2bab585046f66c
4
+ data.tar.gz: 8e43560929d02d39ee67c4c656b9240105a69f2b
5
5
  SHA512:
6
- metadata.gz: 6d6370cb2fdead72745f722f9948bd5a9014e226cb12959d8aba50ba7f37f302008475f101dcfa1d6a76622d92a66daef78b364ec8a6f3849e772371d2edb59c
7
- data.tar.gz: 0004cc00131dec168743bd19b4dd297960d9230fab516f9575e474692050c69af437c53520704fc2ad84f35ddf5bf1ac8523fed260f008ac9b1a6138efadd16c
6
+ metadata.gz: f1009678a72ec6460516d8a422d3fe09500c1f41e63c73ae099bb94bb2b1a44bf2d733aaa87c983616298c2e441041ee7fa7fd4a1486e2d0c0fafc6f11ea3f85
7
+ data.tar.gz: 499d924d7d6ab0d2a34cc6c7d6e036bfc503f0ff66e4bfcbb056481818fed1cc734251e20dd7f2e95c9ccc31567862288c47ac7468a3ceeb886292cc9644eeec
@@ -1,8 +1,15 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env ruby
2
2
 
3
- if [ $@ == "dsl" ]; then
4
- bin_dir=$(cd $(dirname $0); pwd)
5
- ${bin_dir}/karabiner-dsl
3
+ lib = File.dirname(__FILE__) + "/../lib"
4
+ $:.unshift lib unless $:.include? lib
5
+
6
+ require "karabiner"
7
+
8
+ DOTFILE_PATH = File.expand_path("~/.karabiner")
9
+
10
+ if ARGV.first == "dsl"
11
+ karabiner = Karabiner.new(DOTFILE_PATH)
12
+ karabiner.apply_configuration
6
13
  else
7
- /Applications/Karabiner.app/Contents/Library/bin/karabiner $@
8
- fi
14
+ system("/Applications/Karabiner.app/Contents/Library/bin/karabiner #{ARGV.join(' ')}")
15
+ end
@@ -1,3 +1,3 @@
1
1
  class Karabiner
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karabiner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun