gist 4.1.2 → 4.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/build/gist +8 -3
  2. data/gist.gemspec +0 -1
  3. data/lib/gist.rb +7 -2
  4. metadata +94 -88
  5. checksums.yaml +0 -7
data/build/gist CHANGED
@@ -3,7 +3,10 @@
3
3
  # any changes will be overwritten.
4
4
  require 'net/https'
5
5
  require 'cgi'
6
- require 'strscan'
6
+ require 'uri'
7
+
8
+ begin
9
+ require 'strscan'
7
10
 
8
11
  module JSON
9
12
  module Pure
@@ -1307,13 +1310,15 @@ end
1307
1310
 
1308
1311
  JSON.generator = JSON::Pure::Generator
1309
1312
  JSON.parser = JSON::Pure::Parser
1310
- require 'uri'
1313
+ rescue LoadError
1314
+ require File.join File.dirname(File.dirname(__FILE__)), 'vendor', 'json.rb'
1315
+ end
1311
1316
 
1312
1317
  # It just gists.
1313
1318
  module Gist
1314
1319
  extend self
1315
1320
 
1316
- VERSION = '4.1.1'
1321
+ VERSION = '4.1.2'
1317
1322
 
1318
1323
  # A list of clipboard commands with copy and paste support.
1319
1324
  CLIPBOARD_COMMANDS = {
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.executables << 'gist'
16
16
 
17
- s.add_dependency 'json'
18
17
  %w(rake rspec webmock ronn).each do |gem|
19
18
  s.add_development_dependency gem
20
19
  end
@@ -1,13 +1,18 @@
1
1
  require 'net/https'
2
2
  require 'cgi'
3
- require 'json'
4
3
  require 'uri'
5
4
 
5
+ begin
6
+ require 'json'
7
+ rescue LoadError
8
+ require File.join File.dirname(File.dirname(__FILE__)), 'vendor', 'json.rb'
9
+ end
10
+
6
11
  # It just gists.
7
12
  module Gist
8
13
  extend self
9
14
 
10
- VERSION = '4.1.2'
15
+ VERSION = '4.1.3'
11
16
 
12
17
  # A list of clipboard commands with copy and paste support.
13
18
  CLIPBOARD_COMMANDS = {
metadata CHANGED
@@ -1,95 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gist
3
- version: !ruby/object:Gem::Version
4
- version: 4.1.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 61
5
+ prerelease:
6
+ segments:
7
+ - 4
8
+ - 1
9
+ - 3
10
+ version: 4.1.3
5
11
  platform: ruby
6
- authors:
12
+ authors:
7
13
  - Conrad Irwin
8
- - ☈king
14
+ - !binary |
15
+ 4piIa2luZw==
16
+
9
17
  autorequire:
10
18
  bindir: bin
11
19
  cert_chain: []
12
- date: 2013-11-03 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: json
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - '>='
26
- - !ruby/object:Gem::Version
27
- version: '0'
28
- - !ruby/object:Gem::Dependency
20
+
21
+ date: 2013-11-10 00:00:00 Z
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
29
24
  name: rake
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - '>='
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
36
25
  prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - '>='
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: rspec
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 3
32
+ segments:
33
+ - 0
34
+ version: "0"
49
35
  type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
50
39
  prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: webmock
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
63
49
  type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: webmock
64
53
  prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: ronn
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
77
63
  type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: ronn
78
67
  prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - '>='
82
- - !ruby/object:Gem::Version
83
- version: '0'
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ type: :development
78
+ version_requirements: *id004
84
79
  description: Provides a single function (Gist.gist) that uploads a gist.
85
- email:
80
+ email:
86
81
  - conrad.irwin@gmail.com
87
82
  - rkingist@sharpsaw.org
88
- executables:
83
+ executables:
89
84
  - gist
90
85
  extensions: []
86
+
91
87
  extra_rdoc_files: []
92
- files:
88
+
89
+ files:
93
90
  - .gitignore
94
91
  - .rspec
95
92
  - Gemfile
@@ -109,28 +106,37 @@ files:
109
106
  - spec/spec_helper.rb
110
107
  - vendor/json.rb
111
108
  homepage: https://github.com/defunkt/gist
112
- licenses:
109
+ licenses:
113
110
  - MIT
114
- metadata: {}
115
111
  post_install_message:
116
112
  rdoc_options: []
117
- require_paths:
113
+
114
+ require_paths:
118
115
  - lib
119
- required_ruby_version: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - '>='
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- required_rubygems_version: !ruby/object:Gem::Requirement
125
- requirements:
126
- - - '>='
127
- - !ruby/object:Gem::Version
128
- version: '0'
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ hash: 3
122
+ segments:
123
+ - 0
124
+ version: "0"
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ hash: 3
131
+ segments:
132
+ - 0
133
+ version: "0"
129
134
  requirements: []
135
+
130
136
  rubyforge_project:
131
- rubygems_version: 2.0.3
137
+ rubygems_version: 1.8.15
132
138
  signing_key:
133
- specification_version: 4
139
+ specification_version: 3
134
140
  summary: Just allows you to upload gists
135
141
  test_files: []
136
- has_rdoc:
142
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 92a0831f126fc8c3f043ecf8319945bb71805a16
4
- data.tar.gz: 40ea64c91f55cde55a7aa333db79fe5a4997774f
5
- SHA512:
6
- metadata.gz: 340dc1bbd2368e8d5ed35a8ace4cec235d620c37c478cfaf398596437eeef61c55be3039a7f6df701da433bb7ae57f04be09bfdc8e68ffb3e558c7175568a411
7
- data.tar.gz: 12cd261396de883da2eabdcdfd0410bc790f95cb9ea459548981e3f90030e5eb489a64c24a7776a79791a1266a10a51595602746f6548b689237ed7f3a5dbfbf