pastee 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c0fb66222be42d37c56ff23c5cb0ef270be2e98
4
- data.tar.gz: a34e1eba3d28480947248bac0491501982e4d256
3
+ metadata.gz: d164997a375bfd60a6698114db2a0547d0951267
4
+ data.tar.gz: fef86edce24782efeabf6b2bfc3c907f42303180
5
5
  SHA512:
6
- metadata.gz: 0c266a9bffcdd288f6654ab3661b81461cbe5474ce0bbc38f5f90386829da632021df98cecae7c1f7743bb5b18948348dd2709aaf1b9724ac257512fdba8c44b
7
- data.tar.gz: 91e533657e34283e5305e5d0317eec4daa588b214328fb29df9b1d0c879fa71ac0adfe1d2d6f23c95b8c854381f09094f23e9062a5f137618d08845a724c497b
6
+ metadata.gz: 7c3817ca55d94e005b5afbb28f78ab6ee6fc9e65262586162ebee872d5854445a528f10739322ad3eee4b0ad089ec4719d7694625991115fa45af47be5f1e40c
7
+ data.tar.gz: 32cafe23743ef1d2f54ee9f4e0e240050017133365228d72b2f83dfd0f79a7dd6f225152664686db3ace5480e72c31454fb7edb265a7bbe4d47dcf574f466484
@@ -1,4 +1,12 @@
1
1
  # Changelog
2
+ ## Version 2
3
+ ### Version 2.0.1
4
+ * Don't print the response when submitting pastes.
5
+ * Update to Ruby 2.3 and HTTPClient 2.7
6
+
7
+ ### Version 2.0.0
8
+ * Add support for beta API.
9
+
2
10
  ## Version 1
3
11
  ### Version 1.0.0
4
12
  * Initial release. Features include submitting pastes, and proper error reporting.
@@ -35,7 +35,6 @@ class Pastee
35
35
  params[:language] = language unless language.nil?
36
36
  response = @client.post(uri, params)
37
37
  json = JSON.parse(response.body)
38
- p json
39
38
  if json['status'] == 'error'
40
39
  throw_error(json['error'])
41
40
  else
@@ -8,7 +8,7 @@ require_relative 'syntax'
8
8
  # @author Eli Clemente Gordillo Foster
9
9
  # @since 2.0.0
10
10
  class PasteeBeta
11
- URL = 'https://api.beta.paste.ee'
11
+ URL = 'https://api.beta.paste.ee'.freeze
12
12
 
13
13
  # Initializes the PasteeBeta instance.
14
14
  # @author Eli Clemente Gordillo Foster
@@ -52,7 +52,7 @@ class PasteeBeta
52
52
  ]
53
53
  }
54
54
  params[:encrypted] = encrypted ? 1 : 0
55
- json = post('pastes', params)
55
+ json = post('pastes'.freeze, params)
56
56
  json['id']
57
57
  end
58
58
 
@@ -2,421 +2,421 @@ class PasteeBeta
2
2
  module Constants
3
3
  module Syntax
4
4
  # 1C
5
- ONEC = '1c'
5
+ ONEC = '1c'.freeze
6
6
 
7
7
  # Access log
8
- ACCESS_LOG = 'accesslog'
8
+ ACCESS_LOG = 'accesslog'.freeze
9
9
 
10
10
  # Apache
11
- APACHE = 'apache'
11
+ APACHE = 'apache'.freeze
12
12
 
13
13
  # AppleScript
14
- APPLESCRIPT = 'applescript'
14
+ APPLESCRIPT = 'applescript'.freeze
15
15
 
16
16
  # ARM Assembly
17
- ARM_ASSEMBLY = 'armasm'
17
+ ARM_ASSEMBLY = 'armasm'.freeze
18
18
 
19
19
  # AsciiDoc
20
- ASCIIDOC = 'asciidoc'
20
+ ASCIIDOC = 'asciidoc'.freeze
21
21
 
22
22
  # AspectJ
23
- ASPECTJ = 'aspectj'
23
+ ASPECTJ = 'aspectj'.freeze
24
24
 
25
25
  # Auto Detect
26
- AUTODETECT = 'autodetect'
26
+ AUTODETECT = 'autodetect'.freeze
27
27
 
28
28
  # AutoHotkey
29
- AUTOHOTKEY = 'autohotkey'
29
+ AUTOHOTKEY = 'autohotkey'.freeze
30
30
 
31
31
  # AutoIt
32
- AUTOIT = 'autoit'
32
+ AUTOIT = 'autoit'.freeze
33
33
 
34
34
  # AVR Assembler
