Skip to content

Commit

Permalink
we need this to work in older perl
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeri van Dooren committed Jan 24, 2019
1 parent a462f76 commit bfed321
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions lib/Slack/Notify.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package Slack::Notify {

# ABSTRACT: Trigger Slack incoming webhooks
package Slack::Notify;

use namespace::autoclean;

Expand All @@ -25,10 +23,7 @@ sub post {
);
}

}

package # hide from PAUSE
Slack::Notify::Payload {
package Slack::Notify::Payload;

use namespace::autoclean;

Expand Down Expand Up @@ -58,10 +53,7 @@ sub _build__hash {
};
}

}

package # hide from PAUSE
Slack::Notify::Attachment {
package Slack::Notify::Attachment;

use namespace::autoclean;

Expand Down Expand Up @@ -100,10 +92,7 @@ sub _build__hash {
};
}

}

package # hide from PAUSE
Slack::Notify::Field {
package Slack::Notify::Field;

use namespace::autoclean;

Expand All @@ -118,8 +107,6 @@ sub to_hash { shift->_hash }
has _hash => ( is => 'lazy', isa => HashRef );
sub _build__hash { my ($self) = @_; +{ %$self } }

}

1;

=pod
Expand Down

0 comments on commit bfed321

Please sign in to comment.