capistrano-node-deploy 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bdb57f7843c0029f8c68bd656bf6119a283cea3c
4
+ data.tar.gz: c9d591eda5016709faea94f509b337745eb2220e
5
+ SHA512:
6
+ metadata.gz: 650c7acfe658b7e5c879cefa300db169b90581b8701005d0cce3f05b805681c228ff39a7d3f9687eac7ed3fd1563445d3b1b12f82a3004531c149b874c202d66
7
+ data.tar.gz: 23b011dc38e91ba83c3dceebad2a6c2196731fcced9a356a079c28de552e64c2e9eabd17e7bf73dfc065bfe1c6fcd392abe9458796227b1d2f33456590fe32ba
data/Gemfile CHANGED
@@ -8,5 +8,4 @@ group :development do
8
8
  gem "rdoc", "~> 3.12"
9
9
  gem "bundler", "~> 1.1"
10
10
  gem "jeweler", "~> 1.8.3"
11
- gem "rcov", ">= 0"
12
11
  end
data/Gemfile.lock CHANGED
@@ -1,24 +1,65 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ activesupport (4.0.0)
5
+ i18n (~> 0.6, >= 0.6.4)
6
+ minitest (~> 4.2)
7
+ multi_json (~> 1.3)
8
+ thread_safe (~> 0.1)
9
+ tzinfo (~> 0.3.37)
10
+ atomic (1.1.10)
11
+ builder (3.2.2)
12
+ faraday (0.8.7)
13
+ multipart-post (~> 1.1)
4
14
  git (1.2.5)
5
- jeweler (1.8.3)
15
+ github_api (0.8.1)
16
+ faraday (~> 0.8.1)
17
+ hashie (~> 1.2.0)
18
+ multi_json (~> 1.3)
19
+ nokogiri (~> 1.5.2)
20
+ oauth2
21
+ hashie (1.2.0)
22
+ highline (1.6.19)
23
+ httpauth (0.2.0)
24
+ i18n (0.6.4)
25
+ jeweler (1.8.5)
26
+ builder
6
27
  bundler (~> 1.0)
7
28
  git (>= 1.2.5)
29
+ github_api (>= 0.8.1)
30
+ highline (>= 1.6.15)
31
+ nokogiri (= 1.5.10)
8
32
  rake
9
33
  rdoc
10
- json (1.6.6)
11
- multi_json (1.3.6)
12
- railsless-deploy (1.0.2)
13
- rake (0.9.2.2)
14
- rcov (1.0.0)
15
- rdoc (3.12)
34
+ json (1.8.0)
35
+ jwt (0.1.6)
36
+ multi_json (>= 1.0)
37
+ minitest (4.7.5)
38
+ multi_json (1.3.7)
39
+ multi_xml (0.5.4)
40
+ multipart-post (1.2.0)
41
+ nokogiri (1.5.10)
42
+ oauth2 (0.9.2)
43
+ faraday (~> 0.8)
44
+ httpauth (~> 0.2)
45
+ jwt (~> 0.1.4)
46
+ multi_json (~> 1.0)
47
+ multi_xml (~> 0.5)
48
+ rack (~> 1.2)
49
+ rack (1.5.2)
50
+ railsless-deploy (1.1.2)
51
+ rake (10.1.0)
52
+ rdoc (3.12.2)
16
53
  json (~> 1.4)
17
- shoulda (3.0.1)
18
- shoulda-context (~> 1.0.0)
19
- shoulda-matchers (~> 1.0.0)
20
- shoulda-context (1.0.0)
21
- shoulda-matchers (1.0.0)
54
+ shoulda (3.5.0)
55
+ shoulda-context (~> 1.0, >= 1.0.1)
56
+ shoulda-matchers (>= 1.4.1, < 3.0)
57
+ shoulda-context (1.1.4)
58
+ shoulda-matchers (2.2.0)
59
+ activesupport (>= 3.0.0)
60
+ thread_safe (0.1.0)
61
+ atomic
62
+ tzinfo (0.3.37)
22
63
 
23
64
  PLATFORMS
