socialcast-git-extensions 3.1.23 → 3.1.24
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 +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/lib/socialcast-git-extensions/cli.rb +33 -12
- data/lib/socialcast-git-extensions/version.rb +1 -1
- data/socialcast-git-extensions.gemspec +1 -0
- data/spec/cli_spec.rb +20 -25
- metadata +18 -3
- data/.rvmrc +0 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 37d095475a120df4785586167bed1e1a02d33ba3
         | 
| 4 | 
            +
              data.tar.gz: 05f528bbf77ff776c39d5055b2308a9e5edb7adb
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 611680354aebd1374cbbd6792461a6ee69f2738358db014804587db8af3d55c8f856975b7c91c8581d6a5471d856341bf81c958885044a2dc519e42a9926e014
         | 
| 7 | 
            +
              data.tar.gz: 2169efa6a7ec64c577b96c4dc7f8619ee75f1b12d27db44b4aea995d563252d43653756097e04ab32c3c9dceb83f1c83a94f8485bf294924991b8bf8094c929b
         | 
    
        data/.ruby-gemset
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            socialcast-git-extensions
         | 
    
        data/.ruby-version
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            ruby-2.1.3
         | 
| @@ -4,6 +4,7 @@ require 'socialcast-git-extensions' | |
| 4 4 | 
             
            require 'socialcast'
         | 
| 5 5 | 
             
            require 'socialcast/command_line/message'
         | 
| 6 6 | 
             
            require 'highline/import'
         | 
| 7 | 
            +
            require 'active_support/core_ext'
         | 
| 7 8 |  | 
| 8 9 | 
             
            module Socialcast
         | 
| 9 10 | 
             
              module Gitx
         | 
| @@ -64,7 +65,7 @@ module Socialcast | |
| 64 65 | 
             
                    url = create_pull_request branch, repo, description, assignee
         | 
| 65 66 | 
             
                    say "Pull request created: #{url}"
         | 
| 66 67 |  | 
| 67 | 
            -
                    review_message = ["#reviewrequest for #{branch} #scgitx", "/cc @#{developer_group}", review_mention, description, changelog_summary(branch)].compact.join("\n\n")
         | 
| 68 | 
            +
                    review_message = ["#reviewrequest for #{branch} in #{current_repo} #scgitx", "/cc @#{developer_group}", review_mention, description, changelog_summary(branch)].compact.join("\n\n")
         | 
| 68 69 | 
             
                    post review_message, :url => url, :message_type => 'review_request'
         | 
| 69 70 | 
             
                  end
         | 
| 70 71 |  | 
| @@ -104,7 +105,7 @@ module Socialcast | |
| 104 105 |  | 
| 105 106 | 
             
                    pull_request_url = create_pull_request(backport_branch, repo, description, assignee)
         | 
| 106 107 |  | 
| 107 | 
            -
                    review_message = ["#reviewrequest backport ##{pull_request_num} to #{maintenance_branch} #scgitx"]
         | 
| 108 | 
            +
                    review_message = ["#reviewrequest backport ##{pull_request_num} to #{maintenance_branch} in #{current_repo} #scgitx"]
         | 
| 108 109 | 
             
                    if socialcast_reviewer
         | 
| 109 110 | 
             
                      review_message << "/cc @#{socialcast_reviewer} for #backport track"
         | 
| 110 111 | 
             
                    end
         | 
| @@ -168,7 +169,12 @@ module Socialcast | |
| 168 169 | 
             
                    run_cmd 'git pull'
         | 
| 169 170 | 
             
                    run_cmd "git checkout -b #{branch_name}"
         | 
| 170 171 |  | 
| 171 | 
            -
                     | 
| 172 | 
            +
                    message = <<-EOS.strip_heredoc
         | 
| 173 | 
            +
                      #worklog starting work on #{branch_name} in #{current_repo} #scgitx
         | 
| 174 | 
            +
                      /cc @#{developer_group}
         | 
