ohloh_scm 2.2.10 → 2.2.11
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.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 378882678ff49161d322fc368a1944e09686a566
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3ea30efcf663eb4990f73d668bce248644d7e560
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a3e1af35b147289e08537f1bdb503c7d77cdae338475d3c96a15edf07d63e0ca7342b9996b370b347ba5686feb8a9cd7693c72fe5bb93561b7cfd341de95a76d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: de87be2d7d73615867accb6dc567cd5b42978751f32530fbe2127dc6539ea434b3e7548b7b81d502071186756008259ef4f23a2eaba30075de05f99dc5ebd4a2
         
     | 
| 
         @@ -30,6 +30,10 @@ module OhlohScm::Adapters 
     | 
|
| 
       30 
30 
     | 
    
         
             
            			parent_tokens(commit).size > 1
         
     | 
| 
       31 
31 
     | 
    
         
             
            		end
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
      
 33 
     | 
    
         
            +
                def export_tag(dest_dir, tag_name)
         
     | 
| 
      
 34 
     | 
    
         
            +
                  run "cd '#{path}' && bzr export -r tag:#{tag_name} #{dest_dir}"
         
     | 
| 
      
 35 
     | 
    
         
            +
                end
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
       33 
37 
     | 
    
         
             
            		def export(dest_dir, token=head_token)
         
     | 
| 
       34 
38 
     | 
    
         
             
            			# Unlike other SCMs, Bzr doesn't simply place the contents into dest_dir.
         
     | 
| 
       35 
39 
     | 
    
         
             
            			# It actually *creates* dest_dir. Since it should already exist at this point,
         
     | 
    
        data/lib/ohloh_scm/version.rb
    CHANGED
    
    
| 
         @@ -61,6 +61,7 @@ PROPNAME="$4" 
     | 
|
| 
       61 
61 
     | 
    
         
             
            ACTION="$5"
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
       63 
63 
     | 
    
         
             
            if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
         
     | 
| 
      
 64 
     | 
    
         
            +
            if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:date" ]; then exit 0; fi
         
     | 
| 
       64 
65 
     | 
    
         | 
| 
       65 
     | 
    
         
            -
            echo " 
     | 
| 
      
 66 
     | 
    
         
            +
            echo "Only svn:log and svn:date revision properties can be changed" >&2
         
     | 
| 
       66 
67 
     | 
    
         
             
            exit 1
         
     | 
    
        data/test/unit/svn_misc_test.rb
    CHANGED
    
    | 
         @@ -118,6 +118,21 @@ module OhlohScm::Adapters 
     | 
|
| 
       118 
118 
     | 
    
         
             
                  end
         
     | 
| 
       119 
119 
     | 
    
         
             
                end
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
      
 121 
     | 
    
         
            +
                def test_tags_with_whitespaces
         
     | 
| 
      
 122 
     | 
    
         
            +
                  with_svn_repository('svn', 'trunk') do |source_scm|
         
     | 
| 
      
 123 
     | 
    
         
            +
                    OhlohScm::ScratchDir.new do |svn_working_folder|
         
     | 
| 
      
 124 
     | 
    
         
            +
                      folder_name = source_scm.root.slice(/[^\/]+\/?\Z/)
         
     | 
| 
      
 125 
     | 
    
         
            +
                      system "cd #{ svn_working_folder } && svn co #{ source_scm.root } && cd #{ folder_name } &&
         
     | 
| 
      
 126 
     | 
    
         
            +
                              mkdir -p #{ source_scm.root.gsub(/^file:../, '') }/db/transactions
         
     | 
| 
      
 127 
     | 
    
         
            +
                              svn copy trunk tags/'HL7 engine' && svn commit -m 'v2.0' && svn update && svn propset svn:date --revprop -r 'HEAD' 2016-02-12T00:44:04.921324Z"
         
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
      
 129 
     | 
    
         
            +
                      assert_equal(['HL7 engine', '6'], source_scm.tags.first[0..1])
         
     | 
| 
      
 130 
     | 
    
         
            +
                      # Avoid millisecond comparision.
         
     | 
| 
      
 131 
     | 
    
         
            +
                      assert_equal('2016-02-12', source_scm.tags.first[-1].strftime('%F'))
         
     | 
| 
      
 132 
     | 
    
         
            +
                    end
         
     | 
| 
      
 133 
     | 
    
         
            +
                  end
         
     | 
| 
      
 134 
     | 
    
         
            +
                end
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
       121 
136 
     | 
    
         
             
                def test_tags_with_non_tagged_repository
         
     | 
| 
       122 
137 
     | 
    
         
             
                  with_svn_repository('svn') do |svn|
         
     | 
| 
       123 
138 
     | 
    
         
             
                    assert_equal svn.tags, []
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: ohloh_scm
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.2.11
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - BlackDuck Software
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2017- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2017-04-11 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: posix-spawn
         
     | 
| 
         @@ -464,7 +464,7 @@ files: 
     | 
|
| 
       464 
464 
     | 
    
         
             
            - test/repositories/svn/hooks/post-unlock.tmpl
         
     | 
| 
       465 
465 
     | 
    
         
             
            - test/repositories/svn/hooks/pre-commit.tmpl
         
     | 
| 
       466 
466 
     | 
    
         
             
            - test/repositories/svn/hooks/pre-lock.tmpl
         
     | 
| 
       467 
     | 
    
         
            -
            - test/repositories/svn/hooks/pre-revprop-change 
     | 
| 
      
 467 
     | 
    
         
            +
            - test/repositories/svn/hooks/pre-revprop-change
         
     | 
| 
       468 
468 
     | 
    
         
             
            - test/repositories/svn/hooks/pre-unlock.tmpl
         
     | 
| 
       469 
469 
     | 
    
         
             
            - test/repositories/svn/hooks/start-commit.tmpl
         
     | 
| 
       470 
470 
     | 
    
         
             
            - test/repositories/svn/locks/db-logs.lock
         
     | 
| 
         @@ -940,7 +940,7 @@ test_files: 
     | 
|
| 
       940 
940 
     | 
    
         
             
            - test/repositories/svn/hooks/post-unlock.tmpl
         
     | 
| 
       941 
941 
     | 
    
         
             
            - test/repositories/svn/hooks/pre-commit.tmpl
         
     | 
| 
       942 
942 
     | 
    
         
             
            - test/repositories/svn/hooks/pre-lock.tmpl
         
     | 
| 
       943 
     | 
    
         
            -
            - test/repositories/svn/hooks/pre-revprop-change 
     | 
| 
      
 943 
     | 
    
         
            +
            - test/repositories/svn/hooks/pre-revprop-change
         
     | 
| 
       944 
944 
     | 
    
         
             
            - test/repositories/svn/hooks/pre-unlock.tmpl
         
     | 
| 
       945 
945 
     | 
    
         
             
            - test/repositories/svn/hooks/start-commit.tmpl
         
     | 
| 
       946 
946 
     | 
    
         
             
            - test/repositories/svn/locks/db-logs.lock
         
     |