fight_club 0.0.1 → 0.0.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: 8f2a889515d722593c0bf07deb6a4d972ee78690
4
- data.tar.gz: 7bcbbb325571b3c77137f36f8fd5941bb4261e08
3
+ metadata.gz: 59f16064978428ca070424adb217906b2754a3ff
4
+ data.tar.gz: fe549b71d1fc0447c167e4f2505fe3033f9a0720
5
5
  SHA512:
6
- metadata.gz: c93ce8b6ade219c9a773a864c1ef9bda730c5ac78267ba939deac1ef1973265a6365fc7990e5fb325359424a63997e1a9d680a1ac401440f111e40dee0991527
7
- data.tar.gz: a168e79d03539b657c38e2646d5f41e49eda23357386d44e3255b70e547fb88b6e15f28e7f88b53566777d3e65c25e6a6b5e5ff6c55992995183c4d1b52d776c
6
+ metadata.gz: 61ce80af3d599356d80071b87174b1e4d6f412048e8189d6ca81a198ccde93444fdbc3ead5868e1e99380e9b8d2c4223c794af73f8aebc42100a18f795188585
7
+ data.tar.gz: 64267b057799c8897ea4d4897e1ed5cf705a9ffb328a7beaf44d47b112851c228db1536610323d64ecd796ff7f44f35582381e807235f452b5bb2a7dd7a9de0f
data/README.md CHANGED
@@ -29,6 +29,7 @@ FightClub.configure do |config|
29
29
  config.repo_name = 'public-repo' # the repo name alone
30
30
  config.uri = 'git@github.com:baxterthehacker/public-repo.git' # the URI to use to clone the repo
31
31
  config.master_branch = 'master' # what branch to run fight club against
32
+ config.repos_directory = '/tmp' # where to store repos
32
33
  end
33
34
  ```
34
35
 
data/lib/fight_club.rb CHANGED
@@ -3,7 +3,7 @@ require_relative "fight_club/arena"
3
3
  require_relative "fight_club/config"
4
4
 
5
5
  module FightClub
6
- WORKING_DIR = "#{Dir.pwd}/repos"
6
+ WORKING_DIR = "#{FightClub.config.repos_directory}/repos"
7
7
 
8
8
  class << self
9
9
  attr_writer :config
@@ -1,6 +1,6 @@
1
1
  module FightClub
2
2
  class Config
3
- attr_accessor :repo, :oauth, :repo_name, :uri, :master_branch
3
+ attr_accessor :repo, :oauth, :repo_name, :uri, :master_branch, :repos_directory
4
4
 
5
5
  def initialize
6
6
  @repo = 'baxterthehacker/public-repo'
@@ -8,6 +8,7 @@ module FightClub
8
8
  @repo_name = 'public-repo'
9
9
  @uri = 'git@github.com:baxterthehacker/public-repo.git'
10
10
  @master_branch = 'master'
11
+ @repos_directory = '/tmp'
11
12
  end
12
13
  end
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module FightClub
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fight_club
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
  - Tim Minkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler