badgerbadgerbadger 0.7.1 → 0.7.2

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: 1d1a8ef3be65435d6c22bfff2d02015461bc99a0
4
- data.tar.gz: cc2272cd4936e254831ef75809d68274c059d46a
3
+ metadata.gz: d20aed8fbca6e4d0f914135e1fe09e1d2bfb431e
4
+ data.tar.gz: 6880c87f576885dcf7e3dd4bd533c4ccc2826d82
5
5
  SHA512:
6
- metadata.gz: d453186ce55ac842cd65c8015261bb11d0c6942291d1ac2e7a83c4a5a1c7e33cb22a479823433d072b2113a11280799fec34dc48918a20b38dc90aa504b00abd
7
- data.tar.gz: 02cf16feadd95b9e953a2e6de592b9554c0fea5c1dea571b177e64ab8ea3ba691113865086aa1a3c55b8be053d139651628d0daae586b69cc612c0c585fdf93c
6
+ metadata.gz: 0687d4ebc2e9a0daa8fac89c8e436218ccaac5cf506af18fa432625956aa118793246194a313c08ec77a81fbe661186585f204cb0f72274fa34aa2349d5de3ed
7
+ data.tar.gz: cd13e19bdb0c01047f7b6ff63235f5586c43ee1d9d0cc3e81654217c1667fe3854c570fc294566b891fe082ff27c9d25631025aad98af0c6b3af9e06a41ecfd5
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'guard', '~> 2.3'
31
31
  spec.add_development_dependency 'guard-rspec', '~> 4.2'
32
32
  spec.add_development_dependency 'guard-cucumber', '~> 1.4'
33
- spec.add_development_dependency 'terminal-notifier-guard'
33
+ spec.add_development_dependency 'terminal-notifier-guard', '~> 1.5'
34
34
  spec.add_development_dependency 'coveralls', '~> 0.7'
35
35
  spec.add_development_dependency 'webmock', '~> 1.17'
36
36
  end
@@ -1,7 +1,7 @@
1
1
  Feature: Badge robot
2
2
 
3
3
  Background:
4
- Given git remote is "https://github.com/doge/wow.git"
4
+ Given git remote is "https://github.com/doge/wow"
5
5
 
6
6
  @travis @gemnasium @coveralls @gemspec @mit
7
7
  Scenario: One with everything
@@ -0,0 +1,40 @@
1
+ Feature: Badge robot
2
+
3
+ Background:
4
+ Given git remote is "git@github.com:doge/wow.git"
5
+
6
+ @travis @gemnasium @coveralls @gemspec @mit
7
+ Scenario: One with everything
8
+ When I successfully run `badger badge /tmp/wow_repo`
9
+ Then the output should contain:
10
+ """
11
+ [![Build Status](http://img.shields.io/travis/doge/wow.svg)](https://travis-ci.org/doge/wow)
12
+ [![Dependency Status](http://img.shields.io/gemnasium/doge/wow.svg)](https://gemnasium.com/doge/wow)
13
+ [![Coverage Status](http://img.shields.io/coveralls/doge/wow.svg)](https://coveralls.io/r/doge/wow)
14
+ [![Code Climate](http://img.shields.io/codeclimate/github/doge/wow.svg)](https://codeclimate.com/github/doge/wow)
15
+ [![Gem Version](http://img.shields.io/gem/v/suchgem.svg)](https://rubygems.org/gems/suchgem)
16
+ [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
17
+ [![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](http://img.shields.io)
18
+ """
19
+ And the output should not contain:
20
+ """
21
+ [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
22
+ [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
23
+ """
24
+
25
+ Scenario: handle a non-git-repo gracefully
26
+ When I run `badger badge /tmp`
27
+ Then the output should contain:
28
+ """
29
+ Run this from inside a git repo
30
+ """
31
+ And the exit status should be 1
32
+
33
+ @no-remote
34
+ Scenario: handle a git repo without a github remote
35
+ When I run `badger badge /tmp/not_wow`
36
+ Then the output should contain:
37
+ """
38
+ This repo does not appear to have a github remote
39
+ """
40
+ And the exit status should be 2
@@ -7,7 +7,8 @@ module Badger
7
7
  end
8
8
 
9
9
  def github_slug
10
- @github_slug ||= /.*github\.com.(.*)\.git/.match(@url)[1]
10
+ # @github_slug ||= /.*github\.com.(.*\/.*)(\.)?/.match(@url)[1]
11
+ @github_slug ||= /.*github.com[:\/](.*\/[^.git]*)(?:\.git)*/.match(@url)[1]
11
12
  end
12
13
 
13
14
  def owner
@@ -1,3 +1,3 @@
1
1
  module Badger
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  module Badger
4
4
  describe Badger do
5
5
  before :each do
6
- @badger = Badger.new "https://github.com/doge/wow.git"
6
+ @badger = Badger.new "https://github.com/doge/wow"
7
7
  end
8
8
 
9
9
  context 'initialisation' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: badgerbadgerbadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-31 00:00:00.000000000 Z
11
+ date: 2014-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -168,16 +168,16 @@ dependencies:
168
168
  name: terminal-notifier-guard
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: '1.5'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">="
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
180
+ version: '1.5'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: coveralls
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -231,6 +231,7 @@ files:
231
231
  - features/licenses.feature
232
232
  - features/rubygems.feature
233
233
  - features/services.feature
234
+ - features/ssh-remote.feature
234
235
  - features/step_definitions/badger_steps.rb
235
236
  - features/support/env.rb
236
237
  - features/support/hooks/hooks.rb
@@ -280,6 +281,7 @@ test_files:
280
281
  - features/licenses.feature
281
282
  - features/rubygems.feature
282
283
  - features/services.feature
284
+ - features/ssh-remote.feature
283
285
  - features/step_definitions/badger_steps.rb
284
286
  - features/support/env.rb
285
287
  - features/support/hooks/hooks.rb