Skip to content

Commit

Permalink
Blackstone - Rename plugin module
Browse files Browse the repository at this point in the history
Blackstone - Update plugin description

Blackstone - Update CI files
  • Loading branch information
kylemhall committed Oct 9, 2024
1 parent b43cb95 commit c26624b
Show file tree
Hide file tree
Showing 45 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
release-version: ${{ steps.myvars.outputs.tag_version }}
release-name: ${{ steps.myvars.outputs.github_repo }}
minimum-version: ${{ steps.koha-version-oldstable.outputs.version-major-minor }}
plugin-module: "Koha/Plugin/Com/ByWaterSolutions/EdifactEnhanced.pm"
plugin-module: "Koha/Plugin/Com/ByWaterSolutions/EdifactBlackstone.pm"

- name: See if kpz was created
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced;
package Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone;

## It's good practive to use Modern::Perl
use Modern::Perl;
Expand Down Expand Up @@ -28,9 +28,9 @@ our $VERSION = "{VERSION}";

## Here is our metadata, some keys are required, some are optional
our $metadata = {
name => 'Edifact - Enhanced',
name => 'Edifact - Blackstone',
author => 'Kyle M Hall',
description => 'Edifact Enhanced plugin',
description => 'Edifact Enhanced plugin for Blackstone',
date_authored => '2015-12-21',
date_updated => '1900-01-01',
minimum_version => '22.05.06',
Expand Down Expand Up @@ -60,30 +60,30 @@ sub new {
sub edifact {
my ( $self, $args ) = @_;

require Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact;
require Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact;

my $edifact = Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact->new($args);
my $edifact = Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact->new($args);
return $edifact;
}

sub edifact_order {
my ( $self, $args ) = @_;

require Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Order;
require Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Order;

$args->{params}->{plugin} = $self;
my $edifact_order = Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Order->new( $args->{params} );
my $edifact_order = Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Order->new( $args->{params} );
return $edifact_order;
}

sub edifact_transport {
my ( $self, $args ) = @_;

require Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Transport;
require Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Transport;

$args->{params}->{plugin} = $self;

my $edifact_transport = Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Transport->new( $args->{vendor_edi_account_id}, $self );
my $edifact_transport = Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Transport->new( $args->{vendor_edi_account_id}, $self );

return $edifact_transport;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact;
package Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact;

# Copyright 2014 PTFS-Europe Ltd
#
Expand All @@ -22,8 +22,8 @@ use warnings;
use File::Slurp;
use Carp;
use Encode qw( from_to );
use Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Segment;
use Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Message;
use Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Segment;
use Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Message;

my $separator = {
component => q{\:},
Expand Down Expand Up @@ -174,7 +174,7 @@ sub message_array {
elsif ( $seg->tag eq 'UNT' ) {
$in_msg = 0;
if ( @{$msg} ) {
push @{$msg_arr}, Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Message->new($msg);
push @{$msg_arr}, Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Message->new($msg);
$msg = [];
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@ sub segmentize {
}x;
my @segmented;
while ( $raw =~ /($re)/g ) {
push @segmented, Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Segment->new( { seg_string => $1 } );
push @segmented, Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Segment->new( { seg_string => $1 } );
}
return \@segmented;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Message;
package Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Message;

# Copyright 2014 PTFS-Europe Ltd
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Order;
package Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Order;

use Modern::Perl;
use utf8;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Segment;
package Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Segment;

# Copyright 2014 PTFS-Europe Ltd
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Transport;
package Koha::Plugin::Com::ByWaterSolutions::EdifactBlackstone::Edifact::Transport;

# Copyright 2014 PTFS-Europe Ltd
#
Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const today = dt.format('Y-m-d');
const package_json = JSON.parse(fs.readFileSync('./package.json'));
const release_filename = `${package_json.name}-v${package_json.version}.kpz`;

const pm_file = 'EdifactEnhanced.pm';
const pm_file = 'EdifactBlackstone.pm';
const pm_file_path = 'Koha/Plugin/Com/ByWaterSolutions/';
const pm_file_path_full = pm_file_path + pm_file;
const pm_file_path_dist = 'dist/' + pm_file_path;
Expand All @@ -36,6 +36,7 @@ gulp.task('build', () => {
gulp.task('release', () => {
gulp.src(release_filename)
.pipe(release({
tag: package_json.version + '-' + process.env.TRAVIS_BRANCH,
manifest: require('./package.json') // package.json from which default values will be extracted if they're missing
}));
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koha-plugin-edifact-enhanced",
"description": "Koha Edifact Enhanced Plugin",
"name": "koha-plugin-edifact-enhanced-blackstone",
"description": "Koha Edifact Enhanced Plugin - Blackstone",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-cli": "^1.2.2",
Expand Down

0 comments on commit c26624b

Please sign in to comment.