Skip to content

Commit c076bfd

Browse files
committed
allow installation as ruby gem
1 parent 30ca89b commit c076bfd

5 files changed

+24
-2
lines changed

bin/gh-pages-travis

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env ruby
2+
3+
bin_dir = File.expand_path(File.dirname(__FILE__))
4+
shell_script_path = File.join(bin_dir, 'gh-pages-travis.sh')
5+
6+
`#{shell_script_path}`
File renamed without changes.

gh-pages-travis-1.0.4.gem

5 KB
Binary file not shown.

gh-pages-travis.gemspec

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# coding: utf-8
2+
require 'json'
3+
4+
Gem::Specification.new do |spec|
5+
package = JSON.load File.new('package.json')
6+
7+
spec.name = package['name']
8+
spec.version = package['version']
9+
spec.authors = package['author']
10+
spec.summary = package['description']
11+
spec.description = package['description']
12+
spec.homepage = package['homepage']
13+
spec.license = package['license']
14+
spec.files << package['bin']
15+
spec.executables << package['name']
16+
end

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "gh-pages-travis",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "CLI to deploy a folder to gh-pages branch of current repo as part of travis build",
5-
"bin": "./gh-pages-travis",
5+
"bin": "bin/gh-pages-travis.sh",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/pghalliday/gh-pages-travis.git"

0 commit comments

Comments
 (0)