35
- AVRASM = 'avrasm'
35
+ AVRASM = 'avrasm'.freeze
36
36
 
37
37
  # Axapta
38
- AXAPTA = 'axapta'
38
+ AXAPTA = 'axapta'.freeze
39
39
 
40
40
  # Bash
41
- BASH = 'bash'
41
+ BASH = 'bash'.freeze
42
42
 
43
43
  # Brainfuck
44
- BRAINFUCK = 'brainfuck'
44
+ BRAINFUCK = 'brainfuck'.freeze
45
45
 
46
46
  # C#
47
- CSHARP = 'cs'
47
+ CSHARP = 'cs'.freeze
48
48
 
49
49
  # C++
50
- CPLUSPLUS = 'cpp'
50
+ CPLUSPLUS = 'cpp'.freeze
51
51
 
52
52
  # C/AL
53
- CAL = 'cal'
53
+ CAL = 'cal'.freeze
54
54
 
55
55
  # Cap'n Proto
56
- CAPNPROTO = 'capnproto'
56
+ CAPNPROTO = 'capnproto'.freeze
57
57
 
58
58
  # Ceylon
59
- CEYLON = 'ceylon'
59
+ CEYLON = 'ceylon'.freeze
60
60
 
61
61
  # Clojure
62
- CLOJURE = 'clojure'
62
+ CLOJURE = 'clojure'.freeze
63
63
 
64
64
  # Clojure REPL
65
- CLOJURE_REPL = 'clojure-repl'
65
+ CLOJURE_REPL = 'clojure-repl'.freeze
66
66
 
67
67
  # CMake
68
- CMAKE = 'cmake'
68
+ CMAKE = 'cmake'.freeze
69
69
 
70
70
  # CoffeeScript
71
- COFFEESCRIPT = 'coffeescript'
71
+ COFFEESCRIPT = 'coffeescript'.freeze
72
72
 
73
73
  # crmsh
74
- CRMSH = 'crmsh'
74
+ CRMSH = 'crmsh'.freeze
75
75
 
76
76
  # Crystal
77
- CRYSTAL = 'crystal'
77
+ CRYSTAL = 'crystal'.freeze
78
78
 
79
79
  # CSS
80
- CSS = 'css'
80
+ CSS = 'css'.freeze
81
81
 
82
82
  # D
83
- D = 'd'
83
+ D = 'd'.freeze
84
84
 
85
85
  # Dart
86
- DART = 'dart'
86
+ DART = 'dart'.freeze
87
87
 
88
88
  # Delphi
89
- DELPHI = 'delphi'
89
+ DELPHI = 'delphi'.freeze
90
90
 
91
91
  # Diff
92
- DIFF = 'diff'
92
+ DIFF = 'diff'.freeze
93
93
 
94
94
  # Django
95
- DJANGO = 'django'
95
+ DJANGO = 'django'.freeze
96
96
 
97
97
  # DNS Zone file
98
- DNS = 'dns'
98
+ DNS = 'dns'.freeze
99
99
 
100
100
  # Dockerfile
101
- DOCKERFILE = 'dockerfile'
101
+ DOCKERFILE = 'dockerfile'.freeze
102
102
 
103
103
  # DOS .bat
104
- DOSBAT = 'dos'
104
+ DOSBAT = 'dos'.freeze
105
105
 
106
106
  # Dust
107
- DUST = 'dust'
107
+ DUST = 'dust'.freeze
108
108
 
109
109
  # Elixir
110
- ELIXIR = 'elixir'
110
+ ELIXIR = 'elixir'.freeze
111
111
 
112
112
  # Elm
113
- ELM = 'elm'
113
+ ELM = 'elm'.freeze
114
114
 
115
115
  # ERB (Embedded Ruby)
116
- ERB = 'erb'
116
+ ERB = 'erb'.freeze
117
117
 
118
118
  # Erlang
119
- ERLANG = 'erlang'
119
+ ERLANG = 'erlang'.freeze
120
120
 
121
121
  # Erlang REPL
122
- ERLANG_REPL = 'erlang-repl'
122
+ ERLANG_REPL = 'erlang-repl'.freeze
123
123
 
124
124
  # F#
125
- FSHARP = 'fsharp'
125
+ FSHARP = 'fsharp'.freeze
126
126
 
127
127
  # FIX
128
- FIX = 'fix'
128
+ FIX = 'fix'.freeze
129
129
 
130
130
  # Fortran
131
- FORTRAN = 'fortran'
131
+ FORTRAN = 'fortran'.freeze
132
132
 
133
133
  # GAMS
134
- GAMS = 'gams'
134
+ GAMS = 'gams'.freeze
135
135
 
136
136
  # G-Code (ISO 6983)
137
- GCODE = 'gcode'
137
+ GCODE = 'gcode'.freeze
138
138
 
139
139
  # Gherkin
140
- GHERKIN = 'gherkin'
140
+ GHERKIN = 'gherkin'.freeze
141
141
 
142
142
  # GLSL
143
- GLSL = 'glsl'
143
+ GLSL = 'glsl'.freeze
144
144
 
145
145
  # Go
146
- GO = 'go'
146
+ GO = 'go'.freeze
147
147
 
148
148
  # Golo
149
- GOLO = 'golo'
149
+ GOLO = 'golo'.freeze
150
150
 
151
151
  # Gradle
152
- GRADLE = 'gradle'
152
+ GRADLE = 'gradle'.freeze
153
153
 
154
154
  # Groovy
155
- GROOVY = 'groovy'
155
+ GROOVY = 'groovy'.freeze
156
156
 
157
157
  # Haml
158
- HAML = 'haml'
158
+ HAML = 'haml'.freeze
159
159
 
160
160
  # Handlebars
161
- HANDLEBARS = 'handlebars'
161
+ HANDLEBARS = 'handlebars'.freeze
162
162
 
163
163
  # Haskell
164
- HASKELL = 'haskell'
164
+ HASKELL = 'haskell'.freeze
165
165
 
166
166
  # Haxe
167
- HAXE = 'haxe'
167
+ HAXE = 'haxe'.freeze
168
168
 
169
169
  # HTML, XML
170
- XML = 'xml'
170
+ XML = 'xml'.freeze
171
171
 
172
172
  # HTTP
173
- HTTP = 'http'
173
+ HTTP = 'http'.freeze
174
174
 
175
175
  # Inform 7
176
- INFORM7 = 'inform7'
176
+ INFORM7 = 'inform7'.freeze
177
177
 
178
178
  # Ini
179
- INI = 'ini'
179
+ INI = 'ini'.freeze
180
180
 
181
181
  # Intel x86 Assembly
182
- INTEL_X86_ASSEMBLY = 'x86asm'
182
+ INTEL_X86_ASSEMBLY = 'x86asm'.freeze
183
183
 
184
184
  # IRPF90
185
- IRPF90 = 'irpf90'
185
+ IRPF90 = 'irpf90'.freeze
186
186
 
187
187
  # Java
188
- JAVA = 'java'
188
+ JAVA = 'java'.freeze
189
189
 
190
190
  # JavaScript
191
- JAVASCRIPT = 'javascript'
191
+ JAVASCRIPT = 'javascript'.freeze
192
192
 
193
193
  # JSON
194
- JSON = 'json'
194
+ JSON = 'json'.freeze
195
195
 
196
196
  # Julia
197
- JULIA = 'julia'
197
+ JULIA = 'julia'.freeze
198
198
 
199
199
  # Kotlin
200
- KOTLIN = 'kotlin'
200
+ KOTLIN = 'kotlin'.freeze
201
201
 
202
202
  # Lasso
203
- LASSO = 'lasso'
203
+ LASSO = 'lasso'.freeze
204
204
 
205
205
  # Less
206
- LESS = 'less'
206
+ LESS = 'less'.freeze
207
207
 
208
208
  # Lisp
209
- LISP = 'lisp'
209
+ LISP = 'lisp'.freeze
210
210
 
211
211
  # LiveCode
212
- LIVECODE = 'livecodeserver'
212
+ LIVECODE = 'livecodeserver'.freeze
213
213
 
214
214
  # LiveScript
215
- LIVESCRIPT = 'livescript'
215
+ LIVESCRIPT = 'livescript'.freeze
216
216
 
217
217
  # Lua
218
- LUA = 'lua'
218
+ LUA = 'lua'.freeze
219
219
 
220
220
  # Makefile
221
- MAKEFILE = 'makefile'
221
+ MAKEFILE = 'makefile'.freeze
222
222
 
223
223
  # Markdown
224
- MARKDOWN = 'markdown'
224
+ MARKDOWN = 'markdown'.freeze
225
225
 
226
226
  # Mathematica
227
- MATHEMATICA = 'mathematica'
227
+ MATHEMATICA = 'mathematica'.freeze
228
228
 
229
229
  # Matlab
230
- MATLAB = 'matlab'
230
+ MATLAB = 'matlab'.freeze
231
231
 
232
232
  # MEL
233
- MEL = 'mel'
233
+ MEL = 'mel'.freeze
234
234
 
