gitshapage 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +3 -2
  2. data/lib/gitshapage.rb +2 -1
  3. metadata +4 -4
data/README.md CHANGED
@@ -1,14 +1,15 @@
1
- Creates a page located at /version.txt with the git SHA of the release after a Capistrano deploy.
1
+ Creates a page located in the public directory with the git SHA of the release after a Capistrano deploy.
2
2
 
3
3
  That's all it does.
4
4
 
5
5
  If you're using bundler - put this in your Gemfile:
6
6
 
7
- `gem "gitshapage", "0.0.3", :require => false`
7
+ `gem "gitshapage", "0.0.5", :require => false`
8
8
 
9
9
  Put this in your config/deploy.rb:
10
10
 
11
11
  `require "gitshapage"`
12
+ `set :gitshapage_url, 'put-your-page-name-here.txt'`
12
13
 
13
14
  After deploy:restart it will create the page.
14
15
 
data/lib/gitshapage.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
+ _cset(:gitshapage_url) { abort "Please specify the name of your gitshapage_url, set :gitshapage_url, 'foo.txt'" }
2
3
  task :gitshapage do
3
- run "cd #{deploy_to}/current && git rev-parse HEAD > #{File.join(current_path,'public','version.txt')}"
4
+ run "cd #{deploy_to}/current && git rev-parse HEAD > 'public/#{gitshapage_url}'"
4
5
  end
5
6
  after "deploy:restart", :gitshapage
6
7
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gitshapage
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Darron Froese
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-17 00:00:00 -06:00
13
+ date: 2011-03-18 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -25,7 +25,7 @@ dependencies:
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
27
  description: |
28
- Creates a page located at /version.txt with the git SHA of the release after a Capistrano deploy.
28
+ Creates a page located in the public directory with the git SHA of the release after a Capistrano deploy.
29
29
 
30
30
  email: darron@froese.org
31
31
  executables: []
@@ -65,6 +65,6 @@ rubyforge_project:
65
65
  rubygems_version: 1.5.1
66
66
  signing_key:
67
67
  specification_version: 3
68
- summary: Creates a page located at /version.txt with the git SHA of the release after a Capistrano deploy.
68
+ summary: Creates a page located in the public directory with the git SHA of the release after a Capistrano deploy.
69
69
  test_files: []
70
70