jgd 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/Gemfile +2 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +31 -0
  6. data/bin/jgd +8 -0
  7. data/jgd.gemspec +21 -0
  8. metadata +67 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 355388fed4d6b51004514026d405b6e3f2f0da6f
4
+ data.tar.gz: 79e51ca0911129a320ae032bfc42f11256e24056
5
+ SHA512:
6
+ metadata.gz: 22166399484655857eac5ac2fe1e20fbd1506ccc0613203bd52d980d04fd648827d98b7c822efcf51b10d501f077fd20b77a89c666aa89db1cdc04ac44dfa1e3
7
+ data.tar.gz: ab3c3475bcae261e33710391edc6639f24cc863fa5c93f5061d46e2123bf0a591893a29d4624494332984129b0cfe3a84017cb0fe4e326427985ad90ff3c3ea0
@@ -0,0 +1,4 @@
1
+ Gemfile.lock
2
+ *.gem
3
+ .bundle/
4
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
@@ -0,0 +1,21 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2014 Yegor Bugayenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the 'Software'), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,31 @@
1
+ It is assumed that your blog is in the home directory of your repo.
2
+
3
+ Install it first:
4
+
5
+ ```bash
6
+ gem install jgd
7
+ ```
8
+
9
+ Run it locally:
10
+
11
+ ```bash
12
+ jgd
13
+ ```
14
+
15
+ Now your site is deployed to `gh-pages` branch of your repo. Done.
16
+
17
+ This is how I configure [my Jekyll blog](https://github.com/yegor256/blog)
18
+ to be deployed automatically by
19
+ [travis-ci](http://www.travis-ci.org):
20
+
21
+ ```yaml
22
+ branches:
23
+ only:
24
+ - master
25
+ env:
26
+ global:
27
+ - secure: ...
28
+ install:
29
+ - bundle
30
+ script: jgd --url=http://yegor256:${PASSWORD}@github.com/yegor256/blog.git
31
+ ```
data/bin/jgd ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ STDOUT.sync = true
3
+
4
+ spec = Gem::Specification.find_by_name("jgd")
5
+ root = spec.gem_dir
6
+ script = File.join(root, 'bash/deploy.sh')
7
+
8
+ %x[ #{script} test ]
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ Gem::Specification.new do |s|
3
+ s.specification_version = 2 if s.respond_to? :specification_version=
4
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
5
+ s.rubygems_version = '2.2.2'
6
+ s.required_ruby_version = '>= 1.9.3'
7
+ s.name = 'jgd'
8
+ s.version = '1.0'
9
+ s.license = 'MIT'
10
+ s.summary = "Jekyll Github Deploy"
11
+ s.description = "Automated deployment of your Jekyll blog to Github Pages"
12
+ s.authors = ["Yegor Bugayenko"]
13
+ s.email = 'yegor@tpc2.com'
14
+ s.homepage = 'http://github.com/yegor256/jekyll-github-deploy'
15
+ s.files = `git ls-files`.split($/)
16
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
+ s.rdoc_options = ["--charset=UTF-8"]
19
+ s.extra_rdoc_files = %w[README.md LICENSE.txt]
20
+ s.add_runtime_dependency('jekyll')
21
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jgd
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ platform: ruby
6
+ authors:
7
+ - Yegor Bugayenko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Automated deployment of your Jekyll blog to Github Pages
28
+ email: yegor@tpc2.com
29
+ executables:
30
+ - jgd
31
+ extensions: []
32
+ extra_rdoc_files:
33
+ - README.md
34
+ - LICENSE.txt
35
+ files:
36
+ - ".gitignore"
37
+ - Gemfile
38
+ - LICENSE.txt
39
+ - README.md
40
+ - bin/jgd
41
+ - jgd.gemspec
42
+ homepage: http://github.com/yegor256/jekyll-github-deploy
43
+ licenses:
44
+ - MIT
45
+ metadata: {}
46
+ post_install_message:
47
+ rdoc_options:
48
+ - "--charset=UTF-8"
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 1.9.3
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements: []
62
+ rubyforge_project:
63
+ rubygems_version: 2.2.2
64
+ signing_key:
65
+ specification_version: 2
66
+ summary: Jekyll Github Deploy
67
+ test_files: []