synchrotron 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 76336efe910a6510eb7af73cc5013891f4326b2d
4
+ data.tar.gz: 8b2bef1006aaa019352ba130e78e5c228755d9f2
5
+ SHA512:
6
+ metadata.gz: 53297cbc50b374666ee8f6a51a739c6dd72a25efe4f89573b780fbcf4bdf8393eaf9ed58bf39a35a4f2137023e7eb801f60b731be3c81b7c8fc9d36956ec3148
7
+ data.tar.gz: 8417df76c7e438fbf05fd434cc24c1a0bbfe15ff9f3a9afc9c2dafbee31f9dac1a1661dbef34e0e580a35b8394aca2fb0e62ab99867bb991f738e73343fb816e
@@ -1,9 +1,9 @@
1
1
  module Synchrotron
2
2
  APP_NAME = 'Synchrotron'
3
- APP_VERSION = '0.0.4'
3
+ APP_VERSION = '0.0.5'
4
4
  APP_AUTHOR = 'Ryan Grove'
5
5
  APP_EMAIL = 'ryan@wonko.com'
6
6
  APP_URL = 'http://github.com/rgrove/synchrotron/'
7
- APP_COPYRIGHT = 'Copyright (c) 2012 Ryan Grove <ryan@wonko.com>. All ' <<
7
+ APP_COPYRIGHT = 'Copyright (c) 2013 Ryan Grove <ryan@wonko.com>. All ' <<
8
8
  'rights reserved.'
9
9
  end
data/lib/synchrotron.rb CHANGED
@@ -97,6 +97,12 @@ module Synchrotron; class << self
97
97
  rsync_options = @config[:rsync_options].join(' ')
98
98
  rsync_remote = escape_arg(File.join(@config[:remote_path], relative_path(path)))
99
99
 
100
+ if rsync_remote.include?('GIT_BRANCH')
101
+ git_branch = `git symbolic-ref HEAD`[/([^\/])*$/].chomp
102
+ @log.info "git branch is '#{git_branch}'."
103
+ rsync_remote.gsub!('GIT_BRANCH',git_branch)
104
+ end
105
+
100
106
  # Build exclusion list.
101
107
  @config[:exclude].each {|p| rsync_options << " --exclude #{escape_arg(p)}" }
102
108
  @config[:exclude_from].each {|f| rsync_options << " --exclude-from #{escape_arg(f)}"}
metadata CHANGED
@@ -1,38 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synchrotron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Grove
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-23 00:00:00.000000000 Z
11
+ date: 2013-06-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rb-fsevent
16
- requirement: &70283591597580 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 0.9.1
19
+ version: 0.9.3
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70283591597580
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.3
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: trollop
27
- requirement: &70283591610320 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
33
  version: '1.13'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70283591610320
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.13'
36
41
  description:
37
42
  email: ryan@wonko.com
38
43
  executables:
@@ -49,27 +54,26 @@ files:
49
54
  - lib/synchrotron.rb
50
55
  homepage: http://github.com/rgrove/synchrotron/
51
56
  licenses: []
57
+ metadata: {}
52
58
  post_install_message:
53
59
  rdoc_options: []
54
60
  require_paths:
55
61
  - lib
56
62
  required_ruby_version: !ruby/object:Gem::Requirement
57
- none: false
58
63
  requirements:
59
- - - ! '>='
64
+ - - '>='
60
65
  - !ruby/object:Gem::Version
61
66
  version: 1.8.7
62
67
  required_rubygems_version: !ruby/object:Gem::Requirement
63
- none: false
64
68
  requirements:
65
- - - ! '>='
69
+ - - '>='
66
70
  - !ruby/object:Gem::Version
67
71
  version: 1.2.0
68
72
  requirements: []
69
73
  rubyforge_project:
70
- rubygems_version: 1.8.10
74
+ rubygems_version: 2.0.0
71
75
  signing_key:
72
- specification_version: 3
76
+ specification_version: 4
73
77
  summary: Synchrotron monitors a local directory tree and performs nearly instantaneous
74
78
  one-way synchronization of changes to a remote directory using rsync.
75
79
  test_files: []