douban_fm_hotkey 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 1e4d25b7094a124bdbe5f61c1cdf763aff8b97a9
4
- data.tar.gz: cec912a835737069e0333cdfedd7d50ff7e0b4cc
3
+ metadata.gz: 140daa8739cb64bc9cad0e90c0e85fd3036a6b71
4
+ data.tar.gz: 8bb05d0e7749108504f47628dcb72cce09e99849
5
5
  SHA512:
6
- metadata.gz: b0a3c8a35d6f200fa228008b0e54d608b66dbbed6cca0006c92b4072dec95a58f0a43d8bea3277a7f4b3b98c85986ea39bc4ff553e4129a3a63f53892e765a12
7
- data.tar.gz: c678ce76107aea87446ae9bccf662d184aa171cf8220e502c7870a844115c024fa8d596dd4b17eff4bd8cd1a33d99c6060edda879a091d6f74c49ac83a43e0d1
6
+ metadata.gz: 44368c0595d77402154107b2870de76fb8030ae8ff9c6c9aad43dfb0747f943a4acbae35743433e1d7f1042ed1752f5618695e5456414891cbbb12c0c8d97b91
7
+ data.tar.gz: cfdafab1017238db656d5d7b9014ce4e1940d0aabca879a88898915615d30567ed34c190f80b10a5cbaf62568b8bd08d288596c33919787a4b472c8fe326cf68
data/README.md CHANGED
@@ -1 +1,45 @@
1
- # Douban FM Hotkey
1
+ # Douban FM 全局快捷键
2
+
3
+ ## 依赖
4
+
5
+ * ruby 1.9+
6
+
7
+ ## 安装
8
+
9
+ ### Server
10
+
11
+ ```bash
12
+ $ gem i douban_fm_hotkey
13
+ ```
14
+ ### Chrome 扩展
15
+
16
+ https://dl.dropboxusercontent.com/u/1658623/douban_fm_hotkey.crx
17
+
18
+ = = Chrome web store developer account 验证中。。。
19
+
20
+ ## 使用
21
+
22
+ ### 启动 server
23
+
24
+ ```bash
25
+ $ douban_fm_hotkey
26
+ ```
27
+
28
+ ### 设置快捷键
29
+
30
+ 在你的系统里把你想要的快捷键分别映射到以下命令:
31
+
32
+ * `curl http://localhost:1988/skip` 下一首
33
+ * `curl http://localhost:1988/ban` 不再播放
34
+ * `curl http://localhost:1988/love` 喜欢
35
+ * `curl http://localhost:1988/pause` 暂停
36
+
37
+ 具体每个系统的配置不大一样这里不详细说了。我的配置:
38
+
39
+ ![Shortcuts](https://dl.dropboxusercontent.com/u/1658623/douban_fm_hotkey_shortcuts.png)
40
+
41
+ ## 存在的问题
42
+
43
+ ### 只有暂停没有播放
44
+
45
+ 豆瓣电台的播放器只对外开放了暂停接口,所以没办法控制播放,但是在暂停后可以用下一首来让电台继续播放。
File without changes
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.authors = ['Wei Zhu']
9
9
  s.email = 'yesmeck@gmail.com'
10
10
  s.files = `git ls-files | grep -v '^chrome-extension/'`.split("\n")
11
+ s.executables << 'douban_fm_hotkey'
11
12
  s.homepage = 'http://www.douban.com/people/coolzi'
12
13
  s.add_dependency 'faye'
13
14
  s.add_dependency 'sinatra'
@@ -1,3 +1,3 @@
1
1
  module DoubanFMHotkey
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: douban_fm_hotkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wei Zhu
@@ -54,7 +54,8 @@ dependencies:
54
54
  version: '0'
55
55
  description: Global hotkey for Douban FM web.
56
56
  email: yesmeck@gmail.com
57
- executables: []
57
+ executables:
58
+ - douban_fm_hotkey
58
59
  extensions: []
59
60
  extra_rdoc_files: []
60
61
  files:
@@ -63,7 +64,7 @@ files:
63
64
  - Gemfile.lock
64
65
  - README.md
65
66
  - Rakefile
66
- - bin/dfh_server
67
+ - bin/douban_fm_hotkey
67
68
  - douban_fm_hotkey.gemspec
68
69
  - lib/douban_fm_hotkey/server.rb
69
70
  - lib/douban_fm_hotkey/version.rb
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  version: '0'
87
88
  requirements: []
88
89
  rubyforge_project:
89
- rubygems_version: 2.0.3
90
+ rubygems_version: 2.0.0
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Douban FM global hotkey.