jist 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/jist.rb +5 -1
  3. metadata +27 -37
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a72ddacd7ab481d2d775531f7ef572c5a8ff987d
4
+ data.tar.gz: 94b15ed80985264b46cc3b7a61cdabb503c76319
5
+ SHA512:
6
+ metadata.gz: 66a5cfb17c462df39f0213a8603bd9378535890cdfe0abb0733dd999ab7da48f5fda5f12f5aec4e0c7005c277babc7501bc925854674e4637e50eb76ef914c86
7
+ data.tar.gz: 0cf856bbb89e19e0bc0cedc9a0c2e332d08fa86fdb3b3240e0bb4e1b259bffaea9eefa6da7a933b493c8eaefdf8ad6f041482e3d381c648be1e573006fb22fde
@@ -7,7 +7,7 @@ require 'uri'
7
7
  module Jist
8
8
  extend self
9
9
 
10
- VERSION = '1.5.0'
10
+ VERSION = '1.5.1'
11
11
 
12
12
  # A list of clipboard commands with copy and paste support.
13
13
  CLIPBOARD_COMMANDS = {
@@ -25,6 +25,8 @@ module Jist
25
25
 
26
26
  URL_ENV_NAME = "GITHUB_URL"
27
27
 
28
+ USER_AGENT = "jist/#{VERSION} (Net::HTTP, #{RUBY_DESCRIPTION})"
29
+
28
30
  # Exception tag for errors raised while gisting.
29
31
  module Error;
30
32
  def self.exception(*args)
@@ -199,6 +201,8 @@ module Jist
199
201
  # @param [Net::HTTPRequest] The request to make
200
202
  # @return [Net::HTTPResponse]
201
203
  def http(url, request)
204
+ request['User-Agent'] = USER_AGENT
205
+
202
206
  http_connection(url).start do |http|
203
207
  http.request request
204
208
  end
metadata CHANGED
@@ -1,80 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
5
- prerelease:
4
+ version: 1.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Conrad Irwin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-12 00:00:00.000000000 Z
11
+ date: 2013-04-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- type: :runtime
14
+ name: json
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - ! '>='
17
+ - - '>='
19
18
  - !ruby/object:Gem::Version
20
19
  version: '0'
21
- none: false
20
+ type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- none: false
28
- prerelease: false
29
- name: json
30
27
  - !ruby/object:Gem::Dependency
31
- type: :development
28
+ name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
30
  requirements:
34
- - - ! '>='
31
+ - - '>='
35
32
  - !ruby/object:Gem::Version
36
33
  version: '0'
37
- none: false
34
+ type: :development
35
+ prerelease: false
38
36
  version_requirements: !ruby/object:Gem::Requirement
39
37
  requirements:
40
- - - ! '>='
38
+ - - '>='
41
39
  - !ruby/object:Gem::Version
42
40
  version: '0'
43
- none: false
44
- prerelease: false
45
- name: rake
46
41
  - !ruby/object:Gem::Dependency
47
- type: :development
42
+ name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - ! '>='
45
+ - - '>='
51
46
  - !ruby/object:Gem::Version
52
47
  version: '0'
53
- none: false
48
+ type: :development
49
+ prerelease: false
54
50
  version_requirements: !ruby/object:Gem::Requirement
55
51
  requirements:
56
- - - ! '>='
52
+ - - '>='
57
53
  - !ruby/object:Gem::Version
58
54
  version: '0'
59
- none: false
60
- prerelease: false
61
- name: rspec
62
55
  - !ruby/object:Gem::Dependency
63
- type: :development
56
+ name: webmock
64
57
  requirement: !ruby/object:Gem::Requirement
65
58
  requirements:
66
- - - ! '>='
59
+ - - '>='
67
60
  - !ruby/object:Gem::Version
68
61
  version: '0'
69
- none: false
62
+ type: :development
63
+ prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
- - - ! '>='
66
+ - - '>='
73
67
  - !ruby/object:Gem::Version
74
68
  version: '0'
75
- none: false
76
- prerelease: false
77
- name: webmock
78
69
  description: Provides a single function (Jist.gist) that uploads a gist.
79
70
  email: conrad.irwin@gmail.com
80
71
  executables:
@@ -99,27 +90,26 @@ files:
99
90
  homepage: https://github.com/ConradIrwin/jist
100
91
  licenses:
101
92
  - MIT
93
+ metadata: {}
102
94
  post_install_message:
103
95
  rdoc_options: []
104
96
  require_paths:
105
97
  - lib
106
98
  required_ruby_version: !ruby/object:Gem::Requirement
107
99
  requirements:
108
- - - ! '>='
100
+ - - '>='
109
101
  - !ruby/object:Gem::Version
110
102
  version: '0'
111
- none: false
112
103
  required_rubygems_version: !ruby/object:Gem::Requirement
113
104
  requirements:
114
- - - ! '>='
105
+ - - '>='
115
106
  - !ruby/object:Gem::Version
116
107
  version: '0'
117
- none: false
118
108
  requirements: []
119
109
  rubyforge_project:
120
- rubygems_version: 1.8.25
110
+ rubygems_version: 2.0.0
121
111
  signing_key:
122
- specification_version: 3
112
+ specification_version: 4
123
113
  summary: Just allows you to upload gists
124
114
  test_files: []
125
115
  has_rdoc: