facy 1.2.13 → 1.2.14
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 +4 -4
- data/Gemfile.lock +11 -9
- data/README.md +4 -0
- data/lib/facy.rb +0 -11
- data/lib/facy/command.rb +7 -1
- data/lib/facy/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c76088df514523d3d1af928b31257b0509bb211
|
|
4
|
+
data.tar.gz: 070c08e445acc10c9520f53dfae2c237d59fe3d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6db075a1c0c01d21492cfffdb65f8ce9ffaa4195e5cc0b911de4a274a92a72e4bab18ef7d123216fd016409a23639e6bf9f74a4589b0b97d45eb539b1a5dada1
|
|
7
|
+
data.tar.gz: ca01e1ed9fe5347598c7fa5d5dd13589aabcdd61c8f1f1308025acb575e3ef5868f97112635a664ba181e5fd6c17afeb5dba4c568420826cc3d79d018ab5d745
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
facy (1.2.
|
|
4
|
+
facy (1.2.11)
|
|
5
5
|
activesupport (~> 4.0)
|
|
6
6
|
bundler (~> 1.5)
|
|
7
7
|
eventmachine (~> 1.0)
|
|
@@ -12,29 +12,31 @@ PATH
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
activesupport (4.
|
|
15
|
+
activesupport (4.1.5)
|
|
16
16
|
i18n (~> 0.6, >= 0.6.9)
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
json (~> 1.7, >= 1.7.7)
|
|
18
|
+
minitest (~> 5.1)
|
|
19
19
|
thread_safe (~> 0.1)
|
|
20
|
-
tzinfo (~>
|
|
20
|
+
tzinfo (~> 1.1)
|
|
21
21
|
addressable (2.3.6)
|
|
22
22
|
eventmachine (1.0.3)
|
|
23
23
|
faraday (0.9.0)
|
|
24
24
|
multipart-post (>= 1.2, < 3)
|
|
25
|
-
i18n (0.6.
|
|
25
|
+
i18n (0.6.11)
|
|
26
|
+
json (1.8.1)
|
|
26
27
|
koala (1.10.0)
|
|
27
28
|
addressable
|
|
28
29
|
faraday
|
|
29
30
|
multi_json
|
|
30
31
|
launchy (2.4.2)
|
|
31
32
|
addressable (~> 2.3)
|
|
32
|
-
minitest (4.
|
|
33
|
+
minitest (5.4.0)
|
|
33
34
|
multi_json (1.10.1)
|
|
34
35
|
multipart-post (2.0.0)
|
|
35
36
|
rmagick (2.13.3)
|
|
36
|
-
thread_safe (0.3.
|
|
37
|
-
tzinfo (
|
|
37
|
+
thread_safe (0.3.4)
|
|
38
|
+
tzinfo (1.2.2)
|
|
39
|
+
thread_safe (~> 0.1)
|
|
38
40
|
|
|
39
41
|
PLATFORMS
|
|
40
42
|
ruby
|
data/README.md
CHANGED
|
@@ -41,3 +41,7 @@ and then refer to the [wiki page](https://github.com/huydx/facy/wiki/Installatio
|
|
|
41
41
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
42
42
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
43
43
|
5. Create new Pull Request
|
|
44
|
+
|
|
45
|
+
## Inspired by
|
|
46
|
+
|
|
47
|
+
- [https://github.com/jugyo/earthquake](https://github.com/jugyo/earthquake)
|
data/lib/facy.rb
CHANGED
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
active_support/dependencies
|
|
11
11
|
).each { |lib| require lib }
|
|
12
12
|
|
|
13
|
-
begin
|
|
14
|
-
require "rmagick"
|
|
15
|
-
rescue LoadError
|
|
16
|
-
begin
|
|
17
|
-
require "RMagick"
|
|
18
|
-
rescue LoadError
|
|
19
|
-
p "can not require rmagick library in this computer"
|
|
20
|
-
exit
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
Thread.abort_on_exception = true
|
|
25
14
|
Encoding.default_external = Encoding.find('UTF-8')
|
|
26
15
|
|
data/lib/facy/command.rb
CHANGED
|
@@ -128,7 +128,13 @@ module Facy
|
|
|
128
128
|
aliasing :view_raw, :vr
|
|
129
129
|
|
|
130
130
|
command :view_img do |post_code|
|
|
131
|
-
|
|
131
|
+
rmagick = false
|
|
132
|
+
begin
|
|
133
|
+
rmagick = true if require "Rmagick"
|
|
134
|
+
rescue
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if config[:enable_img_view] && rmagick
|
|
132
138
|
post_code = "$#{post_code}"
|
|
133
139
|
item = post_code_reverse_map[post_code]
|
|
134
140
|
|
data/lib/facy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: facy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- dxhuy1988
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-09-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -146,9 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
146
|
version: '0'
|
|
147
147
|
requirements: []
|
|
148
148
|
rubyforge_project:
|
|
149
|
-
rubygems_version: 2.
|
|
149
|
+
rubygems_version: 2.0.14
|
|
150
150
|
signing_key:
|
|
151
151
|
specification_version: 4
|
|
152
152
|
summary: 'facy: terminal client for facebook'
|
|
153
153
|
test_files: []
|
|
154
|
-
has_rdoc:
|