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 +4 -4
- data/gemplate.gemspec +1 -1
- data/lib/gemplate.rb +2 -0
- data/spec/gemplate_spec.rb +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 405f2051495ac45ff074b2056b8707c24ff9f4f2
|
4
|
+
data.tar.gz: 0dfd9ed6d89625b673196d2f6ee41d5e060aa062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80077922600f5b799db8f1bd3a29d850d39074491802f2f1b5ed7cfd757c178eaa1fcd96b53c5c34d5fdabbc5b323c8a8a8141c73e4e1548f767c3d3e81f9507
|
7
|
+
data.tar.gz: ad577a17d433b7636cbbfe4964a6eafeb4ea9a7da132127ccc3ac038b6b6300d8bd293c018f627fa73179880cd4c11c8f992e3bb619bc37a307126f11780f8c6
|
data/gemplate.gemspec
CHANGED
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
|
data/spec/gemplate_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require 'fileutils'
|
|
3
3
|
|
4
4
|
describe Gemplate do
|
5
5
|
describe '#new' do
|
6
|
-
it 'creates
|
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
|
-
|
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
|