git-harvest 0.1.1 → 0.1.2

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: 22449e13b60f896946778cfa9b0d511a26de6b7be5b6a1464a85ef53f4a2fd73
4
- data.tar.gz: 7646af566b8dfbe6685904687f5d5b4112ca70cfa6e3f0f9a76b2657609ce204
3
+ metadata.gz: 550a9af8c3cddb359fa65df43f88fd5bef3377424bdb77d85298a504b602aceb
4
+ data.tar.gz: ff25b233270ebbbc7c023b3f8b82fae94bb24a749bac1acc04cc5463c2105646
5
5
  SHA512:
6
- metadata.gz: d42dc78e759367c178c92da58298745325bc9a38a87f2949b7d03d4ff583f754d4ddde7e232cc9fb9f348a324fac3dbbe4e3ab787910b73271d1358ad7632195
7
- data.tar.gz: c8c1ec15181d12b23082c3f9e2619a5f397863d374873e906935da408b9363a6336bc76b45d36094958e0548a4587826a73e6f648fc5b753c0614995371cb940
6
+ metadata.gz: 6af914eb42da051a0a538496013c8161d21d730e329bedaabf8b7f45d1c5b9d74d1d39a7aeb65e22fd9264a73870fb150bf9a418247da97afd71413553ca41c1
7
+ data.tar.gz: 60035bf15f26fd27f840446d419f36ca28d9bd665374b1cb50cf807fc9aa37da99be78b7cd39f266753e4e891818bb0ecafcfa26c29d90c405dad239a2cf805e
@@ -16,8 +16,8 @@ module Harvest
16
16
  say "========== JIRA Integration =============", Thor::Shell::Color::GREEN
17
17
  say 'Fetch or create JIRA API credentials at https://id.atlassian.com/manage/api-tokens', Thor::Shell::Color::GREEN
18
18
 
19
- project_code = ask "Enter JIRA Project code (eg. MXL): ", Thor::Shell::Color::RED, :bold
20
- project_url = ask "Enter JIRA project Base URL (eg. https://sephora-mx.atlassian.net): ", Thor::Shell::Color::RED, :bold
19
+ project_code = ask "Enter JIRA Project code (eg. ABC): ", Thor::Shell::Color::RED, :bold
20
+ project_url = ask "Enter JIRA project Base URL (eg. https://XXXXXXX.atlassian.net): ", Thor::Shell::Color::RED, :bold
21
21
  email = ask "Enter JIRA email: ", Thor::Shell::Color::RED, :bold
22
22
  access_token = ask "Enter JIRA access token: ", Thor::Shell::Color::RED, :bolds
23
23
 
data/lib/harvest/vcs.rb CHANGED
@@ -3,7 +3,9 @@ module Harvest
3
3
  attr_reader :current_branch, :project_code
4
4
 
5
5
  def self.current_project
6
- `git config --local remote.origin.url|sed -n 's#.*/\([^.]*\)\.git#\1#p'`
6
+ remote_url = `git config --local remote.origin.url`.strip
7
+
8
+ URI(remote_url).path.split('/').last.gsub('.git', '')
7
9
  end
8
10
 
9
11
  def initialize(project_code)
@@ -1,3 +1,3 @@
1
1
  module Harvest
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-harvest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhinav Mishra