From 4c87490231d164538b4520d190e24c8c8c2a0922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=C3=A0o=20Ho=C3=A0ng=20S=C6=A1n?= Date: Sat, 28 Mar 2015 12:03:09 +0700 Subject: [PATCH 01/13] Update github url to use https We should download files from https://github.com for better security and because github forces https anyway. All those redirects may exceed Chef limit on some machine (mine). --- attributes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index e017520..d6e02ad 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -31,6 +31,6 @@ default['mailhog']['binary']['mode'] = 0755 default['mailhog']['binary']['path'] = '/usr/local/bin/MailHog' -default['mailhog']['binary']['prefix_url'] = 'http://github.com/mailhog/MailHog/releases/download/v' +default['mailhog']['binary']['prefix_url'] = 'https://github.com/mailhog/MailHog/releases/download/v' default['mailhog']['binary']['checksum']['linux_386'] = 'a72d1016b70964562c8a77a3b57637a77889ee61f3b22973e0a7beb17181d8da' default['mailhog']['binary']['checksum']['linux_amd64'] = 'e8e9acb4fa4470f4d4c3a4bba312f335bfc28122ea723599531699f099b4c9a5' From 6f5dcbfa1903d3f50777319a03ad43e64032bd3f Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Sun, 29 Mar 2015 11:51:28 +0300 Subject: [PATCH 02/13] Update changelog --- CHANGELOG.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22d0cab..aa5d0b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ -0.1.0 (2015-03-23) ------------------- +# Change Log + +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/). + +## [Unreleased][unreleased] +### Changed +- Update github url to use https. [@daohoangson] + +## 0.1.0 (2015-03-23) * Initial release From 8837601fc279e026808b2eff0a569b768b916af9 Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Sun, 29 Mar 2015 12:05:15 +0300 Subject: [PATCH 03/13] Add attributes for command line options generation --- attributes/default.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/attributes/default.rb b/attributes/default.rb index d6e02ad..bfbe33b 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -34,3 +34,31 @@ default['mailhog']['binary']['prefix_url'] = 'https://github.com/mailhog/MailHog/releases/download/v' default['mailhog']['binary']['checksum']['linux_386'] = 'a72d1016b70964562c8a77a3b57637a77889ee61f3b22973e0a7beb17181d8da' default['mailhog']['binary']['checksum']['linux_amd64'] = 'e8e9acb4fa4470f4d4c3a4bba312f335bfc28122ea723599531699f099b4c9a5' + +default['mailhog']['smtp']['ip'] = nil # Default: 0.0.0.0 +default['mailhog']['smtp']['port'] = nil # Default: 1025 +default['mailhog']['smtp']['outgoing'] = nil + +default['mailhog']['api']['ip'] = nil # Default: 0.0.0.0 +default['mailhog']['api']['port'] = nil # Default: 8025 + +default['mailhog']['ui']['ip'] = nil # Default: 0.0.0.0 +default['mailhog']['ui']['port'] = nil # Default: 8025 + +default['mailhog']['cors-origin'] = nil +default['mailhog']['hostname'] = nil # Default: mailhog.example + +default['mailhog']['jim']['enable'] = nil # Default: false +default['mailhog']['jim']['accept'] = nil # Default: 0.99 +default['mailhog']['jim']['disconnect'] = nil # Default: 0.005 +default['mailhog']['jim']['linkspeed']['affect'] = nil # Default: 0.1 +default['mailhog']['jim']['linkspeed']['max'] = nil # Default: 10240 +default['mailhog']['jim']['linkspeed']['min'] = nil # Default: 1024 +default['mailhog']['jim']['reject']['auth'] = nil # Default: 0.05 +default['mailhog']['jim']['reject']['recipient'] = nil # Default: 0.05 +default['mailhog']['jim']['reject']['sender'] = nil # Default: 0.05 + +default['mailhog']['storage'] = nil # Default: memory +default['mailhog']['mongodb']['uri'] = nil # Default: 127.0.0.1:27017 +default['mailhog']['mongodb']['db'] = nil # Default: mailhog +default['mailhog']['mongodb']['collection'] = nil # Default: messages From f336e97fd4158ab13fe5fa780a83dbeb21443189 Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Sun, 29 Mar 2015 13:09:58 +0300 Subject: [PATCH 04/13] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa5d0b9..6914cc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased][unreleased] ### Changed -- Update github url to use https. [@daohoangson] +- Update github url to use https. [[daohoangson](https://github.com/daohoangson)] ## 0.1.0 (2015-03-23) From 7e9a4ae2d03ed8817d4c0e3044ab6c48dc015093 Mon Sep 17 00:00:00 2001 From: Gleb Levitin Date: Fri, 27 May 2016 17:50:33 +0200 Subject: [PATCH 05/13] Issue #72508: Replace double quotes with single quotes. --- Gemfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 2630c54..7ed1cb8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,4 @@ -source "https://rubygems.org" - -gem "berkshelf" -gem "stove", "~> 3.0.0" +source 'https://rubygems.org' +gem 'berkshelf' +gem 'stove', '~> 3.0.0' From 1fc3b5b64102d38b90e3c0a15b0581ed9b04f701 Mon Sep 17 00:00:00 2001 From: Gleb Levitin Date: Fri, 27 May 2016 17:53:46 +0200 Subject: [PATCH 06/13] Issue #72508: Create spec tests. --- .../default/serverspec/default_spec.rb | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/test/integration/default/serverspec/default_spec.rb b/test/integration/default/serverspec/default_spec.rb index f710e2a..72eba3a 100644 --- a/test/integration/default/serverspec/default_spec.rb +++ b/test/integration/default/serverspec/default_spec.rb @@ -2,11 +2,33 @@ describe 'mailhog::default' do - # Serverspec examples can be found at - # http://serverspec.org/resource_types.html - - it 'does something' do - skip 'Replace this with meaningful tests' + describe file('/usr/local/bin/MailHog') do + it { should exist } + it { should be_file } + it { should be_mode 755 } + it { should be_owned_by 'root' } + it { should be_grouped_into 'root' } + end + + describe file('/etc/service/mailhog/run') do + it { should exist } + it { should be_file } + it { should be_mode 755 } + it { should be_owned_by 'root' } + it { should be_grouped_into 'root' } + end + + describe service('mailhog') do + it { should be_running } + end + + describe port(1025) do + it { should be_listening.on('127.0.0.1').with('tcp') } + end + + describe port(8025) do + #see: https://github.com/mailhog/MailHog/issues/87 + it { should be_listening.on('::').with('tcp6') } end end \ No newline at end of file From 4a8eff8d679dedcca11d2f38b5d5d7f7325ff6c9 Mon Sep 17 00:00:00 2001 From: Gleb Levitin Date: Fri, 27 May 2016 17:47:36 +0200 Subject: [PATCH 07/13] Issue #72508: Set runit dependency to version 1.7.4. --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 6605a09..56feb4e 100644 --- a/metadata.rb +++ b/metadata.rb @@ -5,7 +5,7 @@ description 'Installs/Configures mailhog' version '0.1.0' -depends 'runit', '>= 0.0.0' +depends 'runit', '= 1.7.4' %w(debian ubuntu centos redhat smartos).each do |os| supports os, '>= 0.0.0' From 7b0337e1721c29d2c6d8ea1e344beede46b81145 Mon Sep 17 00:00:00 2001 From: Gleb Levitin Date: Fri, 27 May 2016 17:54:08 +0200 Subject: [PATCH 08/13] Issue #72508: Extend mailhog configuration with command line options. --- LICENSE | 1 + attributes/default.rb | 52 +++++++++++++++------------- recipes/binary.rb | 31 ++++++++++++++++- templates/default/sv-mailhog-run.erb | 23 +++++++++++- 4 files changed, 81 insertions(+), 26 deletions(-) diff --git a/LICENSE b/LICENSE index 7ba882e..75d7d47 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ Copyright (c) 2015 Sergey Storchay +Modified 2016 Gleb Levitin, dkd Internet Service GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/attributes/default.rb b/attributes/default.rb index bfbe33b..05275c9 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -3,6 +3,7 @@ # Recipe:: default # # Copyright (c) 2015 Sergey Storchay, All Rights Reserved. +# Modified 2016 Gleb Levitin, dkd Internet Service GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -23,7 +24,7 @@ # SOFTWARE. # -default['mailhog']['version'] = '0.1.6' +default['mailhog']['version'] = '0.2.0' default['mailhog']['install_method'] = 'binary' default['mailhog']['binary']['url'] = nil # Set it to override automatical generation @@ -32,33 +33,36 @@ default['mailhog']['binary']['path'] = '/usr/local/bin/MailHog' default['mailhog']['binary']['prefix_url'] = 'https://github.com/mailhog/MailHog/releases/download/v' -default['mailhog']['binary']['checksum']['linux_386'] = 'a72d1016b70964562c8a77a3b57637a77889ee61f3b22973e0a7beb17181d8da' -default['mailhog']['binary']['checksum']['linux_amd64'] = 'e8e9acb4fa4470f4d4c3a4bba312f335bfc28122ea723599531699f099b4c9a5' +default['mailhog']['binary']['checksum']['linux_386'] = '06fc1d7bf2fced86962ab274d8f1e6c7df74a6ec3c6310aff26792bb93122d98' +default['mailhog']['binary']['checksum']['linux_amd64'] = '11aaae19388d0a6543c935188fcc4157772d852c10be2a5d96168ee23ae6845f' -default['mailhog']['smtp']['ip'] = nil # Default: 0.0.0.0 -default['mailhog']['smtp']['port'] = nil # Default: 1025 -default['mailhog']['smtp']['outgoing'] = nil +default['mailhog']['service']['owner'] = 'root' +default['mailhog']['service']['group'] = 'root' -default['mailhog']['api']['ip'] = nil # Default: 0.0.0.0 -default['mailhog']['api']['port'] = nil # Default: 8025 +default['mailhog']['smtp']['ip'] = '127.0.0.1' +default['mailhog']['smtp']['port'] = 1025 +default['mailhog']['smtp']['outgoing'] = nil -default['mailhog']['ui']['ip'] = nil # Default: 0.0.0.0 -default['mailhog']['ui']['port'] = nil # Default: 8025 +default['mailhog']['api']['ip'] = '0.0.0.0' +default['mailhog']['api']['port'] = 8025 +default['mailhog']['ui']['ip'] = '0.0.0.0' +default['mailhog']['ui']['port'] = 8025 default['mailhog']['cors-origin'] = nil -default['mailhog']['hostname'] = nil # Default: mailhog.example +default['mailhog']['hostname'] = 'mailhog.example' -default['mailhog']['jim']['enable'] = nil # Default: false -default['mailhog']['jim']['accept'] = nil # Default: 0.99 -default['mailhog']['jim']['disconnect'] = nil # Default: 0.005 -default['mailhog']['jim']['linkspeed']['affect'] = nil # Default: 0.1 -default['mailhog']['jim']['linkspeed']['max'] = nil # Default: 10240 -default['mailhog']['jim']['linkspeed']['min'] = nil # Default: 1024 -default['mailhog']['jim']['reject']['auth'] = nil # Default: 0.05 -default['mailhog']['jim']['reject']['recipient'] = nil # Default: 0.05 -default['mailhog']['jim']['reject']['sender'] = nil # Default: 0.05 +default['mailhog']['storage'] = 'memory' +default['mailhog']['mongodb']['ip'] = '127.0.0.1' +default['mailhog']['mongodb']['port'] = 27017 +default['mailhog']['mongodb']['db'] = 'mailhog' +default['mailhog']['mongodb']['collection'] = 'messages' -default['mailhog']['storage'] = nil # Default: memory -default['mailhog']['mongodb']['uri'] = nil # Default: 127.0.0.1:27017 -default['mailhog']['mongodb']['db'] = nil # Default: mailhog -default['mailhog']['mongodb']['collection'] = nil # Default: messages +default['mailhog']['jim']['enable'] = false +default['mailhog']['jim']['accept'] = 0.99 +default['mailhog']['jim']['disconnect'] = 0.005 +default['mailhog']['jim']['linkspeed']['affect'] = 0.1 +default['mailhog']['jim']['linkspeed']['max'] = 10240 +default['mailhog']['jim']['linkspeed']['min'] = 1024 +default['mailhog']['jim']['reject']['auth'] = 0.05 +default['mailhog']['jim']['reject']['recipient'] = 0.05 +default['mailhog']['jim']['reject']['sender'] = 0.05 \ No newline at end of file diff --git a/recipes/binary.rb b/recipes/binary.rb index d9cf93c..2f22c11 100644 --- a/recipes/binary.rb +++ b/recipes/binary.rb @@ -3,6 +3,7 @@ # Recipe:: default # # Copyright (c) 2015 Sergey Storchay, All Rights Reserved. +# Modified 2016 Gleb Levitin, dkd Internet Service GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -23,7 +24,7 @@ # SOFTWARE. # -include_recipe 'runit' +include_recipe 'runit::default' arch = node['kernel']['machine'] =~ /x86_64/ ? 'amd64' : '386' @@ -45,5 +46,33 @@ # Setup runit service runit_service 'mailhog' do + options({ + :smtp_ip => node['mailhog']['smtp']['ip'], + :smtp_port => node['mailhog']['smtp']['port'], + :smtp_outgoing => node['mailhog']['smtp']['outgoing'], + :ui_ip => node['mailhog']['ui']['ip'], + :ui_port => node['mailhog']['ui']['port'], + :api_ip => node['mailhog']['api']['ip'], + :api_port => node['mailhog']['api']['port'], + :cors_origin => node['mailhog']['cors-origin'], + :hostname => node['mailhog']['hostname'], + :storage => node['mailhog']['storage'], + :mongodb_ip => node['mailhog']['mongodb']['ip'], + :mongodb_port => node['mailhog']['mongodb']['port'], + :mongodb_db => node['mailhog']['mongodb']['db'], + :mongodb_collection => node['mailhog']['mongodb']['collection'], + :jim_enable => node['mailhog']['jim']['enable'], + :jim_accept => node['mailhog']['jim']['accept'], + :jim_disconnect => node['mailhog']['jim']['disconnect'], + :jim_linkspeed_affect => node['mailhog']['jim']['linkspeed']['affect'], + :jim_linkspeed_max => node['mailhog']['jim']['linkspeed']['max'], + :jim_linkspeed_min => node['mailhog']['jim']['linkspeed']['min'], + :jim_reject_auth => node['mailhog']['jim']['reject']['auth'], + :jim_reject_recipient => node['mailhog']['jim']['reject']['recipient'], + :jim_reject_sender => node['mailhog']['jim']['reject']['sender'] + }) default_logger true + owner node['mailhog']['service']['owner'] + group node['mailhog']['service']['group'] + action [:enable, :restart] end diff --git a/templates/default/sv-mailhog-run.erb b/templates/default/sv-mailhog-run.erb index 5b7881d..430e846 100644 --- a/templates/default/sv-mailhog-run.erb +++ b/templates/default/sv-mailhog-run.erb @@ -1,3 +1,24 @@ #!/bin/sh exec 2>&1 -exec /usr/bin/env MailHog +exec /usr/bin/env MailHog \ + -smtp-bind-addr=<%= @options[:smtp_ip] %>:<%= @options[:smtp_port] %> \ + -outgoing-smtp=<%= @options[:smtp_outgoing] %> \ + -ui-bind-addr=<%= @options[:ui_ip] %>:<%= @options[:ui_port] %> \ + -api-bind-addr=<%= @options[:api_ip] %>:<%= @options[:api_port] %> \ + -cors-origin=<%= @options[:cors_origin] %> \ + -hostname=<%= @options[:hostname] %> \ + -storage=<%= @options[:storage] %> \ + -mongo-uri=<%= @options[:mongodb_ip] %>:<%= @options[:mongodb_port] %> \ + -mongo-db=<%= @options[:mongodb_db] %> \ + -mongo-coll=<%= @options[:mongodb_collection] %> \ +<% if @options[:jim_enable] %> + -invite-jim \ +<% end %> + -jim-accept=<%= @options[:jim_accept] %> \ + -jim-disconnect=<%= @options[:jim_disconnect] %> \ + -jim-linkspeed-affect=<%= @options[:jim_linkspeed_affect] %> \ + -jim-linkspeed-max=<%= @options[:jim_linkspeed_max] %> \ + -jim-linkspeed-min=<%= @options[:jim_linkspeed_min] %> \ + -jim-reject-auth=<%= @options[:jim_reject_auth] %> \ + -jim-reject-recipient=<%= @options[:jim_reject_recipient] %> \ + -jim-reject-sender=<%= @options[:jim_reject_sender] %> From 3f37be3e1b5fc034d7fbb9cc6ab5057bf7ad01f2 Mon Sep 17 00:00:00 2001 From: Gleb Levitin Date: Fri, 27 May 2016 17:49:53 +0200 Subject: [PATCH 09/13] Issue #72508: Extend readme documentation with command line options. --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a8447d..56cc3c0 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,53 @@ This cookbook installs [MailHog](https://github.com/mailhog/MailHog). +Attributes +----- + +This cookbook contains the following attributes: + +| Key | Type | Default | Description | +|--------------------------------------------------|---------|-------------------------------------------------------------------|------------------------------------------------------------------------------| +| ['mailhog']['version'] | String | 0.1.6 | Version of the MailHog to install | +| ['mailhog']['install_method'] | String | binary | MailHog install method | +| ['mailhog']['binary']['url'] | String | nil | MailHog binary url | +| ['mailhog']['binary']['mode'] | Integer | 0755 | Access permissions to the MailHog binary file | +| ['mailhog']['binary']['path'] | String | /usr/local/bin/MailHog | Location of the MailHog binary file | +| ['mailhog']['binary']['prefix_url'] | String | https://github.com/mailhog/MailHog/releases/download/v | MailHog binary prefix url | +| ['mailhog']['binary']['checksum']['linux_386'] | String | a72d1016b70964562c8a77a3b57637a77889ee61f3b22973e0a7beb17181d8da | MailHog binary file checksum for linux_386 | +| ['mailhog']['binary']['checksum']['linux_amd64'] | String | e8e9acb4fa4470f4d4c3a4bba312f335bfc28122ea723599531699f099b4c9a5 | MailHog binary file checksum for linux_amd64 | +| ['mailhog']['service']['owner'] | String | root | User that should own the mailhog service | +| ['mailhog']['service']['group'] | String | root | Group that should own the mailhog service | +| ['mailhog']['smtp']['ip'] | String | 0.0.0.0 | Interface for SMTP server to bind to | +| ['mailhog']['smtp']['port'] | Integer | 1025 | Port for SMTP server to bind to | +| ['mailhog']['smtp']['outgoing'] | String | nil | JSON file defining outgoing SMTP servers | +| ['mailhog']['api']['ip'] | String | 0.0.0.0 | Interface for HTTP API server to bind to | +| ['mailhog']['api']['port'] | Integer | 8025 | Port for HTTP API server to bind to | +| ['mailhog']['ui']['ip'] | String | 0.0.0.0 | Interface for HTTP UI server to bind to | +| ['mailhog']['ui']['port'] | Integer | 8025 | Port for HTTP UI server to bind to | +| ['mailhog']['cors-origin'] | String | nil | If set, a Access-Control-Allow-Origin header is returned for API endpoints | +| ['mailhog']['hostname'] | String | mailhog.example | Hostname to use for EHLO/HELO and message IDs | +| ['mailhog']['storage'] | String | memory | Set message storage: memory / mongodb / maildir | +| ['mailhog']['mongodb']['ip'] | String | 127.0.0.1 | Host for MongoDB | +| ['mailhog']['mongodb']['port'] | Integer | 27017 | Port for MongoDB | +| ['mailhog']['mongodb']['db'] | String | mailhog | MongoDB database name for message storage | +| ['mailhog']['mongodb']['collection'] | String | messages | MongoDB collection name for message storage | +| ['mailhog']['jim']['enable'] | Boolean | false | Set to true to enable Jim | +| ['mailhog']['jim']['accept'] | Float | 0.99 | Chance of accepting an incoming connection | +| ['mailhog']['jim']['disconnect'] | Float | 0.005 | Chance of randomly disconnecting a session | +| ['mailhog']['jim']['linkspeed']['affect'] | Float | 0.1 | Chance of applying a rate limit | +| ['mailhog']['jim']['linkspeed']['max'] | Integer | 10240 | Maximum link speed (in bytes per second) | +| ['mailhog']['jim']['linkspeed']['min'] | Integer | 1024 | Minimum link speed (in bytes per second) | +| ['mailhog']['jim']['reject']['auth'] | Float | 0.05 | Chance of rejecting an AUTH command | +| ['mailhog']['jim']['reject']['recipient'] | Float | 0.05 | Chance of rejecting a RCPT TO command | +| ['mailhog']['jim']['reject']['sender'] | Float | 0.05 | Chance of rejecting a MAIL FROM command | + Usage ----- Include the mailhog recipe to install MailHog on your system: ```chef -include_recipe "mailhog" +include_recipe "mailhog::default" ``` MailHog service is installed and managed via `runit`. @@ -33,6 +74,7 @@ License ------- Copyright (c) 2015 Sergey Storchay, http://r8.com.ua +Modified 2016 Gleb Levitin, dkd Internet Service GmbH Licensed under MIT: http://raw.github.com/r8/chef-mailhog/master/LICENSE From c43f86c6cbd1a1d0d4bfeb2a1d9675225652e5cb Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Tue, 31 May 2016 11:44:32 +0300 Subject: [PATCH 10/13] Update CHANGELOG --- CHANGELOG.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6914cc5..6a0baee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,16 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## [Unreleased][unreleased] +## [0.2.0] - (2016-05-31) ### Changed -- Update github url to use https. [[daohoangson](https://github.com/daohoangson)] +- Update github url to use https [[daohoangson](https://github.com/daohoangson)] +- Set runit dependency to version 1.7.4 [[levitin](https://github.com/levitin)] -## 0.1.0 (2015-03-23) +### Added +- Create spec tests [[levitin](https://github.com/levitin)] +- Extend mailhog configuration with command line options [[levitin](https://github.com/levitin)] +- Extend readme documentation with command line options [[levitin](https://github.com/levitin)] -* Initial release +## [0.1.0] - (2015-03-23) + +- Initial release From 7f31fc7fc65fe3db8d3f06c6e2c51b26c6f4cb70 Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Tue, 31 May 2016 11:45:25 +0300 Subject: [PATCH 11/13] Update package version --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 56feb4e..aca7a17 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email 'r8@r8.com.ua' license 'MIT' description 'Installs/Configures mailhog' -version '0.1.0' +version '0.2.0' depends 'runit', '= 1.7.4' From 1c3716bb3de5533018a681f33be7c4110d4c2b3b Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Tue, 31 May 2016 11:51:52 +0300 Subject: [PATCH 12/13] Upgrade stove dependency to version 4.0.0 --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 7ed1cb8..27fffe9 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ source 'https://rubygems.org' gem 'berkshelf' -gem 'stove', '~> 3.0.0' +gem 'stove', '~> 4.0.0' From 2b50e9d6cd410891a718f07fc2789ad251bf889e Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Tue, 31 May 2016 13:55:13 +0300 Subject: [PATCH 13/13] Fix Mailhog version in README, close #3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56cc3c0..fa81fd3 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This cookbook contains the following attributes: | Key | Type | Default | Description | |--------------------------------------------------|---------|-------------------------------------------------------------------|------------------------------------------------------------------------------| -| ['mailhog']['version'] | String | 0.1.6 | Version of the MailHog to install | +| ['mailhog']['version'] | String | 0.2.0 | Version of the MailHog to install | | ['mailhog']['install_method'] | String | binary | MailHog install method | | ['mailhog']['binary']['url'] | String | nil | MailHog binary url | | ['mailhog']['binary']['mode'] | Integer | 0755 | Access permissions to the MailHog binary file |