235
235
  # Mercury
236
- MERCURY = 'mercury'
236
+ MERCURY = 'mercury'.freeze
237
237
 
238
238
  # Mizar
239
- MIZAR = 'mizar'
239
+ MIZAR = 'mizar'.freeze
240
240
 
241
241
  # Mojolicious
242
- MOJO = 'mojolicious'
242
+ MOJO = 'mojolicious'.freeze
243
243
 
244
244
  # Monkey
245
- MONKEY = 'monkey'
245
+ MONKEY = 'monkey'.freeze
246
246
 
247
247
  # Nginx
248
- NGINX = 'nginx'
248
+ NGINX = 'nginx'.freeze
249
249
 
250
250
  # Nimrod
251
- NIMROD = 'nimrod'
251
+ NIMROD = 'nimrod'.freeze
252
252
 
253
253
  # Nix
254
- NIX = 'nix'
254
+ NIX = 'nix'.freeze
255
255
 
256
256
  # NSIS
257
- NSIS = 'nsis'
257
+ NSIS = 'nsis'.freeze
258
258
 
259
259
  # Objective C
260
- OBJECTIVE_C = 'objectivec'
260
+ OBJECTIVE_C = 'objectivec'.freeze
261
261
 
262
262
  # OCaml
263
- OCAML = 'ocaml'
263
+ OCAML = 'ocaml'.freeze
264
264
 
265
265
  # OpenSCAD
266
- OPENSCAD = 'openscad'
266
+ OPENSCAD = 'openscad'.freeze
267
267
 
268
268
  # Oracle Rules Language
269
- ORACLE_RULES = 'ruleslanguage'
269
+ ORACLE_RULES = 'ruleslanguage'.freeze
270
270
 
271
271
  # Oxygene
272
- OXYGENE = 'oxygene'
272
+ OXYGENE = 'oxygene'.freeze
273
273
 
274
274
  # Parser3
275
- PARSER3 = 'parser3'
275
+ PARSER3 = 'parser3'.freeze
276
276
 
277
277
  # Perl
278
- PERL = 'perl'
278
+ PERL = 'perl'.freeze
279
279
 
280
280
  # pf
281
- PF = 'pf'
281
+ PF = 'pf'.freeze
282
282
 
283
283
  # PHP
284
- PHP = 'php'
284
+ PHP = 'php'.freeze
285
285
 
286
286
  # PowerShell
287
- POWERSHELL = 'powershell'
287
+ POWERSHELL = 'powershell'.freeze
288
288
 
289
289
  # Processing
290
- PROCESSING = 'processing'
290
+ PROCESSING = 'processing'.freeze
291
291
 
292
292
  # Prolog
293
- PROLOG = 'prolog'
293
+ PROLOG = 'prolog'.freeze
294
294
 
295
295
  # Protocol Buffers
296
- PROTOCOL_BUFFERS = 'protobuf'
296
+ PROTOCOL_BUFFERS = 'protobuf'.freeze
297
297
 
298
298
  # Puppet
299
- PUPPET = 'puppet'
299
+ PUPPET = 'puppet'.freeze
300
300
 
301
301
  # Python
302
- PYTHON = 'python'
302
+ PYTHON = 'python'.freeze
303
303
 
304
304
  # Python profile
305
- PYTHON_PROFILE = 'profile'
305
+ PYTHON_PROFILE = 'profile'.freeze
306
306
 
307
307
  # Q
308
- Q = 'q'
308
+ Q = 'q'.freeze
309
309
 
310
310
  # R
311
- R = 'r'
311
+ R = 'r'.freeze
312
312
 
313
313
  # RenderMan RIB
314
- RENDERMAN_RIB = 'rib'
314
+ RENDERMAN_RIB = 'rib'.freeze
315
315
 
316
316
  # RenderMan RSL
317
- RENDERMAN_RSL = 'rsl'
317
+ RENDERMAN_RSL = 'rsl'.freeze
318
318
 
319
319
  # Roboconf
320
- ROBOCONF = 'roboconf'
320
+ ROBOCONF = 'roboconf'.freeze
321
321
 
322
322
  # Ruby
323
- RUBY = 'ruby'
323
+ RUBY = 'ruby'.freeze
324
324
 
325
325
  # Rust
326
- RUST = 'rust'
326
+ RUST = 'rust'.freeze
327
327
 
328
328
  # Scala
329
- SCALA = 'scala'
329
+ SCALA = 'scala'.freeze
330
330
 
331
331
  # Scheme
