ivy4r 0.7.0 → 0.7.1

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/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.7.1 / 2009-08-24
2
+
3
+ * Fix bug that manual added dependencies are overwritten for package task
4
+ issue 1: http://github.com/klaas1979/ivy4r/issues#issue/1
5
+ * possible to add manual dependencies for compile and test as for package
6
+
1
7
  === 0.7.0 / 2009-07-20
2
8
 
3
9
  * It is possible to register +post_resolve+ actions via blocks:
@@ -115,9 +115,9 @@ module Buildr
115
115
  end
116
116
 
117
117
  # Resolves the configured file once.
118
- def resolve
118
+ def __resolve__
119
119
  if @base_ivy
120
- @base_ivy.resolve
120
+ @base_ivy.__resolve__
121
121
  else
122
122
  unless @resolved
123
123
  @resolved = ant.resolve :file => file
@@ -146,9 +146,9 @@ module Buildr
146
146
  end
147
147
 
148
148
  # Publishs the project as defined in ivy file if it has not been published already
149
- def publish
149
+ def __publish__
150
150
  if @base_ivy
151
- @base_ivy.publish
151
+ @base_ivy.__publish__
152
152
  else
153
153
  unless @published
154
154
  options = {:status => status, :pubrevision => revision, :artifactspattern => "#{publish_from}/[artifact].[ext]"}
@@ -280,6 +280,10 @@ module Buildr
280
280
  end
281
281
  end
282
282
 
283
+ # :call-seq:
284
+ # ivy.publish(package(:jar) => 'new_name_without_version_number.jar')
285
+ # #deprecated! ivy.name(package(:jar) => 'new_name_without_version_number.jar')
286
+ #
283
287
  # Maps a package to a different name for publishing. This name is used instead of the default name
284
288
  # for publishing use a hash with the +package+ as key and the newly mapped name as value. I.e.
285
289
  # <tt>ivy.name(package(:jar) => 'new_name_without_version_number.jar')</tt>
@@ -293,6 +297,7 @@ module Buildr
293
297
  self
294
298
  end
295
299
  end
300
+ alias_method :publish, :name
296
301
 
297
302
  # Sets the directory to publish artifacts from.
298
303
  def publish_from(*publish_dir)
@@ -395,12 +400,12 @@ module Buildr
395
400
 
396
401
  private
397
402
  def target(targets)
398
- t = targets.to_s.split('_').find { |t| TARGETS.member? t.to_sym }
403
+ t = targets.to_s.split('_').find { |target| TARGETS.member? target.to_sym }
399
404
  t ? t.to_sym : nil
400
405
  end
401
406
 
402
407
  def type(types)
403
- t = types.to_s.split('_').find { |t| TYPES.member? t.to_sym }
408
+ t = types.to_s.split('_').find { |type| TYPES.member? type.to_sym }
404
409
  t ? t.to_sym : nil
405
410
  end
406
411
 
@@ -465,7 +470,7 @@ For more configuration options see IvyConfig.
465
470
  excludes = project.ivy.compile_exclude
466
471
  confs = [project.ivy.compile_conf].flatten
467
472
  if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
468
- project.compile.with deps
473
+ project.compile.with [project.compile.dependencies, deps].flatten
469
474
  info "Ivy adding compile dependencies '#{confs.join(', ')}' to project '#{project.name}'"
470
475
  end
471
476
  end
@@ -477,7 +482,7 @@ For more configuration options see IvyConfig.
477
482
  excludes = project.ivy.test_exclude
478
483
  confs = [project.ivy.test_conf, project.ivy.compile_conf].flatten.uniq
479
484
  if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
480
- project.test.with deps
485
+ project.test.with [project.test.dependencies, deps].flatten
481
486
  info "Ivy adding test dependencies '#{confs.join(', ')}' to project '#{project.name}'"
482
487
  end
483
488
  end
@@ -518,7 +523,7 @@ For more configuration options see IvyConfig.
518
523
  excludes = project.ivy.package_exclude
519
524
  confs = project.ivy.package_conf
520
525
  if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
