[Github-comments] [geany-plugins] [GeniusPaste] Rewrite to make pastebins customizable (#338)

Colomban Wendling notifications at xxxxx
Sat Jan 16 22:04:01 UTC 2016


Rewrite the paste logic to use customizable and configurable pastebin services through configuration files, fixing #312.  As a showcase, this PR adds support for http://fpaste.org quite painlessly in a7bf3a73b85aa8b136aa6905c2ec0905d111f76f.

**Disclaimer:** this has not yet been tested under Windows, and I suspect that looking up the path to the system configuration directory holding the pastebin service configurations shipped with the plugin might not work.  This should be tested.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany-plugins/pull/338

-- Commit Summary --

  * geniuspaste: Fix a memory leak
  * geniuspaste: Rewrite to use configurable pastebins
  * geniuspaste: Restore configuration compatibility with previous version
  * geniuspaste: Simplify getting the paste title
  * geniuspaste: Use constants instead of direct string lookup
  * geniuspaste: Show request and response in debug mode
  * geniuspaste: Add fpaste.org support
  * geniuspaste: Remove unused code

-- File Changes --

    M build/geniuspaste.m4 (1)
    M geniuspaste/Makefile.am (2)
    M geniuspaste/README (106)
    A geniuspaste/data/Makefile.am (11)
    A geniuspaste/data/codepad.org.conf (34)
    A geniuspaste/data/dpaste.de.conf (64)
    A geniuspaste/data/fpaste.org.conf (67)
    A geniuspaste/data/pastebin.geany.org.conf (35)
    A geniuspaste/data/sprunge.us.conf (88)
    A geniuspaste/data/tinypaste.com.conf (20)
    M geniuspaste/src/Makefile.am (2)
    M geniuspaste/src/geniuspaste.c (755)

-- Patch Links --

https://github.com/geany/geany-plugins/pull/338.patch
https://github.com/geany/geany-plugins/pull/338.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/338
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160116/74594b87/attachment.html>


More information about the Github-comments mailing list