File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def artifact( a )
86
86
self . send a [ :type ] . to_sym , a
87
87
end
88
88
89
- def source ( *args )
89
+ def source ( *args , & block )
90
90
url = args [ 0 ] . to_s
91
91
url = 'https://rubygems.org' if url == :rubygems
92
92
id = url . gsub ( /[\/ :"<>|?*]/ , '_' ) . gsub ( /_+/ , '_' ) unless url == 'https://rubygems.org'
@@ -100,6 +100,8 @@ def source(*args)
100
100
repository :id => id || 'mavengems' , :url => "mavengem:#{ url } "
101
101
extension! 'org.torquebox.mojo:mavengem-wagon' , '${mavengem.wagon.version}'
102
102
@current = current if current
103
+
104
+ block . call if block
103
105
end
104
106
105
107
def ruby ( *args )
Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
3
3
gemspec
4
+
5
+ source 'https://example.com' do
6
+ gem 'paseserver' , '~>1.3'
7
+ end
Original file line number Diff line number Diff line change 34
34
<mavengem .wagon.version>0.2.0</mavengem .wagon.version>
35
35
</properties >
36
36
<dependencies >
37
+ <dependency >
38
+ <groupId >rubygems</groupId >
39
+ <artifactId >paseserver</artifactId >
40
+ <version >[1.3,1.99999]</version >
41
+ <type >gem</type >
42
+ </dependency >
37
43
<dependency >
38
44
<groupId >org.bouncycastle</groupId >
39
45
<artifactId >bcpkix-jdk15on</artifactId >
50
56
<id >mavengems</id >
51
57
<url >mavengem:https://rubygems.org</url >
52
58
</repository >
59
+ <repository >
60
+ <id >https_example.com</id >
61
+ <url >mavengem:https://example.com</url >
62
+ </repository >
53
63
</repositories >
54
64
<build >
55
65
<extensions >
You can’t perform that action at this time.
0 commit comments