521
- pkg.with :libs => deps
526
+ pkg.with :libs => [pkg.libs, deps].flatten
522
527
  info "Adding production libs from conf '#{confs.join(', ')}' to package '#{pkg.name}' in project '#{project.name}'"
523
528
  end
524
529
  end
@@ -595,7 +600,7 @@ For more configuration options see IvyConfig.
595
600
  end
596
601
 
597
602
  task :resolve => "#{project.name}:ivy:configure" do
598
- project.ivy.resolve
603
+ project.ivy.__resolve__
599
604
  end
600
605
 
601
606
  task :report => "#{project.name}:ivy:resolve" do
@@ -603,7 +608,7 @@ For more configuration options see IvyConfig.
603
608
  end
604
609
 
605
610
  task :publish => "#{project.name}:ivy:resolve" do
606
- project.ivy.publish
611
+ project.ivy.__publish__
607
612
  end
608
613
  end
609
614
  end
data/lib/ivy4r.rb CHANGED
@@ -35,7 +35,7 @@ is
35
35
  }
36
36
  =end
37
37
  class Ivy4r
38
- VERSION = '0.7.0'
38
+ VERSION = '0.7.1'
39
39
 
40
40
  # Set the ant home directory to load ant classes from if no custom __antwrap__ is provided
41
41
  # and the default provided ant version 1.7.1 should not be used.
@@ -57,7 +57,7 @@ module Rake
57
57
  end
58
58
 
59
59
  # Resolves the configured file once.
60
- def resolve
60
+ def __resolve__
61
61
  unless @resolved
62
62
  @resolved = ant.resolve :file => file
63
63
  end
@@ -69,7 +69,7 @@ module Rake
69
69
  end
70
70
 
71
71
  # Publishs the project as defined in ivy file if it has not been published already
72
- def publish
72
+ def __publish__
73
73
  unless @published
74
74
  options = {:artifactspattern => "#{publish_from}/[artifact].[ext]"}
75
75
  options[:pubrevision] = revision if revision
@@ -233,12 +233,12 @@ module Rake
233
233
 
234
234
  desc 'Resolves the ivy dependencies'
235
235
  task :resolve => "ivy:configure" do
236
- Rake.application.ivy.resolve
236
+ Rake.application.ivy.__resolve__
237
237
  end
238
238
 
239
239
  desc 'Publish the artifacts to ivy repository'
240
240
  task :publish => "ivy:resolve" do
241
- Rake.application.ivy.publish
241
+ Rake.application.ivy.__publish__
242
242
  end
243
243
 
244
244
  desc 'Creates a dependency report for the project'
