git-deployer 0.0.1 → 0.0.2

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.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ .DS_Store
2
+ /*.gem
data/git-deployer.gemspec CHANGED
@@ -1,19 +1,22 @@
1
1
  #!/usr/bin/env gem build
2
2
  # encoding: utf-8
3
3
 
4
+ require "base64"
5
+
4
6
  Gem::Specification.new do |s|
5
7
  s.name = "git-deployer"
6
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
7
9
  s.authors = ["Jakub Šťastný aka Botanicus"]
8
10
  s.homepage = "http://github.com/botanicus/git-deployer"
9
11
  s.summary = "Easy deploy system based on Git hooks"
10
12
  s.description = "" # TODO: long description
11
13
  s.cert_chain = nil
12
- s.email = ["knava.bestvinensis", "gmail.com"].join("@")
14
+ s.email = Base64.decode64("c3Rhc3RueUAxMDFpZGVhcy5jeg==\n")
13
15
  s.has_rdoc = false
14
16
 
15
17
  # files
16
- s.files = Dir.glob("**/*") - Dir.glob("*.gem")
18
+ s.files = `git ls-files`.split("\n")
19
+
17
20
  s.require_paths = ["tasks"]
18
21
 
19
22
  # dependencies
@@ -63,10 +63,12 @@ debug
63
63
 
64
64
  if [ -d $TARGET ] ; then
65
65
  cd $TARGET
66
+ GIT_DIR="$PWD/.git"
66
67
  info "Updating $BRANCH in `pwd` ... (from $old' to '$new')"
67
68
  git fetch
68
69
  git reset $new --hard
69
70
  else
71
+ GIT_DIR="$PWD/.git"
70
72
  info "Cloning $BRANCH to $(pwd)/$TARGET (HEAD: '$new') ..."
71
73
  git clone $REPO $TARGET
72
74
  cd $TARGET
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
- date: 2010-01-03 00:00:00 +01:00
11
+ date: 2010-02-10 00:00:00 +00:00
12
12
  default_executable:
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: "0"
23
23
  version:
24
24
  description: ""
25
- email: knava.bestvinensis@gmail.com
25
+ email: stastny@101ideas.cz
26
26
  executables: []
27
27
 
28
28
  extensions: []
@@ -30,9 +30,11 @@ extensions: []
30
30
  extra_rdoc_files: []
31
31
 
32
32
  files:
33
+ - .gitignore
34
+ - README.textile
35
+ - example/README.textile
33
36
  - example/hooks/clone
34
37
  - example/hooks/update
35
- - example/README.textile
36
38
  - example/tasks.rb
37
39
  - example/www/index.html
38
40
  - git-deployer.gemspec
@@ -41,7 +43,6 @@ files:
41
43
  - hooks/project/update.exec.erb
42
44
  - hooks/project/update.source.erb
43
45
  - hooks/server/post-receive.erb
44
- - README.textile
45
46
  - tasks/git-deployer.nake
46
47
  has_rdoc: true
47
48
  homepage: http://github.com/botanicus/git-deployer