<commit_before>language: ruby
services: docker
cache:
- bundler
before_install:
- gem install bundler
install:
- bundle install
rvm:
- 2.3.0
- 2.4.1
- 2.5.1
notifications:
  email:
    recipients:
    - <EMAIL>
    on_success: change
    on_failure: always
script:
- bundle exec rake default
- gem build sensu-plugins-chef.gemspec
- gem install sensu-plugins-chef-*.gem
before_deploy:
- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'"
deploy:
- provider: rubygems
  api_key:
    secure: <KEY>
  gem: sensu-plugins-chef
  on:
    tags: true
    all_branches: true
    rvm: 2.3.0
    rvm: 2.4.1
    repo: sensu-plugins/sensu-plugins-chef
- provider: script
  script: bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-chef
  skip_cleanup: true
  on:
    tags: true
    all_branches: true
    rvm: 2.4.1
    <commit_msg>have bonsai asset build deployment script run before gem deployment. If asset build script fails, gem deployment won't fire, makes it easier to recover from failed asset builds<commit_after>language: ruby
services: docker
cache:
- bundler
before_install:
- gem install bundler
install:
- bundle install
rvm:
- 2.3.0
- 2.4.1
- 2.5.1
notifications:
  email:
    recipients:
    - <EMAIL>
    on_success: change
    on_failure: always
script:
- bundle exec rake default
- gem build sensu-plugins-chef.gemspec
- gem install sensu-plugins-chef-*.gem
before_deploy:
- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'"
deploy:
- provider: script
  script: bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-chef
  skip_cleanup: true
  on:
    tags: true
    all_branches: true
    rvm: 2.4.1
- provider: rubygems
  api_key:
    secure: <KEY>
  gem: sensu-plugins-chef
  on:
    tags: true
    all_branches: true
    rvm: 2.3.0
    rvm: 2.4.1
    repo: sensu-plugins/sensu-plugins-chef
    
{'fraction_non_alphanumeric': 0.11369253583786455, 'fraction_numerical': 0.017795353435491844, 'mean_word_length': 3.088888888888889, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4455876', 'n_tokens_mistral': 779, 'n_tokens_neox': 741, 'n_words': 195}