flight_plan_cli 0.4.0 → 0.4.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: 99b2fda0bfa5c9ec1267c953574e76057a4de0d2
4
- data.tar.gz: 070b1951114f2295376b037ff1c92854042efd2f
3
+ metadata.gz: 1810e692ec7b8c0be42e10fddedcfbe259723b1b
4
+ data.tar.gz: 8b0f6ca9815a9177796481556bc192dcac748f6f
5
5
  SHA512:
6
- metadata.gz: a280fe88fe667391fac264960b7116d644f2a41751d3b776a6a3fce4c23fad60b392ed9b9d7e8a03681f59922f359787369889772ca08c5b8915592a19b6e0c1
7
- data.tar.gz: 5d02977e38abdb9943125b0866b0a6c6a2d094aedc5188569b131da3891ea70ef4852b7aea0a3b89d34fe8f3174380fc067f74ef6ab6d00287766314299b97f5
6
+ metadata.gz: 54d03ae9f528ef6f8f9f057c252248c9edab40cf8bc902b1ccb54512c51b18c982369e9ce70471d86d250bae08d7efc406b8343952ba98c6a7fb917dbc37382f
7
+ data.tar.gz: e5c34f4ba0842a27f6be3d14650667e991d61a155309d9cb1aca606c9c327888e7c2d33b2d3cdec7f520bcb0d154c8e0610994578bc929b72f2beae13c86ab4e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -55,7 +55,7 @@ module FlightPlanCli
55
55
  end
56
56
 
57
57
  def print_ticket(ticket)
58
- checked_out = git.current_branch =~ /##{ticket['remote_number']}[^0-9]/
58
+ checked_out = git_current_branch =~ /##{ticket['remote_number']}[^0-9]/
59
59
  line =
60
60
  " #{ticket['remote_number']}".colorize(Color::ISSUE_NO) +
61
61
  " #{ticket['remote_title']} ".colorize(Color::ISSUE)
@@ -63,6 +63,10 @@ module FlightPlanCli
63
63
 
64
64
  puts line
65
65
  end
66
+
67
+ def git_current_branch
68
+ @git_current_branch ||= git.current_branch
69
+ end
66
70
  end
67
71
  end
68
72
  end
@@ -0,0 +1,18 @@
1
+ module FlightPlanCli
2
+ module Commands
3
+ class Release
4
+ include FlightPlanCli::Clients::FlightPlan
5
+
6
+ def process
7
+ release = flight_plan.create_release
8
+ p release
9
+ repo_release = release['repo_releases'].first
10
+ puts "Created #{repo_release['repo']['name']} release \"#{release['title']}\" with the following tickets:"
11
+ repo_release['board_tickets'].each do |board_ticket|
12
+ ticket = board_ticket['ticket']
13
+ puts " ##{ticket['remote_number']} - #{ticket['remote_title']}"
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flight_plan_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cleary
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-20 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -180,6 +180,7 @@ files:
180
180
  - lib/flight_plan_cli/clients/git.rb
181
181
  - lib/flight_plan_cli/commands/checkout.rb
182
182
  - lib/flight_plan_cli/commands/list.rb
183
+ - lib/flight_plan_cli/commands/release.rb
183
184
  - lib/flight_plan_cli/initializer.rb
184
185
  - lib/flight_plan_cli/settings.rb
185
186
  - lib/flight_plan_cli/version.rb