gemplate 0.1.4 → 0.1.5

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: c3d447ca43acf24e1ead453b7a934baa6b7c5ece
4
- data.tar.gz: 4ccd1238e69d288e1ca030810ab00563a91a6c23
3
+ metadata.gz: 405f2051495ac45ff074b2056b8707c24ff9f4f2
4
+ data.tar.gz: 0dfd9ed6d89625b673196d2f6ee41d5e060aa062
5
5
  SHA512:
6
- metadata.gz: ec2f962a16afcd38b9494d8f75b87a160ab8a7960bc052f4ff00204effb2df764c2b78d8400495148680154ebf46fdcc6125e872740cae38439fb2deb381ee1c
7
- data.tar.gz: f81458e5ea5ad039d5443a738469011098a3a61f59552e11070b891d3f29e0ea077c787195f7bc95ea6b088ec7e49b43dfb7d862cd6603cd030ffb1f1a5e9c83
6
+ metadata.gz: 80077922600f5b799db8f1bd3a29d850d39074491802f2f1b5ed7cfd757c178eaa1fcd96b53c5c34d5fdabbc5b323c8a8a8141c73e4e1548f767c3d3e81f9507
7
+ data.tar.gz: ad577a17d433b7636cbbfe4964a6eafeb4ea9a7da132127ccc3ac038b6b6300d8bd293c018f627fa73179880cd4c11c8f992e3bb619bc37a307126f11780f8c6
data/gemplate.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gemplate'
3
- s.version = '0.1.4'
3
+ s.version = '0.1.5'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Bootstrap tool for making gems'
data/lib/gemplate.rb CHANGED
@@ -96,6 +96,8 @@ module Gemplate
96
96
  def make_repo
97
97
  Rugged::Repository.init_at '.'
98
98
  `git remote add origin "git@github.com:#{@user}/#{@name}"`
99
+ `git config branch.master.remote origin`
100
+ `git config branch.master.merge refs/heads/master`
99
101
  end
100
102
 
101
103
  def configure_travis
@@ -3,7 +3,7 @@ require 'fileutils'
3
3
 
4
4
  describe Gemplate do
5
5
  describe '#new' do
6
- it 'creates cache objects' do
6
+ it 'creates gem objects' do
7
7
  expect(Gemplate.new).to be_an_instance_of Gemplate::Gem
8
8
  end
9
9
  end
@@ -68,7 +68,13 @@ describe Gemplate do
68
68
  it 'makes the git repo' do
69
69
  subject.create
70
70
  expect(Dir.exist? 'gemplate/.git').to be_truthy
71
- expect(File.read 'gemplate/.git/config').to match(/remote "origin"/)
71
+ [
72
+ /remote\.origin\.url/,
73
+ /branch\.master\.remote=origin/,
74
+ %r{branch\.master\.merge=refs\/heads\/master}
75
+ ].each do |regex|
76
+ expect(`git config -f gemplate/.git/config -l`).to match(regex)
77
+ end
72
78
  end
73
79
 
74
80
  it 'configures the IRC key for Travis' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker