Skip to content

Commit 179d438

Browse files
committed
Bump version to 3.3.5 and update change-log
1 parent 44ee842 commit 179d438

File tree

7 files changed

+24
-8
lines changed

7 files changed

+24
-8
lines changed

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
CSS::Sass (3.3.5)
2+
3+
* Fix spec runner to pass on linux (unicode issue)
4+
* Add missing test dependency in meta files (YAML::XS)
5+
16
CSS::Sass (3.3.4)
27

38
* Update to latest LibSass dev release (pre 3.3.7)

META.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@
6868
"url" : "https://github.com/sass/perl-libsass"
6969
}
7070
},
71-
"version" : "v3.3.4"
71+
"version" : "v3.3.5"
7272
}

META.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ resources:
3939
homepage: https://metacpan.org/release/CSS-Sass
4040
license: http://opensource.org/licenses/MIT
4141
repository: https://github.com/sass/perl-libsass
42-
version: v3.3.4
42+
version: v3.3.5

Makefile.PL

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ sub help
6767
exit 1;
6868
}
6969

70+
my $re_vtoken = qr/v?([0-9]+\.[0-9]+\.[0-9]+(?:[\-_].+?)?)/;
7071
my $re_version = qr/our\s+\$VERSION\s*=\s*[\"\']
71-
v?([0-9]+\.[0-9]+\.[0-9]+(?:[\-_].+?)?)
72+
$re_vtoken
7273
[\"\']\s*\;/x;
7374

7475
# needs File::Slurp
@@ -93,14 +94,24 @@ sub versions
9394
}
9495
$tag =~ s/(?:\A\s+|\Av|\s+\z)//g;
9596
if (scalar(@_)) {
96-
print "Update *.pm with new version <$tag>\n";
97+
print "Update META.* and *.pm with new version <$tag>\n";
9798
unless ( $tag =~ m/(\d+\.\d+\.)(\d+)(?:[\-_]|\z)/ )
9899
{ die "Tag <$tag> invalid (\\d+.\\d+.\\d+)\n"; }
100+
my $metayml = File::Slurp::read_file("META.yml", { 'binmode' => ':raw' });
101+
if ($metayml =~ s/version\s*:\s*v($re_vtoken)/version: v$tag/i && $tag ne $1) {
102+
print " update version in META.yml (was $1)\n";
103+
File::Slurp::write_file("META.yml", { 'binmode' => ':raw' }, $metayml);
104+
}
105+
my $metajson = File::Slurp::read_file("META.json", { 'binmode' => ':raw' });
106+
if ($metajson =~ s/\"version\"\s*:\s*\"v($re_vtoken)\"/\"version\" : \"v$tag\"/i && $tag ne $1) {
107+
print " update version in META.json (was $1)\n";
108+
File::Slurp::write_file("META.json", { 'binmode' => ':raw' }, $metajson);
109+
}
99110
foreach my $filename (@files) {
100111
my $data = File::Slurp::read_file($filename, { 'binmode' => ':raw' });
101112
if ($data =~ s/$re_version/our \$VERSION = \"$tag\";/i) {
102113
next if $tag eq $1;
103-
print " update version $filename (was $1)\n";
114+
print " update version in $filename (was $1)\n";
104115
File::Slurp::write_file($filename, { 'binmode' => ':raw' }, $data);
105116
}
106117
}

lib/CSS/Sass.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ our @EXPORT = qw(
6969
SASS2SCSS_CONVERT_COMMENT
7070
);
7171

72-
our $VERSION = "3.3.4";
72+
our $VERSION = "3.3.5";
7373

7474
require XSLoader;
7575
XSLoader::load('CSS::Sass', $VERSION);

lib/CSS/Sass/Value.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use CSS::Sass;
3939

4040
################################################################################
4141
package CSS::Sass::Value;
42-
our $VERSION = "3.3.4";
42+
our $VERSION = "3.3.5";
4343
################################################################################
4444
use CSS::Sass qw(import_sv);
4545
use CSS::Sass qw(sass_operation);

lib/CSS/Sass/Watchdog.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use CSS::Sass;
2525

2626
################################################################################
2727
package CSS::Sass::Watchdog;
28-
our $VERSION = "3.3.4";
28+
our $VERSION = "3.3.5";
2929
################################################################################
3030

3131
use Exporter 'import'; # gives you Exporter's import() method directly

0 commit comments

Comments
 (0)