git-process 1.0.8 → 1.0.9
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.md +5 -1
- data/lib/git-process/github_service.rb +2 -2
- data/lib/git-process/version.rb +1 -1
- data/spec/github_service_spec.rb +3 -3
- metadata +12 -12
    
        data/CHANGELOG.md
    CHANGED
    
    
| @@ -40,7 +40,7 @@ module GitHubService | |
| 40 40 |  | 
| 41 41 | 
             
                if /^git@/ =~ origin_url
         | 
| 42 42 | 
             
                  host = origin_url.sub(/^git@(.*?):.*$/, '\1')
         | 
| 43 | 
            -
                  site = host_to_site(host,  | 
| 43 | 
            +
                  site = host_to_site(host, true)
         | 
| 44 44 | 
             
                else
         | 
| 45 45 | 
             
                  uri = URI.parse(origin_url)
         | 
| 46 46 | 
             
                  host = uri.host
         | 
| @@ -55,7 +55,7 @@ module GitHubService | |
| 55 55 |  | 
| 56 56 | 
             
                  raise GitHubService::NoRemoteRepository.new("Could not determine a host from #{origin_url}") if host.nil?
         | 
| 57 57 |  | 
| 58 | 
            -
                  site = host_to_site(host, scheme == ' | 
| 58 | 
            +
                  site = host_to_site(host, !(scheme == 'http'))
         | 
| 59 59 | 
             
                end
         | 
| 60 60 | 
             
                site
         | 
| 61 61 | 
             
              end
         | 
    
        data/lib/git-process/version.rb
    CHANGED
    
    
    
        data/spec/github_service_spec.rb
    CHANGED
    
    | @@ -141,7 +141,7 @@ describe GitHubService do | |
| 141 141 | 
             
                it "site should work for git@... ssh address" do
         | 
| 142 142 | 
             
                  ghs.lib.stub(:config).with('remote.origin.url').and_return('git@myco.com:jdigger/git-process.git')
         | 
| 143 143 |  | 
| 144 | 
            -
                  ghs.site.should == ' | 
| 144 | 
            +
                  ghs.site.should == 'https://myco.com'
         | 
| 145 145 | 
             
                end
         | 
| 146 146 |  | 
| 147 147 |  | 
| @@ -162,7 +162,7 @@ describe GitHubService do | |
| 162 162 | 
             
                it "site should work for git://myco.com/ address" do
         | 
| 163 163 | 
             
                  ghs.lib.stub(:config).with('remote.origin.url').and_return('git://myco.com/jdigger/git-process.git')
         | 
| 164 164 |  | 
| 165 | 
            -
                  ghs.site.should == ' | 
| 165 | 
            +
                  ghs.site.should == 'https://myco.com'
         | 
| 166 166 | 
             
                end
         | 
| 167 167 |  | 
| 168 168 |  | 
| @@ -202,7 +202,7 @@ describe GitHubService do | |
| 202 202 | 
             
                      "  HostName github.myco.com\n"
         | 
| 203 203 |  | 
| 204 204 | 
             
                  in_tempfile(content) do |file|
         | 
| 205 | 
            -
                    ghs.site(:ssh_config_file => file.path).should == ' | 
| 205 | 
            +
                    ghs.site(:ssh_config_file => file.path).should == 'https://github.myco.com'
         | 
| 206 206 | 
             
                  end
         | 
| 207 207 | 
             
                end
         | 
| 208 208 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: git-process
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 4 | 
            +
              hash: 5
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 1
         | 
| 8 8 | 
             
              - 0
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 1.0. | 
| 9 | 
            +
              - 9
         | 
| 10 | 
            +
              version: 1.0.9
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - Jim Moore
         | 
| @@ -15,10 +15,10 @@ autorequire: | |
| 15 15 | 
             
            bindir: bin
         | 
| 16 16 | 
             
            cert_chain: []
         | 
| 17 17 |  | 
| 18 | 
            -
            date:  | 
| 18 | 
            +
            date: 2013-01-04 00:00:00 Z
         | 
| 19 19 | 
             
            dependencies: 
         | 
| 20 20 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 21 | 
            -
               | 
| 21 | 
            +
              version_requirements: &id001 !ruby/object:Gem::Requirement 
         | 
| 22 22 | 
             
                none: false
         | 
| 23 23 | 
             
                requirements: 
         | 
| 24 24 | 
             
                - - ~>
         | 
| @@ -32,9 +32,9 @@ dependencies: | |
| 32 32 | 
             
              prerelease: false
         | 
| 33 33 | 
             
              type: :runtime
         | 
| 34 34 | 
             
              name: octokit
         | 
| 35 | 
            -
               | 
| 35 | 
            +
              requirement: *id001
         | 
| 36 36 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 37 | 
            -
               | 
| 37 | 
            +
              version_requirements: &id002 !ruby/object:Gem::Requirement 
         | 
| 38 38 | 
             
                none: false
         | 
| 39 39 | 
             
                requirements: 
         | 
| 40 40 | 
             
                - - ~>
         | 
| @@ -48,9 +48,9 @@ dependencies: | |
| 48 48 | 
             
              prerelease: false
         | 
| 49 49 | 
             
              type: :runtime
         | 
| 50 50 | 
             
              name: json
         | 
| 51 | 
            -
               | 
| 51 | 
            +
              requirement: *id002
         | 
| 52 52 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 53 | 
            -
               | 
| 53 | 
            +
              version_requirements: &id003 !ruby/object:Gem::Requirement 
         | 
| 54 54 | 
             
                none: false
         | 
| 55 55 | 
             
                requirements: 
         | 
| 56 56 | 
             
                - - ~>
         | 
| @@ -64,9 +64,9 @@ dependencies: | |
| 64 64 | 
             
              prerelease: false
         | 
| 65 65 | 
             
              type: :runtime
         | 
| 66 66 | 
             
              name: trollop
         | 
| 67 | 
            -
               | 
| 67 | 
            +
              requirement: *id003
         | 
| 68 68 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 69 | 
            -
               | 
| 69 | 
            +
              version_requirements: &id004 !ruby/object:Gem::Requirement 
         | 
| 70 70 | 
             
                none: false
         | 
| 71 71 | 
             
                requirements: 
         | 
| 72 72 | 
             
                - - "="
         | 
| @@ -80,7 +80,7 @@ dependencies: | |
| 80 80 | 
             
              prerelease: false
         | 
| 81 81 | 
             
              type: :runtime
         | 
| 82 82 | 
             
              name: highline
         | 
| 83 | 
            -
               | 
| 83 | 
            +
              requirement: *id004
         | 
| 84 84 | 
             
            description: A set of scripts to make working with git easier and more consistent
         | 
| 85 85 | 
             
            email: 
         | 
| 86 86 | 
             
            - moore.jim@gmail.com
         |