repomen 0.2.0.rc1 → 0.2.0
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: f7da6e4ac7e6ed01f6892935ba8466666f3954ab
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 36ca690f5c29727d134d3d30d4b5389a19459da2
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: afd6dd51dc418792ca775e2f14513dea5c3c5ff529e66c9bf5a5e915d9fbe0b842c434780846353248bbfa6a3c6fe680a60d20415d4cf7302712db4f67204881
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 3c0d704f5903df4196300925dbf7dadf47f5b92ed533e732c5aa6621780c43eea94de5ae87bebcf7e33faae0f979793294ea0e649c590fe9cf9b9b70d763b0a0
         
     | 
| 
         @@ -2,7 +2,7 @@ module Repomen 
     | 
|
| 
       2 
2 
     | 
    
         
             
              module Repo
         
     | 
| 
       3 
3 
     | 
    
         
             
                module Service
         
     | 
| 
       4 
4 
     | 
    
         
             
                  class GitHub < Base
         
     | 
| 
       5 
     | 
    
         
            -
                    SERVICE_REGEXP = /(https:\/\/|git\@)github.com[\:\/]([^\/]+)\/(.+)\.git$/
         
     | 
| 
      
 5 
     | 
    
         
            +
                    SERVICE_REGEXP = /(https:\/\/|git:\/\/|git\@)github.com[\:\/]([^\/]+)\/(.+)\.git$/
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
                    # @param url [String]
         
     | 
| 
       8 
8 
     | 
    
         
             
                    def applicable?
         
     | 
    
        data/lib/repomen/version.rb
    CHANGED
    
    
| 
         @@ -11,20 +11,21 @@ describe ::Repomen::Repo::Handler::Git do 
     | 
|
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
              describe "#retrieve" do
         
     | 
| 
       13 
13 
     | 
    
         
             
                it "should recognize a Github URL via git" do
         
     | 
| 
       14 
     | 
    
         
            -
                   
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
      
 14 
     | 
    
         
            +
                  %w(git@github.com:octocat/Hello-World.git git://github.com/octocat/Hello-World.git).each do |url|
         
     | 
| 
      
 15 
     | 
    
         
            +
                    handler = described_class.new(url, dir)
         
     | 
| 
      
 16 
     | 
    
         
            +
                    handler.retrieve
         
     | 
| 
      
 17 
     | 
    
         
            +
                    assert File.exists?(handler.path)
         
     | 
| 
      
 18 
     | 
    
         
            +
                    assert File.directory?(handler.path)
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
                    assert handler.revision_info
         
     | 
| 
      
 21 
     | 
    
         
            +
                    info = handler.revision_info
         
     | 
| 
      
 22 
     | 
    
         
            +
                    refute info["name"].nil?
         
     | 
| 
      
 23 
     | 
    
         
            +
                    refute info["email"].nil?
         
     | 
| 
      
 24 
     | 
    
         
            +
                    refute info["date"].nil?
         
     | 
| 
      
 25 
     | 
    
         
            +
                    refute info["commit"].nil?
         
     | 
| 
      
 26 
     | 
    
         
            +
                    assert info["commit"] == info["commit"].strip
         
     | 
| 
      
 27 
     | 
    
         
            +
                    refute info["message"].nil?
         
     | 
| 
      
 28 
     | 
    
         
            +
                  end
         
     | 
| 
       28 
29 
     | 
    
         
             
                end
         
     | 
| 
       29 
30 
     | 
    
         | 
| 
       30 
31 
     | 
    
         
             
                it "should recognize a Github URL via https" do
         
     | 
| 
         @@ -11,6 +11,14 @@ describe ::Repomen::Repo::Service::GitHub do 
     | 
|
| 
       11 
11 
     | 
    
         
             
                assert_equal "Hello-World", service.repo_name
         
     | 
| 
       12 
12 
     | 
    
         
             
              end
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
      
 14 
     | 
    
         
            +
              it "should recognize a Github URL via git protocol" do
         
     | 
| 
      
 15 
     | 
    
         
            +
                url = "git://github.com/octocat/Hello-World.git"
         
     | 
| 
      
 16 
     | 
    
         
            +
                service = described_class.new(url)
         
     | 
| 
      
 17 
     | 
    
         
            +
                assert service.applicable?
         
     | 
| 
      
 18 
     | 
    
         
            +
                assert_equal "octocat", service.user_name
         
     | 
| 
      
 19 
     | 
    
         
            +
                assert_equal "Hello-World", service.repo_name
         
     | 
| 
      
 20 
     | 
    
         
            +
              end
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
       14 
22 
     | 
    
         
             
              it "should recognize a Github URL via https" do
         
     | 
| 
       15 
23 
     | 
    
         
             
                url = "https://github.com/octocat/Hello-World.git"
         
     | 
| 
       16 
24 
     | 
    
         
             
                service = described_class.new(url)
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: repomen
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.2.0 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - René Föhring
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2014-06 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-10-06 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
         @@ -131,9 +131,9 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       131 
131 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       132 
132 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       133 
133 
     | 
    
         
             
              requirements:
         
     | 
| 
       134 
     | 
    
         
            -
              - - " 
     | 
| 
      
 134 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       135 
135 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       136 
     | 
    
         
            -
                  version:  
     | 
| 
      
 136 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       137 
137 
     | 
    
         
             
            requirements: []
         
     | 
| 
       138 
138 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       139 
139 
     | 
    
         
             
            rubygems_version: 2.2.0
         
     |