gemplate 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemplate.gemspec +5 -5
- data/lib/gemplate.rb +30 -6
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 715cb6e3f4b8f0b234ec06f226beeec49c05881e
|
4
|
+
data.tar.gz: fc187f45d5eb009ba20d65071a49214c35750d83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ded00e8c297af27f31b2d60bbf3d8f0cdf1cc9ea3414bb8949f0cf499531a8ea1ba0467606cfbfd30f241a8986462e6f96ef674a8006e1b503e582283e0fc9a
|
7
|
+
data.tar.gz: cc2aa6d8d41f1fcc851a3f0f6aa7e66e80739f59131280a38c12161a0b54d5981d71d78c9034056dfb3bde2e6299da5afb9c9659f0faaad9af2cc4f1ab1ec58f
|
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.
|
3
|
+
s.version = '0.1.7'
|
4
4
|
s.date = Time.now.strftime("%Y-%m-%d")
|
5
5
|
|
6
6
|
s.summary = 'Bootstrap tool for making gems'
|
@@ -14,14 +14,14 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.test_files = `git ls-files spec/*`.split
|
15
15
|
s.executables = ['gemplate']
|
16
16
|
|
17
|
-
s.add_dependency 'travis', '~> 1.
|
17
|
+
s.add_dependency 'travis', '~> 1.7.0'
|
18
18
|
s.add_dependency 'rugged', '~> 0.21.0'
|
19
19
|
s.add_dependency 'userinput', '~> 0.0.2'
|
20
|
-
s.add_dependency 'curb', '~> 0.8.
|
20
|
+
s.add_dependency 'curb', '~> 0.8.6'
|
21
21
|
|
22
|
-
s.add_development_dependency 'rubocop', '~> 0.24.
|
22
|
+
s.add_development_dependency 'rubocop', '~> 0.24.1'
|
23
23
|
s.add_development_dependency 'rake', '~> 10.3.2'
|
24
24
|
s.add_development_dependency 'coveralls', '~> 0.7.0'
|
25
25
|
s.add_development_dependency 'rspec', '~> 3.0.0'
|
26
|
-
s.add_development_dependency 'fuubar', '~> 2.0.0
|
26
|
+
s.add_development_dependency 'fuubar', '~> 2.0.0'
|
27
27
|
end
|
data/lib/gemplate.rb
CHANGED
@@ -102,14 +102,25 @@ module Gemplate
|
|
102
102
|
|
103
103
|
def configure_travis
|
104
104
|
crypter = Travis::CLI::Encrypt.new
|
105
|
-
|
106
|
-
'--add', 'notifications.irc.channels', "'#{@irc_stanza}'"]
|
107
|
-
crypter.parse args
|
105
|
+
crypter.parse travis_args
|
108
106
|
crypter.execute
|
109
107
|
rescue Travis::Client::NotLoggedIn
|
110
|
-
puts
|
111
|
-
|
112
|
-
|
108
|
+
puts travis_help
|
109
|
+
end
|
110
|
+
|
111
|
+
private
|
112
|
+
|
113
|
+
def travis_args
|
114
|
+
[
|
115
|
+
'encrypt', '--skip-completion-check', '--no-interactive', '--explode',
|
116
|
+
'-p', '--add', 'notifications.irc.channels', "'#{@irc_stanza}'"
|
117
|
+
]
|
118
|
+
end
|
119
|
+
|
120
|
+
def travis_help
|
121
|
+
'Travis IRC configuration failed; ' + \
|
122
|
+
'make sure the repo exists on GitHub and Travis, then run:' + \
|
123
|
+
"\n travis #{travis_args.join ' '}"
|
113
124
|
end
|
114
125
|
end
|
115
126
|
end
|
@@ -125,3 +136,16 @@ module Travis
|
|
125
136
|
end
|
126
137
|
end
|
127
138
|
end
|
139
|
+
|
140
|
+
##
|
141
|
+
# Reopen Travis
|
142
|
+
module Travis
|
143
|
+
module CLI
|
144
|
+
##
|
145
|
+
# Patch Encrypt to not print to stderr
|
146
|
+
class Encrypt
|
147
|
+
def info(*_)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemplate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: travis
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rugged
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.8.
|
61
|
+
version: 0.8.6
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.8.
|
68
|
+
version: 0.8.6
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.24.
|
75
|
+
version: 0.24.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.24.
|
82
|
+
version: 0.24.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.0.0
|
131
|
+
version: 2.0.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.0.0
|
138
|
+
version: 2.0.0
|
139
139
|
description: Creates a basic repository layout for a new gem
|
140
140
|
email: me@lesaker.org
|
141
141
|
executables:
|
@@ -195,4 +195,3 @@ summary: Bootstrap tool for making gems
|
|
195
195
|
test_files:
|
196
196
|
- spec/gemplate_spec.rb
|
197
197
|
- spec/spec_helper.rb
|
198
|
-
has_rdoc:
|