| 175 | 
            +
                    EOS
         | 
| 176 | 
            +
             | 
| 177 | 
            +
                    post message.strip
         | 
| 172 178 | 
             
                  end
         | 
| 173 179 |  | 
| 174 180 | 
             
                  desc 'share', 'Share the current branch in the remote repository'
         | 
| @@ -185,7 +191,12 @@ module Socialcast | |
| 185 191 | 
             
                    integrate_branch(target_branch, prototype_branch) if target_branch == staging_branch
         | 
| 186 192 | 
             
                    run_cmd "git checkout #{branch}"
         | 
| 187 193 |  | 
| 188 | 
            -
                     | 
| 194 | 
            +
                    message = <<-EOS.strip_heredoc
         | 
| 195 | 
            +
                      #worklog integrating #{branch} into #{target_branch} in #{current_repo} #scgitx
         | 
| 196 | 
            +
                      /cc @#{developer_group}
         | 
| 197 | 
            +
                    EOS
         | 
| 198 | 
            +
             | 
| 199 | 
            +
                    post message.strip
         | 
| 189 200 | 
             
                  end
         | 
| 190 201 |  | 
| 191 202 | 
             
                  desc 'promote', '(DEPRECATED) promote the current branch into staging'
         | 
| @@ -205,15 +216,20 @@ module Socialcast | |
| 205 216 | 
             
                    removed_branches = nuke_branch(bad_branch, good_branch)
         | 
| 206 217 | 
             
                    nuke_branch("last_known_good_#{bad_branch}", good_branch)
         | 
| 207 218 |  | 
| 208 | 
            -
                     | 
| 209 | 
            -
             | 
| 210 | 
            -
             | 
| 219 | 
            +
                    message = <<-EOS.strip_heredoc
         | 
| 220 | 
            +
                      #worklog resetting #{bad_branch} branch to #{good_branch} in #{current_repo} #scgitx
         | 
| 221 | 
            +
                      /cc @#{developer_group}
         | 
| 222 | 
            +
                    EOS
         | 
| 223 | 
            +
             | 
| 211 224 | 
             
                    if removed_branches.any?
         | 
| 212 | 
            -
                       | 
| 213 | 
            -
             | 
| 214 | 
            -
             | 
| 225 | 
            +
                      message += <<-EOS.strip_heredoc
         | 
| 226 | 
            +
             | 
| 227 | 
            +
                        the following branches were affected:
         | 
| 228 | 
            +
                        #{removed_branches.map{|b| ['*', b].join(' ')}.join("\n")}
         | 
| 229 | 
            +
                      EOS
         | 
| 215 230 | 
             
                    end
         | 
| 216 | 
            -
             | 
| 231 | 
            +
             | 
| 232 | 
            +
                    post message.strip
         | 
| 217 233 | 
             
                  end
         | 
| 218 234 |  | 
| 219 235 | 
             
                  desc 'release', 'release the current branch to production'
         | 
| @@ -232,7 +248,12 @@ module Socialcast | |
| 232 248 | 
             
                    integrate_branch(base_branch, staging_branch)
         | 
| 233 249 | 
             
                    cleanup
         | 
| 234 250 |  | 
| 235 | 
            -
                     | 
| 251 | 
            +
                    message = <<-EOS.strip_heredoc
         | 
| 252 | 
            +
                      #worklog releasing #{branch} to #{base_branch} in #{current_repo} #scgitx
         | 
| 253 | 
            +
                      /cc @#{developer_group}
         | 
| 254 | 
            +
                    EOS
         | 
| 255 | 
            +
             | 
| 256 | 
            +
                    post message.strip
         | 
| 236 257 | 
             
                  end
         | 
| 237 258 |  | 
| 238 259 | 
             
                  private
         | 
| @@ -16,6 +16,7 @@ Gem::Specification.new do |s| | |
| 16 16 |  | 
| 17 17 | 
             
              s.add_runtime_dependency 'grit', '~> 2.5.0'
         | 
