pastehub 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/VERSION.yml +1 -1
- data/bin/PastehubSync +1 -0
- data/lib/pastehub/clientsync.rb +4 -0
- data/lib/pastehub/plugin.rb +8 -1
- data/lib/pastehub/plugin/notification_center.rb +6 -1
- data/lib/pastehub/plugin/sendmail.rb +3 -0
- data/lib/pastehub/plugin_base.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fcea458e691141f56af84f016b03018319c8621
|
4
|
+
data.tar.gz: 2de2af1d9c960064d7b9f702f649d3f814ccca75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7935dfc206a25d32863b1e15dada9ce3936e55bc10728c37a938933c7295b39696c97fbe1ab76d3742769dae65d26d13b04c61ffeba5d0af9cf524eefa40e232
|
7
|
+
data.tar.gz: 11b7a83e65c568295212ad7c357a2c5fa94831c6c05a909d68d7a7ac014d9fc987f170c4fdf2d7a50767f59dcac14f1a92be6f239683bae8b7591a083aaa3d4c
|
data/README.md
CHANGED
@@ -9,11 +9,11 @@ Cross-platform clipboard (copy and paste) sync tool.
|
|
9
9
|
|
10
10
|
## Support OS
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
MacOSX
|
15
|
-
Windows
|
16
|
-
Linux
|
12
|
+
OS | native clipboard | Emacs kill-ring | vim |
|
13
|
+
----------|------------------|--------------------|-------------|
|
14
|
+
MacOSX | OK | OK | OK |
|
15
|
+
Windows | OK | not yet | not yet |
|
16
|
+
Linux | not yet | OK | OK |
|
17
17
|
|
18
18
|
## How to install
|
19
19
|
|
data/VERSION.yml
CHANGED
data/bin/PastehubSync
CHANGED
data/lib/pastehub/clientsync.rb
CHANGED
data/lib/pastehub/plugin.rb
CHANGED
@@ -39,9 +39,17 @@ module PasteHub
|
|
39
39
|
@plugins = []
|
40
40
|
end
|
41
41
|
|
42
|
+
def display_config
|
43
|
+
@plugins.each {|x|
|
44
|
+
STDERR.printf( "Info: plugin [%s] loaded.\n", x.class.to_s )
|
45
|
+
x.display_config()
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
42
49
|
def load_plugins
|
43
50
|
dir = File.join(File.dirname(__FILE__), "plugin")
|
44
51
|
load_plugin_dir(dir)
|
52
|
+
nil
|
45
53
|
end
|
46
54
|
|
47
55
|
def load_plugin_dir(dir)
|
@@ -55,7 +63,6 @@ module PasteHub
|
|
55
63
|
end
|
56
64
|
|
57
65
|
def register_plugin(obj)
|
58
|
-
#STDERR.printf( "Info: plugin [%s] loaded.\n", obj.class.to_s )
|
59
66
|
@plugins << obj
|
60
67
|
end
|
61
68
|
|
@@ -43,12 +43,17 @@ module PasteHub
|
|
43
43
|
# MacOS X
|
44
44
|
@notifier_path = RbConfig::CONFIG['bindir'] + "/" + "terminal-notifier"
|
45
45
|
if File.exist?( @notifier_path )
|
46
|
-
STDERR.puts( "Info: found terminal-notifier for MacOS X." )
|
47
46
|
@enable = true
|
48
47
|
end
|
49
48
|
end
|
50
49
|
end
|
51
50
|
|
51
|
+
def display_config
|
52
|
+
if @enable
|
53
|
+
STDERR.puts( "Info: found terminal-notifier for MacOS X." )
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
52
57
|
def newly_arrived(message)
|
53
58
|
config = PasteHub::Config.instance
|
54
59
|
if @enable
|
data/lib/pastehub/plugin_base.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pastehub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kiyoka Nishiyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clipboard
|