24
65
  ruby
@@ -28,6 +69,5 @@ DEPENDENCIES
28
69
  jeweler (~> 1.8.3)
29
70
  multi_json (~> 1.3.6)
30
71
  railsless-deploy
31
- rcov
32
72
  rdoc (~> 3.12)
33
73
  shoulda
data/Rakefile CHANGED
@@ -32,14 +32,6 @@ Rake::TestTask.new(:test) do |test|
32
32
  test.verbose = true
33
33
  end
34
34
 
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- test.rcov_opts << '--exclude "gems/*"'
41
- end
42
-
43
35
  task :default => :test
44
36
 
45
37
  require 'rdoc/task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.5
1
+ 1.2.6
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-node-deploy"
8
- s.version = "1.2.5"
8
+ s.version = "1.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Smith"]
12
- s.date = "2013-07-17"
12
+ s.date = "2013-07-20"
13
13
  s.description = "Capistrano recipes for deploying node apps"
14
14
  s.email = "james@loopj.com"
15
15
  s.extra_rdoc_files = [
@@ -32,11 +32,11 @@ Gem::Specification.new do |s|
32
32
  s.homepage = "http://github.com/loopj/capistrano-node-deploy"
33
33
  s.licenses = ["MIT"]
34
34
  s.require_paths = ["lib"]
35
- s.rubygems_version = "1.8.24"
35
+ s.rubygems_version = "2.0.3"
36
36
  s.summary = "Capistrano recipes for deploying node apps"
37
37
 
38
38
  if s.respond_to? :specification_version then
39
- s.specification_version = 3
39
+ s.specification_version = 4
40
40
 
41
41
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
42
  s.add_runtime_dependency(%q<railsless-deploy>, [">= 0"])
@@ -45,7 +45,6 @@ Gem::Specification.new do |s|
45
45
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
46
46
  s.add_development_dependency(%q<bundler>, ["~> 1.1"])
47
47
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
48
- s.add_development_dependency(%q<rcov>, [">= 0"])
49
48
  else
50
49
  s.add_dependency(%q<railsless-deploy>, [">= 0"])
51
50
  s.add_dependency(%q<multi_json>, ["~> 1.3.6"])
@@ -53,7 +52,6 @@ Gem::Specification.new do |s|
53
52
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
54
53
  s.add_dependency(%q<bundler>, ["~> 1.1"])
55
54
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
56
- s.add_dependency(%q<rcov>, [">= 0"])
57
55
  end
58
56
  else
59
57
  s.add_dependency(%q<railsless-deploy>, [">= 0"])
@@ -62,7 +60,6 @@ Gem::Specification.new do |s|
62
60
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
63
61
  s.add_dependency(%q<bundler>, ["~> 1.1"])
64
62
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
65
- s.add_dependency(%q<rcov>, [">= 0"])
66
63
  end
67
64
  end
68
65
 
@@ -3,11 +3,19 @@ require "railsless-deploy"
3
3
  require "multi_json"
4
4
 
5
5
  def remote_file_exists?(full_path)
6
- 'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip
6
+ results = []
7
+ invoke_command("if [ -e '#{full_path}' ]; then echo -n 'true'; fi") do |ch, stream, out|
8
+ results << (out == 'true')
9
+ end
10
+ results == [true]
7
11
  end
8
12
 
9
13
  def remote_file_content_same_as?(full_path, content)
10
- Digest::MD5.hexdigest(content) == capture("md5sum #{full_path} | awk '{ print $1 }'").strip
14
+ results = []
15
+ invoke_command("md5sum #{full_path} | awk '{ print $1 }'") do |ch, stream, out|
16
+ results << (out == Digest::MD5.hexdigest(content))
17
+ end
18
+ results == [true]
11
19
  end
12
20
 
13
21
  def remote_file_differs?(full_path, content)
metadata CHANGED
@@ -1,136 +1,107 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: capistrano-node-deploy
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 1
8
- - 2
9
- - 5
10
- version: 1.2.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.6
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - James Smith
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-07-17 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- hash: 3
27
- segments:
28
- - 0
29
- version: "0"
30
- version_requirements: *id001
31
- prerelease: false
32
- type: :runtime
11
+ date: 2013-07-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
33
14
  name: railsless-deploy
34
- - !ruby/object:Gem::Dependency
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- none: false
37
- requirements:
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
+ - !ruby/object:Gem::Dependency
28
+ name: multi_json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
38
31
  - - ~>
39
- - !ruby/object:Gem::Version
40
- hash: 23
41
- segments:
42
- - 1
43
- - 3
44
- - 6
32
+ - !ruby/object:Gem::Version
45
33
  version: 1.3.6
46
- version_requirements: *id002
47
- prerelease: false
48
34
  type: :runtime
49
- name: multi_json
50
- - !ruby/object:Gem::Dependency
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
60
- version_requirements: *id003
61
35
  prerelease: false
62
- type: :development
63
- name: shoulda
64
- - !ruby/object:Gem::Dependency
65
- requirement: &id004 !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
68
38
  - - ~>
69
- - !ruby/object:Gem::Version
70
- hash: 31
71
- segments:
72
- - 3
73
- - 12
74
- version: "3.12"
75
- version_requirements: *id004
76
- prerelease: false
39
+ - !ruby/object:Gem::Version
40
+ version: 1.3.6
41
+ - !ruby/object:Gem::Dependency
42
+ name: shoulda
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
77
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
78
56
  name: rdoc
79
- - !ruby/object:Gem::Dependency
80
- requirement: &id005 !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
83
59
  - - ~>
84
- - !ruby/object:Gem::Version
85
- hash: 13
86
- segments:
87
- - 1
88
- - 1
89
- version: "1.1"
90
- version_requirements: *id005
91
- prerelease: false
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
92
62
  type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '3.12'
69
+ - !ruby/object:Gem::Dependency
93
70
  name: bundler
94
- - !ruby/object:Gem::Dependency
95
- requirement: &id006 !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
98
73
  - - ~>
99
- - !ruby/object:Gem::Version
100
- hash: 49
101
- segments:
102
- - 1
103
- - 8
104
- - 3
105
- version: 1.8.3
106
- version_requirements: *id006
107
- prerelease: false
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
108
76
  type: :development
109
- name: jeweler
110
- - !ruby/object:Gem::Dependency
111
- requirement: &id007 !ruby/object:Gem::Requirement
112
- none: false
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- hash: 3
117
- segments:
118
- - 0
119
- version: "0"
120
- version_requirements: *id007
121
77
  prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jeweler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.8.3
122
90
  type: :development
123
- name: rcov
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 1.8.3
124
97
  description: Capistrano recipes for deploying node apps
125
98
  email: james@loopj.com
126
99
  executables: []
127
-
128
100
  extensions: []
129
-
130
- extra_rdoc_files:
101
+ extra_rdoc_files:
131
102
  - LICENSE.txt
132
103
  - README.md
133
- files:
104
+ files:
134
105
  - .document
135
106
  - Gemfile
136
107
  - Gemfile.lock
@@ -143,37 +114,27 @@ files:
143
114
  - lib/capistrano/node-deploy.rb
144
115
  - test/helper.rb
145
116
  homepage: http://github.com/loopj/capistrano-node-deploy
146
- licenses:
117
+ licenses:
147
118
  - MIT
119
+ metadata: {}
148
120
  post_install_message:
149
121
  rdoc_options: []
150
-
151
- require_paths:
122
+ require_paths:
152
123
  - lib
153
- required_ruby_version: !ruby/object:Gem::Requirement
154
- none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3
159
- segments:
160
- - 0
161
- version: "0"
162
- required_rubygems_version: !ruby/object:Gem::Requirement
163
- none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
171
134
  requirements: []
172
-
173
135
  rubyforge_project:
174
- rubygems_version: 1.8.24
136
+ rubygems_version: 2.0.3
175
137
  signing_key:
176
- specification_version: 3
138
+ specification_version: 4
177
139
  summary: Capistrano recipes for deploying node apps
178
140
  test_files: []
179
-