nutrella 1.0.0 → 1.1.0

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
- SHA1:
3
- metadata.gz: 4cdea5bba0dddbf71075910d6a2088809c372dfc
4
- data.tar.gz: ac222f43799fccec2aea3cc161e9a191ff693714
2
+ SHA256:
3
+ metadata.gz: 1293e7c5219675d114aeaf297747afe4e59d377453d7820f540a902840b61708
4
+ data.tar.gz: cad1baf4863b3d17d4bc59b2fd74b0086375d16442e1e14de0901b00a3ba3863
5
5
  SHA512:
6
- metadata.gz: a4c019a9b1d5076acc126e6f544eaaec0404a1f077b1754882debb1afb543d9832090f0b2653823160f705f2742d54917dcdbfe0c7ed95bcf48a079864767d03
7
- data.tar.gz: 585c858f0f94ab2f280b06b186606fa5e6bfdeeca7f2805e8351b0b28e62319eba470bd5523857c17c61d3a1f1233714508b2ed724b185b08b9a0c49eab208bd
6
+ metadata.gz: 8418ea70d0607dd2dc6e459b06807f8170afef1e157e6c40dd7cca6304f2acd374dfb710d6aa8d97c55856ae9784c7ef9454a38a787267074601f023865a125e
7
+ data.tar.gz: 96de4930fb211a2d84067350c342c70ad05c6398d73ee34821880bb9977f40828cfa31804ea9d36dd55e22186aead9baa6f58dabfb46149bb1c75445d0ee99ff
@@ -1 +1 @@
1
- 2.4.3
1
+ 2.3.3
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "nutrella"
4
4
 
5
- board_name = ARGV[0] || Nutrella::TaskBoardName.from_git_branch
5
+ board_name = Nutrella::TaskBoardName.from_command_line(ARGV) ||
6
+ Nutrella::TaskBoardName.from_git_branch
6
7
 
7
8
  Nutrella::Command.new(Dir.home, board_name).run
@@ -10,6 +10,20 @@ module Nutrella
10
10
 
11
11
  abort "Sorry. Can't find an associated git branch here." unless status.success?
12
12
 
13
+ normalize(git_branch_name)
14
+ end
15
+
16
+ def self.from_command_line(args)
17
+ git_branch_name = args[0]
18
+
19
+ abort "Sorry. Can't create a board without a branch name." unless git_branch_name.present?
20
+
21
+ normalize(git_branch_name)
22
+ end
23
+
24
+ private
25
+
26
+ def self.normalize(git_branch_name)
13
27
  git_branch_name.chomp.titleize
14
28
  end
15
29
  end
@@ -1,3 +1,3 @@
1
1
  module Nutrella
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutrella
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alistair McKinnell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-trello
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.6.14
141
+ rubygems_version: 2.7.7
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: A command line tool for creating a Trello Board based on the current git