| 18 18 | 
             
              s.add_runtime_dependency 'socialcast', '~> 1.3.0'
         | 
| 19 | 
            +
              s.add_runtime_dependency 'activesupport', '~> 4.0'
         | 
| 19 20 | 
             
              s.add_runtime_dependency 'rest-client', '~> 1.6'
         | 
| 20 21 | 
             
              s.add_runtime_dependency 'thor', '~> 0.19.1'
         | 
| 21 22 | 
             
              s.add_runtime_dependency 'rake', '~> 10.3.2'
         | 
    
        data/spec/cli_spec.rb
    CHANGED
    
    | @@ -14,11 +14,7 @@ describe Socialcast::Gitx::CLI do | |
| 14 14 | 
             
              end
         | 
| 15 15 |  | 
| 16 16 | 
             
              def stub_message(message_body, params = {})
         | 
| 17 | 
            -
                 | 
| 18 | 
            -
             | 
| 19 | 
            -
                stub_request(:post, "https://testuser:testpassword@testdomain/api/messages.json")
         | 
| 20 | 
            -
                  .with(:body => json_body.to_json)
         | 
| 21 | 
            -
                  .to_return(:status => 200, :body => '', :headers => {})
         | 
| 17 | 
            +
                expect(Socialcast::CommandLine::Message).to receive(:create).with(params.merge(:body => message_body)).and_return(double(:permalink_url => 'https://community.socialcast.com/messages/1234'))
         | 
| 22 18 | 
             
              end
         | 
| 23 19 |  | 
| 24 20 | 
             
              before do
         | 
| @@ -50,7 +46,7 @@ describe Socialcast::Gitx::CLI do | |
| 50 46 | 
             
              describe '#integrate' do
         | 
| 51 47 | 
             
                context 'when target branch is ommitted' do
         | 
| 52 48 | 
             
                  before do
         | 
| 53 | 
            -
                    stub_message "#worklog integrating FOO into prototype #scgitx"
         | 
| 49 | 
            +
                    stub_message "#worklog integrating FOO into prototype in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 54 50 |  | 
| 55 51 | 
             
                    Socialcast::Gitx::CLI.start ['integrate']
         | 
| 56 52 | 
             
                  end
         | 
| @@ -74,7 +70,7 @@ describe Socialcast::Gitx::CLI do | |
| 74 70 | 
             
                  before do
         | 
| 75 71 | 
             
                    allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:prototype_branch).and_return('special-prototype')
         | 
| 76 72 |  | 
| 77 | 
            -
                    stub_message "#worklog integrating FOO into special-prototype #scgitx"
         | 
| 73 | 
            +
                    stub_message "#worklog integrating FOO into special-prototype in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 78 74 |  | 
| 79 75 | 
             
                    Socialcast::Gitx::CLI.start ['integrate']
         | 
| 80 76 | 
             
                  end
         | 
| @@ -96,7 +92,7 @@ describe Socialcast::Gitx::CLI do | |
| 96 92 | 
             
                end
         | 
| 97 93 | 
             
                context 'when target branch == prototype' do
         | 
| 98 94 | 
             
                  before do
         | 
| 99 | 
            -
                    stub_message "#worklog integrating FOO into prototype #scgitx"
         | 
| 95 | 
            +
                    stub_message "#worklog integrating FOO into prototype in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 100 96 |  | 
| 101 97 | 
             
                    Socialcast::Gitx::CLI.start ['integrate', 'prototype']
         | 
| 102 98 | 
             
                  end
         | 
| @@ -118,7 +114,7 @@ describe Socialcast::Gitx::CLI do | |
| 118 114 | 
             
                end
         | 
| 119 115 | 
             
                context 'when target branch == staging' do
         | 
| 120 116 | 
             
                  before do
         | 
| 121 | 
            -
                    stub_message "#worklog integrating FOO into staging #scgitx"
         | 
| 117 | 
            +
                    stub_message "#worklog integrating FOO into staging in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 122 118 |  | 
| 123 119 | 
             
                    Socialcast::Gitx::CLI.start ['integrate', 'staging']
         | 
| 124 120 | 
             
                  end
         | 
| @@ -170,7 +166,7 @@ describe Socialcast::Gitx::CLI do | |
| 170 166 | 
             
                end
         | 
| 171 167 | 
             
                context 'when user confirms release' do
         | 
| 172 168 | 
             
                  before do
         | 
| 173 | 
            -
                    stub_message "#worklog releasing FOO to master #scgitx"
         | 
| 169 | 
            +
                    stub_message "#worklog releasing FOO to master in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 174 170 |  | 
| 175 171 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:yes?).and_return(true)
         | 
| 176 172 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:cleanup)
         | 
| @@ -212,7 +208,7 @@ describe Socialcast::Gitx::CLI do | |
| 212 208 |  | 
| 213 209 | 
             
                context 'with reserved_branches via config file' do
         | 
| 214 210 | 
             
                  before do
         | 
| 215 | 
            -
                    stub_message "#worklog releasing FOO to master #scgitx"
         | 
| 211 | 
            +
                    stub_message "#worklog releasing FOO to master in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 216 212 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:yes?).and_return(true)
         | 
| 217 213 | 
             
                    allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:config).and_return( { 'reserved_branches' => ['dont-del-me','dont-del-me-2'] })
         | 
| 218 214 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:cleanup)
         | 
| @@ -226,7 +222,7 @@ describe Socialcast::Gitx::CLI do | |
| 226 222 |  | 
| 227 223 | 
             
                context 'with alternative base branch via config file' do
         | 
| 228 224 | 
             
                  before do
         | 
| 229 | 
            -
                    stub_message "#worklog releasing FOO to special-master #scgitx"
         | 
| 225 | 
            +
                    stub_message "#worklog releasing FOO to special-master in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 230 226 |  | 
| 231 227 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:yes?).and_return(true)
         | 
| 232 228 | 
             
                    allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:config).and_return( { 'base_branch' => 'special-master' })
         | 
| @@ -262,7 +258,7 @@ describe Socialcast::Gitx::CLI do | |
| 262 258 |  | 
| 263 259 | 
             
                context 'with alternative base branch via environment variable' do
         | 
| 264 260 | 
             
                  before do
         | 
| 265 | 
            -
                    stub_message "#worklog releasing FOO to special-master #scgitx"
         | 
| 261 | 
            +
                    stub_message "#worklog releasing FOO to special-master in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 266 262 |  | 
| 267 263 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:yes?).and_return(true)
         | 
| 268 264 | 
             
                    allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:config).and_return({})
         | 
| @@ -302,7 +298,7 @@ describe Socialcast::Gitx::CLI do | |
| 302 298 |  | 
| 303 299 | 
             
                context 'with alternative base branch via environment variable overriding base branch in config' do
         | 
| 304 300 | 
             
                  before do
         | 
| 305 | 
            -
                    stub_message "#worklog releasing FOO to special-master #scgitx"
         | 
| 301 | 
            +
                    stub_message "#worklog releasing FOO to special-master in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 306 302 |  | 
| 307 303 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:yes?).and_return(true)
         | 
| 308 304 | 
             
                    allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:config).and_return({ 'base_branch' => 'extra-special-master' })
         | 
| @@ -348,7 +344,7 @@ describe Socialcast::Gitx::CLI do | |
| 348 344 | 
             
                    prototype_branches = %w( dev-foo dev-bar )
         | 
| 349 345 | 
             
                    master_branches = %w( dev-foo )
         | 
| 350 346 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:branches).and_return(prototype_branches, master_branches, prototype_branches, master_branches)
         | 
| 351 | 
            -
                    stub_message "#worklog resetting prototype branch to last_known_good_master #scgitx\n/cc @SocialcastDevelopers\n\nthe following branches were affected:\n* dev-bar"
         | 