metadata CHANGED
@@ -1,68 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
- name: ivy4r
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.0
5
- platform: ruby
6
- authors:
7
- - Klaas Prause
8
- autorequire:
9
- bindir: bin
10
- cert_chain: []
11
-
12
- date: 2009-07-21 00:00:00 +02:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: Antwrap
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 0.7.0
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: ivy4r-jars
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.0.0
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: facets
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 2.5.2
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: hoe
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 2.2.0
54
- version:
55
- description: Apache Ivy dependency manager wrapper for ruby (see {Apache Ivy}[http://ant.apache.org/ivy/index.html] for more information). Use {Apache Ivy}[http://ant.apache.org/ivy/index.html] via a ruby wrapper without the need to use Apache Ant. The wrapper uses Antwrap[http://antwrap.rubyforge.org/] to interface with Ivy. Includes a Extension for Buildr[http://buildr.apache.org/] to use {Apache Ivy}[http://ant.apache.org/ivy/index.html] for dependency management.
2
+ required_ruby_version: !ruby/object:Gem::Requirement
3
+ requirements:
4
+ - - '>='
5
+ - !ruby/object:Gem::Version
6
+ version: "0"
7
+ version:
56
8
  email:
57
9
  - klaas.prause@googlemail.com
58
- executables:
59
- - ivy4r
60
- extensions: []
10
+ cert_chain: []
61
11
 
12
+ summary: Apache Ivy dependency manager wrapper for ruby (see {Apache Ivy}[http://ant.apache.org/ivy/index.html]
13
+ for more information)
14
+ post_install_message:
62
15
  extra_rdoc_files:
63
16
  - History.txt
64
17
  - Manifest.txt
65
18
  - README.txt
19
+ homepage: http://github.com/klaas1979/ivy4r/tree/master
20
+ signing_key:
21
+ name: ivy4r
22
+ rdoc_options:
23
+ - --main
24
+ - README.txt
25
+ - --charset=UTF-8
26
+ rubyforge_project: hamburgrb
27
+ autorequire:
28
+ licenses: []
29
+
30
+ executables:
31
+ - ivy4r
32
+ description: |-
33
+ Apache Ivy dependency manager wrapper for ruby (see {Apache Ivy}[http://ant.apache.org/ivy/index.html] for more information).
34
+ Use {Apache Ivy}[http://ant.apache.org/ivy/index.html] via a ruby wrapper without the need to use Apache Ant.
35
+ The wrapper uses Antwrap[http://antwrap.rubyforge.org/] to interface with Ivy.
36
+
37
+ Includes a Extension for Buildr[http://buildr.apache.org/] to use {Apache Ivy}[http://ant.apache.org/ivy/index.html]
38
+ for dependency management.
39
+ specification_version: 3
40
+ default_executable:
66
41
  files:
67
42
  - History.txt
68
43
  - Manifest.txt
@@ -101,34 +76,69 @@ files:
101
76
  - test/ivy/test_target.rb
102
77
  - test/ivy/test_targets.rb
103
78
  - test/test_ivy4r.rb
104
- has_rdoc: true
105
- homepage: http://github.com/klaas1979/ivy4r/tree/master
106
- post_install_message:
107
- rdoc_options:
108
- - --main
109
- - README.txt
110
- require_paths:
111
- - lib
112
- required_ruby_version: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: "0"
117
- version:
118
79
  required_rubygems_version: !ruby/object:Gem::Requirement
119
80
  requirements:
120
- - - ">="
81
+ - - '>='
121
82
  - !ruby/object:Gem::Version
122
83
  version: "0"
123
84
  version:
85
+ extensions: []
86
+
87
+ rubygems_version: 1.3.3
124
88
  requirements: []
125
89
 
126
- rubyforge_project: hamburgrb
127
- rubygems_version: 1.3.1
128
- signing_key:
129
- specification_version: 2
130
- summary: Apache Ivy dependency manager wrapper for ruby (see {Apache Ivy}[http://ant.apache.org/ivy/index.html] for more information)
90
+ authors:
91
+ - Klaas Prause
92
+ date: 2009-08-23 22:00:00 +00:00
93
+ platform: ruby
131
94
  test_files:
95
+ - test/test_ivy4r.rb
132
96
  - test/ivy/test_target.rb
133
97
  - test/ivy/test_targets.rb
134
- - test/test_ivy4r.rb
98
+ version: !ruby/object:Gem::Version
99
+ version: 0.7.1
100
+ require_paths:
101
+ - lib
102
+ dependencies:
103
+ - !ruby/object:Gem::Dependency
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - '>='
107
+ - !ruby/object:Gem::Version
108
+ version: 0.7.0
109
+ version:
110
+ type: :runtime
111
+ version_requirement:
112
+ name: Antwrap
113
+ - !ruby/object:Gem::Dependency
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '>='
117
+ - !ruby/object:Gem::Version
118
+ version: 1.0.0
119
+ version:
120
+ type: :runtime
121
+ version_requirement:
122
+ name: ivy4r-jars
123
+ - !ruby/object:Gem::Dependency
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - '>='
127
+ - !ruby/object:Gem::Version
128
+ version: 2.5.2
129
+ version:
130
+ type: :runtime
131
+ version_requirement:
132
+ name: facets
133
+ - !ruby/object:Gem::Dependency
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: 2.2.0
139
+ version:
140
+ type: :development
141
+ version_requirement:
142
+ name: hoe
143
+ bindir: bin
144
+ has_rdoc: true