maven-tools 0.33.4 → 0.33.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.
data/spec/pom_spec.rb CHANGED
@@ -3,7 +3,7 @@ require 'maven/tools/pom'
3
3
 
4
4
  describe Maven::Tools::POM do
5
5
 
6
- Dir[ File.join( File.dirname( __FILE__ ), 'gem*' ) ].each do |dir|
6
+ ( Dir[ File.join( File.dirname( __FILE__ ), 'gem*' ) ] + Dir[ File.join( File.dirname( __FILE__ ), 'pom*' ) ] ).each do |dir|
7
7
  if File.directory?( dir )
8
8
  it "should convert #{dir}" do
9
9
  pom = Maven::Tools::POM.new( dir )
@@ -0,0 +1,24 @@
1
+ project 'example with execute' do
2
+
3
+ build do
4
+ execute( :phase => :validate ) do |ctx|
5
+ p ctx.project
6
+ end
7
+ execute( :second, :phase => :validate ) do |ctx|
8
+ p ctx.project
9
+ end
10
+ execute( :third, :validate ) do |ctx|
11
+ p ctx.project
12
+ end
13
+ phase :validate do
14
+ execute( :id => :forth ) do |ctx|
15
+ p ctx.project
16
+ end
17
+ end
18
+ end
19
+ phase :validate do
20
+ execute( :id => :fifth ) do |ctx|
21
+ p ctx.project
22
+ end
23
+ end
24
+ end
data/spec/spec_helper.rb CHANGED
@@ -3,3 +3,6 @@ begin
3
3
  rescue LoadError
4
4
  end
5
5
  require 'minitest/autorun'
6
+
7
+ $LOAD_PATH.unshift File.join( File.dirname( File.expand_path( __FILE__ ) ),
8
+ '..', 'lib' )
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maven-tools
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.33.5
4
5
  prerelease:
5
- version: 0.33.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Christian Meier
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
12
+ date: 2013-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus
@@ -111,14 +111,18 @@ files:
111
111
  - spec/spec_helper.rb
112
112
  - spec/gemspec_dependencies_spec.rb
113
113
  - spec/gemfile_with_source/bouncy-castle-version.rb
114
+ - spec/pom_maven_style/pom.rb
114
115
  - spec/gemspec_in_profile/bouncy-castle-version.rb
115
116
  - spec/gemfile_include_jars/bouncy-castle-version.rb
116
117
  - spec/gemfile/bouncy-castle-version.rb
118
+ - spec/pom_with_execute/pom.rb
117
119
  - spec/gemspec/bouncy-castle-version.rb
118
120
  - spec/gemspec_with_source/bouncy-castle-version.rb
121
+ - spec/pom_maven_hash_style/pom.rb
119
122
  - spec/gemspec_include_jars/bouncy-castle-version.rb
120
123
  - spec/gemspec_with_extras/bouncy-castle-version.rb
121
124
  - spec/gemfile_with_extras/bouncy-castle-version.rb
125
+ - spec/pom_maven_alternative_style/pom.rb
122
126
  - rspec/maven/model/dependencies_spec.rb
123
127
  - rspec/maven/model/model_spec.rb
124
128
  - rspec/maven/tools/rails_project_spec.rb