| 347 | 
            +
                    stub_message "#worklog resetting prototype branch to last_known_good_master in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers\n\nthe following branches were affected:\n* dev-bar"
         | 
| 352 348 | 
             
                    Socialcast::Gitx::CLI.start ['nuke', 'prototype', '--destination', 'master']
         | 
| 353 349 | 
             
                  end
         | 
| 354 350 | 
             
                  it 'should publish message into socialcast' do end # see expectations
         | 
| @@ -379,7 +375,7 @@ describe Socialcast::Gitx::CLI do | |
| 379 375 | 
             
                end
         | 
| 380 376 | 
             
                context 'when target branch == staging and --destination == last_known_good_staging' do
         | 
| 381 377 | 
             
                  before do
         | 
| 382 | 
            -
                    stub_message "#worklog resetting staging branch to last_known_good_staging #scgitx\n/cc @SocialcastDevelopers"
         | 
| 378 | 
            +
                    stub_message "#worklog resetting staging branch to last_known_good_staging in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 383 379 |  | 
| 384 380 | 
             
                    Socialcast::Gitx::CLI.start ['nuke', 'staging', '--destination', 'last_known_good_staging']
         | 
| 385 381 | 
             
                  end
         | 
| @@ -400,7 +396,7 @@ describe Socialcast::Gitx::CLI do | |
| 400 396 | 
             
                end
         | 
| 401 397 | 
             
                context 'when target branch == prototype and destination prompt == nil' do
         | 
| 402 398 | 
             
                  before do
         | 
| 403 | 
            -
                    stub_message "#worklog resetting prototype branch to last_known_good_prototype #scgitx\n/cc @SocialcastDevelopers"
         | 
| 399 | 
            +
                    stub_message "#worklog resetting prototype branch to last_known_good_prototype in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 404 400 |  | 
| 405 401 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:ask).and_return('')
         | 
| 406 402 | 
             
                    Socialcast::Gitx::CLI.start ['nuke', 'prototype']
         | 
| @@ -422,7 +418,7 @@ describe Socialcast::Gitx::CLI do | |
| 422 418 | 
             
                end
         | 
| 423 419 | 
             
                context 'when target branch == prototype and destination prompt = master' do
         | 
| 424 420 | 
             
                  before do
         | 
| 425 | 
            -
                    stub_message "#worklog resetting prototype branch to last_known_good_master #scgitx\n/cc @SocialcastDevelopers"
         | 
| 421 | 
            +
                    stub_message "#worklog resetting prototype branch to last_known_good_master in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 426 422 |  | 
| 427 423 | 
             
                    expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:ask).and_return('master')
         | 
| 428 424 | 
             
                    Socialcast::Gitx::CLI.start ['nuke', 'prototype']
         | 
| @@ -849,10 +845,9 @@ describe Socialcast::Gitx::CLI do | |
| 849 845 | 
             
                          :headers => { 'Accept' => 'application/json', 'Accept-Encoding' => 'gzip, deflate', 'Authorization' => /token\s\w+/, 'Content-Type' => 'application/json', 'User-Agent'=>'socialcast-git-extensions' }).
         | 
| 850 846 | 
             
                     to_return(:status => 200, :body => '{"html_url": "https://github.com/socialcast/socialcast-git-extensions/pulls/60"}', :headers => { 'Content-Type' => 'application/json' })
         | 
| 851 847 |  | 
| 852 | 
            -
                  stub_message "#reviewrequest backport #59 to v1.x #scgitx\n\n/cc @SocialcastDevelopers", :url => 'https://github.com/socialcast/socialcast-git-extensions/pulls/60', :message_type => 'review_request'
         | 
| 848 | 
            +
                  stub_message "#reviewrequest backport #59 to v1.x in socialcast/socialcast-git-extensions #scgitx\n\n/cc @SocialcastDevelopers", :url => 'https://github.com/socialcast/socialcast-git-extensions/pulls/60', :message_type => 'review_request'
         | 
| 853 849 |  | 
| 854 850 | 
             
                  expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:backportpr).and_call_original
         | 
| 855 | 
            -
                  expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:post).with("#reviewrequest backport #59 to v1.x #scgitx\n\n/cc @SocialcastDevelopers", { :url => "https://github.com/socialcast/socialcast-git-extensions/pulls/60", :message_type => "review_request" })
         | 
| 856 851 | 
             
                  Socialcast::Gitx::CLI.start ['backportpr', '59', 'v1.x']
         | 
| 857 852 | 
             
                end
         | 
| 858 853 | 
             
                it 'creates a branch based on v1.x and cherry-picks in PR 59' do end
         | 
| @@ -933,7 +928,7 @@ describe Socialcast::Gitx::CLI do | |
| 933 928 | 
             
                      stub_request(:post, "https://api.github.com/repos/socialcast/socialcast-git-extensions/pulls").
         | 
| 934 929 | 
             
                        to_return(:status => 200, :body => %q({"html_url": "http://github.com/repo/project/pulls/1"}), :headers => {})
         | 
| 935 930 |  | 
| 936 | 
            -
                      stub_message "#reviewrequest for FOO #scgitx\n\n/cc @SocialcastDevelopers\n\ntesting\n\n1 file changed", :url => 'http://github.com/repo/project/pulls/1', :message_type => 'review_request'
         | 
| 931 | 
            +
                      stub_message "#reviewrequest for FOO in socialcast/socialcast-git-extensions #scgitx\n\n/cc @SocialcastDevelopers\n\ntesting\n\n1 file changed", :url => 'http://github.com/repo/project/pulls/1', :message_type => 'review_request'
         | 
| 937 932 | 
             
                      allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:changelog_summary).and_return('1 file changed')
         | 
| 938 933 | 
             
                      Socialcast::Gitx::CLI.start ['reviewrequest', '--description', 'testing', '-s']
         | 
| 939 934 | 
             
                    end
         | 
| @@ -956,7 +951,7 @@ describe Socialcast::Gitx::CLI do | |
| 956 951 | 
             
                    stub_request(:patch, "http://github.com/repos/repo/project/issues/1").to_return(:status => 200)
         | 
| 957 952 | 
             
                  end
         | 
| 958 953 | 
             
                  context 'and additional reviewers are specified' do
         | 
| 959 | 
            -
                    let(:message_body) { "#reviewrequest for FOO #scgitx\n\n/cc @SocialcastDevelopers\n\n\nAssigned additionally to @JohnSmith for API review\n\ntesting\n\n1 file changed" }
         | 
| 954 | 
            +
                    let(:message_body) { "#reviewrequest for FOO in socialcast/socialcast-git-extensions #scgitx\n\n/cc @SocialcastDevelopers\n\n\nAssigned additionally to @JohnSmith for API review\n\ntesting\n\n1 file changed" }
         | 
| 960 955 | 
             
                    before do
         | 
| 961 956 | 
             
                      allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:changelog_summary).and_return('1 file changed')
         | 
| 962 957 | 
             
                      # The Review Buddy should be @mentioned in the message
         | 
| @@ -974,7 +969,7 @@ describe Socialcast::Gitx::CLI do | |
| 974 969 | 
             
                    end
         | 
| 975 970 | 
             
                  end
         | 
| 976 971 | 
             
                  context 'and a developer group is specified' do
         | 
| 977 | 
            -
                    let(:message_body) { "#reviewrequest for FOO #scgitx\n\n/cc @#{another_group}\n\ntesting\n\n1 file changed" }
         | 
| 972 | 
            +
                    let(:message_body) { "#reviewrequest for FOO in socialcast/socialcast-git-extensions #scgitx\n\n/cc @#{another_group}\n\ntesting\n\n1 file changed" }
         | 
