From 53c96917a94358ab7010a0687837bc53b04df036 Mon Sep 17 00:00:00 2001 From: dickmao Date: Mon, 14 Oct 2024 17:30:53 -0400 Subject: [PATCH] gitawonk --- .github/workflows/test.yml | 120 ++ .gitignore | 13 + Cask | 12 + LICENSE | 674 ++++++++++ Makefile | 117 ++ README.in.rst | 71 + README.rst | 70 + features/rpc.feature | 16 + .../step-definitions/nndiscourse-steps.el | 79 ++ features/support/env.el | 114 ++ nndiscourse.el | 1181 +++++++++++++++++ nndiscourse/.gitignore | 10 + nndiscourse/.rubocop.yml | 13 + nndiscourse/.ruby-version | 1 + nndiscourse/Gemfile | 9 + nndiscourse/Gemfile.lock | 98 ++ nndiscourse/Makefile | 11 + nndiscourse/README.md | 39 + nndiscourse/Rakefile | 16 + nndiscourse/lib/nndiscourse.rb | 35 + nndiscourse/lib/nndiscourse/version.rb | 5 + nndiscourse/nndiscourse.gemspec | 27 + nndiscourse/nndiscourse.thor | 13 + nndiscourse/spec/nndiscourse_spec.rb | 13 + nndiscourse/spec/spec_helper.rb | 16 + scratch.el | 576 ++++++++ screenshot.png | Bin 0 -> 79292 bytes tests/nndiscourse-test.el | 59 + tests/recordings/install | 218 +++ tests/test-uncacheable.el | 7 + tools/package-lint.sh | 21 + tools/readme-sed.sh | 17 + tools/recipe | 3 + 33 files changed, 3674 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 .gitignore create mode 100644 Cask create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 README.in.rst create mode 100644 README.rst create mode 100644 features/rpc.feature create mode 100644 features/step-definitions/nndiscourse-steps.el create mode 100644 features/support/env.el create mode 100644 nndiscourse.el create mode 100644 nndiscourse/.gitignore create mode 100644 nndiscourse/.rubocop.yml create mode 100644 nndiscourse/.ruby-version create mode 100644 nndiscourse/Gemfile create mode 100644 nndiscourse/Gemfile.lock create mode 100644 nndiscourse/Makefile create mode 100644 nndiscourse/README.md create mode 100644 nndiscourse/Rakefile create mode 100644 nndiscourse/lib/nndiscourse.rb create mode 100644 nndiscourse/lib/nndiscourse/version.rb create mode 100644 nndiscourse/nndiscourse.gemspec create mode 100644 nndiscourse/nndiscourse.thor create mode 100644 nndiscourse/spec/nndiscourse_spec.rb create mode 100644 nndiscourse/spec/spec_helper.rb create mode 100644 scratch.el create mode 100644 screenshot.png create mode 100644 tests/nndiscourse-test.el create mode 100644 tests/recordings/install create mode 100644 tests/test-uncacheable.el create mode 100644 tools/package-lint.sh create mode 100755 tools/readme-sed.sh create mode 100644 tools/recipe diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..59940d1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,120 @@ +name: CI + +on: + pull_request: + paths-ignore: + - '**.md' + - '**.rst' + push: + paths-ignore: + - '**.md' + - '**.rst' + branches-ignore: + - 'master' + - 'main' + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + emacs_version: [27.2, 28.2, 29.2] + ruby_version: [2.6] + + steps: + - uses: actions/checkout@v2 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby_version }} + + - uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + + - uses: actions/cache@v2 + id: cache-cask-packages + with: + path: .cask + key: cache-cask-packages-000 + + - uses: actions/cache@v2 + id: cache-cask-executable + with: + path: ~/.cask + key: cache-cask-executable-000 + + - uses: conao3/setup-cask@master + if: steps.cache-cask-executable.outputs.cache-hit != 'true' + with: + version: snapshot + + - name: paths + run: | + echo "$HOME/local/bin" >> $GITHUB_PATH + echo "$HOME/.cask/bin" >> $GITHUB_PATH + echo "$HOME/.local/bin" >> $GITHUB_PATH + echo "LD_LIBRARY_PATH=$HOME/.local/lib" >> $GITHUB_ENV + + - uses: actions/cache@v2 + if: startsWith(runner.os, 'Linux') + with: + path: ~/.cache/rubocop_cache + key: ${{ runner.os }}-rubocop + + - uses: actions/cache@v2 + if: startsWith(runner.os, 'macOS') + with: + path: ~/Library/Caches/rubocop_cache + key: ${{ runner.os }}-rubocop + + - uses: actions/cache@v2 + with: + path: ~/local + key: ${{ runner.os }}-local-000 + + - uses: actions/cache@v2 + with: + path: ~/.emacs.d + key: emacs.d + + - uses: actions/cache@v2 + with: + path: ~/.cask + key: cask-000 + + - uses: actions/cache@v2 + with: + path: nndiscourse/vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + + - name: bundler + run: | + gem install --user-install bundler:2.0.2 + + - name: apt-get + if: startsWith(runner.os, 'Linux') + run: | + sudo apt-get -yq update + DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install gnutls-bin sharutils gnupg2 dirmngr libreadline-dev libcurl4-openssl-dev + + - name: gnupg + if: startsWith(runner.os, 'macOS') + run: brew list gnupg &>/dev/null || HOMEBREW_NO_AUTO_UPDATE=1 brew install gnupg + + - name: versions + run: | + ruby --version + rake --version + bundle --version + curl --version + emacs --version + gpg --version + + - name: test + run: | + make test-run + make test diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3ff6ee3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*.elc +.cask +nndiscourse-autoloads.el +.rspec +bin/ +vendor/ +nndiscourse*.gem +dist/ +.bundle +tests/Mail +tests/News +tests/.newsrc +.ecukes* diff --git a/Cask b/Cask new file mode 100644 index 0000000..b0f6706 --- /dev/null +++ b/Cask @@ -0,0 +1,12 @@ +(source gnu) +(source melpa) + +(package-file "nndiscourse.el") +(files "nndiscourse.el" ("nndiscourse" "nndiscourse/.ruby-version" "nndiscourse/Gemfile" "nndiscourse/Gemfile.lock" "nndiscourse/nndiscourse.gemspec" "nndiscourse/nndiscourse.thor" "nndiscourse/lib")) + +(development + (depends-on "ert-runner") + (depends-on "package-lint") + (depends-on "json-rpc") + (depends-on "rbenv") + (depends-on "ecukes")) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7d24eba --- /dev/null +++ b/Makefile @@ -0,0 +1,117 @@ +export EMACS ?= $(shell which emacs) +export CASK := $(shell which cask) +ifeq ($(CASK),) +$(error Please install CASK at https://cask.readthedocs.io/en/latest/guide/installation.html) +endif +CASK_DIR := $(shell $(CASK) package-directory || exit 1) +SRC = $(shell $(CASK) files) +PKBUILD = 2.3 +VERSION = $(shell $(CASK) version) +ELCFILES = $(SRC:.el=.elc) +TESTS = $(shell ls tests/test*el) +TESTSSRC = $(TESTS) features/support/env.el tests/nndiscourse-test.el +ELCTESTS = $(TESTSSRC:.el=.elc) +.DEFAULT_GOAL := test-compile + +.PHONY: autoloads +autoloads: + $(EMACS) -Q --batch --eval "(package-initialize)" --eval "(package-generate-autoloads \"nndiscourse\" \".\")" + +README.rst: README.in.rst nndiscourse.el + grep ';;' nndiscourse.el \ + | awk '/;;;\s*Commentary/{within=1;next}/;;;\s*/{within=0}within' \ + | sed -e 's/^\s*;;*\s*//g' \ + | tools/readme-sed.sh "COMMENTARY" README.in.rst > README.rst + +.PHONY: clean +clean: + $(CASK) clean-elc + $(MAKE) -C nndiscourse $@ + rm -f ert-profile* + rm -f tests/log/* + rm -rf tests/test-install + +.PHONY: bundler +bundler: + $(MAKE) $(HOME)/.gem/ruby/2.6.0/gems/bundler-2.0.2/bundler.gemspec + +$(HOME)/.gem/ruby/2.6.0/gems/bundler-2.0.2/bundler.gemspec: + cd nndiscourse ; gem install --user-install bundler:2.0.2 + +.PHONY: cask +cask: bundler $(CASK_DIR) + +$(CASK_DIR): Cask + $(CASK) install + touch $(CASK_DIR) + +.PHONY: test-compile +test-compile: cask autoloads + $(MAKE) -C nndiscourse $@ + sh -e tools/package-lint.sh ./nndiscourse.el + ! ($(CASK) eval "(let ((byte-compile-error-on-warn t)) (cask-cli/build))" 2>&1 | egrep -a "(Warning|Error):") ; (ret=$$? ; $(CASK) clean-elc && exit $$ret) + ! ($(CASK) eval \ + "(cl-letf (((symbol-function (quote cask-files)) (lambda (&rest _args) (mapcar (function symbol-name) (quote ($(TESTSSRC))))))) \ + (let ((byte-compile-error-on-warn t)) (cask-cli/build)))" 2>&1 | egrep -a "(Warning|Error):") ; (ret=$$? ; rm -f $(ELCTESTS) && exit $$ret) + +TESTFILES = $(shell $(CASK) files) + +define TESTRUN +--eval "(custom-set-variables \ + (backquote (nndiscourse-test-dir ,(file-name-as-directory (make-temp-file \"testrun-\" t)))) \ + (quote (gnus-select-method (quote (nndiscourse \"meta.discourse.org\" (nndiscourse-scheme \"https\"))))) \ + (quote (gnus-verbose 8)))" \ +--eval "(setq debug-on-error t)" \ +--eval "(fset (quote gnus-y-or-n-p) (function ignore))" \ +--eval "(dolist (f (mapcar (function symbol-name) (quote ($(TESTFILES))))) \ + (let* ((parent (file-name-directory f)) \ + (dest (concat (file-name-as-directory nndiscourse-test-dir) (or parent \".\")))) \ + (make-directory dest t) \ + (funcall (if (file-directory-p f) (function copy-directory) (function copy-file)) f (concat (file-name-as-directory dest) (file-name-nondirectory f)))))" +endef + +.PHONY: test-run +test-run: cask + $(CASK) emacs -Q --batch -l nndiscourse \ + $(TESTRUN) \ + --eval "(gnus-open-server gnus-select-method)" \ + --eval "(sleep-for .43)" \ + --eval "(cl-assert nndiscourse-processes)" \ + --eval "(nndiscourse-dump-diagnostics (nth 1 gnus-select-method))" + +.PHONY: test-run-interactive +test-run-interactive: cask autoloads + $(CASK) emacs -Q -l nndiscourse \ + $(TESTRUN) \ + -f gnus + +.PHONY: test-unit +test-unit: cask autoloads + $(CASK) exec ert-runner -L . -L tests $(TESTS) + +.PHONY: test-clean +test-clean: + rm -rf tests/.emacs* tests/.newsrc* tests/Mail tests/News tests/request tests/request-log + +.PHONY: test +test: test-compile test-unit test-int + +.PHONY: test-int +test-int: test-clean + rm -f tests/.newsrc.eld + $(CASK) exec ecukes --debug --reporter magnars + +.PHONY: dist-clean +dist-clean: + rm -rf dist + +.PHONY: dist +dist: dist-clean + $(CASK) package + +.PHONY: install +install: dist bundler + $(EMACS) -Q --batch -l package \ + --eval "(add-to-list 'package-archives '(\"melpa\" . \"https://melpa.org/packages/\"))" \ + --eval "(package-refresh-contents)" \ + --eval "(package-install-file (car (file-expand-wildcards \"dist/nndiscourse-$(VERSION).tar\")))" diff --git a/README.in.rst b/README.in.rst new file mode 100644 index 0000000..bc10391 --- /dev/null +++ b/README.in.rst @@ -0,0 +1,71 @@ +|build-status| |melpa-dev| + +.. COMMENTARY (see Makefile) + +.. |build-status| + image:: https://github.com/dickmao/nndiscourse/workflows/CI/badge.svg?branch=dev + :target: https://github.com/dickmao/nndiscourse/actions + :alt: Build Status +.. |melpa-dev| + image:: https://melpa.org/packages/nndiscourse-badge.svg + :target: http://melpa.org/#/nndiscourse + :alt: MELPA current version + +.. image:: https://github.com/dickmao/gnus-imap-walkthrough/blob/master/thumbnail.png + :target: https://youtu.be/DMpZtC98F_M + :alt: Replacing Thunderbird With Gnus + +.. image:: screenshot.png +.. |--| unicode:: U+2013 .. en dash +.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace + :trim: + +Does not work for sites requiring login +======================================= +Some discourse instances allow unfettered public viewing, e.g., +``emacs-china.org``, ``devforum.roblox.com``. Others require login, e.g., +``discourse.doomemacs.org``. At the time I wrote nndiscourse, it was +impossible to get login going, and while `it does seem possible now +`_, +it still looks really hard and undocumented. + +Install +======= +Alas, you'll need Cask_. Then, + +:: + + rbenv install 2.6.2 + git clone https://github.com/dickmao/nndiscourse.git + make install + +Usage +===== +Suppose you want to follow https://emacs-china.org. In your ``.emacs`` or ``init.el``, use ONE of the following: + +:: + + ;; Applies to first-time Gnus users + (custom-set-variables '(gnus-select-method + (quote (nndiscourse "emacs-china.org" (nndiscourse-scheme "https"))))) + +or, if you're an existing Gnus user, + +:: + + ;; Applies to existing Gnus users + (add-to-list 'gnus-secondary-select-methods + (quote (nndiscourse "emacs-china.org" (nndiscourse-scheme "https")))) + +Then ``M-x gnus``. + +Select a topic category via ``RET``. Rapidly catch yourself up via ``N`` and ``P``. Instantly catch-up with ``c``. + +From the ``*Group*`` buffer, press ``g`` to refresh all categories. ``M-g`` on a particular category to refresh individually. + +From the summary buffer, ``/o`` redisplays posts already read. ``x`` undisplays them. + +Gnus beginners may find the interface bewildering. In particular, categories with no unread posts do not display. Use ``L`` to bring them out of hiding. + +.. _Cask: https://github.com/cask/cask +.. _Getting started: http://melpa.org/#/getting-started diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..c56a69d --- /dev/null +++ b/README.rst @@ -0,0 +1,70 @@ +|build-status| |melpa-dev| + + +.. |build-status| + image:: https://github.com/dickmao/nndiscourse/workflows/CI/badge.svg?branch=dev + :target: https://github.com/dickmao/nndiscourse/actions + :alt: Build Status +.. |melpa-dev| + image:: https://melpa.org/packages/nndiscourse-badge.svg + :target: http://melpa.org/#/nndiscourse + :alt: MELPA current version + +.. image:: https://github.com/dickmao/gnus-imap-walkthrough/blob/master/thumbnail.png + :target: https://youtu.be/DMpZtC98F_M + :alt: Replacing Thunderbird With Gnus + +.. image:: screenshot.png +.. |--| unicode:: U+2013 .. en dash +.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace + :trim: + +Does not work for sites requiring login +======================================= +Some discourse instances allow unfettered public viewing, e.g., +``emacs-china.org``, ``devforum.roblox.com``. Others require login, e.g., +``discourse.doomemacs.org``. At the time I wrote nndiscourse, it was +impossible to get login going, and while `it does seem possible now +`_, +it still looks really hard and undocumented. + +Install +======= +Alas, you'll need Cask_. Then, + +:: + + rbenv install 2.6.2 + git clone https://github.com/dickmao/nndiscourse.git + make install + +Usage +===== +Suppose you want to follow https://emacs-china.org. In your ``.emacs`` or ``init.el``, use ONE of the following: + +:: + + ;; Applies to first-time Gnus users + (custom-set-variables '(gnus-select-method + (quote (nndiscourse "emacs-china.org" (nndiscourse-scheme "https"))))) + +or, if you're an existing Gnus user, + +:: + + ;; Applies to existing Gnus users + (add-to-list 'gnus-secondary-select-methods + (quote (nndiscourse "emacs-china.org" (nndiscourse-scheme "https")))) + +Then ``M-x gnus``. + +Select a topic category via ``RET``. Rapidly catch yourself up via ``N`` and ``P``. Instantly catch-up with ``c``. + +From the ``*Group*`` buffer, press ``g`` to refresh all categories. ``M-g`` on a particular category to refresh individually. + +From the summary buffer, ``/o`` redisplays posts already read. ``x`` undisplays them. + +Gnus beginners may find the interface bewildering. In particular, categories with no unread posts do not display. Use ``L`` to bring them out of hiding. + +.. _Cask: https://github.com/cask/cask +.. _Getting started: http://melpa.org/#/getting-started diff --git a/features/rpc.feature b/features/rpc.feature new file mode 100644 index 0000000..3b53527 --- /dev/null +++ b/features/rpc.feature @@ -0,0 +1,16 @@ +Scenario: install + Given gnus start + And I dump buffer + Then of-record unreads for "nndiscourse+meta.discourse.org:bug" is 2 + And I go to word "bug" + And I press "RET" + Then I should be in buffer "*Summary nndiscourse+meta.discourse.org:bug*" + And prospective unreads for "nndiscourse+meta.discourse.org:bug" is 2 + And I go to word "david" + And I press "RET" + And I switch to buffer "*Article nndiscourse+meta.discourse.org:bug*" + Then I should see "hartz" + And prospective unreads for "nndiscourse+meta.discourse.org:bug" is 1 + And I switch to buffer "*Summary nndiscourse+meta.discourse.org:bug*" + And I press "q" + Then of-record unreads for "nndiscourse+meta.discourse.org:bug" is 1 diff --git a/features/step-definitions/nndiscourse-steps.el b/features/step-definitions/nndiscourse-steps.el new file mode 100644 index 0000000..befae30 --- /dev/null +++ b/features/step-definitions/nndiscourse-steps.el @@ -0,0 +1,79 @@ +(When "^of-record unreads for \"\\(.+\\)\" is \\([.0-9]+\\)$" + (lambda (group count) + (should (= (string-to-number count) (gnus-group-unread group))))) + +(When "^prospective unreads for \"\\(.+\\)\" is \\([.0-9]+\\)$" + (lambda (group count) + (when (< emacs-major-version 27) + (should (= (string-to-number count) (length gnus-newsgroup-unreads)))))) + +(When "^I should be in buffer like \"\\(.+\\)\"$" + (lambda (prefix) + (should (string-prefix-p prefix (buffer-name))))) + +(When "^I go to string \"\\(.+\\)\"$" + (lambda (string) + (goto-char (point-min)) + (let ((search (re-search-forward string nil t)) + (message "Can not go to string '%s' since it does not exist in the current buffer: %s")) + (cl-assert search nil message string (buffer-string))) + (backward-char (length string)))) + +(When "^I clear buffer \"\\(.*\\)\"$" + (lambda (buffer) + (with-current-buffer buffer + (let ((inhibit-read-only t)) + (erase-buffer))))) + +(When "^I scan news$" + (lambda () + (setq nndiscourse--last-scan-time 0) + (And "I switch to buffer \"*Group*\"") + (And "I press \"g\"") + (And "I dump buffer"))) + +(When "^I dump buffer" + (lambda () (message "%s" (buffer-string)))) + +(When "^gnus \\(try \\)?start\\(\\)$" + (lambda (demote _workaround) + (if-let ((it (get-buffer gnus-group-buffer))) + (switch-to-buffer it) + (if-demote demote + (When "I call \"gnus\"") + (Then "I should be in buffer \"%s\"" gnus-group-buffer))))) + +(When "^gnus stop$" + (lambda () + (when-let ((it (get-buffer gnus-group-buffer))) + (switch-to-buffer it) + (And "I press \"q\"") + (switch-to-buffer "*scratch*")))) + +(When "^I open latest \"\\(.+\\)\"$" + (lambda (relative-prefix) + (let* ((prefix (concat (file-name-as-directory gnus-home-directory) + relative-prefix)) + (dir (file-name-directory prefix)) + (base (file-name-base prefix)) + (alist + (directory-files-and-attributes dir t (regexp-quote base) t)) + (sofar (cl-first alist)) + (most-recent (dolist (cand alist (car sofar)) + (if (> (float-time (nth 5 (cdr cand))) + (float-time (nth 5 (cdr sofar)))) + (setq sofar cand))))) + (find-file most-recent)))) + +(When "^I wait \\([.0-9]+\\) seconds?$" + (lambda (seconds) + (sleep-for (string-to-number seconds)))) + +(When "^I wait for buffer to\\( not\\)? say \"\\(.+\\)\"$" + (lambda (negate bogey) + (nndiscourse-test-wait-for + (lambda () + (let* ((says (s-contains? (s-replace "\\n" "\n" bogey) (buffer-string)))) + (revert-buffer :ignore-auto :noconfirm) + (if negate (not says) says))) + nil 5000 1000))) diff --git a/features/support/env.el b/features/support/env.el new file mode 100644 index 0000000..7626464 --- /dev/null +++ b/features/support/env.el @@ -0,0 +1,114 @@ +;;; -*- lexical-binding: t; coding: utf-8 -*- + +;; (defsubst dir-up (x) +;; "Replica of f-parent without using f.el. + +;; I should just use f.el since ecukes loads it anyway." +;; (file-name-directory (directory-file-name x))) + +;; (let ((root-path (car (last (-iterate 'dir-up load-file-name 4))))) +;; (add-to-list 'load-path (concat root-path "lisp")) +;; (add-to-list 'load-path (concat root-path "tests"))) + +(require 'ecukes) +(require 'espuds) + +(add-to-list 'load-path (f-expand "lisp" (ecukes-project-path))) +(add-to-list 'load-path (f-expand "tests" (ecukes-project-path))) + +(require 'nndiscourse-test) + +(defvar incoming-iteration 0 "Used in filter-args advice of `nndiscourse--incoming'.") + +(defmacro if-demote (demote &rest forms) + (declare (debug t) (indent 1)) + `(if ,demote + (with-demoted-errors "demoted: %s" + ,@forms) + ,@forms)) + +(defun cleanup () + (let ((quick-file (concat (or (bound-and-true-p gnus-newsrc-file) + (bound-and-true-p gnus-current-startup-file)) + ".eld"))) + (when (file-exists-p quick-file) + (message "Deleting %s" quick-file) + (delete-file quick-file)))) + +(defun save-log (buffer-or-name file-name) + "from tkf/emacs-ipython-notebook ein:testing-save-buffer." + (when (and buffer-or-name (get-buffer buffer-or-name) file-name) + (with-current-buffer buffer-or-name + (let ((coding-system-for-write 'raw-text)) + (write-region (point-min) (point-max) file-name))))) + +(defvar scenario-recording-alist '((touched nil))) +(defvar scenario-recording-p t) + +(Setup + (add-function + :around (symbol-function 'nndiscourse-rpc-request) + (lambda (f server method &rest method-args) + (let ((sig (intern (mapconcat (apply-partially #'format "%s") + (cons method method-args) "-")))) + (if scenario-recording-p + (let ((result (apply f server method method-args))) + (prog1 result + (gnus-score-set sig + (append (gnus-score-get sig scenario-recording-alist) + (list result)) + scenario-recording-alist))) + (let* ((values (gnus-score-get sig scenario-recording-alist)) + (result (pop values))) + (gnus-score-set sig values scenario-recording-alist) + (or result (error "nndiscourse-rpc-request: could not playback %s" sig)))))))) + +(defmacro with-scenario (scenario &rest body) + (declare (indent defun)) + `(let* ((name (ecukes-scenario-name ,scenario)) + (filename (f-expand (replace-regexp-in-string "\\s-+" "-" name) + (f-expand "tests/recordings" (ecukes-project-path))))) + ,@body)) + +(Before + (dolist (server (mapcar #'car nndiscourse-processes)) + (setf (nndiscourse-by-server server :last-scan-time) 0)) + (setq ecukes-reporter-before-scenario-hook + (lambda (scenario) + (with-scenario scenario + (setq scenario-recording-p (not (file-exists-p filename))) + (setq scenario-recording-alist + (if scenario-recording-p + '((touched nil)) + (with-temp-buffer + (let ((coding-system-for-read score-mode-coding-system)) + (insert-file-contents filename)) + (goto-char (point-min)) + (read (current-buffer)))))))) + (setq ecukes-reporter-after-scenario-hook + (lambda (scenario) + (with-scenario scenario + (when scenario-recording-p + (setq scenario-recording-alist + (assq-delete-all 'touched scenario-recording-alist)) + (gnus-make-directory (file-name-directory filename)) + (with-temp-buffer + (gnus-prin1 scenario-recording-alist) + (let ((coding-system-for-write score-mode-coding-system)) + (gnus-write-buffer filename))))) + (setq scenario-recording-alist '((touched nil))) + (setq scenario-recording-p t)))) + +(After + ) + +(Teardown + (cleanup) +) + +(Fail + (if noninteractive + (with-demoted-errors "demote: %s" + (Teardown)) + (backtrace) + (keyboard-quit))) ;; useful to prevent emacs from quitting diff --git a/nndiscourse.el b/nndiscourse.el new file mode 100644 index 0000000..789ed72 --- /dev/null +++ b/nndiscourse.el @@ -0,0 +1,1181 @@ +;;; nndiscourse.el --- Gnus backend for Discourse -*- lexical-binding: t; coding: utf-8 -*- + +;; Copyright (C) 2019 The Authors of nndiscourse.el + +;; Authors: dickmao +;; Version: 0.1.0 +;; Keywords: news +;; URL: https://github.com/dickmao/nndiscourse +;; Package-Requires: ((emacs "27.1") (rbenv "0.0.3") (json-rpc "0.0.1")) + +;; This file is NOT part of GNU Emacs. + +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with nndiscourse.el. If not, see . + +;;; Commentary: + +;; A Gnus backend for Discourse. + +;;; Code: + +(eval-when-compile (require 'cl-lib) + (cl-assert (fboundp 'libxml-parse-html-region) nil + "nndiscourse requires emacs built with libxml support")) +(require 'nnoo) +(require 'gnus) +(require 'gnus-start) +(require 'gnus-art) +(require 'gnus-sum) +(require 'gnus-msg) +(require 'gnus-cite) +(require 'gnus-srvr) +(require 'gnus-cache) +(require 'gnus-bcklg) +(require 'gnus-score) +(require 'mm-url) +(require 'cl-lib) +(require 'json) +(require 'subr-x) +(require 'json-rpc) +(require 'rbenv) + +(nnoo-declare nndiscourse) + +(nnoo-define-basics nndiscourse) + +(defvoo nndiscourse-scheme "https" + "URI scheme for address.") + +(defcustom nndiscourse-test-dir nil + "Test bundler install from here (see Makefile)." + :type 'directory + :group 'nndiscourse) + +(defcustom nndiscourse-render-post t + "If non-nil, follow link upon `gnus-summary-select-article'. +Otherwise, just display link." + :type 'boolean + :group 'nndiscourse) + +(defcustom nndiscourse-public-keyfile (expand-file-name "~/.ssh/id_rsa.pub") + "Location of rsa private key." + :type '(file :must-match t) + :group 'nndiscourse) + +(defcustom nndiscourse-localhost "127.0.0.1" + "Some users keep their browser in a separate domain." + :type 'string + :group 'nndiscourse) + +(defvoo nndiscourse-status-string "" "Out-of-band message.") + +(defvar nndiscourse-by-server-hashtb (gnus-make-hashtable)) + +(defsubst nndiscourse--gethash (string hashtable &optional dflt) + "Get value of STRING from HASHTABLE, or DFLT if undefined. +Starting in emacs-src commit c1b63af, Gnus moved from obarrays +to normal hashtables." + (unless (stringp string) + (setq string (format "%s" string))) + (if (fboundp 'gnus-gethash) + (let ((sym (intern-soft string hashtable))) + (if (or (null sym) (not (boundp sym))) dflt (symbol-value sym))) + (gethash string hashtable dflt))) + +(defmacro nndiscourse--sethash (string value hashtable) + "Set value of STRING to VALUE in HASHTABLE. +Starting in emacs-src commit c1b63af, Gnus moved from obarrays +to normal hashtables." + (declare (indent defun)) + `(,(if (fboundp 'gnus-sethash) + 'gnus-sethash + 'puthash) + (format "%s" ,string) ,value ,hashtable)) + +(defmacro nndiscourse-by-server (server key) + "Get generalized variable for SERVER value of KEY. +Thought I could use macros here to setf it." + `(let ((foo (nndiscourse--gethash ,server nndiscourse-by-server-hashtb))) + (alist-get ,key foo))) + +(defun nndiscourse-obarrayp (obj) + "Return t if OBJ is an obarray. `obarrayp' did not exist in emacs-25." + (and (vectorp obj) (< 0 (length obj)))) + +(defun nndiscourse-by-server-initial () + "Ensure deep copy of seed values for `nndiscourse-by-server'." + (mapcar (lambda (x) (cons (car x) + (if (nndiscourse-obarrayp (cdr x)) (copy-sequence (cdr x)) + (if (hash-table-p (cdr x)) + (copy-hash-table (cdr x)) + (cdr x))))) + `((:last-id . nil) + (:last-scan-time . ,(- (truncate (float-time)) 100)) + (:headers-hashtb . ,(gnus-make-hashtable)) + (:refs-hashtb . ,(gnus-make-hashtable)) + (:categories-hashtb . ,(gnus-make-hashtable))))) + +(defmacro nndiscourse--callback (result &optional callback) + "Set RESULT to return value of CALLBACK." + `(cl-function (lambda (&rest args &key data &allow-other-keys) + (setq ,result (if ,callback + (apply ,callback args) + data))))) + +(cl-defstruct (nndiscourse-proc-info) + "port and elisp process" + port process) + +(defvar nndiscourse-processes nil + "Association list of ( server-name-qua-url . nndiscourse-proc-info ).") + +(defun nndiscourse-good-server (server) + "SERVER needs to be a non-zero length string." + (or (and (stringp server) (not (zerop (length server))) + (prog1 t + (unless (nndiscourse--gethash server nndiscourse-by-server-hashtb) + (nndiscourse--sethash server + (nndiscourse-by-server-initial) + nndiscourse-by-server-hashtb)))) + (prog1 nil (backtrace)))) + +(defsubst nndiscourse--replace-hash (string func hashtable) + "Set value of STRING to FUNC on STRING's extant value in HASHTABLE. +Starting in emacs-src commit c1b63af, Gnus moved from obarrays +to normal hashtables." + (declare (indent defun)) + (unless (stringp string) + (setq string (prin1-to-string string))) + (let* ((capture (nndiscourse--gethash string hashtable)) + (replace-with (funcall func capture))) + (if (fboundp 'gnus-sethash) + (set (intern string hashtable) replace-with) + (puthash string replace-with hashtable)))) + +(defmacro nndiscourse--maphash (func table) + "Map FUNC taking key and value over TABLE, return nil. + +Starting in emacs-src commit c1b63af, Gnus moved from obarrays +to normal hashtables." + (declare (indent nil)) + (let ((workaround 'gnus-gethash-safe)) + `(,(if (fboundp 'gnus-gethash-safe) + 'mapatoms + 'maphash) + ,(if (fboundp 'gnus-gethash-safe) + `(lambda (k) (funcall + (apply-partially + ,func + (symbol-name k) (,workaround k ,table)))) + func) + ,table))) + +(defvar nndiscourse-summary-voting-map + (let ((map (make-sparse-keymap))) + map) + "Voting map.") + +(defvar nndiscourse-summary-mode-map + (let ((map (make-sparse-keymap))) + (define-key map "r" 'gnus-summary-followup) + (define-prefix-command 'nndiscourse-summary-voting-map) + (define-key map "R" 'nndiscourse-summary-voting-map) + (define-key nndiscourse-summary-voting-map "0" 'nndiscourse-novote) + (define-key nndiscourse-summary-voting-map "-" 'nndiscourse-downvote) + (define-key nndiscourse-summary-voting-map "=" 'nndiscourse-upvote) + (define-key nndiscourse-summary-voting-map "+" 'nndiscourse-upvote) + map)) + +(defvar nndiscourse-article-mode-map + (copy-keymap nndiscourse-summary-mode-map)) ;; how does Gnus do this? + +(define-minor-mode nndiscourse-article-mode + "Minor mode for nndiscourse articles. +Disallow `gnus-article-reply-with-original'. + +\\{gnus-article-mode-map}" + :lighter " Discourse" + :keymap nndiscourse-article-mode-map) + +(define-minor-mode nndiscourse-summary-mode + "Disallow \"reply\" commands in `gnus-summary-mode-map'. + +\\{nndiscourse-summary-mode-map}" + :lighter " Discourse" + :keymap nndiscourse-summary-mode-map) + +(defsubst nndiscourse-get-headers (server group) + "List headers for SERVER GROUP." + (nndiscourse--gethash group (nndiscourse-by-server server :headers-hashtb))) + +(defun nndiscourse-set-headers (server group new-headers) + "Assign headers for SERVER GROUP to NEW-HEADERS." + (nndiscourse--sethash group new-headers (nndiscourse-by-server server :headers-hashtb))) + +(defun nndiscourse-get-refs (server id) + "Amongst SERVER refs, return list of descending ancestors for ID." + (cl-loop for prev-id = id then cur-id + for cur-id = (nndiscourse--gethash prev-id (nndiscourse-by-server server :refs-hashtb)) + until (not cur-id) + collect cur-id into rresult + finally return (nreverse rresult))) + +(defun nndiscourse-set-ref (server id parent-id) + "Amongst SERVER refs, associate ID to PARENT-ID." + (nndiscourse--sethash id parent-id (nndiscourse-by-server server :refs-hashtb))) + +(defun nndiscourse-get-category (server category-id) + "Amongst SERVER categories, return group for CATEGORY-ID." + (nndiscourse--gethash category-id (nndiscourse-by-server server :categories-hashtb))) + +(defun nndiscourse-set-category (server category-id group) + "Amongst SERVER categories, associate CATEGORY-ID to GROUP." + (nndiscourse--sethash category-id group (nndiscourse-by-server server :categories-hashtb))) + +(defmacro nndiscourse--with-mutex (mtx &rest body) + "If capable of threading, lock with MTX and execute BODY." + (declare (indent defun)) + (if (fboundp 'with-mutex) + `(with-mutex ,mtx ,@body) + `(progn ,@body))) + +(defvar nndiscourse--mutex-rpc-request (when (fboundp 'make-mutex) + (make-mutex "nndiscourse--mutex-rpc-request")) + "Only one jsonrpc output buffer, so avoid two requests using at the same time.") + +(declare-function set-process-thread "process" t t) ;; emacs-25 + +(defun nndiscourse-rpc-request (server method &rest args) + "Make jsonrpc call to SERVER invoking METHOD ARGS. + +nnreddit had just one jsonrpyc process using stdio pipe for IPC. +jsonrpyc could not assume HTTP. + +The jimson library does assume HTTP, so we follow `json-rpc' SOP. +This means two processes, one jimson process, which we administer, +and one `json-rpc' network pipe which json-rpc.el administers. + +Process stays the same, but the `json-rpc' connection (a cheap struct) gets +reinstantiated with every call. + +Return response of METHOD ARGS of type `json-object-type' or nil if failure." + (when (and (nndiscourse-good-server server) (nndiscourse-server-opened server)) + (condition-case err + (if-let ((port (nndiscourse-proc-info-port + (cdr (assoc server nndiscourse-processes)))) + (connection (json-rpc-connect nndiscourse-localhost port)) + (sock (json-rpc-process connection))) + (unwind-protect + (progn + (set-process-query-on-exit-flag sock nil) + (when (fboundp 'set-process-thread) + (set-process-thread sock nil)) + (nndiscourse--with-mutex nndiscourse--mutex-rpc-request + (gnus-message 7 "nndiscourse-rpc-request: send %s %s" method + (mapconcat (lambda (s) (format "%s" s)) args " ")) + (json-rpc connection method args))) + (json-rpc-close connection)) + (error (prog1 nil + (gnus-message 3 "nndiscourse-rpc-request: could not connect to %s:%s" + nndiscourse-localhost port)))) + (error (prog1 nil + (gnus-message 3 "nndiscourse-rpc-request: %s" (error-message-string err))))))) + +(defsubst nndiscourse--gate (&optional group) + "Apply our minor modes only when the following conditions hold for GROUP." + (unless group + (setq group gnus-newsgroup-name)) + (and (stringp group) + (listp (gnus-group-method group)) + (eq 'nndiscourse (car (gnus-group-method group))))) + +(deffoo nndiscourse-request-close () + "Nnimap does nothing also." + t) + +(deffoo nndiscourse-request-type (_group &optional _article) + 'news) + +(defsubst nndiscourse--server-buffer-name (server) + "Arbitrary proc buffer name for SERVER." + (when (nndiscourse-good-server server) + (format " *%s*" server))) + +(defsubst nndiscourse--server-buffer (server &optional create) + "Get proc buffer for SERVER. Create if necessary if CREATE." + (when (nndiscourse-good-server server) + (let ((name (nndiscourse--server-buffer-name server))) + (if create + (get-buffer-create name) + (get-buffer name))))) + +(deffoo nndiscourse-server-opened (&optional server) + (when (nndiscourse-good-server server) + (buffer-live-p (nndiscourse--server-buffer server)))) + +(deffoo nndiscourse-status-message (&optional server) + (when (nndiscourse-good-server server) + nndiscourse-status-string)) + +(defun nndiscourse--initialize () + "Run `bundle install` if necessary." + (let ((default-directory + (expand-file-name "nndiscourse" + (or nndiscourse-test-dir + (file-name-directory + (or (locate-library "nndiscourse") + default-directory))))) + (bundle-exec (executable-find "bundle"))) + (unless bundle-exec + (error "`nndiscourse--initialize': nndiscourse requires bundler")) + (unless (file-exists-p (expand-file-name "vendor")) + (let ((bundle-buffer (get-buffer-create "*nndiscourse: bundle install*"))) + (if (zerop (apply #'call-process bundle-exec nil + (cons bundle-buffer (list t)) + nil (split-string "install --deployment --without development"))) + (kill-buffer bundle-buffer) + (switch-to-buffer bundle-buffer) + (error "`nndiscourse--initialize': bundle install failed")))))) + +(deffoo nndiscourse-open-server (server &optional defs) + "Retrieve the Jimson process for SERVER. + +I am counting on `gnus-check-server` in `gnus-read-active-file-1' in +`gnus-get-unread-articles' to open server upon install." + (when (nndiscourse-good-server server) + (or (nndiscourse-server-opened server) + (let ((original-global-rbenv-mode global-rbenv-mode)) + (unless global-rbenv-mode + (let (rbenv-show-active-ruby-in-modeline) + (global-rbenv-mode))) + (unwind-protect + (progn + (when defs ;; defs should be non-nil when called from `gnus-open-server' + (nndiscourse--initialize)) + (nnoo-change-server 'nndiscourse server defs) + (let* ((proc-buf (nndiscourse--server-buffer server t)) + (proc (get-buffer-process proc-buf))) + (if (process-live-p proc) + proc + (let* ((free-port (with-temp-buffer + (let ((proc (make-network-process + :name "free-port" + :noquery t + :host nndiscourse-localhost + :buffer (current-buffer) + :server t + :stop t + :service t))) + (prog1 (process-contact proc :service) + (delete-process proc))))) + (ruby-command (split-string (format "%s exec thor cli:serve %s://%s -p %s" + (executable-find "bundle") + nndiscourse-scheme + server + free-port))) + (stderr-buffer (get-buffer-create (format " *%s-stderr*" server)))) + (with-current-buffer stderr-buffer + (add-hook 'after-change-functions + (apply-partially #'nndiscourse--message-user server) + nil t)) + (nndiscourse-register-process + free-port + (let ((default-directory + (expand-file-name "nndiscourse" + (or nndiscourse-test-dir + (file-name-directory + (or (locate-library "nndiscourse") + default-directory)))))) + (let ((new-proc (make-process :name server + :buffer proc-buf + :command ruby-command + :noquery t + :sentinel #'nndiscourse-sentinel + :stderr stderr-buffer))) + (cl-loop repeat 10 + until (condition-case nil + (prog1 t + (delete-process + (make-network-process :name "test-port" + :noquery t + :host nndiscourse-localhost + :service free-port + :buffer nil + :stop t))) + (file-error nil)) + do (accept-process-output new-proc 0.3)) + new-proc))))))) + (unless original-global-rbenv-mode + (global-rbenv-mode -1))))))) + +(defun nndiscourse-alist-get (key alist &optional default remove testfn) + "Replicated library function for emacs-25. + +Same argument meanings for KEY ALIST DEFAULT REMOVE and TESTFN." + (ignore remove) + (let ((x (if (not testfn) + (assq key alist) + (assoc key alist)))) + (if x (cdr x) default))) + +(gv-define-expander nndiscourse-alist-get + (lambda (do key alist &optional default remove testfn) + (macroexp-let2 macroexp-copyable-p k key + (gv-letplace (getter setter) alist + (macroexp-let2 nil p `(if (and ,testfn (not (eq ,testfn 'eq))) + (assoc ,k ,getter) + (assq ,k ,getter)) + (funcall do (if (null default) `(cdr ,p) + `(if ,p (cdr ,p) ,default)) + (lambda (v) + (macroexp-let2 nil v v + (let ((set-exp + `(if ,p (setcdr ,p ,v) + ,(funcall setter + `(cons (setq ,p (cons ,k ,v)) + ,getter))))) + `(progn + ,(cond + ((null remove) set-exp) + ((or (eql v default) + (and (eq (car-safe v) 'quote) + (eq (car-safe default) 'quote) + (eql (cadr v) (cadr default)))) + `(if ,p ,(funcall setter `(delq ,p ,getter)))) + (t + `(cond + ((not (eql ,default ,v)) ,set-exp) + (,p ,(funcall setter + `(delq ,p ,getter)))))) + ,v)))))))))) + +(defun nndiscourse-register-process (port proc) + "Register PORT and PROC with a server-name-qua-url. +Return PROC if success, nil otherwise." + (declare (indent defun)) + (nndiscourse-deregister-process (process-name proc)) + (if (process-live-p proc) + (prog1 proc + (gnus-message 5 "nndiscourse-register-process: registering %s" + (process-name proc)) + (setf (nndiscourse-alist-get (process-name proc) nndiscourse-processes + nil nil #'equal) + (make-nndiscourse-proc-info :port port :process proc))) + (prog1 nil + (gnus-message 3 "`nndiscourse-register-process': dead process %s" + (process-name proc)) + (nndiscourse-deregister-process (process-name proc))))) + +(defun nndiscourse-deregister-process (server) + "Disavow any knowledge of SERVER's process." + (when-let ((it (nndiscourse-alist-get server nndiscourse-processes nil nil #'equal))) + (let ((proc (nndiscourse-proc-info-process it))) + (gnus-message 5 "`nndiscourse-deregister-process': deregistering %s %s pid=%s" + server (process-name proc) (process-id proc)) + (delete-process proc))) + (setf (nndiscourse-alist-get server nndiscourse-processes nil nil #'equal) nil)) + +(deffoo nndiscourse-close-server (&optional server defs) + "Patterning after nnimap.el." + (when (nndiscourse-good-server server) + (nndiscourse-deregister-process server) + (when-let ((it (nndiscourse--server-buffer server))) + (kill-buffer it)) + ;; keep state in nndiscourse-by-server-hashtb? + (when (nnoo-change-server 'nndiscourse server defs) + (nnoo-close-server 'nndiscourse server)) + t)) + +(deffoo nndiscourse-close-group (_group &optional server) + (nnoo-change-server 'nndiscourse server nil) + t) + +(defmacro nndiscourse--with-group (server group &rest body) + "If `gnus-newsgroup-name' is null, recreate it based on SERVER. +Disambiguate GROUP if it's empty. +Then execute BODY." + (declare (debug (form &rest form)) + (indent defun)) + `(let* ((group (or ,group (gnus-group-real-name gnus-newsgroup-name))) + (gnus-newsgroup-name (or gnus-newsgroup-name + (gnus-group-full-name + group (cons 'nndiscourse (list server))))) + (server (or ,server (nth 1 (gnus-find-method-for-group gnus-newsgroup-name))))) + ,@body)) + +(defsubst nndiscourse--first-article-number (server group) + "Get article-number qua id of first article of SERVER GROUP." + (plist-get (car (nndiscourse-get-headers server group)) :id)) + +(defsubst nndiscourse--last-article-number (server group) + "Get article-number qua id of last article of SERVER GROUP." + (plist-get (car (last (nndiscourse-get-headers server group))) :id)) + +(defun nndiscourse--get-header (server group article-number) + "Amongst SERVER GROUP headers, binary search ARTICLE-NUMBER." + (let ((headers (nndiscourse-get-headers server group))) + (cl-flet ((id-of (k) (plist-get (elt headers k) :id))) + (cl-do* ((x article-number) + (l 0 (if dir (1+ m) l)) + (r (length headers) (if dir r m)) + (m (/ (- r l) 2) (+ m (* (if dir 1 -1) (max 1 (/ (- r l) 2))))) + (dir (> x (id-of m)) (> x (id-of m)))) + ((or (<= (- r l) 1) (= x (id-of m))) + (and (< m (length headers)) (>= m 0) (= x (id-of m)) (elt headers m))))))) + +(defun nndiscourse--massage (body) + "Precede each quoted line of BODY broken by `shr-fill-line' with '>'." + (with-temp-buffer + (insert body) + (mm-url-decode-entities) + (cl-loop initially (goto-char (point-min)) + until (and (null (re-search-forward "\\(^>\\( .*?\\)\\)

" nil t)) + (null (re-search-forward "\\(

\\s-*>\\( .*?\\)\\)

" nil t))) + do (let* ((start (match-beginning 1)) + (end (match-end 1)) + (matched (match-string 2))) + (perform-replace + ".*" + (concat "

\n" + (with-temp-buffer + (insert matched) + (fill-region (point-min) (point-max)) + (insert + (prog1 + (cl-subseq (replace-regexp-in-string + "\n" "
\n> " (concat "\n" (buffer-string))) + 5) + (erase-buffer))) + (buffer-string)) + "\n") + nil t nil nil nil start end))) + (buffer-string))) + +(defsubst nndiscourse--citation-wrap (author body) + "Cite AUTHOR using `gnus-message-cite-prefix-regexp' before displaying BODY. + +Originally written by Paul Issartel." + (with-temp-buffer + (insert body) + (mm-url-remove-markup) + (mm-url-decode-entities) + (fill-region (point-min) (point-max)) + (let* ((trimmed-1 (replace-regexp-in-string "\\(\\s-\\|\n\\)+$" "" (buffer-string))) + (trimmed (replace-regexp-in-string "^\\(\\s-\\|\n\\)+" "" trimmed-1))) + (concat author " wrote:

\n" + "

\n"
+              (cl-subseq (replace-regexp-in-string "\n" "\n> " (concat "\n" trimmed)) 1)
+              "\n

")))) + +(defun nndiscourse-add-entry (hashtb e field) + "Add to HASHTB a lookup consisting of entry E's id to its FIELD." + (nndiscourse--sethash (plist-get e :id) (plist-get e field) hashtb)) + +(defsubst nndiscourse--summary-exit () + "Call `gnus-summary-exit' without the hackery." + (remove-function (symbol-function 'gnus-summary-exit) + (symbol-function 'nndiscourse--score-pending)) + (gnus-summary-exit) + (add-function :after (symbol-function 'gnus-summary-exit) + (symbol-function 'nndiscourse--score-pending))) + +(deffoo nndiscourse-request-group-scan (group &optional server info) + "\\[gnus-group-get-new-news-this-group] from *Group* calls this." + (nndiscourse--with-group server group + (gnus-message 5 "nndiscourse-request-group-scan: scanning %s..." group) + (nndiscourse-request-scan nil server) + (gnus-get-unread-articles-in-group + (or info (gnus-get-info gnus-newsgroup-name)) + (gnus-active (gnus-info-group info))) + (gnus-message 5 "nndiscourse-request-group-scan: scanning %s...done" group)) + t) + +;; gnus-group-select-group +;; gnus-group-read-group +;; gnus-summary-read-group +;; gnus-summary-read-group-1 +;; gnus-summary-setup-buffer +;; sets gnus-newsgroup-name +;; gnus-select-newsgroup +;; gnus-request-group +;; nndiscourse-request-group +(deffoo nndiscourse-request-group (group &optional server _fast _info) + (nndiscourse--with-group server group + (let* ((num-headers (length (nndiscourse-get-headers server group))) + (status (format "211 %d %d %d %s" num-headers + (or (nndiscourse--first-article-number server group) 1) + (or (nndiscourse--last-article-number server group) 0) + group))) + (gnus-message 7 "nndiscourse-request-group: %s" status) + (nnheader-insert "%s\n" status)) + t)) + +(defun nndiscourse--request-item (id server) + "Retrieve ID from SERVER as a property list." + (let* ((port (nndiscourse-proc-info-port (cdr (assoc server nndiscourse-processes)))) + (conn (json-rpc-connect nndiscourse-localhost port)) + (utf-decoder (lambda (x) + (decode-coding-string (with-temp-buffer + (set-buffer-multibyte nil) + (insert x) + (buffer-string)) + 'utf-8)))) + (add-function :filter-return (symbol-function 'json-read-string) utf-decoder) + (unwind-protect + (condition-case err (json-rpc conn "get_post" id) + (error (gnus-message 3 "nndiscourse--request-item: %s" (error-message-string err)) + nil)) + (remove-function (symbol-function 'json-read-string) utf-decoder)))) + +(defun nndiscourse-get-categories (server) + "Query SERVER /categories.json." + (seq-filter (lambda (x) (eq json-false (plist-get x :read_restricted))) + (let ((cats (funcall #'nndiscourse-rpc-request server "categories"))) + (when (seqp cats) cats)))) + +(cl-defun nndiscourse-get-topics (server slug &key (page 0)) + "Query SERVER /c/SLUG/l/latest.json, optionally for PAGE." + (funcall #'nndiscourse-rpc-request server + "category_latest_topics" + :category_slug slug :page page)) + +(cl-defun nndiscourse-get-posts (server &key (before 0)) + "Query SERVER /posts.json for posts before BEFORE." + (plist-get (let ((result (funcall #'nndiscourse-rpc-request server + "posts" :before before))) + (when (listp result) result)) + :latest_posts)) + +(defun nndiscourse--number-to-header (server group topic-id post-number) + "O(n) search for SERVER GROUP TOPIC-ID POST-NUMBER in headers." + (declare (indent defun)) + (when-let ((headers (nndiscourse-get-headers server group)) + (found (seq-position + headers (cons topic-id post-number) + (lambda (plst loc) + (cl-destructuring-bind (topic-id* . post-number*) loc + (and (= topic-id* (plist-get plst :topic_id)) + (= post-number* (plist-get plst :post_number)))))))) + (elt headers found))) + +(defun nndiscourse--earliest-header (server group topic-id) + "O(n) search for first header satisfying SERVER GROUP TOPIC-ID." + (declare (indent defun)) + (when-let ((headers (nndiscourse-get-headers server group))) + (seq-find (lambda (plst) (= topic-id (plist-get plst :topic_id))) + headers))) + +(defsubst nndiscourse-hash-count (table-or-obarray) + "Return number items in TABLE-OR-OBARRAY." + (let ((result 0)) + (nndiscourse--maphash (lambda (&rest _args) (cl-incf result)) table-or-obarray) + result)) + +(defsubst nndiscourse-hash-values (table-or-obarray) + "Return right hand sides in TABLE-OR-OBARRAY." + (let (result) + (nndiscourse--maphash (lambda (_key value) (push value result)) table-or-obarray) + result)) + +(defsubst nndiscourse-hash-keys (table-or-obarray) + "Return left hand sides in TABLE-OR-OBARRAY." + (let (result) + (nndiscourse--maphash (lambda (key _value) (push key result)) table-or-obarray) + result)) + +(defun nndiscourse--incoming (server) + "Drink from the SERVER firehose." + (interactive) + (when (zerop (nndiscourse-hash-count (nndiscourse-by-server server :categories-hashtb))) + (nndiscourse-request-list server)) + (cl-loop + with new-posts + for page-bottom = 1 then (plist-get (elt posts (1- (length posts))) :id) + for posts = (nndiscourse-get-posts server :before (1- page-bottom)) + until (null posts) + do (unless (nndiscourse-by-server server :last-id) + (setf (nndiscourse-by-server server :last-id) + (1- (plist-get (elt posts (1- (length posts))) :id)))) + do (cl-do* ((k 0 (1+ k)) + (plst (and (< k (length posts)) (elt posts k)) + (and (< k (length posts)) (elt posts k)))) + ((or (null plst) + (<= (plist-get plst :id) (nndiscourse-by-server server :last-id)))) + (push plst new-posts)) + until (<= (1- (plist-get (elt posts (1- (length posts))) :id)) + (nndiscourse-by-server server :last-id)) + finally + (let ((counts (gnus-make-hashtable))) + (dolist (plst new-posts) + (setf (nndiscourse-by-server server :last-id) (plist-get plst :id)) + (when-let ((not-deleted (not (plist-get plst :deleted_at))) + (type (plist-get plst :post_type)) + (category-id (plist-get plst :category_id)) + (group (nndiscourse-get-category server category-id)) + (full-group (gnus-group-full-name + group + (cons 'nndiscourse (list server))))) + (if-let ((it (plist-get plst :reply_to_post_number))) + (nndiscourse-set-ref server + (plist-get plst :id) + (plist-get (nndiscourse--number-to-header + server group + (plist-get plst :topic_id) it) + :id)) + (when-let ((it (plist-get (nndiscourse--earliest-header + server group + (plist-get plst :topic_id)) + :id))) + (nndiscourse-set-ref server (plist-get plst :id) it))) + (nndiscourse--replace-hash type (lambda (x) (1+ (or x 0))) counts) + (if-let ((info (gnus-get-info full-group))) + (progn + (unless (gnus-info-read info) + (with-suppressed-warnings ((obsolete gnus-range-normalize)) + (setf (gnus-info-read info) + (gnus-range-normalize `(1 . ,(1- (plist-get plst :id))))))) + (when-let ((last-number (nndiscourse--last-article-number server group)) + (next-number (plist-get plst :id)) + (gap `(,(1+ last-number) . ,(1- next-number)))) + (when (<= (car gap) (cdr gap)) + (with-suppressed-warnings ((obsolete gnus-range-normalize) + (obsolete gnus-range-add)) + (setf (gnus-info-read info) + (gnus-range-add (gnus-info-read info) + (gnus-range-normalize gap)))) + (when (gnus-info-marks info) + (setf (alist-get 'unexist (gnus-info-marks info)) nil))))) + (gnus-message 3 "nndiscourse--incoming: cannot update read for %s" group)) + (nndiscourse-set-headers server group + (nconc (nndiscourse-get-headers server group) (list plst))))) + (gnus-message + 5 (concat "nndiscourse--incoming: " + (format "last-id: %s, " (nndiscourse-by-server server :last-id)) + (let ((result "")) + (nndiscourse--maphash + (lambda (key value) + (setq result (concat result (format "type=%s +%s " key value)))) + counts) + result)))))) + +(deffoo nndiscourse-request-scan (&optional _group server) + (when (nndiscourse-good-server server) + (if (> 2 (- (truncate (float-time)) (nndiscourse-by-server server :last-scan-time))) + (gnus-message 7 "nndiscourse-request-scan: last scanned at %s" + (current-time-string (nndiscourse-by-server server :last-scan-time))) + (cl-destructuring-bind (seconds num-gc seconds-gc) + (benchmark-run (nndiscourse--incoming server)) + (setf (nndiscourse-by-server server :last-scan-time) (truncate (float-time))) + (gnus-message 5 (concat "nndiscourse-request-scan: Took %s seconds," + " with %s gc runs taking %s seconds") + seconds num-gc seconds-gc))))) + +(defsubst nndiscourse--make-message-id (id) + "Construct a valid Gnus message id from ID." + (format "<%s@discourse.org>" id)) + +(defsubst nndiscourse--make-references (server id) + "For SERVER, construct a space delimited string of message ancestors of ID." + (mapconcat (lambda (ref) (nndiscourse--make-message-id ref)) + (nndiscourse-get-refs server id) " ")) + +(defsubst nndiscourse--make-header (server group article-number) + "Construct mail headers from article header. +For SERVER GROUP article headers, construct mail headers from ARTICLE-NUMBER'th +article header. Gnus manual does say the term `header` is oft conflated." + (when-let ((header (nndiscourse--get-header server group article-number))) + (let ((score (plist-get header :score)) + (reads (plist-get header :reads))) + (make-full-mail-header + article-number + (plist-get header :topic_title) + (plist-get header :username) + (format-time-string "%a, %d %h %Y %T %z (%Z)" (date-to-time (plist-get header :created_at))) + (nndiscourse--make-message-id (plist-get header :id)) + (nndiscourse--make-references server (plist-get header :id)) + 0 0 nil + (append `((X-Discourse-Name . ,(plist-get header :name))) + `((X-Discourse-ID . ,(plist-get header :id))) + `((X-Discourse-Permalink . ,(format "%s/t/%s/%s/%s" + server + (plist-get header :topic_slug) + (plist-get header :topic_id) + (plist-get header :id)))) + (and (numberp score) + `((X-Discourse-Score . ,(number-to-string (truncate score))))) + (and (numberp reads) + `((X-Discourse-Reads . ,(number-to-string (truncate reads)))))))))) + +;; CORS denial +(defalias 'nndiscourse--request #'ignore) + +(deffoo nndiscourse-request-article (article-number &optional group server buffer) + (unless buffer (setq buffer nntp-server-buffer)) + (nndiscourse--with-group server group + (with-current-buffer buffer + (erase-buffer) + (let* ((header (nndiscourse--get-header server group article-number)) + (mail-header (nndiscourse--make-header server group article-number)) + (score (cdr (assq 'X-Discourse-Score (mail-header-extra mail-header)))) + (permalink (cdr (assq 'X-Discourse-Permalink (mail-header-extra mail-header)))) + (body (nndiscourse--massage (plist-get header :cooked)))) + (when body + (insert + "Newsgroups: " group "\n" + "Subject: " (mail-header-subject mail-header) "\n" + "From: " (or (mail-header-from mail-header) "nobody") "\n" + "Date: " (mail-header-date mail-header) "\n" + "Message-ID: " (mail-header-id mail-header) "\n" + "References: " (mail-header-references mail-header) "\n" + "Archived-at: " permalink "\n" + "Score: " score "\n" + "\n") + (mml-insert-multipart "alternative") + (mml-insert-tag 'part 'type "text/html" + 'disposition "inline" + 'charset "utf-8") + (save-excursion (mml-insert-tag '/part)) + (when-let + ((parent (car (last (nndiscourse-get-refs server (plist-get header :id))))) + (parent-author + (or (plist-get (nndiscourse--get-header server group parent) + :username) + "Someone")) + (parent-body (nndiscourse--massage + (plist-get + (nndiscourse--get-header server group parent) + :cooked)))) + (insert (nndiscourse--citation-wrap parent-author parent-body))) + (insert body) + (insert "\n") + (if (mml-validate) + (message-encode-message-body) + (gnus-message 2 "nndiscourse-request-article: Invalid mml:\n%s" + (buffer-string))) + (cons group article-number)))))) + +(deffoo nndiscourse-retrieve-headers (article-numbers &optional group server _fetch-old) + (with-current-buffer nntp-server-buffer + (erase-buffer) + (nndiscourse--with-group server group + (dolist (i article-numbers) + (when-let ((header (nndiscourse--make-header server group i))) + (nnheader-insert-nov header))) + 'nov))) + +;; Primarily because `gnus-get-unread-articles' won't update unreads +;; upon install (nndiscourse won't yet be in type-cache), +;; I am counting on logic in `gnus-read-active-file-1' in `gnus-get-unread-articles' +;; to get here upon install. +(deffoo nndiscourse-retrieve-groups (_groups &optional server) + (when (nndiscourse-good-server server) + ;; Utterly insane thing where `gnus-active-to-gnus-format' expects + ;; `gnus-request-list' output to be in `nntp-server-buffer' + ;; and populates `gnus-active-hashtb' + (nndiscourse-request-list server) + (with-current-buffer nntp-server-buffer + (with-suppressed-warnings ((obsolete gnus-select-method)) + (let (gnus-server-method-cache + (gnus-select-method '(nnnil))) + (gnus-active-to-gnus-format + (gnus-server-to-method (format "nndiscourse:%s" server)) + gnus-active-hashtb nil t)))) + (mapc (lambda (group) + (let ((full-name (gnus-group-full-name group `(nndiscourse ,server)))) + (gnus-get-unread-articles-in-group (gnus-get-info full-name) + (gnus-active full-name)))) + (nndiscourse-hash-values (nndiscourse-by-server server :categories-hashtb))) + ;; `gnus-read-active-file-2' will now repeat what I just did. Brutal. + 'active)) + +(deffoo nndiscourse-request-list (&optional server) + (let ((groups (nndiscourse-hash-values (nndiscourse-by-server server :categories-hashtb)))) + (when (and (nndiscourse-good-server server) (nndiscourse-server-opened server)) + (with-current-buffer nntp-server-buffer + (unless groups + (mapc + (lambda (plst) + (let ((group (plist-get plst :slug))) + (when (and group (not (zerop (length group)))) + (let* ((category-id (plist-get plst :id)) + (full-name (gnus-group-full-name group `(nndiscourse ,server))) + (subcategory-ids (append (plist-get plst :subcategory_ids) nil)) + (must-subscribe (not (gnus-get-info full-name)))) + (erase-buffer) + ;; only `gnus-activate-group' seems to call `gnus-parse-active' + (gnus-activate-group full-name nil nil `(nndiscourse ,server)) + (when must-subscribe + (funcall (if (fboundp 'gnus-group-set-subscription) + #'gnus-group-set-subscription + (with-no-warnings + #'gnus-group-unsubscribe-group)) + full-name gnus-level-default-subscribed t)) + (nndiscourse-set-category server category-id group) + (dolist (sub-id subcategory-ids) + (nndiscourse-set-category server sub-id group)) + (push group groups))))) + (nndiscourse-get-categories server))) + (erase-buffer) + (mapc (lambda (group) + (insert + (format "%s %d %d y\n" group + (or (nndiscourse--last-article-number server group) 0) + (or (nndiscourse--first-article-number server group) 1)))) + groups))) + t)) + +(defun nndiscourse-sentinel (process event) + "Wipe headers state when PROCESS dies from EVENT." + (unless (string= "open" (substring event 0 4)) + (gnus-message 2 "nndiscourse-sentinel: process %s %s" + (car (process-command process)) + (replace-regexp-in-string "\n$" "" event)) + (nndiscourse-close-server (process-name process)) + (gnus-backlog-shutdown))) + +(defun nndiscourse--message-user (server beg end _prev-len) + "Message SERVER related alert with `buffer-substring' from BEG to END." + (let ((string (buffer-substring beg end)) + (magic "::user::")) + (when (string-prefix-p magic string) + (message "%s: %s" server (substring string (length magic)))))) + +;; C-c C-c from followup buffer +;; message-send-and-exit +;; message-send +;; message-send-method-alist=message-send-news-function=message-send-news +;; gnus-request-post +;; nndiscourse-request-post +(deffoo nndiscourse-request-post (&optional _server) + nil) + +(defun nndiscourse--browse-post (&rest _args) + "What happens when I click on discourse Subject." + (when-let ((group-article gnus-article-current) + (server (nth 1 (gnus-find-method-for-group (car group-article)))) + (header (nndiscourse--get-header + server + (gnus-group-real-name (car group-article)) + (cdr group-article))) + (url (format "%s://%s/t/%s/%s/%s" + nndiscourse-scheme + server + (plist-get header :topic_slug) + (plist-get header :topic_id) + (plist-get header :post_number)))) + (browse-url url))) + +(defun nndiscourse--header-button-alist () + "Construct a buffer-local `gnus-header-button-alist' for nndiscourse." + (let* ((result (copy-alist gnus-header-button-alist)) + (references-value (assoc-default "References" result + (lambda (x y) (string-match-p y x)))) + (references-key (car (rassq references-value result)))) + (setq result (cl-delete "^Subject:" result :test (lambda (x y) (cl-search x (car y))))) + (setq result (cl-delete references-key result :test (lambda (x y) (cl-search x (car y))))) + (push (append '("^\\(Message-I[Dd]\\|^In-Reply-To\\):") references-value) result) + (push '("^Subject:" ": *\\(.+\\)$" 1 (>= gnus-button-browse-level 0) + nndiscourse--browse-post 1) + result) + result)) + +(defsubst nndiscourse--fallback-link () + "Cannot render post." + (let* ((header (nndiscourse--get-header + (nth 1 (gnus-find-method-for-group (car gnus-article-current))) + (gnus-group-real-name (car gnus-article-current)) + (cdr gnus-article-current))) + (body (nndiscourse--massage (plist-get header :cooked)))) + (with-current-buffer gnus-original-article-buffer + (article-goto-body) + (delete-region (point) (point-max)) + (insert body)))) + +(defalias 'nndiscourse--display-article + (lambda (article &optional all-headers header) + (condition-case-unless-debug err + (gnus-article-prepare article all-headers header) + (error + (if nndiscourse-render-post + (progn + (gnus-message 7 "nndiscourse--display-article: '%s' (falling back...)" + (error-message-string err)) + (nndiscourse--fallback-link) + (gnus-article-prepare article all-headers)) + (error (error-message-string err)))))) + "In case of shr failures, dump original link.") + +(defun nndiscourse-dump-diagnostics (server) + "Makefile recipe test-run. SERVER second element of `gnus-select-method'." + (if-let ((it (nndiscourse-alist-get server nndiscourse-processes nil nil #'equal))) + (dolist (b `(,byte-compile-log-buffer + ,gnus-group-buffer + "*Messages*" + ,(buffer-name (process-buffer (nndiscourse-proc-info-process it))) + ,(format " *%s-stderr*" server))) + (when (buffer-live-p (get-buffer b)) + (princ (format "\nBuffer: %s\n%s\n\n" b (with-current-buffer b (buffer-string))) + #'external-debugging-output))) + (error "Server %s not found among %s" server (mapcar #'car nndiscourse-processes)))) + +(defsubst nndiscourse--dense-time (time) + "Convert TIME to a floating point number. + +Written by John Wiegley (https://github.com/jwiegley/dot-emacs)." + (+ (* (car time) 65536.0) + (cadr time) + (/ (or (car (cdr (cdr time))) 0) 1000000.0))) + +(defalias 'nndiscourse--format-time-elapsed + (lambda (header) + (condition-case nil + (let ((date (mail-header-date header))) + (if (> (length date) 0) + (let* + ((then (nndiscourse--dense-time + (apply #'encode-time (parse-time-string date)))) + (now (nndiscourse--dense-time (current-time))) + (diff (- now then)) + (str + (cond + ((>= diff (* 86400.0 7.0 52.0)) + (if (>= diff (* 86400.0 7.0 52.0 10.0)) + (format "%3dY" (floor (/ diff (* 86400.0 7.0 52.0)))) + (format "%3.1fY" (/ diff (* 86400.0 7.0 52.0))))) + ((>= diff (* 86400.0 30.0)) + (if (>= diff (* 86400.0 30.0 10.0)) + (format "%3dM" (floor (/ diff (* 86400.0 30.0)))) + (format "%3.1fM" (/ diff (* 86400.0 30.0))))) + ((>= diff (* 86400.0 7.0)) + (if (>= diff (* 86400.0 7.0 10.0)) + (format "%3dw" (floor (/ diff (* 86400.0 7.0)))) + (format "%3.1fw" (/ diff (* 86400.0 7.0))))) + ((>= diff 86400.0) + (if (>= diff (* 86400.0 10.0)) + (format "%3dd" (floor (/ diff 86400.0))) + (format "%3.1fd" (/ diff 86400.0)))) + ((>= diff 3600.0) + (if (>= diff (* 3600.0 10.0)) + (format "%3dh" (floor (/ diff 3600.0))) + (format "%3.1fh" (/ diff 3600.0)))) + ((>= diff 60.0) + (if (>= diff (* 60.0 10.0)) + (format "%3dm" (floor (/ diff 60.0))) + (format "%3.1fm" (/ diff 60.0)))) + (t + (format "%3ds" (floor diff))))) + (stripped + (replace-regexp-in-string "\\.0" "" str))) + (concat (cond + ((= 2 (length stripped)) " ") + ((= 3 (length stripped)) " ") + (t "")) + stripped)))) + ;; print some spaces and pretend nothing happened. + (error " "))) + "Return time elapsed since HEADER was sent. + +Written by John Wiegley (https://github.com/jwiegley/dot-emacs).") + +;; Evade melpazoid! +(funcall #'fset 'gnus-user-format-function-S + (symbol-function 'nndiscourse--format-time-elapsed)) + +(let ((custom-defaults + ;; For now, revert any user overrides that I can't predict. + (mapcar (lambda (x) + (let* ((var (cl-first x)) + (sv (get var 'standard-value))) + (when (eq var 'gnus-default-adaptive-score-alist) + (setq sv (list `(quote + ,(mapcar (lambda (entry) + (cons (car entry) + (assq-delete-all 'from (cdr entry)))) + (eval (car sv))))))) + (cons var sv))) + (seq-filter (lambda (x) (eq 'custom-variable (cl-second x))) + (append (get 'gnus-score-adapt 'custom-group) + (get 'gnus-score-default 'custom-group)))))) + (add-to-list 'gnus-parameters `("^nndiscourse" + ,@custom-defaults + (gnus-summary-make-false-root 'adopt) + (gnus-cite-hide-absolute 5) + (gnus-cite-hide-percentage 0) + (gnus-cited-lines-visible '(2 . 2)) + (gnus-simplify-subject-functions (quote (gnus-simplify-subject-fuzzy))) + (gnus-summary-line-format "%3t%U%R%uS %I%(%*%-10,10f %s%)\n") + (gnus-auto-extend-newsgroup nil) + (gnus-add-timestamp-to-message t) + (gnus-summary-display-article-function + (quote ,(symbol-function 'nndiscourse--display-article))) + (gnus-header-button-alist + (quote ,(nndiscourse--header-button-alist))) + (gnus-visible-headers ,(concat gnus-visible-headers "\\|^Score:"))))) + +(defun nndiscourse-article-mode-activate () + "Augment the `gnus-article-mode-map' conditionally." + (when (nndiscourse--gate) + (nndiscourse-article-mode))) + +(defun nndiscourse-summary-mode-activate () + "Shadow some bindings in `gnus-summary-mode-map' conditionally." + (when (nndiscourse--gate) + (nndiscourse-summary-mode))) + +(nnoo-define-skeleton nndiscourse) + +(defsubst nndiscourse--who-am-i () + "Get my Discourse username." + "dickmao") + +;; I believe I did try buffer-localizing hooks, and it wasn't sufficient +(add-hook 'gnus-article-mode-hook #'nndiscourse-article-mode-activate) +(add-hook 'gnus-summary-mode-hook #'nndiscourse-summary-mode-activate) + +;; `gnus-newsgroup-p' requires valid method post-mail to return t +(add-to-list 'gnus-valid-select-methods '("nndiscourse" post-mail) t) + +(add-function + :filter-return (symbol-function 'message-make-fqdn) + (lambda (val) + (if (and (nndiscourse--gate) + (cl-search "--so-tickle-me" val)) + "discourse.org" val))) + +(add-function + :before-until (symbol-function 'message-make-from) + (lambda (&rest _args) + (when (nndiscourse--gate) + (concat (nndiscourse--who-am-i) "@discourse.org")))) + +;; the let'ing to nil of `gnus-summary-display-article-function' +;; in `gnus-summary-select-article' dates back to antiquity. +(add-function + :around (symbol-function 'gnus-summary-display-article) + (lambda (f &rest args) + (cond ((nndiscourse--gate) + (let ((gnus-summary-display-article-function + (symbol-function 'nndiscourse--display-article))) + (apply f args))) + (t (apply f args))))) + +;; possible impostors +(setq gnus-valid-select-methods (cl-remove-if (lambda (method) + (equal (car method) "nndiscourse")) + gnus-valid-select-methods)) +(gnus-declare-backend "nndiscourse" 'post-mail 'address) + +(provide 'nndiscourse) + +;;; nndiscourse.el ends here diff --git a/nndiscourse/.gitignore b/nndiscourse/.gitignore new file mode 100644 index 0000000..134739b --- /dev/null +++ b/nndiscourse/.gitignore @@ -0,0 +1,10 @@ +/.yardoc +/_yardoc/ +/coverage/ +/doc/ +/pkg/ +/spec/reports/ +/tmp/ + +# rspec failure tracking +.rspec_status diff --git a/nndiscourse/.rubocop.yml b/nndiscourse/.rubocop.yml new file mode 100644 index 0000000..e2673a5 --- /dev/null +++ b/nndiscourse/.rubocop.yml @@ -0,0 +1,13 @@ +AllCops: + Exclude: + - 'db/**/*' + - 'config/**/*' + - 'script/**/*' + - 'vendor/**/*' + - 'bin/**/*' + - !ruby/regexp /old_and_unused\.rb$/ + +Layout/LineLength: + Max: 100 + Exclude: + - !ruby/regexp /.*\.gemspec$/ \ No newline at end of file diff --git a/nndiscourse/.ruby-version b/nndiscourse/.ruby-version new file mode 100644 index 0000000..097a15a --- /dev/null +++ b/nndiscourse/.ruby-version @@ -0,0 +1 @@ +2.6.2 diff --git a/nndiscourse/Gemfile b/nndiscourse/Gemfile new file mode 100644 index 0000000..42ae9bf --- /dev/null +++ b/nndiscourse/Gemfile @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +gem 'discourse_api', github: 'dickmao/discourse_api', branch: 'dev' +gem 'jimson', github: 'dickmao/jimson', branch: 'next' + +# Specify your gem's dependencies in nndiscourse.gemspec +gemspec diff --git a/nndiscourse/Gemfile.lock b/nndiscourse/Gemfile.lock new file mode 100644 index 0000000..01c81ed --- /dev/null +++ b/nndiscourse/Gemfile.lock @@ -0,0 +1,98 @@ +GIT + remote: https://github.com/dickmao/discourse_api.git + revision: f7e79ed525bc65567eba49a838d02c8f4a595318 + branch: dev + specs: + discourse_api (0.38.0.pre.dev) + faraday (~> 0.9) + faraday_middleware (~> 0.10) + rack (>= 1.6) + +GIT + remote: https://github.com/dickmao/jimson.git + revision: 22160cf954fdad3d44c4d597b2f47cc7fe58200e + branch: next + specs: + jimson (0.11.0) + blankslate (~> 3.1, >= 3.1.3) + multi_json (~> 1, >= 1.11.2) + rack (~> 2, >= 2.1.4) + rest-client (~> 1, >= 1.7.3) + +PATH + remote: . + specs: + nndiscourse (0.1.0) + jimson (~> 0.11.0) + thor (~> 0.20.3) + +GEM + remote: https://rubygems.org/ + specs: + ast (2.4.0) + blankslate (3.1.3) + diff-lcs (1.3) + domain_name (0.5.20190701) + unf (>= 0.0.5, < 1.0.0) + faraday (0.17.3) + multipart-post (>= 1.2, < 3) + faraday_middleware (0.14.0) + faraday (>= 0.7.4, < 1.0) + http-cookie (1.0.3) + domain_name (~> 0.5) + jaro_winkler (1.5.4) + mime-types (2.99.3) + multi_json (1.15.0) + multipart-post (2.1.1) + netrc (0.11.0) + parallel (1.19.1) + parser (2.7.0.2) + ast (~> 2.4.0) + rack (2.2.3) + rainbow (3.0.0) + rake (13.0.1) + rest-client (1.8.0) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 3.0) + netrc (~> 0.7) + rspec (3.9.0) + rspec-core (~> 3.9.0) + rspec-expectations (~> 3.9.0) + rspec-mocks (~> 3.9.0) + rspec-core (3.9.1) + rspec-support (~> 3.9.1) + rspec-expectations (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-mocks (3.9.1) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-support (3.9.2) + rubocop (0.79.0) + jaro_winkler (~> 1.5.1) + parallel (~> 1.10) + parser (>= 2.7.0.1) + rainbow (>= 2.2.2, < 4.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 1.7) + ruby-progressbar (1.10.1) + thor (0.20.3) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.7) + unicode-display_width (1.6.1) + +PLATFORMS + ruby + +DEPENDENCIES + bundler (~> 2.0) + discourse_api! + jimson! + nndiscourse! + rake (~> 13.0) + rspec (~> 3.4) + rubocop (~> 0.69) + +BUNDLED WITH + 2.0.2 diff --git a/nndiscourse/Makefile b/nndiscourse/Makefile new file mode 100644 index 0000000..fbae043 --- /dev/null +++ b/nndiscourse/Makefile @@ -0,0 +1,11 @@ +SHELL := /bin/bash +REPO := $(shell git rev-parse --show-toplevel) + +.PHONY: test-compile +test-compile: + bundle install --quiet + bundle exec rake + +.PHONY: clean +clean: + @echo Not running bundle clean diff --git a/nndiscourse/README.md b/nndiscourse/README.md new file mode 100644 index 0000000..7419bf7 --- /dev/null +++ b/nndiscourse/README.md @@ -0,0 +1,39 @@ +# Nndiscourse + +Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/nndiscourse`. To experiment with that code, run `bin/console` for an interactive prompt. + +TODO: Delete this and the text above, and describe your gem + +## Installation + +Add this line to your application's Gemfile: + +```ruby +gem 'nndiscourse' +``` + +And then execute: + + $ bundle + +Or install it yourself as: + + $ gem install nndiscourse + +## Usage + +TODO: Write usage instructions here + +## Development + +After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. + +To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). + +## Contributing + +Bug reports and pull requests are welcome on GitHub at https://github.com/dickmao/nndiscourse. + +## License + +The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). diff --git a/nndiscourse/Rakefile b/nndiscourse/Rakefile new file mode 100644 index 0000000..5c857b3 --- /dev/null +++ b/nndiscourse/Rakefile @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +require 'bundler' + +Bundler::GemHelper.install_tasks + +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new(:spec) + +require 'rubocop/rake_task' +RuboCop::RakeTask.new(:rubocop) + +task test: :spec +task lint: :rubocop +task default: %i[spec lint] diff --git a/nndiscourse/lib/nndiscourse.rb b/nndiscourse/lib/nndiscourse.rb new file mode 100644 index 0000000..c7e986b --- /dev/null +++ b/nndiscourse/lib/nndiscourse.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +require 'nndiscourse/version' +require 'jimson' +require 'discourse_api' + +module Nndiscourse + # This proxies DiscourseApi::Client + class Handler < DiscourseApi::Client + extend Jimson::Handler + + def initialize(url) + super(url) + end + + def send(method_name, *params) + params.map! do |param| + if param.is_a?(Hash) + param.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + else + param + end + end + super(method_name, *params) + end + end + + # Process contains a Jimson Server instance + class Process + def initialize(url, port = 8999) + @server = Jimson::Server.new(Handler.new(url), port: port, show_errors: true) + @server.start + end + end +end diff --git a/nndiscourse/lib/nndiscourse/version.rb b/nndiscourse/lib/nndiscourse/version.rb new file mode 100644 index 0000000..6aa6a5c --- /dev/null +++ b/nndiscourse/lib/nndiscourse/version.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +module Nndiscourse + VERSION = '0.1.0' +end diff --git a/nndiscourse/nndiscourse.gemspec b/nndiscourse/nndiscourse.gemspec new file mode 100644 index 0000000..d8357db --- /dev/null +++ b/nndiscourse/nndiscourse.gemspec @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +require File.expand_path('lib/nndiscourse/version', __dir__) + +Gem::Specification.new do |spec| + spec.name = 'nndiscourse' + spec.version = Nndiscourse::VERSION + spec.authors = ['dickmao'] + spec.email = [] + + spec.summary = 'API calls from nndiscourse.el to Discourse' + spec.homepage = 'https://github.com/dickmao/nndiscourse' + spec.license = 'GPLv3' + + spec.files = Dir['lib/**/*.rb'] + spec.test_files = spec.files.grep(%r{^spec/}) + spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) } + spec.require_path = 'lib' + + spec.add_runtime_dependency 'jimson', '~> 0.11.0' + spec.add_runtime_dependency 'thor', '~> 0.20.3' + + spec.add_development_dependency 'bundler', '~> 2.0' + spec.add_development_dependency 'rake', '~> 13.0' + spec.add_development_dependency 'rspec', '~> 3.4' + spec.add_development_dependency 'rubocop', '~> 0.69' +end diff --git a/nndiscourse/nndiscourse.thor b/nndiscourse/nndiscourse.thor new file mode 100644 index 0000000..3b3c3dd --- /dev/null +++ b/nndiscourse/nndiscourse.thor @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require 'thor' +require 'nndiscourse' + +# CLI documentation string +class CLI < Thor + desc 'serve URL', 'Run the jimson server' + method_option :port, aliases: '-p', desc: 'Port to listen on' + def serve(url) + Nndiscourse::Process.new(url, options[:port]) + end +end diff --git a/nndiscourse/spec/nndiscourse_spec.rb b/nndiscourse/spec/nndiscourse_spec.rb new file mode 100644 index 0000000..775596b --- /dev/null +++ b/nndiscourse/spec/nndiscourse_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require 'nndiscourse' + +RSpec.describe Nndiscourse do + it 'has a version number' do + expect(Nndiscourse::VERSION).not_to be nil + end + + it 'does something useful' do + expect(true).to eq(true) + end +end diff --git a/nndiscourse/spec/spec_helper.rb b/nndiscourse/spec/spec_helper.rb new file mode 100644 index 0000000..de02fec --- /dev/null +++ b/nndiscourse/spec/spec_helper.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +require 'bundler/setup' +require 'nndiscourse' + +RSpec.configure do |config| + # Enable flags like --only-failures and --next-failure + config.example_status_persistence_file_path = '.rspec_status' + + # Disable RSpec exposing methods globally on `Module` and `main` + config.disable_monkey_patching! + + config.expect_with :rspec do |c| + c.syntax = :expect + end +end diff --git a/scratch.el b/scratch.el new file mode 100644 index 0000000..1b73ba7 --- /dev/null +++ b/scratch.el @@ -0,0 +1,576 @@ +(require 'request) +(require 'shr) + +(require 'simple-httpd) + +(require 'json) +(require 'json-rpc) +(require 'shr) + +;; poor man's +(let ((result)) + (request "localhost:8999" + :type "POST" + :data (json-encode '(("method" . "category_latest_topics") ("jsonrpc" . "2.0") ("params" :category_slug "emacs") ("id" . 1))) + :sync t + :parser 'json-read + :success (cl-function + (lambda (&key data &allow-other-keys) + (setq result (cdr (assq 'result data)))))) + result) + +;; rich man's +(add-to-list 'gnus-secondary-select-methods '(nndiscourse "emacs-china.org" (nndiscourse-scheme "https"))) + +(let ((server "emacs-china.org")) + (nndiscourse-open-server server) + (seq-filter (lambda (raw) (cl-search "emacs" (cdr raw))) + (seq-map (lambda (x) (cons (plist-get x :raw) (plist-get x :topic_title))) + (nndiscourse-get-posts server)))) + +(let* ((server "emacs-china.org") + (group "emacs") + (headers (nndiscourse-get-headers server group))) + (nndiscourse-open-server server) + (cons (nndiscourse--first-article-number server group) + (nndiscourse--last-article-number server group)) + (nndiscourse--get-header server group 72124)) + +(let ((nntp-server-buffer (get-buffer-create "foo"))) + (nndiscourse-request-list "emacs-china.org")) + +(let ((server "emacs-china.org") + result) + (nndiscourse-open-server server) + (with-current-buffer (nndiscourse--server-buffer server) + (mapatoms (lambda (k) + (push (nndiscourse-get-category server k) result)) + nndiscourse--categories-hashtb) + result)) + +(let ((server "emacs-china.org") + (nndiscourse--last-id nil) + (group "emacs")) + (nndiscourse-open-server server) + (with-current-buffer (nndiscourse--server-buffer server) + (mapatoms (lambda (k) + (nndiscourse-set-headers server k nil)) + nndiscourse--headers-hashtb)) + (nndiscourse--incoming server) + (length (nndiscourse-get-headers server group))) + +(nndiscourse-get-headers "emacs-china.org" "emacs") + +(let ((server "emacs-china.org")) + (nndiscourse-open-server server) + (nndiscourse--incoming server) + (length (nndiscourse-get-headers server "emacs"))) + +(let ((server "emacs-china.org")) + (nndiscourse-get-ref + server + (plist-get (car (last (nndiscourse-get-headers server))) :id))) + +(let ((server "emacs-china.org") + result) + (length (nndiscourse-get-headers server)) + (with-current-buffer (nndiscourse--server-buffer server) + (nndiscourse--maphash + (lambda (key value) + (!cons `(,key ,(nndiscourse-get-ref server key)) result)) + nndiscourse-refs-hashtb)) + result) + +(let ((foo (lambda (f &rest args) + (cl-macrolet ((gnus-active (_group) `(cons 1 10))) + (apply f args))))) + (add-function :around (symbol-function 'gnus-group-insert-group-line-info) + foo) + (unwind-protect (gnus-group-insert-group-line-info "nndiscourse:emacs") + (remove-function (symbol-function 'gnus-group-insert-group-line-info) foo))) + +(gnus-group-entry "nndiscourse:emacs") + +(gnus-info-read (gnus-get-info "nndiscourse:emacs")) + +(let ((foo (lambda (args) + (let ((group (car args))) + (if (gnus-group-entry group) + args + (setf (nthcdr 3 args) 10) + args)))) + (group "nndiscourse:emacs")) + (add-function :filter-args (symbol-function 'gnus-group-insert-group-line) foo) + (unwind-protect + (gnus-group-insert-group-line group + gnus-level-killed + nil + 40 + (gnus-method-simplify + (gnus-find-method-for-group group))) + (remove-function (symbol-function 'gnus-group-insert-group-line) foo))) + + + +(nndiscourse--gethash "emacs-china.org" nndiscourse-headers-hashtb) + +(defun nndiscourse--get-header (server group article-number) + "Amongst SERVER GROUP headers, binary search ARTICLE-NUMBER." + (declare (indent defun)) + (let ((headers (nndiscourse-get-headers server group))) + (cl-flet ((id-of (k) (plist-get (elt headers k) :id))) + (cl-do* ((x article-number) + (l 0 (if (> x m) (1+ m) l)) + (r (length headers) (if (< x m) m r)) + (m (/ (- r l) 2))) + ((or (<= (- r l) 1) (= x (id-of m))) + (and (< m (length headers)) (>= m 0) (= x (id-of m)) (elt headers m))))))) + +(defun bsearch (article-number) + (let ((headers '((:id 3) (:id 5) (:id 13) (:id 23) (:id 30)))) + (cl-flet ((id-of (k) (plist-get (elt headers k) :id))) + (cl-do* ((x article-number) + (l 0 (if dir (1+ m) l)) + (r (length headers) (if dir r m)) + (m (/ (- r l) 2) (+ m (* (if dir 1 -1) (max 1 (/ (- r l) 2))))) + (dir (> x (id-of m)) (> x (id-of m)))) + ((or (<= (- r l) 1) (= x (id-of m))) + (and (< m (length headers)) (>= m 0) (= x (id-of m)) (elt headers m))) + )))) + +(bsearch 29) + + +(setq nndiscourse-headers-hashtb (gnus-make-hashtable)) +(let ((server "emacs-china.org")) + (seq-map (-rpartial #'plist-get :post_number) + (plist-get (nndiscourse-rpc-request "" "posts" :before 0) :latest_posts))) + +(defun nnreddit-rpc-get (&optional server) + "Retrieve the PRAW process for SERVER." + (setq proc (make-process :name server + :buffer (get-buffer-create (format " *%s*" server)) + :command praw-command + :connection-type 'pipe + :noquery t + :sentinel #'nnreddit-sentinel + :stderr (get-buffer-create (format " *%s-stderr*" server)))) + proc) + + + +;; run thor on command line, and don't instantiate it in emacs +(let ((server "emacs-china.org")) + (cl-letf (((symbol-function 'nndiscourse-open-server) (lambda (&rest args) t))) + ;; (nndiscourse-rpc-request "" "category_latest_topics" '(:category_slug . "emacs")) + (nndiscourse-rpc-request server "category_latest_topics" :category_slug "emacs"))) + +(let ((server "emacs-china.org")) + (seq-map (-rpartial #'plist-get :title) (nndiscourse-get-topics server "emacs"))) + +(let ((server "emacs-china.org")) + (seq-map (-rpartial #'plist-get :topic_title) (nndiscourse-get-posts server :before 71000))) + +(let ((server "emacs-china.org")) + (apply #'min (seq-map (-rpartial #'plist-get :id) (nndiscourse-get-posts server)))) + +(let ((server "emacs-china.org")) + (seq-filter (lambda (raw) (cl-search "org-mode" raw)) + (seq-map (lambda (x) (plist-get x :raw)) (nndiscourse-get-posts server)))) + +(let ((server "emacs-china.org")) + (seq-filter (lambda (raw) (cl-search "word wrap" (cdr raw))) + (seq-map (lambda (x) (cons (plist-get x :raw) (plist-get x :topic_title))) + (nndiscourse-get-posts server)))) + +(let ((server "emacs-china.org")) + (seq-map (-rpartial #'plist-get :slug) (nndiscourse-get-categories server))) + +(gnus-group-full-name "programming" "nndiscourse:") + +(let ((server "emacs-china.org")) + (gnus-get-info (gnus-group-full-name "programming" `(nndiscourse ,server)))) + +(let* ((rpc (json-rpc-connect "localhost" 8999)) + (cooked (plist-get (json-rpc rpc "get_post" 12) :cooked))) + (with-temp-buffer + (insert cooked) + (shr-render-buffer (current-buffer)))) + +(json-read-from-string (buffer-string)) + +(makunbound 'httpd-root) +(custom-set-default 'httpd-root "/home/dick/nndiscourse") +(custom-set-default 'httpd-port 9009) +(httpd-start) + +(let ((site "http://localhost:3000/login") + result) + (request site + :parser (lambda () + (let ((foo (make-temp-file "foo"))) + (write-region (point-min) (point-max) foo) + (eww-open-file foo))) + :data '(("username" . "priapushk@gmail.com") + ("password" . "StT9nyTvyD") + ("redirect" . site)) + :sync t + :success (cl-function + (lambda (&key data symbol-status response error-thrown + &allow-other-keys + &aux (response-status (request-response-status-code response))) + (setq result (format "SUCCESS: ss=%s r=%s et=%s data=%s" + symbol-status response-status error-thrown data)))) + :error (cl-function + (lambda (&key data symbol-status response error-thrown + &allow-other-keys + &aux (response-status (request-response-status-code response))) + (setq result (format "ERROR: ss=%s r=%s et=%s data=%s" + symbol-status response-status error-thrown data))))) + result) + +(let (result) + (request "http://localhost:3000/user-api-key/new" + :type "GET" + ;; :parser (lambda () (shr-render-buffer (current-buffer))) + :parser (lambda () + (let ((foo (make-temp-file "foo"))) + (write-region (point-min) (point-max) foo) + (eww-open-file foo))) + :data `(("auth_redirect" . "https://localhost:9009") + ("application_name" . "nndiscourse") + ("client_id" . "nndiscourse-0") + ("scopes" . "read,write,message_bus,session_info") + ("public_key" . ,(shell-command-to-string "gpg --export-secret-keys 87681210 | openpgp2ssh 87681210 | openssl rsa -pubout")) + ("nonce" . ,(shell-command-to-string "head /dev/urandom | tr -dc A-Za-z0-9 | head -c10 -"))) + :sync t + :success (cl-function + (lambda (&key data symbol-status response error-thrown + &allow-other-keys + &aux (response-status (request-response-status-code response))) + (setq result (format "SUCCESS: ss=%s r=%s et=%s data=%s" + symbol-status response-status error-thrown data)))) + :error (cl-function + (lambda (&key data symbol-status response error-thrown + &allow-other-keys + &aux (response-status (request-response-status-code response))) + (setq result (format "ERROR: ss=%s r=%s et=%s data=%s" + symbol-status response-status error-thrown data))))) + result) + +;; can't use curl because authorization requires javascript +;; need to go through the browser, but can't auth_redirect, must +;; copy-paste to emacs sadly. + +(defun nndiscourse-first-to-succeed (&rest commands) + "Return output of first command among COMMANDS to succeed, NIL if none." + (let (conds) + (dolist (c + (nreverse commands) + (eval `(with-temp-buffer + ,(cons 'cond conds)))) + (push `((let ((_ (erase-buffer)) + (rv (apply #'call-process + ,(substring c 0 (search " " c)) + nil (quote (t nil)) nil + (split-string ,(aif (search " " c) (substring c (1+ it)) ""))))) + (and (numberp rv) (zerop rv))) + (buffer-string)) + conds)))) + + +(print-out (cl-macroexpand '(nndiscourse-first-to-succeed "true" "false"))) +(nndiscourse-first-to-succeed "false" "false" "true") + +(let* ((nndiscourse-public-keyfile (expand-file-name "~/.ssh/id_rsa.pub")) + (nndiscourse-private-keyfile (file-name-sans-extension nndiscourse-public-keyfile))) + (nndiscourse-first-to-succeed + (format "ssh-keygen -f %s -e -m pkcs8" nndiscourse-public-keyfile) + (format "openssl rsa -in %s -pubout" nndiscourse-private-keyfile))) + +(defun build-query (&optional site) + (unless site + (setq site "http://localhost:3000")) + (let* (result + (shell-command-default-error-buffer "*scratch*") + (nndiscourse-public-keyfile (expand-file-name "~/.ssh/id_rsa.pub")) + (nndiscourse-private-keyfile (file-name-sans-extension nndiscourse-public-keyfile))) + (format "%s/user-api-key/new?%s" + site + (url-build-query-string + `((auth_redirect "https://api.discourse.org/api/auth_redirect") + (application_name "nndiscourse") + (client_id "nndiscourse-0") + (scopes "read,write,message_bus,session_info") + ;; (public_key ,(shell-command-to-string (format "gpg --export-secret-keys %s | openpgp2ssh %s | openssl rsa -pubout 2>/dev/null" "87681210" "87681210"))) + (public_key ,(or (with-temp-buffer + (let ((retval + (apply #'call-process + "ssh-keygen" nil t nil + (split-string + (format "-f %s -e -m pkcs8" + nndiscourse-public-keyfile))))) + (when (and (numberp retval) (zerop retval)) + (buffer-string)))) + (with-temp-buffer + (let ((retval + (apply #'call-process + "openssl" nil t nil + (split-string + (format "rsa -in %s -pubout" + nndiscourse-private-keyfile))))) + (when (and (numberp retval) (zerop retval)) + (buffer-string)))))) + (nonce ,(shell-command-to-string "head /dev/urandom | tr -dc A-Za-z0-9 | head -c10 -"))))))) + +;; eww doesn't fly for lack of javascript +(build-query "http://localhost:3000") + +;; client = DiscourseApi::Client.new("http://localhost:3000") +;; client = DiscourseApi::Client.new('http://localhost:3000', 'b28f0cea1b4fb749b9a3b8683760388c', 'priapushk', 'User-Api-Key', 'User-Api-Client-Id') +;; proc = Nndiscourse::Process.new('http://localhost:3000', 'b28f0cea1b4fb749b9a3b8683760388c', 'priapushk') +;; (let ((user-api-key +;; (alist-get +;; 'key +;; (with-temp-buffer +;; (shell-command (concat "openssl pkeyutl -decrypt" +;; " -inkey <(gpg --export-secret-keys 87681210 | " +;; "openpgp2ssh 87681210 | openssl rsa 2>/dev/null) " +;; "-in <(cat /tmp/decryptme | base64 --decode)") +;; t) +;; (json-read))))) +;; user-api-key) + +(user-api-key "https://api.discourse.org/api/auth_redirect?payload=DiHDYIoM2pzmLfdh2FnZhwTyQfK8bdbebiol2jBouObQGojI5yF%2ByoO00ael%0AO7LstQj1uCBjQnO%2BjrbI03Bvbz1LDvQyVAMYMIPBmwam48JqfCQHm73Z0Qkc%0A%2Bid4LNo8xiP2EiycQKgYRh2KY1y19v%2FXD3Osm6o%2Fn%2BrawpVdJ0fSZTgBkHV%2F%0AcjaCAIRpOOoFzlH1CeSZBUTEl6GhT1ALKR7yurqS2GZ5MW8bIts3MYV5FQss%0A0jSDH6AG2xJENBpRJ9x%2FvM5t5DRbp2jy3105H4d4se2Qfexgf1dfrvDOpaIZ%0Aq5UTqnOatPZ94vIqjBYTnlroh8hlGGU8QKK01k6QhQ%3D%3D%0A") + +(defun user-api-key (return-url) + (let* ((emacs-china-url "https://api.discourse.org/api/auth_redirect?payload=ZYOTYZz0uM%2B3xBIRTN%2FsOoz3iZvLW%2BdWtPT%2FAOD8Ge1PWJjpGWPijLQlukl7%0AjcD%2Fd2IOTM8fBUUxO9R2P314frGKTHQ1bx%2FLCVxXhcD7CN%2FQxxPUYkr3BEui%0ANAUVW0uIH8el6VbPfPoeUfTp%2BGGYNBNkpqdZJj1sTqi%2FcbrXMlMUSfsYlqKW%0AQLQYr1XuY42vT1B%2FmVUH1i7xad6c3bb6ayQrBoTFJicEG14tEa%2BAtICUu9KI%0Aod%2FlZ2Sq%2Ffid7qnS9q0Z7l4vl6nOkT3T8ngqU2Bajx0Jo6pVcDLw6lcLv8bk%0A%2Bc2HI%2BY4zT98cEzdJjJ2XxvUnEqCPXvs6VvYe9vRcw%3D%3D%0A") + (parsed-url (url-generic-parse-url return-url)) + (encrypted (cl-second + (assoc-string "payload" (url-parse-query-string + (cdr (url-path-and-query parsed-url)))))) + (user-api-key + (alist-get + 'key + (with-temp-buffer + (shell-command (concat "openssl pkeyutl -decrypt" + " -inkey " (expand-file-name "~/.ssh/id_rsa") + " -in " + (format "<(echo %s | base64 --decode)" (replace-regexp-in-string "\\s-" "" encrypted))) + t) + (json-read))))) + user-api-key)) + +(let ((foo (gnus-make-hashtable))) + (nndiscourse--sethash 1 '(a b c (c . e)) foo)) + +(let ((foo (gnus-make-hashtable))) + (nndiscourse--sethash "froo" '(a b c (c . e)) foo) + (let ((posts (nndiscourse--gethash "froo" foo)) + (index 2)) + (when (< (length posts) (1+ index)) + (nndiscourse--sethash "froo" + (nconc posts (make-list (- (1+ index) + (length posts)) + nil)) + foo)) + + (setf (elt (nndiscourse--gethash "froo" foo) index) "hi!") + (nndiscourse--gethash "froo" foo))) + +(let ((id (plist-get plst :id)) + (group (plist-get plst :creation_id)) + (topic-title (plist-get plst :topic_title)) + (post_number (plist-get plst :post_number))) + (nndiscourse--sethash + id + (list group topic-title post_number) + nndiscourse-location-hashtb) + (nndiscourse--sethash + group + (let* ((posts-hashtb + (or (nndiscourse--gethash group nndiscourse-headers-hashtb) + (gnus-make-hashtable))) + (posts (nndiscourse--gethash topic-title posts-hashtb))) + (when (< (length posts) post-number) + (nndiscourse--sethash + topic-title + (nconc posts (make-list (- post-number (length posts)) nil)) + posts-hashtb)) + (setf (elt (nndiscourse--gethash topic-title posts-hashtb) + post-number) + plst) + posts-hashtb) + nndiscourse-headers-hashtb)) + +(setq gnus-server-method-cache nil) +(gnus-server-to-method "nndiscourse:emacs-china.org") + +(setq gnus-secondary-select-methods (cdr gnus-secondary-select-methods)) + +(gnus-method-to-server-name '(nndiscourse "emacs-china.org" :scheme "https")) +(gnus-find-method-for-group "nndiscourse+emacs-china.org:emacs-general") + +(add-to-list 'gnus-secondary-select-methods '(nndiscourse "emacs-china.org" (nndiscourse-scheme "https"))) + +(nndiscourse-open-server "emacs-china.org") +(nndiscourse-proc-info-process (cdr (assoc "emacs-china.org" nndiscourse-processes))) +(let ((nntp-server-buffer (get-buffer-create "foo"))) + (nndiscourse-request-list "emacs-china.org")) + +(process-contact (alist-get "emacs-china.org" nndiscourse-processes nil nil #'equal)) + +(mapcan (lambda (b) (let ((foo (buffer-name b))) + (and (cl-search "stderr" foo) (list foo)))) + (buffer-list)) + +(gnus-find-method-for-group "nndiscourse+emacs-china.org:emacs") + + +(condition-case nil + (prog1 t + (delete-process (make-network-process :name "test-port" + :noquery t + :host nndiscourse-localhost + :service 37529 + :buffer nil + :stop t))) + (file-error nil)) + +(gnus-compress-sequence (gnus-range-normalize '(72330 . 72367))) + +(set (gv-ref (with-current-buffer "scratch.el" + this-is-mine)) t) + + +(format-time-string "%a, %d %h %Y %T %z (%Z)" (date-to-time "2020-02-04T12:52:06.942Z")) +(date-to-time "2020-02-04T12:52:06.942Z") + +(let ((marks '((unexist (1 . 1) 4) (halle t))) + (marks nil)) + (setf (alist-get 'unexist marks) `((2 . 2) (1 . 1))) + (alist-get 'unexist marks) + ) + +(require 'shr) +(rfc2231-parse-qp-string "Content-Type: text/html; charset=UTF-8") + +(defmacro mm-with-part (handle &rest forms) + "Run FORMS in the temp buffer containing the contents of HANDLE." + `(let* ((handle ,handle)) + (when (and (mm-handle-buffer handle) + (buffer-name (mm-handle-buffer handle))) + (with-temp-buffer + (set-buffer-multibyte (buffer-local-value 'enable-multibyte-characters + (mm-handle-buffer handle))) + (insert-buffer-substring (mm-handle-buffer handle)) + (mm-decode-content-transfer-encoding + (mm-handle-encoding handle) + (mm-handle-media-type handle)) + ,@forms)))) + +(defun mm-shr (handle) + (let ((shr-width (if shr-use-fonts + nil + fill-column)) + (shr-content-function (lambda (id) + (let ((handle (mm-get-content-id id))) + (when handle + (mm-with-part handle + (buffer-string)))))) + (shr-inhibit-images mm-html-inhibit-images) + (shr-blocked-images mm-html-blocked-images) + charset coding char document) + (mm-with-part (or handle (setq handle (mm-dissect-buffer t))) + (setq case-fold-search t) + (or (setq charset + (mail-content-type-get (mm-handle-type handle) 'charset)) + (progn + (goto-char (point-min)) + (and (re-search-forward "\ +]+\\)[^>]*>" nil t) + (setq coding (mm-charset-to-coding-system (match-string 1) + nil t)))) + (setq charset mail-parse-charset)) + (when (and (or coding + (setq coding (mm-charset-to-coding-system charset nil t))) + (not (eq coding 'ascii))) + (let ((convert (buffer-string))) + (insert (prog1 + (decode-coding-string convert coding) + (erase-buffer) + (set-buffer-multibyte t))))) + (goto-char (point-min)) + (while (re-search-forward + "&#\\(?:x\\([89][0-9a-f]\\)\\|\\(1[2-5][0-9]\\)\\);" nil t) + (when (setq char + (cdr (assq (if (match-beginning 1) + (string-to-number (match-string 1) 16) + (string-to-number (match-string 2))) + mm-extra-numeric-entities))) + (replace-match (char-to-string char)))) + ;; Remove "soft hyphens". + (goto-char (point-min)) + (while (search-forward "­" nil t) + (replace-match "" t t)) + (setq document (libxml-parse-html-region (point-min) (point-max)))) + (save-restriction + (narrow-to-region (point) (point)) + (shr-insert-document document) + (unless (bobp) + (insert "\n")) + (mm-handle-set-undisplayer + handle + (let ((min (point-min-marker)) + (max (point-max-marker))) + (lambda () + (let ((inhibit-read-only t)) + (delete-region min max)))))))) + +(with-temp-buffer + (set-buffer-multibyte t) + (save-excursion + (insert "

最近也想尝试,但是感觉蛮难的,比如不知道如何在")) + (let ((handle (mm-make-handle + (current-buffer) + (rfc2231-parse-qp-string "Content-Type: text/html; charset=UTF-8")))) + (cl-assert (not (zerop (length (with-temp-buffer (mm-shr handle) + (buffer-string)))))))) + +(require 'polymode-core) +(defun ein:markdown-syntax-propertize (start end) + "Function used as `syntax-propertize-function'. +START and END delimit region to propertize." + (message "got here %s %s %s" start end (pm-innermost-range start)) + (with-silent-modifications + (save-excursion + (remove-text-properties start end ein:markdown--syntax-properties) + (ein:markdown-syntax-propertize-fenced-block-constructs start end) + (ein:markdown-syntax-propertize-list-items start end) + (ein:markdown-syntax-propertize-pre-blocks start end) + (ein:markdown-syntax-propertize-blockquotes start end) + (ein:markdown-syntax-propertize-headings start end) + (ein:markdown-syntax-propertize-hrs start end) + (ein:markdown-syntax-propertize-comments start end)))) + +;; Same boat here, although I am only trying to use User-Api-Key (not Api-Key) to create a topic post and am getting CSRF denial from the actionpack library. + +;; Unless the discourse server has turned off CSRF checking, posting from a third-party desktop app seems hard. I’m not about to emulate a browser. + +;; which see ~/discourse_api/gem-transcript{,2} + +(with-temp-buffer + (let ((html "

最近也想尝试,但是感觉蛮难的,比如不知道如何在")) + (insert + "Subject: " "foo" "\n" + "From: " "nobody" "\n" + "\n") + (mml-insert-multipart "alternative") + ;; (mml-insert-empty-tag 'part 'type "text/html") + (mml-insert-part "text/html") + (insert html) + (insert "\n") + (when (mml-validate) + (message-encode-message-body)) + (buffer-string))) diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..2e2c87990864187b41363ace3affb4d0255de0b2 GIT binary patch literal 79292 zcmZ5{1z1#3*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?MwVPvdhXCp%{Z4hf(=CFyiKf9Gbe*JwYzHL!rBP>ccepa%=tqlkwK z|FUX4Yon!r8s^C=OfGuCx<;F9e*7@)hwjT>|J`*td=DOg0y+y`wD|1Zl7+=633lgW z)gTb;0B%G5b<57>!@sb(=8y?$V4?P`(d6UCg*a6xj^u|H3&{!Cf{(_Ar^1D-GB z*{C`^U>LW~ziR^%Sj-8kw~Td&aGS-sR58&7E&uNWEB&`MbPxF~Z^_?09gT+^ft9TO k_cOp^>MJ@|t2zbOcavzLF=M`NSP<|~Q`T0hQn3E;e{;@6QUCw| literal 0 HcmV?d00001 diff --git a/tests/nndiscourse-test.el b/tests/nndiscourse-test.el new file mode 100644 index 0000000..be62744 --- /dev/null +++ b/tests/nndiscourse-test.el @@ -0,0 +1,59 @@ +;;; nndiscourse-test.el --- Test utilities for nndiscourse -*- lexical-binding: t; coding: utf-8 -*- + +;; The following is a derivative work of +;; https://github.com/millejoh/emacs-ipython-notebook +;; licensed under GNU General Public License v3.0. + +(custom-set-default 'gnus-home-directory (concat default-directory "tests")) +(custom-set-default 'message-directory (concat default-directory "tests/Mail")) +(custom-set-variables + '(auto-revert-verbose nil) + '(auto-revert-stop-on-user-input nil) + '(gnus-batch-mode t) + '(gnus-use-dribble-file nil) + '(gnus-read-newsrc-file nil) + '(gnus-save-killed-list nil) + '(gnus-save-newsrc-file nil) + '(gnus-secondary-select-methods (quote ((nndiscourse "meta.discourse.org")))) + '(gnus-select-method (quote (nnnil))) + '(gnus-message-highlight-citation nil) + '(gnus-verbose 8) + '(gnus-large-ephemeral-newsgroup 4000) + '(gnus-large-newsgroup 4000) + '(gnus-interactive-exit (quote quiet))) + +(require 'nndiscourse) +(require 'ert) +(require 'message) + +(setq ert-runner-profile nil) +(mapc (lambda (key-params) + (when (string-match-p (car key-params) "nndiscourse") + (let ((params (cdr key-params))) + (setq params (assq-delete-all 'gnus-thread-sort-functions params)) + (setcdr key-params params)))) + gnus-parameters) + +(defun nndiscourse-test-wait-for (predicate &optional predargs ms interval continue) + "Wait until PREDICATE function returns non-`nil'. + PREDARGS is argument list for the PREDICATE function. + MS is milliseconds to wait. INTERVAL is polling interval in milliseconds." + (let* ((int (or interval (if ms (max 300 (/ ms 10)) 300))) + (count (max 1 (if ms (truncate (/ ms int)) 25)))) + (unless (or (cl-loop repeat count + when (apply predicate predargs) + return t + do (sleep-for (/ int 1000.0))) + continue) + (error "Timeout: %s" predicate)))) + +;; if yes-or-no-p isn't specially overridden, make it always "yes" +(let ((original-yes-or-no-p (symbol-function 'yes-or-no-p))) + (add-function :around (symbol-function 'message-cancel-news) + (lambda (f &rest args) + (if (not (eq (symbol-function 'yes-or-no-p) original-yes-or-no-p)) + (apply f args) + (cl-letf (((symbol-function 'yes-or-no-p) (lambda (&rest _args) t))) + (apply f args)))))) + +(provide 'nndiscourse-test) diff --git a/tests/recordings/install b/tests/recordings/install new file mode 100644 index 0000000..e412007 --- /dev/null +++ b/tests/recordings/install @@ -0,0 +1,218 @@ +((posts-:before-0 (:latest_posts [(:id 699087 :name "Jennifer Alencar Araujo" :username "jenni_alencar" :avatar_template "/user_avatar/meta.discourse.org/jenni_alencar/{size}/169068_2.png" :created_at "2020-02-11T21:02:00.313Z" :cooked "

Hi guys,

+

What’s the difference between staff, admin and moderators? And what is this under the name of the group (Owner, automatic, member?)

+

Thank you.

" :post_number 1 :post_type 1 :updated_at "2020-02-11T21:02:00.313Z" :reply_count 0 :reply_to_post_number nil :quote_count 0 :incoming_link_count 0 :reads 1 :readers_count 0 :score 0 :yours :json-false :topic_id 141327 :topic_slug "understading-groups-in-discourse" :topic_title "Understading groups in discourse" :topic_html_title "Understading groups in discourse" :category_id 17 :display_username "Jennifer Alencar Araujo" :primary_group_name nil :primary_group_flair_url nil :primary_group_flair_bg_color nil :primary_group_flair_color nil :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "customer" :raw "Hi guys, + +What's the difference between staff, admin and moderators? And what is this under the name of the group (Owner, automatic, member?) + +Thank you." :actions_summary [] :moderator :json-false :admin :json-false :staff :json-false :user_id 73806 :hidden :json-false :trust_level 1 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699086 :name "Kris" :username "awesomerobot" :avatar_template "/user_avatar/meta.discourse.org/awesomerobot/{size}/142900_2.png" :created_at "2020-02-11T20:59:52.911Z" :cooked "

I’ve got a fix here that should do the trick

+ + +

The problem is that the digest background color isn’t being dictated by the theme colors (it’s static grey), and the colors of those two links were a theme variable. So light text from dark themes ended up on a light grey background.

+

+

Something related that may be helpful to someone looking at the digest in the future… the background color of the email is set on the HTML tag… and a lot of email clients (like gmail) will just ignore that style and make the email background white anyway… so even if the background color was defined by a theme, it wouldn’t be reliable:

+

" :post_number 9 :post_type 1 :updated_at "2020-02-11T20:59:52.911Z" :reply_count 0 :reply_to_post_number nil :quote_count 0 :incoming_link_count 0 :reads 1 :readers_count 0 :score 0 :yours :json-false :topic_id 135973 :topic_slug "summary-email-footer-linked-text-is-light-grey-on-white" :topic_title "Summary Email footer, linked text is light grey-on-white" :topic_html_title "Summary Email footer, linked text is light grey-on-white" :category_id 6 :display_username "Kris" :primary_group_name "team" :primary_group_flair_url "https://aws1.discourse-cdn.com/dev/original/2X/e/ebee30bd98aef20357e4a177a5a1e45b877ce088.svg" :primary_group_flair_bg_color "" :primary_group_flair_color "111" :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "team" :raw "I've got a fix here that should do the trick + +https://github.com/discourse/discourse/commit/e6e5ce3c5413b2fa85d87660bc443dfb1557576c + +The problem is that the digest background color isn't being dictated by the theme colors (it's static grey), and the colors of those two links were a theme variable. So light text from dark themes ended up on a light grey background. + +![Screen Shot 2020-02-11 at 3.59.27 PM|690x38](upload://1BUGnf5xKwd77HNXPyL8BjPDe1U.png) + +Something related that may be helpful to someone looking at the digest in the future... the background color of the email is set on the HTML tag... and a lot of email clients (like gmail) will just ignore that style and make the email background white anyway... so even if the background color was defined by a theme, it wouldn't be reliable: + +![Screen Shot 2020-02-11 at 3.56.57 PM|690x37](upload://xvDzbdYUvHoWxmgkQqKuoLTjmQT.png)" :actions_summary [] :moderator t :admin t :staff t :user_id 2770 :hidden :json-false :trust_level 4 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699079 :name "David Taylor" :username "david" :avatar_template "/user_avatar/meta.discourse.org/david/{size}/157490_2.png" :created_at "2020-02-11T20:44:48.368Z" :cooked " +

Almost certainly this change which was for this issue. I’m not sure exactly what the issue is, but I’ll be looking into it \":eyes:\"

" :post_number 14 :post_type 1 :updated_at "2020-02-11T20:44:48.368Z" :reply_count 0 :reply_to_post_number 12 :quote_count 1 :incoming_link_count 0 :reads 4 :readers_count 3 :score 60.8 :yours :json-false :topic_id 141232 :topic_slug "recent-changes-breaking-subfolder-setup" :topic_title "Recent Changes Breaking Subfolder Setup?" :topic_html_title "Recent Changes Breaking Subfolder Setup?" :category_id 1 :display_username "David Taylor" :primary_group_name "team" :primary_group_flair_url "https://aws1.discourse-cdn.com/dev/original/2X/e/ebee30bd98aef20357e4a177a5a1e45b877ce088.svg" :primary_group_flair_bg_color "" :primary_group_flair_color "111" :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "team" :raw "[quote=\"hartz, post:12, topic:141232\"] +where in the code +[/quote] + +Almost certainly [this change](https://github.com/discourse/discourse/commit/fe0d912b97985a6272e720729aa6197e8e40274f) which was for [this issue](https://meta.discourse.org/t/discourse-docker-blocked-csp-error-with-svg-sprite-when-using-subfolders/139492/9?u=david). I'm not sure exactly what the issue is, but I'll be looking into it :eyes:" :actions_summary [(:id 2 :count 2)] :moderator :json-false :admin t :staff t :user_id 23968 :hidden :json-false :trust_level 4 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699077 :name "Tobias Eigen" :username "tobiaseigen" :avatar_template "/user_avatar/meta.discourse.org/tobiaseigen/{size}/116107_2.png" :created_at "2020-02-11T20:37:59.472Z" :cooked "

If you mouse over that text, it will tell you the precise time. Doesn’t work on mobile, obviously. Personally, I like the way it is now.

" :post_number 2 :post_type 1 :updated_at "2020-02-11T20:37:59.472Z" :reply_count 0 :reply_to_post_number nil :quote_count 0 :incoming_link_count 0 :reads 2 :readers_count 1 :score 15.4 :yours :json-false :topic_id 141321 :topic_slug "make-topic-timers-more-specific" :topic_title "Make Topic Timers More Specific" :topic_html_title "Make Topic Timers More Specific" :category_id 2 :display_username "Tobias Eigen" :primary_group_name nil :primary_group_flair_url nil :primary_group_flair_bg_color nil :primary_group_flair_color nil :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "" :raw "If you mouse over that text, it will tell you the precise time. Doesn't work on mobile, obviously. Personally, I like the way it is now." :actions_summary [(:id 2 :count 1)] :moderator :json-false :admin :json-false :staff :json-false :user_id 8571 :hidden :json-false :trust_level 3 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699072 :name "Kris" :username "awesomerobot" :avatar_template "/user_avatar/meta.discourse.org/awesomerobot/{size}/142900_2.png" :created_at "2020-02-11T20:24:38.134Z" :cooked "

Fixed for RTL languages here

+ + +

" :post_number 4 :post_type 1 :updated_at "2020-02-11T20:24:38.134Z" :reply_count 0 :reply_to_post_number nil :quote_count 0 :incoming_link_count 0 :reads 2 :readers_count 1 :score 45.4 :yours :json-false :topic_id 125660 :topic_slug "i-couldnt-see-the-setting-menu-bar-in-mobile-rtl-language" :topic_title "I couldn't see the setting menu bar in mobile RTL language" :topic_html_title "I couldn’t see the setting menu bar in mobile RTL language" :category_id 1 :display_username "Kris" :primary_group_name "team" :primary_group_flair_url "https://aws1.discourse-cdn.com/dev/original/2X/e/ebee30bd98aef20357e4a177a5a1e45b877ce088.svg" :primary_group_flair_bg_color "" :primary_group_flair_color "111" :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "team" :raw "Fixed for RTL languages here + +https://github.com/discourse/discourse/commit/d73e94bbeb54bc0002123bf879fcd8c3f0c03c7d + +![Screen Shot 2020-02-11 at 3.23.46 PM|229x500](upload://f5cA9GCYpII9Fjo8d1W24qX6quS.png)" :actions_summary [(:id 2 :count 1)] :moderator t :admin t :staff t :user_id 2770 :hidden :json-false :trust_level 4 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699071 :name "Alex" :username "nexo" :avatar_template "/user_avatar/meta.discourse.org/nexo/{size}/106384_2.png" :created_at "2020-02-11T20:21:53.785Z" :cooked "

I saw this on Meta and it seems poll fields are overlapping the border of the poll preview.

+

" :post_number 1 :post_type 1 :updated_at "2020-02-11T20:21:53.785Z" :reply_count 0 :reply_to_post_number nil :quote_count 0 :incoming_link_count 0 :reads 5 :readers_count 4 :score 1.0 :yours :json-false :topic_id 141323 :topic_slug "poll-fields-colliding-with-poll-preview" :topic_title "Poll fields colliding with poll preview" :topic_html_title "Poll fields colliding with poll preview" :category_id 9 :display_username "Alex" :primary_group_name nil :primary_group_flair_url nil :primary_group_flair_bg_color nil :primary_group_flair_color nil :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "Regular" :raw "I saw this on Meta and it seems poll fields are overlapping the border of the poll preview. + +![image|690x499, 75%](upload://rwcm5sg5F1tQzij6f0Uw3R9B4RE.png)" :actions_summary [] :moderator :json-false :admin :json-false :staff :json-false :user_id 42456 :hidden :json-false :trust_level 3 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699069 :name "Carson" :username "outofthebox" :avatar_template "/user_avatar/meta.discourse.org/outofthebox/{size}/83708_2.png" :created_at "2020-02-11T20:20:17.544Z" :cooked "

Hi,

+

I’d like to suggest that when a Topic is scheduled to be posted, that the text be precise about when the Topic will be published.

+

Example:

+

+

Better:

+
+

This topic will be published to XYZ on March 14th at 8am Eastern.

+
" :post_number 1 :post_type 1 :updated_at "2020-02-11T20:20:17.544Z" :reply_count 0 :reply_to_post_number nil :quote_count 0 :incoming_link_count 0 :reads 4 :readers_count 3 :score 0.8 :yours :json-false :topic_id 141321 :topic_slug "make-topic-timers-more-specific" :topic_title "Make Topic Timers More Specific" :topic_html_title "Make Topic Timers More Specific" :category_id 2 :display_username "Carson" :primary_group_name nil :primary_group_flair_url nil :primary_group_flair_bg_color nil :primary_group_flair_color nil :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title nil :raw "Hi, + +I'd like to suggest that when a Topic is scheduled to be posted, that the text be precise about when the Topic will be published. + +Example: + +![Screen Shot 2020-02-11 at 3.18.08 PM|690x118](upload://h6MTSHaShKYucsoMFnEkVJNanEt.png) + +Better: + +> This topic will be published to XYZ on March 14th at 8am Eastern." :actions_summary [] :moderator :json-false :admin :json-false :staff :json-false :user_id 32674 :hidden :json-false :trust_level 2 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699063 :name "Jay Pfaffman" :username "pfaffman" :avatar_template "/user_avatar/meta.discourse.org/pfaffman/{size}/120154_2.png" :created_at "2020-02-11T20:12:33.362Z" :cooked " +

It almost certainly isn’t. Make sure that it’s https. Trailing slash or space could also be a problem.

" :post_number 6 :post_type 1 :updated_at "2020-02-11T20:12:33.362Z" :reply_count 0 :reply_to_post_number 4 :quote_count 1 :incoming_link_count 0 :reads 1 :readers_count 0 :score 0.2 :yours :json-false :topic_id 141309 :topic_slug "cannot-signup-with-google" :topic_title "Cannot signup with google?" :topic_html_title "Cannot signup with google?" :category_id 6 :display_username "Jay Pfaffman" :primary_group_name nil :primary_group_flair_url nil :primary_group_flair_bg_color nil :primary_group_flair_color nil :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "Senior Tester" :raw "[quote=\"Young, post:4, topic:141309, full:true\"] +That’s exactly what I added in google. +[/quote] + +It almost certainly isn't. Make sure that it's `https`. Trailing slash or space could also be a problem." :actions_summary [] :moderator :json-false :admin :json-false :staff :json-false :user_id 15209 :hidden :json-false :trust_level 3 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699059 :name "Pack Elend" :username "PackElend" :avatar_template "/user_avatar/meta.discourse.org/packelend/{size}/95294_2.png" :created_at "2020-02-11T20:09:24.610Z" :cooked "

here is my dashboard

+
    +
  1. Dashboard
    + +
  2. +
  3. HTTP Routers
    + +
  4. +
  5. HTTP Services
    + +
  6. +
  7. HTTP Middlewares
    + +
  8. +
" :post_number 26 :post_type 1 :updated_at "2020-02-11T20:09:24.610Z" :reply_count 0 :reply_to_post_number 22 :quote_count 0 :incoming_link_count 0 :reads 2 :readers_count 1 :score 0.4 :yours :json-false :topic_id 130357 :topic_slug "discourse-with-traefik-2-0" :topic_title "Discourse with Traefik 2.0" :topic_html_title "Discourse with Traefik 2.0" :category_id 31 :display_username "Pack Elend" :primary_group_name nil :primary_group_flair_url nil :primary_group_flair_bg_color nil :primary_group_flair_color nil :version 1 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title nil :reply_to_user (:username "pc1oad1etter" :avatar_template "https://avatars.discourse.org/v4/letter/p/f14d63/{size}.png") :raw "here is my dashboard +1. Dashboard +![image|690x277, 50%](upload://zyksDuXaNi4ayLe1U0bnQ8tJSp0.png) +1. HTTP Routers +![image|690x223, 50%](upload://wYenehnOag1lXCc7v7XGkkieirU.png) +1. HTTP Services +![image|690x223, 50%](upload://4B3BDwon8KXQOc30JqANKJ9e3BC.png) +1. HTTP Middlewares +![image|690x200](upload://55fF7GEpkwyOFHLO1gpfoxsv382.png)" :actions_summary [] :moderator :json-false :admin :json-false :staff :json-false :user_id 32226 :hidden :json-false :trust_level 2 :deleted_at nil :user_deleted :json-false :edit_reason nil :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false) (:id 699057 :name "Simon Cossar" :username "Simon_Cossar" :avatar_template "/user_avatar/meta.discourse.org/simon_cossar/{size}/86411_2.png" :created_at "2020-02-11T20:08:04.106Z" :cooked "

Did you enable Google logins on your Discourse site? It’s in step 9 of Configuring Google login for Discourse. Try going through that guide again and make sure everything has been setup correctly.

" :post_number 5 :post_type 1 :updated_at "2020-02-11T20:08:04.649Z" :reply_count 0 :reply_to_post_number 4 :quote_count 0 :incoming_link_count 0 :reads 2 :readers_count 1 :score 0.4 :yours :json-false :topic_id 141309 :topic_slug "cannot-signup-with-google" :topic_title "Cannot signup with google?" :topic_html_title "Cannot signup with google?" :category_id 6 :display_username "Simon Cossar" :primary_group_name "team" :primary_group_flair_url "https://aws1.discourse-cdn.com/dev/original/2X/e/ebee30bd98aef20357e4a177a5a1e45b877ce088.svg" :primary_group_flair_bg_color "" :primary_group_flair_color "111" :version 2 :can_edit :json-false :can_delete :json-false :can_recover :json-false :can_wiki :json-false :user_title "team" :raw "Did you enable Google logins on your Discourse site? It's in step 9 of https://meta.discourse.org/t/configuring-google-login-for-discourse/15858. Try going through that guide again and make sure everything has been setup correctly." :actions_summary [] :moderator :json-false :admin t :staff t :user_id 14353 :hidden :json-false :trust_level 4 :deleted_at nil :user_deleted :json-false :edit_reason "Automatically removed quote of whole previous post." :can_view_edit_history t :wiki :json-false :can_accept_answer :json-false :can_unaccept_answer :json-false :accepted_answer :json-false)])) (categories [(:id 17 :name "Uncategorized" :color "AB9364" :text_color "FFFFFF" :slug "uncategorized" :topic_count 11 :post_count 343 :position 16 :description "Topics that don't need a category, or don't fit into any other existing category." :description_text "Topics that don't need a category, or don't fit into any other existing category." :description_excerpt "Topics that don't need a category, or don't fit into any other existing category." :topic_url nil :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 1 :topics_year 1 :topics_all_time 11 :is_uncategorized t :uploaded_logo nil :uploaded_background nil) (:id 1 :name "bug" :color "e9dd00" :text_color "000000" :slug "bug" :topic_count 3201 :post_count 22768 :position 1 :description "A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please." :description_text "A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please." :description_excerpt "A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please." :topic_url "/t/category-definition-for-bug/2" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children :json-false :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 2 :topics_week 10 :topics_month 35 :topics_year 418 :topics_all_time 3201 :uploaded_logo nil :uploaded_background nil) (:id 2 :name "feature" :color "0E76BD" :text_color "FFFFFF" :slug "feature" :topic_count 4645 :post_count 41429 :position 2 :description "Discussion about existing Discourse features, how they can be improved or enhanced, and how proposed new features could work." :description_text "Discussion about existing Discourse features, how they can be improved or enhanced, and how proposed new features could work." :description_excerpt "Discussion about existing Discourse features, how they can be improved or enhanced, and how proposed new features could work." :topic_url "/t/category-definition-for-feature/11" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows_with_featured_topics" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 4 :topics_week 19 :topics_month 53 :topics_year 665 :topics_all_time 4760 :subcategory_ids [67] :uploaded_logo nil :uploaded_background nil) (:id 9 :name "ux" :color "5F497A" :text_color "FFFFFF" :slug "ux" :topic_count 1411 :post_count 10584 :position 3 :description "Discussion about the user interface of Discourse, how features are presented to the user in the client, including language and UI elements." :description_text "Discussion about the user interface of Discourse, how features are presented to the user in the client, including language and UI elements." :description_excerpt "Discussion about the user interface of Discourse, how features are presented to the user in the client, including language and UI elements." :topic_url "/t/category-definition-for-ux/2628" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 1 :topics_week 9 :topics_month 30 :topics_year 313 :topics_all_time 1411 :uploaded_logo nil :uploaded_background nil) (:id 6 :name "support" :color "CEA9A9" :text_color "FFFFFF" :slug "support" :topic_count 10246 :post_count 72243 :position 8 :description "Support on configuring and using Discourse after it is up and running. For installation questions, use the install category." :description_text "Support on configuring and using Discourse after it is up and running. For installation questions, use the install category." :description_excerpt "Support on configuring and using Discourse after it is up and running. For installation questions, use the install category." :topic_url "/t/category-definition-for-support/389" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 17 :topics_week 76 :topics_month 289 :topics_year 3204 :topics_all_time 10738 :subcategory_ids [21] :uploaded_logo nil :uploaded_background nil) (:id 31 :name "installation" :color "997E7E" :text_color "FFFFFF" :slug "installation" :topic_count 978 :post_count 7274 :position 24 :description "Getting Discourse up and running for the first time, and anything you need for installation." :description_text "Getting Discourse up and running for the first time, and anything you need for installation." :description_excerpt "Getting Discourse up and running for the first time, and anything you need for installation." :topic_url "/t/about-the-installation-category/21019" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 1 :topics_week 2 :topics_month 14 :topics_year 215 :topics_all_time 978 :uploaded_logo nil :uploaded_background nil) (:id 10 :name "howto" :color "76923C" :text_color "FFFFFF" :slug "howto" :topic_count 27 :post_count 253 :position 0 :description "Tutorial topics that describe how to set up, configure, or install Discourse using a specific platform or environment. Topics in this category may only be created by trust level 2 and up. " :description_text "Tutorial topics that describe how to set up, configure, or install Discourse using a specific platform or environment. Topics in this category may only be created by trust level 2 and up." :description_excerpt "Tutorial topics that describe how to set up, configure, or install Discourse using a specific platform or environment. Topics in this category may only be created by trust level 2 and up." :topic_url "/t/category-definition-for-howto/2629" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "top" :subcategory_list_style "boxes_with_featured_topics" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read t :topics_day 0 :topics_week 1 :topics_month 3 :topics_year 67 :topics_all_time 467 :subcategory_ids [56 55 53 45 4 66] :uploaded_logo nil :uploaded_background nil) (:id 22 :name "plugin" :color "F7941D" :text_color "FFFFFF" :slug "plugin" :topic_count 188 :post_count 7349 :position 19 :description "Plugin directory. To post here, use the Request Access button on the group page with a link to your plugin." :description_text "Plugin directory. To post here, use the Request Access button on the group page with a link to your plugin." :description_excerpt "Plugin directory. To post here, use the Request Access button on the group page with a link to your plugin." :topic_url "/t/about-the-plugin-category/12648" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "boxes" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 5 :topics_month 18 :topics_year 187 :topics_all_time 638 :subcategory_ids [75 74 78 73 34 60 77 59 84 5 58 76] :uploaded_logo nil :uploaded_background nil) (:id 8 :name "hosting" :color "74CCED" :text_color "FFFFFF" :slug "hosting" :topic_count 356 :post_count 3031 :position 12 :description "Topics about hosting Discourse, either on your own servers, in the cloud, or with specific hosting services." :description_text "Topics about hosting Discourse, either on your own servers, in the cloud, or with specific hosting services." :description_excerpt "Topics about hosting Discourse, either on your own servers, in the cloud, or with specific hosting services." :topic_url "/t/category-definition-for-hosting/2626" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 2 :topics_month 6 :topics_year 65 :topics_all_time 356 :uploaded_logo nil :uploaded_background nil) (:id 61 :name "theme" :color "BF1E2E" :text_color "FFFFFF" :slug "theme" :topic_count 132 :post_count 3615 :position 40 :description "Themes are reusable CSS/HTML blocks you can use on your site." :description_text "Themes are reusable CSS/HTML blocks you can use on your site." :description_excerpt "Themes are reusable CSS/HTML blocks you can use on your site." :topic_url "/t/about-the-theme-category/60925" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list :json-false :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows_with_featured_topics" :default_top_period "all" :minimum_required_tags 1 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 1 :topics_month 2 :topics_year 55 :topics_all_time 136 :subcategory_ids [82] :uploaded_logo nil :uploaded_background nil) (:id 65 :name "community" :color "12A89D" :text_color "FFFFFF" :slug "community" :topic_count 423 :post_count 4015 :position 4 :description "A great platform doesn’t guarantee success. Community building is a science. This category is for discussions about launching, building, growing and managing a thriving community." :description_text "A great platform doesn’t guarantee success. Community building is a science. This category is for discussions about launching, building, growing and managing a thriving community." :description_excerpt "A great platform doesn’t guarantee success. Community building is a science. This category is for discussions about launching, building, growing and managing a thriving community." :topic_url "/t/about-the-community-category/67750" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children :json-false :sort_order "" :sort_ascending nil :show_subcategory_list :json-false :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows_with_featured_topics" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 3 :topics_month 9 :topics_year 113 :topics_all_time 423 :uploaded_logo nil :uploaded_background nil) (:id 7 :name "dev" :color "292929" :text_color "fff" :slug "dev" :topic_count 1581 :post_count 9413 :position 5 :description "Anything related to hacking on Discourse: submitting pull requests, configuring development environments, coding conventions, and so forth." :description_text "Anything related to hacking on Discourse: submitting pull requests, configuring development environments, coding conventions, and so forth." :description_excerpt "Anything related to hacking on Discourse: submitting pull requests, configuring development environments, coding conventions, and so forth." :topic_url "/t/category-definition-for-dev/1026" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "boxes" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 1 :topics_week 7 :topics_month 36 :topics_year 427 :topics_all_time 1962 :subcategory_ids [24 27] :uploaded_logo nil :uploaded_background nil) (:id 30 :name "releases" :color "BF1E2E" :text_color "FFFFFF" :slug "releases" :topic_count 17 :post_count 74 :position 22 :description "Outlining each official release of Discourse, and plans for future releases." :description_text "Outlining each official release of Discourse, and plans for future releases." :description_excerpt "Outlining each official release of Discourse, and plans for future releases." :topic_url "/t/about-the-releases-category/20857" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children :json-false :sort_order "created" :sort_ascending :json-false :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 0 :topics_year 1 :topics_all_time 17 :uploaded_logo nil :uploaded_background nil) (:id 14 :name "marketplace" :color "8C6238" :text_color "FFFFFF" :slug "marketplace" :topic_count 653 :post_count 3670 :position 18 :description "About commercial Discourse related stuff: jobs or paid gigs, plugins, themes, hosting, etc. All soliciting must be in this public category, private solicitations are not permitted here." :description_text "About commercial Discourse related stuff: jobs or paid gigs, plugins, themes, hosting, etc. All soliciting must be in this public category, private solicitations are not permitted here." :description_excerpt "About commercial Discourse related stuff: jobs or paid gigs, plugins, themes, hosting, etc. All soliciting must be in this public category, private solicitations are not permitted here." :topic_url "/t/category-definition-for-marketplace/5425" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "What would you like done? + +When do you need it done? + +What is your budget, in $ USD that you can offer for this task?" :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 13 :topics_year 166 :topics_all_time 653 :uploaded_logo nil :uploaded_background nil) (:id 3 :name "Site Feedback" :color "aaa" :text_color "FFFFFF" :slug "site-feedback" :topic_count 277 :post_count 2317 :position 6 :description "Discussion about meta.discourse.org itself, the organization of this forum about Discourse, how it works, and how we can improve this site." :description_text "Discussion about meta.discourse.org itself, the organization of this forum about Discourse, how it works, and how we can improve this site." :description_excerpt "Discussion about meta.discourse.org itself, the organization of this forum about Discourse, how it works, and how we can improve this site." :topic_url "/t/category-definition-for-meta/24" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "" :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 1 :topics_month 3 :topics_year 20 :topics_all_time 364 :subcategory_ids [13] :uploaded_logo nil :uploaded_background nil) (:id 35 :name "praise" :color "9EB83B" :text_color "FFFFFF" :slug "praise" :topic_count 201 :post_count 763 :position 27 :description "Got something nice to say about Discourse?" :description_text "Got something nice to say about Discourse?" :description_excerpt "Got something nice to say about Discourse?" :topic_url "/t/about-the-praise-category/30010" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children t :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 1 :topics_year 22 :topics_all_time 208 :subcategory_ids [63] :uploaded_logo nil :uploaded_background nil)] [(:id 17 :name "Uncategorized" :color "AB9364" :text_color "FFFFFF" :slug "uncategorized" :topic_count 11 :post_count 343 :position 16 :description "Topics that don't need a category, or don't fit into any other existing category." :description_text "Topics that don't need a category, or don't fit into any other existing category." :description_excerpt "Topics that don't need a category, or don't fit into any other existing category." :topic_url nil :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 1 :topics_year 1 :topics_all_time 11 :is_uncategorized t :uploaded_logo nil :uploaded_background nil) (:id 1 :name "bug" :color "e9dd00" :text_color "000000" :slug "bug" :topic_count 3201 :post_count 22768 :position 1 :description "A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please." :description_text "A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please." :description_excerpt "A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please." :topic_url "/t/category-definition-for-bug/2" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children :json-false :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 2 :topics_week 10 :topics_month 35 :topics_year 418 :topics_all_time 3201 :uploaded_logo nil :uploaded_background nil) (:id 2 :name "feature" :color "0E76BD" :text_color "FFFFFF" :slug "feature" :topic_count 4645 :post_count 41429 :position 2 :description "Discussion about existing Discourse features, how they can be improved or enhanced, and how proposed new features could work." :description_text "Discussion about existing Discourse features, how they can be improved or enhanced, and how proposed new features could work." :description_excerpt "Discussion about existing Discourse features, how they can be improved or enhanced, and how proposed new features could work." :topic_url "/t/category-definition-for-feature/11" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows_with_featured_topics" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 4 :topics_week 19 :topics_month 53 :topics_year 665 :topics_all_time 4760 :subcategory_ids [67] :uploaded_logo nil :uploaded_background nil) (:id 9 :name "ux" :color "5F497A" :text_color "FFFFFF" :slug "ux" :topic_count 1411 :post_count 10584 :position 3 :description "Discussion about the user interface of Discourse, how features are presented to the user in the client, including language and UI elements." :description_text "Discussion about the user interface of Discourse, how features are presented to the user in the client, including language and UI elements." :description_excerpt "Discussion about the user interface of Discourse, how features are presented to the user in the client, including language and UI elements." :topic_url "/t/category-definition-for-ux/2628" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 1 :topics_week 9 :topics_month 30 :topics_year 313 :topics_all_time 1411 :uploaded_logo nil :uploaded_background nil) (:id 6 :name "support" :color "CEA9A9" :text_color "FFFFFF" :slug "support" :topic_count 10246 :post_count 72243 :position 8 :description "Support on configuring and using Discourse after it is up and running. For installation questions, use the install category." :description_text "Support on configuring and using Discourse after it is up and running. For installation questions, use the install category." :description_excerpt "Support on configuring and using Discourse after it is up and running. For installation questions, use the install category." :topic_url "/t/category-definition-for-support/389" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 17 :topics_week 76 :topics_month 289 :topics_year 3204 :topics_all_time 10738 :subcategory_ids [21] :uploaded_logo nil :uploaded_background nil) (:id 31 :name "installation" :color "997E7E" :text_color "FFFFFF" :slug "installation" :topic_count 978 :post_count 7274 :position 24 :description "Getting Discourse up and running for the first time, and anything you need for installation." :description_text "Getting Discourse up and running for the first time, and anything you need for installation." :description_excerpt "Getting Discourse up and running for the first time, and anything you need for installation." :topic_url "/t/about-the-installation-category/21019" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 1 :topics_week 2 :topics_month 14 :topics_year 215 :topics_all_time 978 :uploaded_logo nil :uploaded_background nil) (:id 10 :name "howto" :color "76923C" :text_color "FFFFFF" :slug "howto" :topic_count 27 :post_count 253 :position 0 :description "Tutorial topics that describe how to set up, configure, or install Discourse using a specific platform or environment. Topics in this category may only be created by trust level 2 and up. " :description_text "Tutorial topics that describe how to set up, configure, or install Discourse using a specific platform or environment. Topics in this category may only be created by trust level 2 and up." :description_excerpt "Tutorial topics that describe how to set up, configure, or install Discourse using a specific platform or environment. Topics in this category may only be created by trust level 2 and up." :topic_url "/t/category-definition-for-howto/2629" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "top" :subcategory_list_style "boxes_with_featured_topics" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read t :topics_day 0 :topics_week 1 :topics_month 3 :topics_year 67 :topics_all_time 467 :subcategory_ids [56 55 53 45 4 66] :uploaded_logo nil :uploaded_background nil) (:id 22 :name "plugin" :color "F7941D" :text_color "FFFFFF" :slug "plugin" :topic_count 188 :post_count 7349 :position 19 :description "Plugin directory. To post here, use the Request Access button on the group page with a link to your plugin." :description_text "Plugin directory. To post here, use the Request Access button on the group page with a link to your plugin." :description_excerpt "Plugin directory. To post here, use the Request Access button on the group page with a link to your plugin." :topic_url "/t/about-the-plugin-category/12648" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "boxes" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 5 :topics_month 18 :topics_year 187 :topics_all_time 638 :subcategory_ids [75 74 78 73 34 60 77 59 84 5 58 76] :uploaded_logo nil :uploaded_background nil) (:id 8 :name "hosting" :color "74CCED" :text_color "FFFFFF" :slug "hosting" :topic_count 356 :post_count 3031 :position 12 :description "Topics about hosting Discourse, either on your own servers, in the cloud, or with specific hosting services." :description_text "Topics about hosting Discourse, either on your own servers, in the cloud, or with specific hosting services." :description_excerpt "Topics about hosting Discourse, either on your own servers, in the cloud, or with specific hosting services." :topic_url "/t/category-definition-for-hosting/2626" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 2 :topics_month 6 :topics_year 65 :topics_all_time 356 :uploaded_logo nil :uploaded_background nil) (:id 61 :name "theme" :color "BF1E2E" :text_color "FFFFFF" :slug "theme" :topic_count 132 :post_count 3615 :position 40 :description "Themes are reusable CSS/HTML blocks you can use on your site." :description_text "Themes are reusable CSS/HTML blocks you can use on your site." :description_excerpt "Themes are reusable CSS/HTML blocks you can use on your site." :topic_url "/t/about-the-theme-category/60925" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list :json-false :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows_with_featured_topics" :default_top_period "all" :minimum_required_tags 1 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 1 :topics_month 2 :topics_year 55 :topics_all_time 136 :subcategory_ids [82] :uploaded_logo nil :uploaded_background nil) (:id 65 :name "community" :color "12A89D" :text_color "FFFFFF" :slug "community" :topic_count 423 :post_count 4015 :position 4 :description "A great platform doesn’t guarantee success. Community building is a science. This category is for discussions about launching, building, growing and managing a thriving community." :description_text "A great platform doesn’t guarantee success. Community building is a science. This category is for discussions about launching, building, growing and managing a thriving community." :description_excerpt "A great platform doesn’t guarantee success. Community building is a science. This category is for discussions about launching, building, growing and managing a thriving community." :topic_url "/t/about-the-community-category/67750" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children :json-false :sort_order "" :sort_ascending nil :show_subcategory_list :json-false :num_featured_topics 3 :default_view "latest" :subcategory_list_style "rows_with_featured_topics" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 3 :topics_month 9 :topics_year 113 :topics_all_time 423 :uploaded_logo nil :uploaded_background nil) (:id 7 :name "dev" :color "292929" :text_color "fff" :slug "dev" :topic_count 1581 :post_count 9413 :position 5 :description "Anything related to hacking on Discourse: submitting pull requests, configuring development environments, coding conventions, and so forth." :description_text "Anything related to hacking on Discourse: submitting pull requests, configuring development environments, coding conventions, and so forth." :description_excerpt "Anything related to hacking on Discourse: submitting pull requests, configuring development environments, coding conventions, and so forth." :topic_url "/t/category-definition-for-dev/1026" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "latest" :subcategory_list_style "boxes" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 1 :topics_week 7 :topics_month 36 :topics_year 427 :topics_all_time 1962 :subcategory_ids [24 27] :uploaded_logo nil :uploaded_background nil) (:id 30 :name "releases" :color "BF1E2E" :text_color "FFFFFF" :slug "releases" :topic_count 17 :post_count 74 :position 22 :description "Outlining each official release of Discourse, and plans for future releases." :description_text "Outlining each official release of Discourse, and plans for future releases." :description_excerpt "Outlining each official release of Discourse, and plans for future releases." :topic_url "/t/about-the-releases-category/20857" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children :json-false :sort_order "created" :sort_ascending :json-false :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 0 :topics_year 1 :topics_all_time 17 :uploaded_logo nil :uploaded_background nil) (:id 14 :name "marketplace" :color "8C6238" :text_color "FFFFFF" :slug "marketplace" :topic_count 653 :post_count 3670 :position 18 :description "About commercial Discourse related stuff: jobs or paid gigs, plugins, themes, hosting, etc. All soliciting must be in this public category, private solicitations are not permitted here." :description_text "About commercial Discourse related stuff: jobs or paid gigs, plugins, themes, hosting, etc. All soliciting must be in this public category, private solicitations are not permitted here." :description_excerpt "About commercial Discourse related stuff: jobs or paid gigs, plugins, themes, hosting, etc. All soliciting must be in this public category, private solicitations are not permitted here." :topic_url "/t/category-definition-for-marketplace/5425" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "What would you like done? + +When do you need it done? + +What is your budget, in $ USD that you can offer for this task?" :has_children :json-false :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 13 :topics_year 166 :topics_all_time 653 :uploaded_logo nil :uploaded_background nil) (:id 3 :name "Site Feedback" :color "aaa" :text_color "FFFFFF" :slug "site-feedback" :topic_count 277 :post_count 2317 :position 6 :description "Discussion about meta.discourse.org itself, the organization of this forum about Discourse, how it works, and how we can improve this site." :description_text "Discussion about meta.discourse.org itself, the organization of this forum about Discourse, how it works, and how we can improve this site." :description_excerpt "Discussion about meta.discourse.org itself, the organization of this forum about Discourse, how it works, and how we can improve this site." :topic_url "/t/category-definition-for-meta/24" :read_restricted :json-false :permission nil :notification_level 1 :topic_template "" :has_children t :sort_order "" :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view "" :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 1 :topics_month 3 :topics_year 20 :topics_all_time 364 :subcategory_ids [13] :uploaded_logo nil :uploaded_background nil) (:id 35 :name "praise" :color "9EB83B" :text_color "FFFFFF" :slug "praise" :topic_count 201 :post_count 763 :position 27 :description "Got something nice to say about Discourse?" :description_text "Got something nice to say about Discourse?" :description_excerpt "Got something nice to say about Discourse?" :topic_url "/t/about-the-praise-category/30010" :read_restricted :json-false :permission nil :notification_level 1 :topic_template nil :has_children t :sort_order nil :sort_ascending nil :show_subcategory_list t :num_featured_topics 3 :default_view nil :subcategory_list_style "rows" :default_top_period "all" :minimum_required_tags 0 :navigate_to_first_post_after_read :json-false :topics_day 0 :topics_week 0 :topics_month 1 :topics_year 22 :topics_all_time 208 :subcategory_ids [63] :uploaded_logo nil :uploaded_background nil)])) \ No newline at end of file diff --git a/tests/test-uncacheable.el b/tests/test-uncacheable.el new file mode 100644 index 0000000..c4f95e8 --- /dev/null +++ b/tests/test-uncacheable.el @@ -0,0 +1,7 @@ +;;; -*- lexical-binding: t; coding: utf-8 -*- +(require 'nndiscourse-test) + +;; since nndiscourse has fixed numbering, maybe we *can* use gnus-cache +(ert-deftest nndiscourse-could-cache () + (should (featurep 'gnus-cache)) + (should-not (string-match (or gnus-uncacheable-groups "$a") "nndiscourse+emacs-china.org:emacs"))) diff --git a/tools/package-lint.sh b/tools/package-lint.sh new file mode 100644 index 0000000..9e1a6cd --- /dev/null +++ b/tools/package-lint.sh @@ -0,0 +1,21 @@ +#!/bin/sh -ex + +export EMACS="${EMACS:=emacs}" +export BASENAME=$(basename "$1") + +( cask emacs -Q --batch \ + --visit "$1" \ + --eval "(checkdoc-eval-current-buffer)" \ + --eval "(princ (with-current-buffer checkdoc-diagnostic-buffer \ + (buffer-string)))" \ + 2>&1 | egrep -a "^$BASENAME:" ) && false + +!( cask emacs -Q --batch \ + -l package-lint \ + --eval "(package-initialize)" \ + --eval "(push (quote (\"melpa\" . \"http://melpa.org/packages/\")) \ + package-archives)" \ + --eval "(package-refresh-contents)" \ + --eval "(setq debug-on-error t)" \ + -f package-lint-batch-and-exit "$1" \ + 2>&1 | egrep -a "^$BASENAME:" | egrep -v "non-snapshot" | egrep .) diff --git a/tools/readme-sed.sh b/tools/readme-sed.sh new file mode 100755 index 0000000..991872d --- /dev/null +++ b/tools/readme-sed.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# by mklement0 https://stackoverflow.com/a/29613573/5132008 + +# Define sample multi-line literal. +input=`cat` +replace="$input" +if [ ! -z "$3" ]; then + replace=$(awk "/$3/,EOF { print \" \" \$0 }" <<<"$input") +fi + +# Escape it for use as a Sed replacement string. +IFS= read -d '' -r < <(sed -e ':a' -e '$!{N;ba' -e '}' -e 's/[&/\]/\\&/g; s/\n/\\&/g' <<<"$replace") +replaceEscaped=${REPLY%$'\n'} + +# If ok, outputs $replace as is. +sed "/$1/c\\$replaceEscaped" $2 diff --git a/tools/recipe b/tools/recipe new file mode 100644 index 0000000..39469ab --- /dev/null +++ b/tools/recipe @@ -0,0 +1,3 @@ +(nndiscourse :repo "dickmao/nndiscourse" + :fetcher github + :files ("nndiscourse.el" ("nndiscourse" "nndiscourse/.ruby-version" "nndiscourse/Gemfile" "nndiscourse/Gemfile.lock" "nndiscourse/nndiscourse.gemspec" "nndiscourse/nndiscourse.thor" "nndiscourse/lib")))