capistrano 3.3.3 → 3.3.4

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: f5fec938fed98daad8d2ce764486a4b059095a1a
4
- data.tar.gz: 5c46c098df29b9ea0f08a07db3270d83dcc598a3
3
+ metadata.gz: 6f29153f55673d7e5e6d7941c8ff781bd98e7c75
4
+ data.tar.gz: 6685c780f1e49372c56de8af1665736c4e8c7c5d
5
5
  SHA512:
6
- metadata.gz: ddfb0bdd5ea6266b25c6f96c02d466238f450ead5b4c47d13140c40db509ef92718dda37fefae01a364a812144d6cee16682be6ebfaa2274f1bdb558f218ff8f
7
- data.tar.gz: f4e4fe76dacb08739437eaf3c83397f9119d8858ae23dff58b75c3325c380d0ca51cb995ebb26f00389aee9309a1eacad774bbf8c3da777c35640395715097b2
6
+ metadata.gz: 78b8c50f1ca69b7a705c64114b3a7488a8a8ed22418a7ecb1f13faf3ebe9b7322694c5ea9bc84b32f80499419b1aa8e2a886a2c9ee6c04970a52075677d3c7c1
7
+ data.tar.gz: e4717b8b7a5bbf1515474f40c949f7060640286c1223394e1c34466a7df69218e6d1dfae063595ec637f983602786689a5bf00146b8fdf7425f80d52f58d52aa
@@ -4,11 +4,20 @@ Reverse Chronological Order:
4
4
 
5
5
  ## master
6
6
 
7
- https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.0
7
+ https://github.com/capistrano/capistrano/compare/v3.3.4...HEAD
8
+
9
+ ## `3.3.4`
10
+
11
+ * Minor changes:
12
+ * Rely on a newer version of capistrano-stats with better privacy (@leehambley)
13
+ * Fix cucumber spec for loading tasks from stage configs (@sponomarev)
14
+ * Minor documentation fixes (@deeeki, @seuros, @andresilveira)
15
+ * Spec improvements (@dimitrid, @sponomarev)
16
+ * Fix to CLI flags for git-ls-remote (@dimitrid)
8
17
 
9
18
  ## `3.3.3`
10
19
 
11
- https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.0
20
+ https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.3
12
21
 
13
22
  * Enhancement (@townsen)
14
23
  * Added the variable `:repo_tree` which allows the specification of a sub-tree that
@@ -33,7 +42,7 @@ https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.0
33
42
  If the full unexpurgated backtrace is required then the --backtrace
34
43
  and --trace options supply it as before.
35
44
 
36
- * Disable loading stages configs on `cap -T`
45
+ * Disable loading stages configs on `cap -T` (@sponomarev)
37
46
  * Track (anonymous) statistics, see https://github.com/capistrano/stats
38
47
 
39
48
  * Enhancements (@townsen)
data/README.md CHANGED
@@ -17,7 +17,7 @@ Get <a href="http://codersclan.net/?repo_id=325&source=link">Capistrano support
17
17
  Add this line to your application's Gemfile:
18
18
 
19
19
  ``` ruby
20
- gem 'capistrano', '~> 3.2.0'
20
+ gem 'capistrano', '~> 3.3.0'
21
21
  ```
22
22
 
23
23
  And then execute:
@@ -232,7 +232,7 @@ DEBUG [9ce34809] leehambley pts/0 2013-06-13 17:11 (port-11262.pppoe.wtn
232
232
  ## VCS Requirements
233
233
 
234
234
  Capistano requires modern versions of Git, Mercurial and Subversion
235
- respectively (if you are using that particular VCS). Git Git requirement is at
235
+ respectively (if you are using that particular VCS). Git requirement is at
236
236
  least version 1.8.x. Mercurial and Subversion, any modern version should
237
237
  suffice.
238
238
 
@@ -350,11 +350,31 @@ $ rake features
350
350
  $ rake features KEEP_RUNNING=1
351
351
  ```
352
352
 
353
+ ## Metrics
354
+
355
+ Since version 3.3.3 Capistrano includes anonymous metrics. The metric server,
356
+ gem collection, and when it exists, the HTML/d3 page to view the metrics are
357
+ all open-source and available for inspection and audit at
358
+ https://github.com/capistrano/stats
359
+
360
+ **Notes for CI**: If you commit the file `.capistrano/metrics` to your source
361
+ control, you will not be prompted again, this is what we expect you to do, and
362
+ it should also avoid breaking your CI server by blocking waiting for an answer
363
+ on standard in. The metric prompt is also [disabled when standard in is not a
364
+ tty](https://github.com/capistrano/stats/blob/77c9993d3ee604520712261aa2a70c90f3b96a6f/gem/lib/capistrano-stats/metric-collector.rb#L53)
365
+ (when using Capistrano from scripts, or from come well behaved CI services)
366
+
367
+ * The gem invites users to opt-into metrics collection when the task
368
+ `load:defaults` is called. A project-specific hash derived from the output of
369
+ `git config remote.origin.url` is written to a file `.capistrano/metrics` to
370
+ allow us to differentiate between many members of the same team deploying the
371
+ same project vs. many people on many projects.
372
+
353
373
  ## License
354
374
 
355
375
  MIT License (MIT)
356
376
 
357
- Copyright (c) 2012-2013 Tom Clements, Lee Hambley
377
+ Copyright (c) 2012-2015 Tom Clements, Lee Hambley
358
378
 
359
379
  Permission is hereby granted, free of charge, to any person obtaining a copy
360
380
  of this software and associated documentation files (the "Software"), to deal
@@ -29,7 +29,7 @@ eos
29
29
 
30
30
  gem.required_ruby_version = '>= 1.9.3'
31
31
  gem.add_dependency 'sshkit', '~> 1.3'
32
- gem.add_dependency 'capistrano-stats', '~> 1.0.3'
32
+ gem.add_dependency 'capistrano-stats', '~> 1.1.0'
33
33
  gem.add_dependency 'rake', '>= 10.0.0'
34
34
  gem.add_dependency 'i18n'
35
35
 
@@ -19,12 +19,10 @@ Feature: The path to the configuration can be changed, removing the need to
19
19
  Then the task is successful
20
20
  And contains "install" in the output
21
21
 
22
- # Feature disabled because this is not how it works, we don't load
23
- # tasks from stage files, as we expect them to be defined in ./lib/tasks
24
- # Scenario: Show install task with configuration in a custom location
25
- # And config stage file has line "desc 'Special Task'"
26
- # And config stage file has line "task :special_stage_task"
27
- # But the configuration is in a custom location
28
- # When I run "cap -T"
29
- # Then the task is successful
30
- # And contains "special_stage_task" in the output
22
+ Scenario: Hide install task with configuration in a custom location
23
+ And config stage file has line "desc 'Special Task'"
24
+ And config stage file has line "task :special_stage_task"
25
+ But the configuration is in a custom location
26
+ When I run "cap -T"
27
+ Then the task is successful
28
+ And doesn't contain "special_stage_task" in the output
@@ -109,3 +109,7 @@ end
109
109
  Then(/contains "(.*?)" in the output/) do |expected|
110
110
  expect(@output).to include(expected)
111
111
  end
112
+
113
+ Then(/doesn't contain "(.*?)" in the output/) do |expected|
114
+ expect(@output).not_to include(expected)
115
+ end
@@ -18,7 +18,7 @@ class Capistrano::Git < Capistrano::SCM
18
18
  end
19
19
 
20
20
  def check
21
- git :'ls-remote -h', repo_url
21
+ git :'ls-remote --heads', repo_url
22
22
  end
23
23
 
24
24
  def clone
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.3.3"
2
+ VERSION = "3.3.4"
3
3
  end
@@ -31,7 +31,7 @@ module Capistrano
31
31
  describe "#check" do
32
32
  it "should test the repo url" do
33
33
  context.expects(:repo_url).returns(:url)
34
- context.expects(:execute).with(:git, :'ls-remote -h', :url).returns(true)
34
+ context.expects(:execute).with(:git, :'ls-remote --heads', :url).returns(true)
35
35
 
36
36
  subject.check
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Clements
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-27 00:00:00.000000000 Z
12
+ date: 2014-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sshkit
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.0.3
34
+ version: 1.1.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.0.3
41
+ version: 1.1.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement