static_deploy 0.0.1 → 0.1.0

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: a2dd72b36f03bb7f16c9757e393c1904efc9f332
4
- data.tar.gz: 18bb950f77cb9cd97dc2df285494f2ac4d335c75
3
+ metadata.gz: fa5827485a0c4731fbe18bb34c4cad77d37b9875
4
+ data.tar.gz: 4db0a97db838605181d42ee9bb02153364f80b4e
5
5
  SHA512:
6
- metadata.gz: c168ca19df8b9be6d168c6ddb901aaa29095ce866b92c5a4cae5c68de4fe7156e81f5d32a823744d202c9e5e92c9a5a70251f88987e7a6f572871a0c708ae050
7
- data.tar.gz: b69a05c542d0aa9f62f1f664ba0df2e5eb010812933d873f6265dfcdc96e9d0cbe304f742deb5fabba79bf913d5410a78f58a448d5bf9a7a5ce8f5d84ab8e46f
6
+ metadata.gz: 7138ff906e500e0bf8961653c33ebca407cf1da20c61cf55d5b9c101a7f00c410c65c054e9f4ef820088aeda4d4350ba3de18b367cac2c7af7166942b888bd5f
7
+ data.tar.gz: 33e03bb2cbc3872ab36a272ffed59e29239b6419350388359c389c25f8ed5ebca0240d70f5dee54d86e2a8723fdec310abbca401645febe4fc4fc9205f6e62d3
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.0.0
data/Gemfile CHANGED
@@ -1,3 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ group :development do
6
+ gem 'rake', '~> 10.4.2'
7
+ gem 'rspec', '~> 3.2.0'
8
+ gem 'yard', '~> 0.8.7'
9
+ end
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # StaticDeploy
2
2
 
3
- Provides rake tasks for publishing your static website to GitHub pages of any remote repository.
3
+ Provides rake tasks for publishing your static website via git to any remote repository(GitHub pages).
4
4
 
5
5
  ## Installation
6
6
 
@@ -24,13 +24,19 @@ In your Rakefile add the following
24
24
  require 'static_deploy'
25
25
 
26
26
  ENV['GENERATOR'] = 'jekyll' # => static website generator executable
27
- ENV['COMMAND'] = 'build' # => defaults to 'build'
27
+ ENV['COMMAND'] = 'build' # => command for building a project, defaults to 'build'
28
28
  ```
29
29
 
30
- Then to publish to remote branch do
30
+ If you are deploying inside current repository, git defaults are used to get username and repository name
31
31
 
32
32
  ```ruby
33
- bundle exec rake publish["username/repository"]
33
+ bundle exec rake site:publish
34
+ ```
35
+
36
+ Otherwise, to publish to remote branch on different repository do
37
+
38
+ ```ruby
39
+ bundle exec rake site:publish["username/repository"]
34
40
  ```
35
41
 
36
42
  ## Contributing
@@ -43,4 +49,4 @@ Then to publish to remote branch do
43
49
 
44
50
  ## Copyright
45
51
 
46
- Copyright (c) 2013 Piotr Murach. See LICENSE for further details.
52
+ Copyright (c) 2013-2015 Piotr Murach. See LICENSE for further details.
@@ -26,6 +26,11 @@ def command
26
26
  @command = ENV['COMMAND'] || 'build'
27
27
  end
28
28
 
29
+ def has_git?
30
+ sh "git --version"
31
+ $?.success?
32
+ end
33
+
29
34
  namespace :site do
30
35
  desc "Prepare remote branch"
31
36
  task :prepare do |t, args|
@@ -1,3 +1,3 @@
1
1
  module StaticDeploy
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -18,9 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "tty"
21
+ spec.add_dependency "tty", "0.2.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
- spec.add_development_dependency "rake"
25
- spec.add_development_dependency "rspec"
26
24
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Murach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-27 00:00:00.000000000 Z
11
+ date: 2015-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.2.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: '0'
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,34 +38,6 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
41
  description: Automated deployment to GitHub pages
70
42
  email:
71
43
  - pmurach@gmail.com
@@ -75,6 +47,7 @@ extra_rdoc_files: []
75
47
  files:
76
48
  - .gitignore
77
49
  - .rspec
50
+ - .ruby-version
78
51
  - .travis.yml
79
52
  - Gemfile
80
53
  - LICENSE.txt
@@ -114,3 +87,4 @@ summary: Provides rake tasks for publishing your static site to github pages to
114
87
  test_files:
115
88
  - spec/spec_helper.rb
116
89
  - spec/static_deploy_spec.rb
90
+ has_rdoc: