github_issues_cli 0.3.0 → 0.3.1

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: 1eae2b08e31f053bc57a8509bb0f6d49328b46b1
4
- data.tar.gz: ff998a2b853797aee5cf818a1cacde1ea056834d
3
+ metadata.gz: 9e52db77f93113153685276e73fe869c1e2e3a78
4
+ data.tar.gz: a812244404806a40b5fa51e92d92dcfbada209ad
5
5
  SHA512:
6
- metadata.gz: e18c131f6fff20450b9fa2c99c2ded9abae1878c9e1dcc5eb25028796ccfaac6bd2cf2789d0a7cfdd4937f2d5582aad1b362e5ec7297612daef232e7cfc7ae59
7
- data.tar.gz: 5f75db94ababc441b5fe38b350738bec5bd5a2f3cead6ffa62c8cb8c3b1fc033cd296df26a79e15deb10f3221c932ed8e42d053407aaaa966f4c674e02643339
6
+ metadata.gz: 0d75053fc3fadb8a8a5d62c76b431dedf59b36f268008bd29c3f8e4d9e405f855d699d9d29b8cb8e4e48ef3c52edbdd196289aa50190324f42be5040764302b1
7
+ data.tar.gz: 877fd2dc80de42016a563535c08abb40e9fcda60730f4babfe579ce04a5fd727fbd483e6cfcd31531edca9787ab88c1cf8180e058f5500c701360eb0b99b33cd
@@ -11,6 +11,7 @@ module GithubIssuesCli
11
11
  git_repo = get_git_repo
12
12
  target = get_git_push_target
13
13
  remote, ref = target.split('/', 2)
14
+ raise 'Pushing to upstream is not allowed. Check your git config.' if remote == 'upstream'
14
15
  puts git_repo.lib.command_proxy('push', [remote, "#{git_repo.current_branch}:#{ref}"])
15
16
 
16
17
  raise 'Cannot create pull-request for non-origin remotes' unless remote == 'origin'
@@ -5,6 +5,7 @@ module GithubIssuesCli
5
5
  git_repo = get_git_repo
6
6
  target = get_git_push_target
7
7
  remote, ref = target.split('/', 2)
8
+ raise 'Pushing to upstream is not allowed. Check your git config.' if remote == 'upstream'
8
9
  puts git_repo.lib.command_proxy('push', [remote, "#{git_repo.current_branch}:#{ref}"])
9
10
  end
10
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_issues_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Durka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp