From 1449a1179d79c2e52a8cb6a2b30d044ef894cdcd Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Wed, 3 May 2017 10:19:47 +1000 Subject: [PATCH 1/3] Refactor .set_feild as per this commit: https://github.com/discourse/discourse/commit/946f25098f910e29b6d611425c1a9b1a9105f238 --- plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.rb b/plugin.rb index bcf6e3a..fd6f4e5 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,6 +1,6 @@ # name: discourse-donations # about: Integrating Discourse with Stripe for donations -# version: 1.9.1 +# version: 1.9.2 # url: https://github.com/choiceaustralia/discourse-donations # authors: Rimian Perkins @@ -14,7 +14,7 @@ after_initialize do # Must be placed on every page for fraud protection. header_script = '' discourse_donations_theme = Theme.find_or_create_by(name: 'Discourse Donations Header', hidden: false, user_id: -1) - discourse_donations_theme.set_field('common', 'head_tag', header_script) + discourse_donations_theme.set_field(target: 'common', name:, 'head_tag', value: header_script) discourse_donations_theme.save end From 22d184e54ff547de0f19df5e0b3ee3df9f6d3576 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Wed, 3 May 2017 10:25:02 +1000 Subject: [PATCH 2/3] redundant readme --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index d428a55..50227a3 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,13 @@ [![Build Status](https://travis-ci.org/choiceaustralia/discourse-donations.svg?branch=master)](https://travis-ci.org/choiceaustralia/discourse-donations) -Accept donations in Discourse! Integrates with [Stripe](https://stripe.com). +Accept donations in Discourse! Integrates with [Stripe](https://stripe.com). Note: Stripe requires HTTPS. ## Installation * Follow the install instructions here: https://meta.discourse.org/t/install-a-plugin/19157 -* Set the private and public keys in the plugin settings. ## Configuration From 9e7809137a96276c65f6fa73be56ff243cc3dd75 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Wed, 3 May 2017 10:27:38 +1000 Subject: [PATCH 3/3] doh! typo --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index fd6f4e5..442ed74 100644 --- a/plugin.rb +++ b/plugin.rb @@ -14,7 +14,7 @@ after_initialize do # Must be placed on every page for fraud protection. header_script = '' discourse_donations_theme = Theme.find_or_create_by(name: 'Discourse Donations Header', hidden: false, user_id: -1) - discourse_donations_theme.set_field(target: 'common', name:, 'head_tag', value: header_script) + discourse_donations_theme.set_field(target: 'common', name: 'head_tag', value: header_script) discourse_donations_theme.save end