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 +4 -4
- data/.rspec +1 -0
- data/Rakefile +12 -11
- data/lib/startling/handlers/default_pull_request_handler.rb +5 -1
- data/lib/startling/version.rb +1 -1
- data/lib/startling/work_printer.rb +5 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb2ff0af20d479c513f3846c93da6017a1a6b181
|
4
|
+
data.tar.gz: 9d53d02fa7d00cad08b35e2515c7cd826ffa153c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
2
3
|
|
3
|
-
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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) ?
|
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
|
data/lib/startling/version.rb
CHANGED
@@ -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)}
|
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.
|
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-
|
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.
|
280
|
+
rubygems_version: 2.2.2
|
280
281
|
signing_key:
|
281
282
|
specification_version: 4
|
282
283
|
summary: script for startling a story
|