facebook-cli 1.5.0 → 1.5.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fbcli.rb +21 -8
  3. data/lib/fbcli/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e47520322957827ab66194802d5fe1fd313ab10f
4
- data.tar.gz: c63975e1c13c770185dbabaa0ccb2378279f4eab
3
+ metadata.gz: b4545be7f2d09e94c5e799f08a54b6cb453da010
4
+ data.tar.gz: 148791b88d70284e2a8e15e65216e4697749e8c2
5
5
  SHA512:
6
- metadata.gz: 4b623e4152455148443b38be3559741abb35a1bea9dd96af0dc91f3b7ce3a96642bc64c25a53b6b3b39fd9c4dc1fa6121477f3c53488be84c3a4dae515340ed8
7
- data.tar.gz: 02c77fff8f919e8ab1b00acdb0c2fefeb5f6f17f3057691aa2030670b3d549950ffd59af2b09aa6483f6ed6f3e5fd34d189e5871f5b08a98657bc5898f4befb3
6
+ metadata.gz: 0dc07031e8983d5b2ef4ab9d09a4ebf79fbcd755185c4343537c606ebe1574f2c4618866e6592a17b917b4292165427d0803f16ac3e989fa9e02e7b225bc9ca9
7
+ data.tar.gz: ee21dcdef2fd18e9097972af9e5f96ef295bf7ab2c188bb3937593d3b7fbdad860b324aa7b92664a3f0cd0999c827db67e670ba5ff2fd0686af92efbb01e7331
data/lib/fbcli.rb CHANGED
@@ -44,8 +44,8 @@ end
44
44
  pre do |global_options, command|
45
45
  $global_options = global_options # They're supposed to be global, right?
46
46
 
47
- # Do not print stack trace when terminating due to a broken pipe
48
- Signal.trap "SIGPIPE", "SYSTEM_DEFAULT"
47
+ # Exit gracefully when terminating due to a broken pipe
48
+ Signal.trap "PIPE", "SYSTEM_DEFAULT" if Signal.list.include? "PIPE"
49
49
 
50
50
  if command.name == :config
51
51
  $config = {}
@@ -56,13 +56,20 @@ pre do |global_options, command|
56
56
  exit_now! <<-EOM
57
57
  It looks like you are running #{APP_NAME} for the first time.
58
58
 
59
- The following steps are necessary to use the Facebook API:
59
+ To interact with the Facebook API you must create and configure
60
+ a new Facebook application for your personal use.
60
61
 
61
62
  - Create a new application at: https://developers.facebook.com/apps
62
- - In the Settings tab, set "Site URL" to "http://localhost" and
63
- then under "App Domains" add "localhost", and click "Save"
64
- - In the "App Review" tab, flip the switch to make your app live.
65
- - Save the App ID and App Secret by running:
63
+ - In the Settings tab:
64
+ - Click "Add Platform" and select "Website"
65
+ - Set "Site URL" to "http://localhost"
66
+ - Under "App Domains" add "localhost"
67
+ - Click "Save"
68
+ - In the "App Review" tab:
69
+ - Flip the switch to make your app live
70
+ - In the "Dashboard" tab:
71
+ - Click "Show" to reveal your app secret
72
+ - Save the App ID and App Secret by running:
66
73
 
67
74
  #{APP_NAME} config --appid=<app-id> --appsecret=<app-secret>
68
75
 
@@ -234,10 +241,16 @@ command :links do |c|
234
241
  puts
235
242
  puts "Edit a video"
236
243
  puts " https://www.facebook.com/video/edit/?v=VIDEO_ID"
244
+ puts
245
+ puts "Graph API explorer"
246
+ puts " https://developers.facebook.com/tools/explorer/"
247
+ puts
248
+ puts "Sharing debugger"
249
+ puts " https://developers.facebook.com/tools/debug/"
237
250
  end
238
251
  end
239
252
 
240
- desc "Post a message or image to your timeline"
253
+ desc "Post a message or image to a page, a group or your timeline"
241
254
  arg_name "message"
242
255
  long_desc %(
243
256
  Facebook advises: photos should be less than 4 MB and saved as JPG, PNG, GIF or TIFF files.
data/lib/fbcli/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FBCLI
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ildar Sagdejev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-01 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: koala
@@ -80,7 +80,7 @@ files:
80
80
  - lib/fbcli/version.rb
81
81
  homepage: https://github.com/specious/facebook-cli
82
82
  licenses:
83
- - MIT
83
+ - ISC
84
84
  metadata: {}
85
85
  post_install_message:
86
86
  rdoc_options: []
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.6.6
101
+ rubygems_version: 2.6.11
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Facebook command line utility