<commit_before># Memberful Integration

[![Build Status](https://travis-ci.org/choiceaustralia/memberful-integration.svg?branch=master)](https://travis-ci.org/choiceaustralia/memberful-integration)

Integrate Discourse with Memberful's API.

## Installation

Enter app: `sudo ./launcher enter app`

Follow these instructions to mount the engine: https://gist.github.com/rimian/170d480c1979b3b6b0880ed0cace31de

Restart app: `sudo ./launcher restart app`

## Upgrading

Enter app: `sudo ./launcher enter app`

`su discourse -c 'bundle install --no-deployment --verbose --without test --without development --path vendor/bundle'``

or

`bundle update --source memberful`

## Testing

Run the specs:

`bundle exec rspec`

To use the fixtures against a local install:

```
fixture=$(<fixtures/member_signup.json)
curl -H "Content-Type: application/json" -X POST -d $fixture http://0.0.0.0/memberful/memberful
```<commit_msg>eine kleine dokumentation<commit_after># Memberful Integration

[![Build Status](https://travis-ci.org/choiceaustralia/memberful-integration.svg?branch=master)](https://travis-ci.org/choiceaustralia/memberful-integration)

Integrate Discourse with Memberful's API.

## Installation

Enter app: `sudo ./launcher enter app`

Follow these instructions to mount the engine: https://gist.github.com/rimian/170d480c1979b3b6b0880ed0cace31de

Restart app: `sudo ./launcher restart app`

## Upgrading

Enter app: `sudo ./launcher enter app`


`su discourse -c 'bundle install --no-deployment --verbose --without test --without development --path vendor/bundle'``

or

`bundle update --source memberful`

## Testing

Run the specs:

`bundle exec rspec`

To use the fixtures against a local install:

```
fixture=$(<fixtures/member_signup.json)
curl -H "Content-Type: application/json" -X POST -d $fixture http://0.0.0.0/memberful/memberful
```
## Status

You can check what version is currently installed here:

https://choice.community/memberful/status
https://staging.choice.community/memberful/status
{'fraction_non_alphanumeric': 0.12617983109786388, 'fraction_numerical': 0.022851465474416296, 'mean_word_length': 4.820809248554913, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1129593', 'n_tokens_mistral': 697, 'n_tokens_neox': 644, 'n_words': 176}