Hello community,

here is the log from the commit of package rubygem-rake-compiler for 
openSUSE:Factory checked in at 2016-05-29 03:12:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rake-compiler (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rake-compiler.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rake-compiler"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-rake-compiler/rubygem-rake-compiler.changes  
    2016-03-26 18:14:28.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rake-compiler.new/rubygem-rake-compiler.changes
 2016-05-29 03:13:17.000000000 +0200
@@ -1,0 +2,24 @@
+Sat May 21 04:36:24 UTC 2016 - co...@suse.com
+
+- updated to version 0.9.9
+ see installed History.txt
+
+  === 0.9.9 / 2016-05-10
+  
+  * Bugfixes:
+    * Support Symbol as extension name again.
+      #134 [Patch by Takashi Kokubun]
+
+-------------------------------------------------------------------
+Fri Apr 29 04:38:47 UTC 2016 - co...@suse.com
+
+- updated to version 0.9.8
+ see installed History.txt
+
+  === 0.9.8 / 2016-04-29
+  
+  * Enhancements:
+    * Support extension in sub directory.
+      #128, #129 [Patch by Kenta Murata]
+
+-------------------------------------------------------------------

Old:
----
  rake-compiler-0.9.7.gem

New:
----
  rake-compiler-0.9.9.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-rake-compiler.spec ++++++
--- /var/tmp/diff_new_pack.0blk6C/_old  2016-05-29 03:13:18.000000000 +0200
+++ /var/tmp/diff_new_pack.0blk6C/_new  2016-05-29 03:13:18.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rake-compiler
-Version:        0.9.7
+Version:        0.9.9
 Release:        0
 %define mod_name rake-compiler
 %define mod_full_name %{mod_name}-%{version}

++++++ rake-compiler-0.9.7.gem -> rake-compiler-0.9.9.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.txt new/History.txt
--- old/History.txt     2016-03-16 14:39:06.000000000 +0100
+++ new/History.txt     2016-05-10 04:37:07.000000000 +0200
@@ -1,3 +1,15 @@
+=== 0.9.9 / 2016-05-10
+
+* Bugfixes:
+  * Support Symbol as extension name again.
+    #134 [Patch by Takashi Kokubun]
+
+=== 0.9.8 / 2016-04-29
+
+* Enhancements:
+  * Support extension in sub directory.
+    #128, #129 [Patch by Kenta Murata]
+
 === 0.9.7 / 2016-03-16
 
 * Bugfixes:
@@ -6,7 +18,7 @@
 
 === 0.9.6 / 2016-03-04
 
-* Enhancements
+* Enhancements:
   * Add more descriptions into README.
     Closes #105 [Patch by Aaron Stone]
   * Remove needless executable bits.
@@ -32,7 +44,7 @@
 
 === 0.9.5 / 2015-01-03
 
-* Enhancements
+* Enhancements:
   * Support adding bundled files in cross_compiling block.
     Closes #100 [Patch by Aaron Stone]
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/baseextensiontask.rb 
new/lib/rake/baseextensiontask.rb
--- old/lib/rake/baseextensiontask.rb   2016-03-16 14:39:06.000000000 +0100
+++ new/lib/rake/baseextensiontask.rb   2016-05-10 04:37:07.000000000 +0200
@@ -46,6 +46,7 @@
 
     def define
       fail "Extension name must be provided." if @name.nil?
+      @name = @name.to_s
 
       define_compile_tasks
     end
@@ -67,7 +68,7 @@
         else
           RbConfig::CONFIG['DLEXT']
       end
-      "#{@name}.#{ext}"
+      "#{File.basename(@name)}.#{ext}"
     end
 
     def source_files
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rake/extensiontask.rb 
new/lib/rake/extensiontask.rb
--- old/lib/rake/extensiontask.rb       2016-03-16 14:39:06.000000000 +0100
+++ new/lib/rake/extensiontask.rb       2016-05-10 04:37:07.000000000 +0200
@@ -112,6 +112,9 @@
 
       # lib_path
       lib_path = lib_dir
+      if @name.include?('/')
+        lib_path += "/#{File.dirname(@name)}"
+      end
 
       # tmp_path
       tmp_path = "#{@tmp_dir}/#{platf}/#{@name}/#{ruby_ver}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-03-16 14:39:06.000000000 +0100
+++ new/metadata        2016-05-10 04:37:07.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rake-compiler
 version: !ruby/object:Gem::Version
-  version: 0.9.7
+  version: 0.9.9
 platform: ruby
 authors:
 - Kouhei Sutou
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-03-16 00:00:00.000000000 Z
+date: 2016-05-10 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/lib/rake/extensiontask_spec.rb 
new/spec/lib/rake/extensiontask_spec.rb
--- old/spec/lib/rake/extensiontask_spec.rb     2016-03-16 14:39:06.000000000 
+0100
+++ new/spec/lib/rake/extensiontask_spec.rb     2016-05-10 04:37:07.000000000 
+0200
@@ -17,6 +17,11 @@
         ext.name.should == 'extension_one'
       end
 
+      it 'should allow symbol as extension name assignation' do
+        ext = Rake::ExtensionTask.new(:extension_one)
+        ext.name.should == 'extension_one'
+      end
+
       it 'should allow string as extension name using block assignation' do
         ext = Rake::ExtensionTask.new do |ext|
           ext.name = 'extension_two'
@@ -269,6 +274,64 @@
         end
       end
     end
+
+    context '(one extension whose name with directory prefixes)' do
+      before :each do
+        
Rake::FileList.stub!(:[]).and_return(["ext/prefix1/prefix2/extension_one/source.c"],
 [])
+        @ext = Rake::ExtensionTask.new('prefix1/prefix2/extension_one')
+        @ext_bin = ext_bin('extension_one')
+        @platform = RUBY_PLATFORM
+        @ruby_ver = RUBY_VERSION
+      end
+
+      context 'compile' do
+        it 'should define as task' do
+          Rake::Task.task_defined?('compile').should be_true
+        end
+
+        it "should depend on 'compile:{platform}'" do
+          Rake::Task['compile'].prerequisites.should 
include("compile:#{@platform}")
+        end
+      end
+
+      context 'compile:prefix1/prefix2/extension_one' do
+        it 'should define as task' do
+          
Rake::Task.task_defined?('compile:prefix1/prefix2/extension_one').should be_true
+        end
+
+        it "should depend on 
'compile:prefix1/prefix2/extension_one:{platform}'" do
+          
Rake::Task['compile:prefix1/prefix2/extension_one'].prerequisites.should 
include("compile:prefix1/prefix2/extension_one:#{@platform}")
+        end
+      end
+
+      context 'lib/prefix1/prefix2/extension_one.{so,bundle}' do
+        it 'should define as task' do
+          Rake::Task.task_defined?("lib/prefix1/prefix2/#{@ext_bin}").should 
be_true
+        end
+
+        it "should depend on 
'copy:prefix1/prefix2/extension_one:{platform}:{ruby_ver}'" do
+          Rake::Task["lib/prefix1/prefix2/#{@ext_bin}"].prerequisites.should 
include("copy:prefix1/prefix2/extension_one:#{@platform}:#{@ruby_ver}")
+        end
+      end
+
+      context 
'tmp/{platform}/prefix1/prefix2/extension_one/{ruby_ver}/extension_one.{so,bundle}'
 do
+        it 'should define as task' do
+          
Rake::Task.task_defined?("tmp/#{@platform}/prefix1/prefix2/extension_one/#{@ruby_ver}/#{@ext_bin}").should
 be_true
+        end
+
+        it "should depend on 
'tmp/{platform}/prefix1/prefix2/extension_one/{ruby_ver}/Makefile'" do
+          
Rake::Task["tmp/#{@platform}/prefix1/prefix2/extension_one/#{@ruby_ver}/#{@ext_bin}"].prerequisites.should
 include("tmp/#{@platform}/prefix1/prefix2/extension_one/#{@ruby_ver}/Makefile")
+        end
+
+        it "should depend on 'ext/extension_one/source.c'" do
+          
Rake::Task["tmp/#{@platform}/prefix1/prefix2/extension_one/#{@ruby_ver}/#{@ext_bin}"].prerequisites.should
 include("ext/prefix1/prefix2/extension_one/source.c")
+        end
+
+        it "should not depend on 'ext/extension_one/source.h'" do
+          
Rake::Task["tmp/#{@platform}/prefix1/prefix2/extension_one/#{@ruby_ver}/#{@ext_bin}"].prerequisites.should_not
 include("ext/prefix1/prefix2/extension_one/source.h")
+        end
+      end
+    end
 
     context '(cross platform tasks)' do
       before :each do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasks/gem.rake new/tasks/gem.rake
--- old/tasks/gem.rake  2016-03-16 14:39:06.000000000 +0100
+++ new/tasks/gem.rake  2016-05-10 04:37:07.000000000 +0200
@@ -3,7 +3,7 @@
 GEM_SPEC = Gem::Specification.new do |s|
   # basic information
   s.name        = "rake-compiler"
-  s.version     = "0.9.7"
+  s.version     = "0.9.9"
   s.platform    = Gem::Platform::RUBY
 
   # description and details


Reply via email to