pronto-labelman 0.0.2.1 → 0.0.3

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: 22681cfb1887260e20a097422950d62fe8707e7e
4
- data.tar.gz: 7f9559f96e49afbbff8db650b991c1a81a3f3de8
3
+ metadata.gz: bedbe0fc45774120428a25d775a3b36ce9e68a19
4
+ data.tar.gz: 79afd7b274356a79defc410d7b839aeb711ff23b
5
5
  SHA512:
6
- metadata.gz: 6b8f196ecb227b5946d64dbb150ddc54d596fc014dee5cc77ba8fbb2024efd87e18bbda05fe685272803af601acc1a2095a30c90936707b1909ce98e698d78ad
7
- data.tar.gz: 819e392b94ce3fae701686a7ddb26de9fc78852502347ab4d56317ebf4eb37450b507c8fe77f371d4c29ee277a16b174139f04ed42a602c4c197b661363d8d17
6
+ metadata.gz: 9dac17dfa9d7120755b9b5f816b816a0e507d9f64ad71efca3f5d5925405a7f82d6dbdbf4bf80946a522cf2fcb5389e52162d8b726cb5879d25bd905bee4ad5f
7
+ data.tar.gz: 8a2469f2fe857c08da8c5c83f061dddb66cd352fe7e1196350e207d13b92523e3005eba3e27bafb964debf665b57d8191c936786cda92845142d176789c458ee
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  ## Pronto-Labelman
2
2
 
3
- ![pronto-labelman-icon](https://cloud.githubusercontent.com/assets/5194847/23691790/a88578d0-0405-11e7-9492-0ac8ec32d545.png)
3
+ <p align="center">
4
+ <img src="https://cloud.githubusercontent.com/assets/5194847/23930916/406685ae-096a-11e7-9c35-f6d4daddb68f.png" alt="pronto-labelman logo"></img>
5
+ </p>
4
6
 
5
7
  ### Pronto runner for automatically adding labels to Github Pull Requests.
6
8
 
@@ -85,4 +87,5 @@ export LABELMAN_RULES=custom/pronto/labelman_rules
85
87
 
86
88
  ### Todo List
87
89
  * Improve "monkey patching"
90
+ * Improve logging (do not use `p`)
88
91
  * More configuration
@@ -9,8 +9,9 @@ module Pronto
9
9
  super
10
10
 
11
11
  @rules_load_path = ENV['LABELMAN_RULES']
12
+
12
13
  if @rules_load_path
13
- p "Using additional rules load path #{File.absolute_path("#{__dir__}/bin")}"
14
+ p "Using additional rules load path #{File.absolute_path(@rules_load_path)}"
14
15
  require_and_load_rules
15
16
  end
16
17
  end
@@ -36,7 +37,8 @@ module Pronto
36
37
  end
37
38
 
38
39
  def require_and_load_rules
39
- Dir["#{@rules_load_path}/*.rb"].each do |file|
40
+ load_dir = "#{File.absolute_path(@rules_load_path)}/*.rb"
41
+ Dir[load_dir].each do |file|
40
42
  require file
41
43
  load file
42
44
  end
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module LabelmanVersion
3
- VERSION = '0.0.2.1'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-labelman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amiel Perez