capistrano-maven 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -20,9 +20,9 @@ Or install it yourself as:
20
20
 
21
21
  This recipes will try to do following things during Capistrano `deploy:setup` and `deploy` tasks.
22
22
 
23
- (1) Download and install Maven for current project
24
- (2) Prepare Maven's settings.xml for current project (optional)
25
- (3) Build Maven project remotely (default) or locally
23
+ 1. Download and install Maven for current project
24
+ 2. Prepare Maven's settings.xml for current project (optional)
25
+ 3. Build Maven project remotely (default) or locally
26
26
 
27
27
  To build you Maven projects during Capistrano `deploy` tasks, add following in you `config/deploy.rb`. By default, Maven build will run after the Capistrano's `deploy:finalize_update`.
28
28
 
@@ -8,14 +8,11 @@ module Capistrano
8
8
  configuration.load {
9
9
  namespace(:mvn) {
10
10
  _cset(:mvn_version, '3.0.4')
11
+ _cset(:mvn_major_version) {
12
+ mvn_version.split('.').first.to_i
13
+ }
11
14
  _cset(:mvn_archive_url) {
12
- [
13
- "http://www.apache.org/dist//maven/binaries/apache-maven-#{mvn_version}-bin.tar.gz",
14
- "http://ftp.kddilabs.jp/infosystems/apache//maven/binaries/apache-maven-#{mvn_version}-bin.tar.gz",
15
- "http://ftp.riken.jp/net/apache//maven/binaries/apache-maven-#{mvn_version}-bin.tar.gz",
16
- "http://ftp.jaist.ac.jp/pub/apache//maven/binaries/apache-maven-#{mvn_version}-bin.tar.gz",
17
- "http://ftp.meisei-u.ac.jp/mirror/apache/dist//maven/binaries/apache-maven-#{mvn_version}-bin.tar.gz",
18
- ].shuffle().first()
15
+ "http://www.apache.org/dist/maven/maven-#{mvn_major_version}/#{mvn_version}/binaries/apache-maven-#{mvn_version}-bin.tar.gz"
19
16
  }
20
17
  _cset(:mvn_archive_file) {
21
18
  File.join(shared_path, 'tools', 'mvn', File.basename(URI.parse(mvn_archive_url).path))
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Maven
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-maven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-14 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -69,4 +69,3 @@ signing_key:
69
69
  specification_version: 3
70
70
  summary: a capistrano recipe to deploy Apache Maven based projects.
71
71
  test_files: []
72
- has_rdoc: