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 +4 -4
- data/lib/t1k/command.rb +2 -2
- data/lib/t1k/commands/pull_request.rb +5 -6
- data/lib/t1k/version.rb +1 -1
- data/t1k-4.0.4.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce352740b4d830c4585eca2174c5bad6d31427a841e825b997c1e171ef13bba9
|
4
|
+
data.tar.gz: 2595aab8ef04c8c8013b36f0a1775bd60e103a6990cef25271315d2d823153e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c9a821444ddd9c8e70930b52a0043abc397d26e69f02364f37edfba4bea6369b15d94f268fde6e6e061a307902838d7b5c8d1685172b5d770dacd7621aca09e
|
7
|
+
data.tar.gz: 247ddcc6805501716a9d25f5502afa022e60d6fd03b531bc1fca8f32d8c08a0cc8e6da7bc9f726fa7a3627462a1c72e647588a03b6dd24ac0f7489474530e3de
|
data/lib/t1k/command.rb
CHANGED
@@ -2,21 +2,20 @@ module T1k
|
|
2
2
|
module Commands
|
3
3
|
class PullRequest
|
4
4
|
|
5
|
-
def self.run
|
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
|
10
|
+
self.open_browser pull
|
12
11
|
end
|
13
12
|
|
14
|
-
def self.open_browser pull
|
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}
|
17
|
+
uri = match[0]
|
18
|
+
system "open #{uri}"
|
20
19
|
end
|
21
20
|
end
|
22
21
|
end
|
data/lib/t1k/version.rb
CHANGED
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
|
+
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:
|
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
|