<commit_before>ruby-fanout
===========

Author: <NAME> <<EMAIL>>

A Ruby convenience library for publishing FPP format messages to Fanout.io using the EPCP protocol.

License
-------

ruby-fanout is offered under the MIT license. See the LICENSE file.

Installation
------------

```sh
gem install fanout
```

Usage
-----

```Ruby
require 'fanout'

def callback(result, message)
  if result
    puts 'Publish successful'
  else
    puts 'Publish failed with message: ' + message.to_s
  end
end

fanout = Fanout.new('<myrealm>', '<myrealmkey>')
fanout.publish('test', 'Test publish!\n')
fanout.publish_async('test', 'Test async publish!\n', method(:callback))
```<commit_msg>updated readme file<commit_after>ruby-fanout
===========

Author: <NAME> <<EMAIL>>

A Ruby convenience library for publishing FPP format messages to Fanout.io using the EPCP protocol.

License
-------

ruby-fanout is offered under the MIT license. See the LICENSE file.

Installation
------------

```sh
gem install fanout
```

Usage
-----

```Ruby
require 'fanout'

def callback(result, message)
  if result
    puts 'Publish successful'
  else
    puts 'Publish failed with message: ' + message.to_s
  end
end

fanout = Fanout.new('<myrealm>', '<myrealmkey>')
fanout.publish('test', 'Test publish!\n')
fanout.publish_async('test', 'Test async publish!\n',
    nil, nil, method(:callback))
```
{'fraction_non_alphanumeric': 0.1652046783625731, 'fraction_numerical': 0.0, 'mean_word_length': 3.8718861209964412, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3033566', 'n_tokens_mistral': 446, 'n_tokens_neox': 431, 'n_words': 140}