danger-mcbrain 0.0.1 → 0.0.2

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: 9fc65e256688e5324be20fbcb3c18e0ccac02a7d
4
- data.tar.gz: 7eba9555ac6808713bf835190677cc4233cacce9
3
+ metadata.gz: c28770c9d6f5acec085f8493c0dbe522049d7217
4
+ data.tar.gz: 9d350d636f64a3cbc46118498261dff1559b3f19
5
5
  SHA512:
6
- metadata.gz: 79f1328db481008823a07faaefd3a392eae5a8244b32a1975e1a2eef4c8583e1f74da7b5197df31da8ebbd35eb3eea6e2891e41ffb71b5f84fce71ef4f49d3b4
7
- data.tar.gz: 68a80c1553a3d8c82a88ad1936ac6672d50375ae740ca7dec0922ef9124c797501cf430ec9806e1cb7dd52dbcf7a22d2b9227d700ff8fc116ff54723e7baf5e4
6
+ metadata.gz: 96e9c7e0b67d59dd9ee65e0a154b2fe8a419312674fc036d8398988d9459cffc4ba614671a6cef3f785b64bf747c70aa6a7022877839af9b1d4ea854964b42a1
7
+ data.tar.gz: '093c3eff5dda5d0416a02ae012d4eeecbfc0396319bed9a17aadf6defeb3118bb603393c391dcad0f72694782339ffd304334edb496e902d8a12d5805b311570'
@@ -8,5 +8,16 @@ rvm:
8
8
  - 2.1.3
9
9
  - 2.3.1
10
10
 
11
+ bundler_args: "--without documentation --path bundle"
12
+
13
+ before_install:
14
+ - gem install bundler
15
+
16
+ after_install:
17
+ - rake install
18
+
11
19
  script:
12
- - bundle exec rake spec
20
+ # Tests use real git commands
21
+ - git config --global user.email "danger@example.com"
22
+ - git config --global user.name "Danger McShane"
23
+ - bundle exec rake spec
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016 David Grandinetti <dbgrandi@yahoo-inc.com>
1
+ Copyright (c) 2016 David Grandinetti <dbgrandi@gmail.com>
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # danger-mcbrain
2
2
 
3
+ [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/dbgrandi/danger-mcbrain/blob/master/LICENSE)
4
+ [![Gem](https://img.shields.io/gem/v/danger-mcbrain.svg?style=flat)](http://rubygems.org/gems/danger-mcbrain)
5
+
3
6
  Give Danger a memory, so she can check your PR today, and then answer questions about it tomorrow. Uses Redis for the persistence.
4
7
 
5
8
  ## Installation
@@ -8,35 +11,35 @@ Give Danger a memory, so she can check your PR today, and then answer questions
8
11
 
9
12
  ## Usage
10
13
 
11
- Methods and attributes from this plugin are available in
12
- your `Dangerfile` under the `brain` namespace.
14
+ Methods and attributes from this plugin are available in
15
+ your `Dangerfile` under the `brain` namespace.
13
16
 
14
- You need to connect Danger's `brain` to a redis instance by
15
- calling `brain.connect` somewhere in your `Dangerfile`. You
16
- can pass any arguments into `connect` that you would normally
17
- pass directly into `Redis.new`. You can read more about that
18
- in their [Getting Started](https://github.com/redis/redis-rb#getting-started)
19
- guide.
17
+ You need to connect Danger's `brain` to a redis instance by
18
+ calling `brain.connect` somewhere in your `Dangerfile`. You
19
+ can pass any arguments into `connect` that you would normally
20
+ pass directly into `Redis.new`. You can read more about that
21
+ in their [Getting Started](https://github.com/redis/redis-rb#getting-started)
22
+ guide.
20
23
 
21
- After you have connected, `brain` acts quite like a regular old
22
- Ruby Hash, so you can use the `[]` operator and `[]=` operator to
23
- get or set key/value pairs.
24
+ After you have connected, `brain` acts quite like a regular old
25
+ Ruby Hash, so you can use the `[]` operator and `[]=` operator to
26
+ get or set key/value pairs.
24
27
 
25
- You can set a `namespace` on the `brain` if needed. This can be handy
26
- in cases where you want to share a redis instance across multiple projecs
27
- or repositories.
28
+ You can set a `namespace` on the `brain` if needed. This can be handy
29
+ in cases where you want to share a redis instance across multiple projecs
30
+ or repositories.
28
31
 
29
- e.g.
32
+ e.g.
30
33
 
31
- ```ruby
32
- brain.namespace = "dbgrandi/danger-prose"
34
+ ```ruby
35
+ brain.namespace = "dbgrandi/danger-prose"
33
36
 
34
- last_build_time = brain[last_pr + ":build_time"]
37
+ last_build_time = brain[last_pr + ":build_time"]
35
38
 
36
- if last_build_time > build_time
37
- warn "Your build time is getting longer. #{last_pr}: #{last_build_time} -> #{pr}: #{build_time}"
38
- end
39
- ```
39
+ if last_build_time > build_time
40
+ warn "Your build time is getting longer. #{last_pr}: #{last_build_time} -> #{pr}: #{build_time}"
41
+ end
42
+ ```
40
43
 
41
44
  ## Development
42
45
 
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = 'danger-mcbrain'
8
8
  spec.version = McBrain::VERSION
9
9
  spec.authors = ['David Grandinetti']
10
- spec.email = ['dbgrandi@yahoo-inc.com']
10
+ spec.email = ['dbgrandi@gmail.com']
11
11
  spec.description = %q{Give Danger some persistent memory.}
12
12
  spec.summary = %q{Give Danger a redis backed key/value store, so you can extend Danger rules beyond just this PR.}
13
13
  spec.homepage = 'https://github.com/dbgrandi/danger-mcbrain'
@@ -1,3 +1,3 @@
1
1
  module McBrain
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-mcbrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Grandinetti
@@ -166,7 +166,7 @@ dependencies:
166
166
  version: '0'
167
167
  description: Give Danger some persistent memory.
168
168
  email:
169
- - dbgrandi@yahoo-inc.com
169
+ - dbgrandi@gmail.com
170
170
  executables: []
171
171
  extensions: []
172
172
  extra_rdoc_files: []