startling 0.0.10 → 0.0.11

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: 6f04b6e9ac2708a21d861de715b8c0533465265d
4
- data.tar.gz: cf63e7176023764951ac7082ed88acb9222ad773
3
+ metadata.gz: cb2ff0af20d479c513f3846c93da6017a1a6b181
4
+ data.tar.gz: 9d53d02fa7d00cad08b35e2515c7cd826ffa153c
5
5
  SHA512:
6
- metadata.gz: 1fbb64b4d9071f7e17b86815e61d71ed216868630baad8749c6121235846fb62364340001982673980a9e25ec13a90e0daefc97d8350c53f969eb4d26b95c400
7
- data.tar.gz: 9c7f0484384773d10a17ffd99913f0415e9efee1bebc5deadf8c6b6b906548b86517d4cf3f380023102ec8453a7f701ac6be24e84e2f87a774f6c75fe8e4b9f2
6
+ metadata.gz: f82d2f35b2890ff3342044db239fc2a5af3f5e1e2293659a0af3d36739cc30b8facfd702df8f99ad37113f64cd22bb11d0080e9a1f381cbf91b00dd458d2f464
7
+ data.tar.gz: d9c80fa244030b27aabdbe4cd121e32b008fdbab380318d8179ca568564a9779b37fd87c452b0d31ab22908345098418f62302fe29545dfdbfa27620004ab1e5
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Rakefile CHANGED
@@ -1,15 +1,16 @@
1
- #!/usr/bin/env rake
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
2
3
 
3
- require 'rubygems'
4
- require 'bundler/setup'
5
- require 'bundler/gem_tasks'
6
- require 'rspec/core/rake_task'
4
+ RSpec::Core::RakeTask.new(:spec)
7
5
 
8
- desc 'Default: run unit tests.'
9
6
  task :default => :spec
10
7
 
11
- desc "Run all specs"
12
- RSpec::Core::RakeTask.new do |t|
13
- t.pattern = 'spec/**/*_spec.rb'
14
- t.rspec_opts = '--color'
15
- end
8
+ module Bundler
9
+ class GemHelper
10
+ protected
11
+
12
+ def version_tag
13
+ "startling-#{version}"
14
+ end
15
+ end
16
+ end
@@ -11,7 +11,7 @@ module Startling
11
11
  end
12
12
 
13
13
  def body
14
- (story) ? story.pull_request_body_text : Startling.pull_request_body
14
+ (story) ? get_story_body : Startling.pull_request_body
15
15
  end
16
16
 
17
17
  def commit_message
@@ -20,6 +20,10 @@ module Startling
20
20
 
21
21
  private
22
22
 
23
+ def get_story_body
24
+ "#{story.pull_request_body_text}\n\n#{Startling.pull_request_body}"
25
+ end
26
+
23
27
  def get_title
24
28
  if story
25
29
  story.pull_request_title
@@ -1,3 +1,3 @@
1
1
  module Startling
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -13,7 +13,7 @@ module Startling
13
13
  end
14
14
 
15
15
  def format_pull_request(pull_request)
16
- "#{format_pull_request_labels(pull_request)}: #{pull_request.title}\n" +
16
+ "#{format_pull_request_labels(pull_request)}#{pull_request.title}\n" +
17
17
  " Started #{ago pull_request.created_at}, last updated #{ago pull_request.updated_at}\n" +
18
18
  " #{pull_request.url.cyan.underline}"
19
19
  end
@@ -45,9 +45,11 @@ module Startling
45
45
 
46
46
  private
47
47
  def format_pull_request_labels(pull_request)
48
- pull_request.labels.map do |label|
48
+ labels = pull_request.labels.map do |label|
49
49
  Paint[label[:name], :black, label[:color]]
50
- end.join(", ")
50
+ end.join(" ")
51
+
52
+ labels.empty? ? labels : labels.concat(" ")
51
53
  end
52
54
  end
53
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: startling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Jensen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2016-02-26 00:00:00.000000000 Z
14
+ date: 2016-03-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -218,6 +218,7 @@ executables:
218
218
  extensions: []
219
219
  extra_rdoc_files: []
220
220
  files:
221
+ - ".rspec"
221
222
  - ".ruby-gemset"
222
223
  - CODE_OF_CONDUCT.md
223
224
  - Gemfile
@@ -276,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
277
  version: '0'
277
278
  requirements: []
278
279
  rubyforge_project:
279
- rubygems_version: 2.5.1
280
+ rubygems_version: 2.2.2
280
281
  signing_key:
281
282
  specification_version: 4
282
283
  summary: script for startling a story