shipit 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +6 -0
- data/Rakefile +1 -1
- data/lib/shipit.rb +13 -3
- metadata +2 -2
    
        data/ChangeLog
    CHANGED
    
    | @@ -2,6 +2,12 @@ ChangeLog of http://svn.coderepos.org/share/lang/ruby/shipit/trunk | |
| 2 2 |  | 
| 3 3 | 
             
            2008-01-19 cho45
         | 
| 4 4 |  | 
| 5 | 
            +
            	* [bug] @4962:
         | 
| 6 | 
            +
            		Fix registering rake tasks redundantly. 
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            	* [release] @4961:
         | 
| 9 | 
            +
            		Release 0.0.5
         | 
| 10 | 
            +
             | 
| 5 11 | 
             
            	* [bug][interface] @4959:
         | 
| 6 12 | 
             
            		Remove 3rd argument of Step::ChangeVersion because it is meaningless.
         | 
| 7 13 | 
             
            		Fix bug around checking vers on Step::ChangeVersion.
         | 
    
        data/Rakefile
    CHANGED
    
    | @@ -19,7 +19,7 @@ DESCRIPTION       = "Automated release tasks." | |
| 19 19 | 
             
            RUBYFORGE_PROJECT = "lowreal"
         | 
| 20 20 | 
             
            HOMEPATH          = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
         | 
| 21 21 | 
             
            BIN_FILES         = %w(  )
         | 
| 22 | 
            -
            VERS              = "0.0. | 
| 22 | 
            +
            VERS              = "0.0.6"
         | 
| 23 23 |  | 
| 24 24 | 
             
            REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
         | 
| 25 25 | 
             
            CLEAN.include ['**/.*.sw?', '*.gem', '.config']
         | 
    
        data/lib/shipit.rb
    CHANGED
    
    | @@ -134,16 +134,26 @@ class Rake::ShipitTask::Step::ChangeVersion | |
| 134 134 | 
             
            		puts "Find version string #{@match[1]} and will change to #{@new_version}"
         | 
| 135 135 |  | 
| 136 136 | 
             
            		# check content of Rakefile
         | 
| 137 | 
            +
            		check_version = nil
         | 
| 137 138 | 
             
            		@org = @file.parent + "#{@file.basename}.org"
         | 
| 138 139 | 
             
            		FileUtils.cp @file, @org
         | 
| 139 140 | 
             
            		@file.open("w") do |f|
         | 
| 140 141 | 
             
            			f.print @newcont
         | 
| 141 142 | 
             
            		end
         | 
| 142 | 
            -
             | 
| 143 | 
            -
            		 | 
| 143 | 
            +
             | 
| 144 | 
            +
            		## run ruby not to duplicate rake tasks.
         | 
| 145 | 
            +
            		IO.popen("ruby", "r+") do |ruby|
         | 
| 146 | 
            +
            			ruby << <<-EOS
         | 
| 147 | 
            +
            				m = Module.new
         | 
| 148 | 
            +
            				m.module_eval(File.read("Rakefile"))
         | 
| 149 | 
            +
            				print Marshal.dump(m.const_get(:VERS))
         | 
| 150 | 
            +
            			EOS
         | 
| 151 | 
            +
            			ruby.close_write
         | 
| 152 | 
            +
            			check_version = Marshal.load(ruby.read)
         | 
| 153 | 
            +
            		end
         | 
| 144 154 |  | 
| 145 155 | 
             
            		FileUtils.mv @org, @file
         | 
| 146 | 
            -
            		raise "Constant VERS in Rakefile must be same as 3rd argument of ChangeVersion step." unless @new_version ==  | 
| 156 | 
            +
            		raise "Constant VERS in Rakefile must be same as 3rd argument of ChangeVersion step." unless @new_version == check_version
         | 
| 147 157 |  | 
| 148 158 | 
             
            		VERS.replace @new_version
         | 
| 149 159 | 
             
            	end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: shipit
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.6
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors: 
         | 
| 7 7 | 
             
            - cho45
         | 
| @@ -9,7 +9,7 @@ autorequire: shipit | |
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 11 |  | 
| 12 | 
            -
            date: 2008-01- | 
| 12 | 
            +
            date: 2008-01-29 00:00:00 +09:00
         | 
| 13 13 | 
             
            default_executable: 
         | 
| 14 14 | 
             
            dependencies: 
         | 
| 15 15 | 
             
            - !ruby/object:Gem::Dependency 
         |