t1k 4.0.4 → 4.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d969e634122aa2f3460d217853f0b816e09d7564b874300d32a4e15a707ba00
4
- data.tar.gz: d85b5bbda33a66180830521cbcb99543271365abeefe8df90c71b4e4d528ae9e
3
+ metadata.gz: ce352740b4d830c4585eca2174c5bad6d31427a841e825b997c1e171ef13bba9
4
+ data.tar.gz: 2595aab8ef04c8c8013b36f0a1775bd60e103a6990cef25271315d2d823153e0
5
5
  SHA512:
6
- metadata.gz: b26f7d8342704320316d453decf24329da1b7f8f76a75f6c869c905b215210512a536975401b69cdaa5f970a4e0b202cefcb1d2537243f2381e45d52aac59b8f
7
- data.tar.gz: 2e33d699d9c2e9838cc08f166873d8b5ce5455b364a1971c3bcba183102f08d7530c29b8ad1ec0016284a1e5d9628f1bea6b55d3ee27d3cf67939fedcc32ccb0
6
+ metadata.gz: 1c9a821444ddd9c8e70930b52a0043abc397d26e69f02364f37edfba4bea6369b15d94f268fde6e6e061a307902838d7b5c8d1685172b5d770dacd7621aca09e
7
+ data.tar.gz: 247ddcc6805501716a9d25f5502afa022e60d6fd03b531bc1fca8f32d8c08a0cc8e6da7bc9f726fa7a3627462a1c72e647588a03b6dd24ac0f7489474530e3de
data/lib/t1k/command.rb CHANGED
@@ -69,10 +69,10 @@ module T1k
69
69
  end
70
70
 
71
71
  desc 'Send your code to remote branch. Not to master'
72
- command :pr, arg: '<dest_branch>' do
72
+ command :pr do
73
73
 
74
74
  action do
75
- Commands::PullRequest.run dest_branch
75
+ Commands::PullRequest.run
76
76
  end
77
77
  end
78
78
 
@@ -2,21 +2,20 @@ module T1k
2
2
  module Commands
3
3
  class PullRequest
4
4
 
5
- def self.run(dest_branch)
6
- dest_branch ||= 'master'
5
+ def self.run
7
6
  T1k::Commands::Sink.run
8
7
 
9
8
  branch = T1k::Commands::Branch.actual_branch
10
9
  pull = `git push origin #{branch.strip}`
11
- self.open_browser pull, dest_branch
10
+ self.open_browser pull
12
11
  end
13
12
 
14
- def self.open_browser pull, dest_branch
13
+ def self.open_browser pull
15
14
  return 1 if pull.nil?
16
15
  match = pull.match( /(https:\/\/[a-zA-Z].*=1)/)
17
16
  if match
18
- uri = match[0]
19
- system "open #{uri}?dest=#{dest_branch}"
17
+ uri = match[0]
18
+ system "open #{uri}"
20
19
  end
21
20
  end
22
21
  end
data/lib/t1k/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module T1k
2
- VERSION = "4.0.4"
2
+ VERSION = "4.0.5"
3
3
  end
data/t1k-4.0.4.gem ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: t1k
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Maia
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-12-12 00:00:00.000000000 Z
13
+ date: 2019-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -184,6 +184,7 @@ files:
184
184
  - "./spec/t1k/commands/ship_spec.rb"
185
185
  - "./spec/t1k/commands/validate_spec.rb"
186
186
  - "./spec/t1k_spec.rb"
187
+ - "./t1k-4.0.4.gem"
187
188
  - "./t1k.gemspec"
188
189
  - README.md
189
190
  - Rakefile