cp8_cli 6.0.0 → 6.0.1

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
  SHA1:
3
- metadata.gz: 0fb973d335c95c0f39cd87682a2cf0744f370ef5
4
- data.tar.gz: '0591d5691b5d1873860e3615836871382ce23202'
3
+ metadata.gz: f3ff52745a24efe4e1b23b61a30f2b88bd5d9691
4
+ data.tar.gz: 1ac607e96ed473335468195e39495bc620257938
5
5
  SHA512:
6
- metadata.gz: 69f468d72ef551fd4165b4c10905a195e1267a8cdbb0dd089ddc3e93f07b2d523fcd3e6d247e5e53103e2998b16577310f338c71497093929116dea4cc003fa8
7
- data.tar.gz: 3d0121108803661191a0ef58d2df44596d9e2d49c95333d9f67deda9b0a8eac3cbe0795230f82f1ff0bf9ba0eb59ede6e361a9e8a5f1d59e24dcbe5d508ba8cc
6
+ metadata.gz: ae8d41a0bcce0d76d92ecfe57cafc83289477d7364484c775fe5ffcf25ee1d90242d845923e40b0b7a909481226d74ae3c8024e433107fd474771f14b5e62fb7
7
+ data.tar.gz: 613234213ce6fb3e8f6a5f2c1434ea1eb71af9ae2bd821a27e8c01d6e1f9e0b17495751697a2d96f52ee3a824d713200865dffe8ab9c6e48cb37bfb6109addd5
data/cp8_cli.gemspec CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency "webmock"
29
29
  spec.add_development_dependency "faraday-conductivity"
30
30
 
31
+ spec.add_dependency "activesupport"
31
32
  spec.add_dependency "colored"
32
33
  spec.add_dependency "highline"
33
34
  spec.add_dependency "hirb"
data/exe/cp8 CHANGED
@@ -7,7 +7,7 @@ require "cp8_cli"
7
7
 
8
8
  module Cp8Cli
9
9
  class App < Thor
10
- desc "start [URL|TITLE]", "Assign self to story and create new branch"
10
+ desc "start [URL|TITLE]", "Picks up existing issue/creates new ad hoc story and checks out branch"
11
11
  def start(name = nil)
12
12
  main.start(name)
13
13
  end
@@ -18,7 +18,7 @@ module Cp8Cli
18
18
  main.submit(options.to_h.symbolize_keys)
19
19
  end
20
20
 
21
- desc "open", "Open current story in browser"
21
+ desc "open", "Open current associated issue in browser"
22
22
  def open
23
23
  main.open
24
24
  end
@@ -28,7 +28,7 @@ module Cp8Cli
28
28
  main.ci
29
29
  end
30
30
 
31
- desc "suggest", "Creates a random branch from current commit, pushes it, and resets `master` back to `origin/master`."
31
+ desc "suggest", "Creates a suggestion branch from new commits, pushes it, opens URL and resets `master` back to `origin/master`."
32
32
  def suggest
33
33
  main.suggest
34
34
  end
@@ -0,0 +1,9 @@
1
+ module Cp8Cli
2
+ module Commands
3
+ class Ci
4
+ def run
5
+ Branch.current.open_ci # TODO: move to /commands
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Cp8Cli
2
+ module Commands
3
+ class Open
4
+ def run
5
+ Branch.current.open_story_in_browser
6
+ end
7
+ end
8
+ end
9
+ end
data/lib/cp8_cli/main.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require "cp8_cli/version"
2
2
  require "cp8_cli/global_config"
3
+ require "cp8_cli/commands/ci"
4
+ require "cp8_cli/commands/open"
3
5
  require "cp8_cli/commands/start"
4
6
  require "cp8_cli/commands/submit"
5
7
  require "cp8_cli/commands/suggest"
@@ -16,7 +18,7 @@ module Cp8Cli
16
18
  end
17
19
 
18
20
  def open
19
- Branch.current.open_story_in_browser # TODO: move to /commands
21
+ Commands::Open.new.run
20
22
  end
21
23
 
22
24
  def submit(options = {})
@@ -24,7 +26,7 @@ module Cp8Cli
24
26
  end
25
27
 
26
28
  def ci
27
- Branch.current.open_ci # TODO: move to /commands
29
+ Commands::Ci.new.run
28
30
  end
29
31
 
30
32
  def suggest
@@ -1,5 +1,5 @@
1
1
  module Cp8Cli
2
- VERSION = "6.0.0"
2
+ VERSION = "6.0.1"
3
3
 
4
4
  class Version
5
5
  def self.latest?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cp8_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: activesupport
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: colored
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -307,6 +321,8 @@ files:
307
321
  - lib/cp8_cli/branch_name.rb
308
322
  - lib/cp8_cli/ci.rb
309
323
  - lib/cp8_cli/command.rb
324
+ - lib/cp8_cli/commands/ci.rb
325
+ - lib/cp8_cli/commands/open.rb
310
326
  - lib/cp8_cli/commands/start.rb
311
327
  - lib/cp8_cli/commands/submit.rb
312
328
  - lib/cp8_cli/commands/suggest.rb