| 978 973 | 
             
                    let(:another_group) { 'AnotherDeveloperGroup' }
         | 
| 979 974 | 
             
                    before do
         | 
| 980 975 | 
             
                      allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:changelog_summary).and_return('1 file changed')
         | 
| @@ -986,7 +981,7 @@ describe Socialcast::Gitx::CLI do | |
| 986 981 | 
             
                    it 'should create github pull request with a different group mentioned' do end # see expectations
         | 
| 987 982 | 
             
                  end
         | 
| 988 983 | 
             
                  context 'and additional reviewers are not specified' do
         | 
| 989 | 
            -
                    let(:message_body) { "#reviewrequest for FOO #scgitx\n\n/cc @SocialcastDevelopers\n\ntesting\n\n1 file changed" }
         | 
| 984 | 
            +
                    let(:message_body) { "#reviewrequest for FOO in socialcast/socialcast-git-extensions #scgitx\n\n/cc @SocialcastDevelopers\n\ntesting\n\n1 file changed" }
         | 
| 990 985 | 
             
                    before do
         | 
| 991 986 | 
             
                      allow_any_instance_of(Socialcast::Gitx::CLI).to receive(:changelog_summary).and_return('1 file changed')
         | 
| 992 987 | 
             
                      # The Review Buddy should be @mentioned in the message
         | 
| @@ -1000,7 +995,7 @@ describe Socialcast::Gitx::CLI do | |
| 1000 995 |  | 
| 1001 996 | 
             
              describe '#promote' do
         | 
| 1002 997 | 
             
                before do
         | 
| 1003 | 
            -
                  stub_message "#worklog integrating FOO into staging #scgitx"
         | 
| 998 | 
            +
                  stub_message "#worklog integrating FOO into staging in socialcast/socialcast-git-extensions #scgitx\n/cc @SocialcastDevelopers"
         | 
| 1004 999 | 
             
                  Socialcast::Gitx::CLI.start ['promote']
         | 
| 1005 1000 | 
             
                end
         | 
| 1006 1001 | 
             
                it 'should integrate into staging' do
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: socialcast-git-extensions
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.1. | 
| 4 | 
            +
              version: 3.1.24
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Ryan Sonnek
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014- | 
| 11 | 
            +
            date: 2014-10-03 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: grit
         | 
| @@ -38,6 +38,20 @@ dependencies: | |
| 38 38 | 
             
                - - "~>"
         | 
| 39 39 | 
             
                  - !ruby/object:Gem::Version
         | 
| 40 40 | 
             
                    version: 1.3.0
         | 
| 41 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 42 | 
            +
              name: activesupport
         | 
| 43 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 | 
            +
                requirements:
         | 
| 45 | 
            +
                - - "~>"
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            +
                    version: '4.0'
         | 
| 48 | 
            +
              type: :runtime
         | 
| 49 | 
            +
              prerelease: false
         | 
| 50 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 | 
            +
                requirements:
         | 
| 52 | 
            +
                - - "~>"
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: '4.0'
         | 
| 41 55 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 42 56 | 
             
              name: rest-client
         | 
| 43 57 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -144,7 +158,8 @@ extra_rdoc_files: [] | |
| 144 158 | 
             
            files:
         | 
| 145 159 | 
             
            - ".document"
         | 
| 146 160 | 
             
            - ".gitignore"
         | 
| 147 | 
            -
            - ". | 
| 161 | 
            +
            - ".ruby-gemset"
         | 
| 162 | 
            +
            - ".ruby-version"
         | 
| 148 163 | 
             
            - ".travis.yml"
         | 
| 149 164 | 
             
            - Gemfile
         | 
| 150 165 | 
             
            - LICENSE
         | 
    
        data/.rvmrc
    DELETED
    
    | @@ -1 +0,0 @@ | |
| 1 | 
            -
            rvm use default@socialcast-git-extensions --create
         |