gist 4.1.1 → 4.1.2

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/build/gist +1 -1
  4. data/lib/gist.rb +2 -2
  5. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0697ca6de8dfac847072d32aff530c770a62a669
4
- data.tar.gz: fdf8f9e32e6a95fd0a78a6b3cb10e9cdd5f9ab14
3
+ metadata.gz: 92a0831f126fc8c3f043ecf8319945bb71805a16
4
+ data.tar.gz: 40ea64c91f55cde55a7aa333db79fe5a4997774f
5
5
  SHA512:
6
- metadata.gz: 387eacd18655cffa996e0295bcbe940c77cc912ed7acb4c5977fbc88da2addec3f7c80c87d7526a8e831e6d1fc80e4c47563ddb4860b807f79798e2fe4325343
7
- data.tar.gz: 41754cd8989de51b1701bd6c5aaf8dd34ff13a09b9cd1cfdb8641c60071041af123907fa49982027bdda5deb58b23419a1760461c90869682bc1dbe5d8bc6e01
6
+ metadata.gz: 340dc1bbd2368e8d5ed35a8ace4cec235d620c37c478cfaf398596437eeef61c55be3039a7f6df701da433bb7ae57f04be09bfdc8e68ffb3e558c7175568a411
7
+ data.tar.gz: 12cd261396de883da2eabdcdfd0410bc790f95cb9ea459548981e3f90030e5eb489a64c24a7776a79791a1266a10a51595602746f6548b689237ed7f3a5dbfbf
data/README.md CHANGED
@@ -72,11 +72,23 @@ an OAuth2 token (with the "gist" permission).
72
72
  Obtaining OAuth2 access_token from github.
73
73
  GitHub username: ConradIrwin
74
74
  GitHub password:
75
+ 2-factor auth code:
75
76
  Success! https://github.com/settings/applications
76
77
 
78
+ You can read the 2-factor auth code from an sms or the authentification app,
79
+ depending on how you [set your account up](https://github.com/settings/admin).
80
+
81
+ Note: 2-factor authentication
82
+ [just appeared recently](https://github.com/blog/1614-two-factor-authentication),
83
+ so if you run into errors, update the gist gem.
84
+
85
+ gem update gist
86
+
77
87
  This token is stored in `~/.gist` and used for all future gisting. If you need to
78
88
  you can revoke it from https://github.com/settings/applications, or just delete the
79
- file.
89
+ file. If you need to store tokens for both github.com and a Github Enterprise instance
90
+ you can save your Github Enterprise token in `~/.gist.github.example.com` where
91
+ "github.example.com" is the URL for your Github Enterprise instance.
80
92
 
81
93
  ‌After you've done this, you can still upload gists anonymously with `-a`.
82
94
 
data/build/gist CHANGED
@@ -1318,7 +1318,7 @@ module Gist
1318
1318
  # A list of clipboard commands with copy and paste support.
1319
1319
  CLIPBOARD_COMMANDS = {
1320
1320
  'xclip' => 'xclip -o',
1321
- 'xsel' => 'xsel -o',
1321
+ 'xsel -i' => 'xsel -o',
1322
1322
  'pbcopy' => 'pbpaste',
1323
1323
  'putclip' => 'getclip'
1324
1324
  }
@@ -7,12 +7,12 @@ require 'uri'
7
7
  module Gist
8
8
  extend self
9
9
 
10
- VERSION = '4.1.1'
10
+ VERSION = '4.1.2'
11
11
 
12
12
  # A list of clipboard commands with copy and paste support.
13
13
  CLIPBOARD_COMMANDS = {
14
14
  'xclip' => 'xclip -o',
15
- 'xsel' => 'xsel -o',
15
+ 'xsel -i' => 'xsel -o',
16
16
  'pbcopy' => 'pbpaste',
17
17
  'putclip' => 'getclip'
18
18
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gist
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conrad Irwin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-07 00:00:00.000000000 Z
12
+ date: 2013-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -133,3 +133,4 @@ signing_key:
133
133
  specification_version: 4
134
134
  summary: Just allows you to upload gists
135
135
  test_files: []
136
+ has_rdoc: