adjutant 0.1.5 → 0.1.6

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: cdbe894918d1a44c8c194475a4b2cd2cfae16091
4
- data.tar.gz: 840d7313c2b80bf8c4574bce84c838969d52e676
3
+ metadata.gz: 2584db5831bdd8bb03b9ea25f48da5be48d99a09
4
+ data.tar.gz: 1032cf8b6d47be2a893e5eb8e1c4a76f2ef01d85
5
5
  SHA512:
6
- metadata.gz: 0dbda01d7bb76a4a986b5e904c6895cee3c98ec664d17b66ce8dd0e6b2991cbf66a7b7ef38f6a6c19237b66eb5c6725497b907515d817343240d29380bcbc075
7
- data.tar.gz: eac2fce3f15513dea017f5c0303a33675edc3a8ed8fb3f9a9edc0213d4ce972ab582bc7481fc89d90da6f7b29d673f901c8a08476bfeb1e86a166e129d6587b9
6
+ metadata.gz: 4fcf1a7aced08a40aa8fa15c5c2da3f7d7cc820bb39261c8c8c42f2cff0752f4142288b2102df6ae10282bf8f0c02d78c9986126b6b573fd4f6c4878029319db
7
+ data.tar.gz: 2e43392372c9702a0658f68ae7722d3c3e663c6e90cc9a0ea06651ee9cc1c0e511e19e45d4132cd94908d2bcd93c9598975ddb5f271569fe0844131d1e908b75
@@ -8,5 +8,9 @@ module Adjutant
8
8
  def commits_sha
9
9
  @shas ||= json['commits'].collect { |commit| commit['id'] }
10
10
  end
11
+
12
+ def commiter_nickname
13
+ @nickname ||= json['pusher']['name']
14
+ end
11
15
  end
12
16
  end
@@ -1,3 +1,3 @@
1
1
  module Adjutant
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -8,7 +8,8 @@ RSpec.describe Adjutant::Parser do
8
8
  "owner" => { "name" => 'Baltazore' },
9
9
  "name" => "adjutant",
10
10
  },
11
- "commits" => [ { "id" => "asda" }, {"id" => "asds" } ]
11
+ "commits" => [ { "id" => "asda" }, {"id" => "asds" } ],
12
+ "pusher" => { "name" => "Baltazore" },
12
13
  }
13
14
  end
14
15
  let(:parser) { Adjutant::Parser.new(json) }
@@ -20,4 +21,8 @@ RSpec.describe Adjutant::Parser do
20
21
  it 'fetches repo name' do
21
22
  expect(parser.repo_name).to eq('Baltazore/adjutant')
22
23
  end
24
+
25
+ it 'gets commiter nickname' do
26
+ expect(parser.commiter_nickname).to eq('Baltazore')
27
+ end
23
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adjutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Baltazore