332
- SCHEME = 'scheme'
332
+ SCHEME = 'scheme'.freeze
333
333
 
334
334
  # Scilab
335
- SCILAB = 'scilab'
335
+ SCILAB = 'scilab'.freeze
336
336
 
337
337
  # SCSS
338
- SCSS = 'scss'
338
+ SCSS = 'scss'.freeze
339
339
 
340
340
  # Smali
341
- SMALI = 'smali'
341
+ SMALI = 'smali'.freeze
342
342
 
343
343
  # Smalltalk
344
- SMALLTALK = 'smalltalk'
344
+ SMALLTALK = 'smalltalk'.freeze
345
345
 
346
346
  # SML
347
- SML = 'sml'
347
+ SML = 'sml'.freeze
348
348
 
349
349
  # SQF
350
- SQF = 'sqf'
350
+ SQF = 'sqf'.freeze
351
351
 
352
352
  # SQL
353
- SQL = 'sql'
353
+ SQL = 'sql'.freeze
354
354
 
355
355
  # Stata
356
- STATA = 'stata'
356
+ STATA = 'stata'.freeze
357
357
 
358
358
  # STEP Part 21 (ISO 10303-21)
359
- STEP = 'step21'
359
+ STEP = 'step21'.freeze
360
360
 
361
361
  # Stylus
362
- STYLUS = 'stylus'
362
+ STYLUS = 'stylus'.freeze
363
363
 
364
364
  # Swift
365
- SWIFT = 'swift'
365
+ SWIFT = 'swift'.freeze
366
366
 
367
367
  # Tcl
368
- TCL = 'tcl'
368
+ TCL = 'tcl'.freeze
369
369
 
370
370
  # TeX
371
- TEX = 'tex'
371
+ TEX = 'tex'.freeze
372
372
 
373
373
  # Text
374
- TEXT = 'text'
374
+ TEXT = 'text'.freeze
375
375
 
376
376
  # Thrift
377
- THRIFT = 'thrift'
377
+ THRIFT = 'thrift'.freeze
378
378
 
379
379
  # TP
380
- TP = 'tp'
380
+ TP = 'tp'.freeze
381
381
 
382
382
  # Twig
383
- TWIG = 'twig'
383
+ TWIG = 'twig'.freeze
384
384
 
385
385
  # TypeScript
386
- TYPESCRIPT = 'typescript'
386
+ TYPESCRIPT = 'typescript'.freeze
387
387
 
388
388
  # Vala
389
- VALA = 'vala'
389
+ VALA = 'vala'.freeze
390
390
 
391
391
  # VB.NET
392
- VB = 'vbnet'
392
+ VB = 'vbnet'.freeze
393
393
 
394
394
  # VBScript
395
- VBSCRIPT = 'vbscript'
395
+ VBSCRIPT = 'vbscript'.freeze
396
396
 
397
397
  # VBScript in HTML
398
- VBSCRIPT_HTML = 'vbscript-html'
398
+ VBSCRIPT_HTML = 'vbscript-html'.freeze
399
399
 
400
400
  # Verilog
401
- VERILOG = 'verilog'
401
+ VERILOG = 'verilog'.freeze
402
402
 
403
403
  # VHDL
404
- VHDL = 'vhdl'
404
+ VHDL = 'vhdl'.freeze
405
405
 
406
406
  # Vim Script
407
- VIM = 'vim'
407
+ VIM = 'vim'.freeze
408
408
 
409
409
  # XL
410
- XL = 'xl'
410
+ XL = 'xl'.freeze
411
411
 
412
412
  # XQuery
413
- XQUERY = 'xquery'
413
+ XQUERY = 'xquery'.freeze
414
414
 
415
415
  # YAML
416
- YAML = 'yaml'
416
+ YAML = 'yaml'.freeze
417
417
 
418
418
  # Zephir
419
- ZEPHIR = 'zephir'
419
+ ZEPHIR = 'zephir'.freeze
420
420
  end
421
421
  end
422
422
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pastee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Foster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2016-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -16,16 +16,16 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.6.0.1
19
+ version: 2.7.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.6.0.1
26
+ version: 2.7.1
27
27
  description: Accessing the paste.ee simply through Ruby. Has full support for all
28
- of their custom errors. As of 2.0.0, it also supports the beta API.
28
+ of their custom errors.
29
29
  email: elifosterwy@gmail.com
30
30
  executables: []
31
31
  extensions: []
@@ -56,9 +56,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.4.5.1
59
+ rubygems_version: 2.5.1
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: A simple interface to the paste.ee API
63
63
  test_files: []
64
- has_rdoc: