minitest-metadata 0.5.1 → 0.5.2
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 +8 -8
 - data/Gemfile.lock +1 -1
 - data/VERSION +1 -1
 - data/script/make_tag +25 -4
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            !binary "U0hBMQ==":
         
     | 
| 
       3 
3 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       4 
     | 
    
         
            -
                 
     | 
| 
      
 4 
     | 
    
         
            +
                YzI4MTExNGFmZTMwOTMxMGQyYWQ4ZmVjNDZmMjk0NzhhOGUzZjA1YQ==
         
     | 
| 
       5 
5 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
                NjU2NGZjOTgzYWVlNGI3Yjk4NWU2OGQzNGZmOGQ4ZDBmNjcwYWIwNw==
         
     | 
| 
       7 
7 
     | 
    
         
             
            SHA512:
         
     | 
| 
       8 
8 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       9 
     | 
    
         
            -
                 
     | 
| 
       10 
     | 
    
         
            -
                 
     | 
| 
       11 
     | 
    
         
            -
                 
     | 
| 
      
 9 
     | 
    
         
            +
                YjgxNWJlOTE1YjZmODhjNDIzYWQwMmVlOTA4OTY1NmVlMDRiODQxYjU4YTA4
         
     | 
| 
      
 10 
     | 
    
         
            +
                MmVmMjMwMDRhMmJmZTliZjc2MzM2NGU3YTljNDFiMWIzN2JkZGUwYmIwNGVk
         
     | 
| 
      
 11 
     | 
    
         
            +
                YmVhZWFjZGFiOTQ0NDkwOGQwZmFmNTkxNjU2MWZmNDg3Y2U3OTU=
         
     | 
| 
       12 
12 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       13 
     | 
    
         
            -
                 
     | 
| 
       14 
     | 
    
         
            -
                 
     | 
| 
       15 
     | 
    
         
            -
                 
     | 
| 
      
 13 
     | 
    
         
            +
                MDQ4NzExMmI0OTM2YjJjNmZlZTMzOWJmMjY2ZDgzNjM3NDYxYjA3OGQwODM0
         
     | 
| 
      
 14 
     | 
    
         
            +
                NzZlN2NlNGZjYjliZDcxOTkzZGVmODgyZTllNTNkM2Q5Y2JlMzYzZjljYmQy
         
     | 
| 
      
 15 
     | 
    
         
            +
                YjRmYTRlMjJiOWY3NjAxNTJlMWFlOGM1NTgxY2MxOWI2NDM5N2U=
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0.5. 
     | 
| 
      
 1 
     | 
    
         
            +
            0.5.2
         
     | 
    
        data/script/make_tag
    CHANGED
    
    | 
         @@ -2,9 +2,30 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
            require 'json'
         
     | 
| 
       3 
3 
     | 
    
         
             
            require 'time'
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
      
 5 
     | 
    
         
            +
            ENV['GITHUB_TOKEN'] = 'cebfd9d48eb57bee07660aea1eb166e4ac00d44a'
         
     | 
| 
      
 6 
     | 
    
         
            +
            ENV['TRAVIS_REPO_SLUG'] = 'wojtekmach/minitest-metadata'
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            sha = `git rev-parse HEAD`.strip
         
     | 
| 
      
 9 
     | 
    
         
            +
            tag = "v%s" % File.read(File.expand_path('../../VERSION', __FILE__)).strip
         
     | 
| 
      
 10 
     | 
    
         
            +
            token = ENV.fetch('GITHUB_TOKEN')
         
     | 
| 
      
 11 
     | 
    
         
            +
            repo  = ENV.fetch('TRAVIS_REPO_SLUG')
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            cmd = "curl -H \"Authorization: token %{token}\" -XPOST https://api.github.com/repos/%{repo}/git/refs -d '%{json}'" % {
         
     | 
| 
      
 14 
     | 
    
         
            +
              token: token,
         
     | 
| 
      
 15 
     | 
    
         
            +
              repo: repo,
         
     | 
| 
      
 16 
     | 
    
         
            +
              json: JSON(
         
     | 
| 
      
 17 
     | 
    
         
            +
                ref: "refs/tags/#{tag}",
         
     | 
| 
      
 18 
     | 
    
         
            +
                sha: sha,
         
     | 
| 
      
 19 
     | 
    
         
            +
              )
         
     | 
| 
      
 20 
     | 
    
         
            +
            }
         
     | 
| 
      
 21 
     | 
    
         
            +
            unless system cmd
         
     | 
| 
      
 22 
     | 
    
         
            +
              puts "Failed"
         
     | 
| 
      
 23 
     | 
    
         
            +
              exit 1
         
     | 
| 
      
 24 
     | 
    
         
            +
            end
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
       5 
26 
     | 
    
         
             
            json = JSON(
         
     | 
| 
       6 
     | 
    
         
            -
              tag:  
     | 
| 
       7 
     | 
    
         
            -
              object:  
     | 
| 
      
 27 
     | 
    
         
            +
              tag: tag,
         
     | 
| 
      
 28 
     | 
    
         
            +
              object: sha,
         
     | 
| 
       8 
29 
     | 
    
         
             
              type: "commit",
         
     | 
| 
       9 
30 
     | 
    
         
             
              tagger: {
         
     | 
| 
       10 
31 
     | 
    
         
             
                name: `git config user.name`.strip,
         
     | 
| 
         @@ -14,8 +35,8 @@ json = JSON( 
     | 
|
| 
       14 
35 
     | 
    
         
             
            )
         
     | 
| 
       15 
36 
     | 
    
         | 
| 
       16 
37 
     | 
    
         
             
            cmd = "curl -H \"Authorization: token %{token}\" -XPOST https://api.github.com/repos/%{repo}/git/tags -d '%{json}'" % {
         
     | 
| 
       17 
     | 
    
         
            -
              token:  
     | 
| 
       18 
     | 
    
         
            -
              repo:  
     | 
| 
      
 38 
     | 
    
         
            +
              token: token,
         
     | 
| 
      
 39 
     | 
    
         
            +
              repo: repo,
         
     | 
| 
       19 
40 
     | 
    
         
             
              json: json,
         
     | 
| 
       20 
41 
     | 
    
         
             
            }
         
     | 
| 
       21 
42 
     | 
    
         
             
            system cmd
         
     |