Rename VArray to Vector

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/06673632
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/06673632
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/06673632

Branch: refs/heads/master
Commit: 06673632f35034de4d05454f4a673cd7b75a9885
Parents: 2348f38
Author: Nick Wellnhofer <wellnho...@aevum.de>
Authored: Sun Nov 15 16:42:33 2015 +0100
Committer: Nick Wellnhofer <wellnho...@aevum.de>
Committed: Tue Nov 17 19:06:14 2015 +0100

----------------------------------------------------------------------
 .../perl/buildlib/Clownfish/Build/Binding.pm    |  4 +--
 runtime/perl/lib/Clownfish/VArray.pm            | 25 --------------
 runtime/perl/lib/Clownfish/Vector.pm            | 25 ++++++++++++++
 runtime/perl/t/binding/016-varray.t             | 34 --------------------
 runtime/perl/t/binding/016-vector.t             | 34 ++++++++++++++++++++
 runtime/perl/t/core/016-varray.t                | 23 -------------
 runtime/perl/t/core/016-vector.t                | 23 +++++++++++++
 7 files changed, 84 insertions(+), 84 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/06673632/runtime/perl/buildlib/Clownfish/Build/Binding.pm
----------------------------------------------------------------------
diff --git a/runtime/perl/buildlib/Clownfish/Build/Binding.pm 
b/runtime/perl/buildlib/Clownfish/Build/Binding.pm
index b86732a..2bdb1b5 100644
--- a/runtime/perl/buildlib/Clownfish/Build/Binding.pm
+++ b/runtime/perl/buildlib/Clownfish/Build/Binding.pm
@@ -31,7 +31,7 @@ sub bind_all {
     $class->bind_hash;
     $class->bind_float;
     $class->bind_obj;
-    $class->bind_varray;
+    $class->bind_vector;
     $class->bind_class;
     $class->bind_stringhelper;
 }
@@ -496,7 +496,7 @@ END_XS_CODE
     Clownfish::CFC::Binding::Perl::Class->register($binding);
 }
 
-sub bind_varray {
+sub bind_vector {
     my @hand_rolled = qw(
         Pop
         Delete

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/06673632/runtime/perl/lib/Clownfish/VArray.pm
----------------------------------------------------------------------
diff --git a/runtime/perl/lib/Clownfish/VArray.pm 
b/runtime/perl/lib/Clownfish/VArray.pm
deleted file mode 100644
index a120baf..0000000
--- a/runtime/perl/lib/Clownfish/VArray.pm
+++ /dev/null
@@ -1,25 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-package Clownfish::Vector;
-use Clownfish;
-our $VERSION = '0.004000';
-$VERSION = eval $VERSION;
-
-1;
-
-__END__
-
-

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/06673632/runtime/perl/lib/Clownfish/Vector.pm
----------------------------------------------------------------------
diff --git a/runtime/perl/lib/Clownfish/Vector.pm 
b/runtime/perl/lib/Clownfish/Vector.pm
new file mode 100644
index 0000000..a120baf
--- /dev/null
+++ b/runtime/perl/lib/Clownfish/Vector.pm
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+package Clownfish::Vector;
+use Clownfish;
+our $VERSION = '0.004000';
+$VERSION = eval $VERSION;
+
+1;
+
+__END__
+
+

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/06673632/runtime/perl/t/binding/016-varray.t
----------------------------------------------------------------------
diff --git a/runtime/perl/t/binding/016-varray.t 
b/runtime/perl/t/binding/016-varray.t
deleted file mode 100644
index a48589d..0000000
--- a/runtime/perl/t/binding/016-varray.t
+++ /dev/null
@@ -1,34 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-use strict;
-use warnings;
-
-use Test::More tests => 1;
-use Clownfish;
-
-my ( $varray, $twin );
-
-$varray = Clownfish::Vector->new;
-$varray->push( Clownfish::String->new($_) ) for 1 .. 5;
-$varray->delete(3);
-$varray->push('abc');
-$varray->insert(
-    tick    => 0,
-    element => 'elem',
-);
-$twin = $varray->clone;
-is_deeply( $twin->to_perl, $varray->to_perl, "clone" );
-

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/06673632/runtime/perl/t/binding/016-vector.t
----------------------------------------------------------------------
diff --git a/runtime/perl/t/binding/016-vector.t 
b/runtime/perl/t/binding/016-vector.t
new file mode 100644
index 0000000..e6f4c70
--- /dev/null
+++ b/runtime/perl/t/binding/016-vector.t
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+use strict;
+use warnings;
+
+use Test::More tests => 1;
+use Clownfish;
+
+my ( $vector, $twin );
+
+$vector = Clownfish::Vector->new;
+$vector->push( Clownfish::String->new($_) ) for 1 .. 5;
+$vector->delete(3);
+$vector->push('abc');
+$vector->insert(
+    tick    => 0,
+    element => 'elem',
+);
+$twin = $vector->clone;
+is_deeply( $twin->to_perl, $vector->to_perl, "clone" );
+

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/06673632/runtime/perl/t/core/016-varray.t
----------------------------------------------------------------------
diff --git a/runtime/perl/t/core/016-varray.t b/runtime/perl/t/core/016-varray.t
deleted file mode 100644
index 858afdb..0000000
--- a/runtime/perl/t/core/016-varray.t
+++ /dev/null
@@ -1,23 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-use strict;
-use warnings;
-
-use Clownfish::Test;
-my $success = Clownfish::Test::run_tests("Clownfish::Test::TestVector");
-
-exit($success ? 0 : 1);
-

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/06673632/runtime/perl/t/core/016-vector.t
----------------------------------------------------------------------
diff --git a/runtime/perl/t/core/016-vector.t b/runtime/perl/t/core/016-vector.t
new file mode 100644
index 0000000..858afdb
--- /dev/null
+++ b/runtime/perl/t/core/016-vector.t
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+use strict;
+use warnings;
+
+use Clownfish::Test;
+my $success = Clownfish::Test::run_tests("Clownfish::Test::TestVector");
+
+exit($success ? 0 : 1);
+

Reply via email to