breakout_parser 0.0.19-x86-mingw32 → 0.0.20-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/spec/parser_spec.rb +33 -0
- metadata +3 -3
data/ChangeLog
CHANGED
data/spec/parser_spec.rb
CHANGED
@@ -896,6 +896,39 @@ describe 'BreakoutParser' do
|
|
896
896
|
v.sub('/code/test_space/git/changesets/',git_url)
|
897
897
|
end
|
898
898
|
|
899
|
+
it "parses [[#{k}]] with custom git_url (String) + $REV$" do
|
900
|
+
git_url = "http://www.ru/$REV$/show"
|
901
|
+
rev = k.split(':').last.tr(']','')
|
902
|
+
parse("[[#{k}]]", :git_url => git_url).should ==
|
903
|
+
v.sub('/code/test_space/git/changesets/',git_url).sub(rev,'').sub('$REV$',rev)
|
904
|
+
|
905
|
+
git_url = "http://www.ru/$REV$"
|
906
|
+
parse("[[#{k}]]", :git_url => git_url).should ==
|
907
|
+
v.sub('/code/test_space/git/changesets/',git_url).sub(rev,'').sub('$REV$',rev)
|
908
|
+
|
909
|
+
git_url = "$REV$"
|
910
|
+
parse("[[#{k}]]", :git_url => git_url).should ==
|
911
|
+
v.sub('/code/test_space/git/changesets/',git_url).sub(rev,'').sub('$REV$',rev)
|
912
|
+
end
|
913
|
+
|
914
|
+
it "parses [[#{k}]] with custom git_url (ObjProxy) + $REV$" do
|
915
|
+
rev = k.split(':').last.tr(']','')
|
916
|
+
@asdfg = 'http://mmm.us/$REV$/show'
|
917
|
+
git_url = Breakout::ObjProxy.new do
|
918
|
+
@asdfg
|
919
|
+
end
|
920
|
+
parse("[[#{k}]]", :git_url => git_url).should ==
|
921
|
+
v.sub('/code/test_space/git/changesets/',git_url).sub(rev,'').sub('$REV$',rev)
|
922
|
+
|
923
|
+
@asdfg = 'http://mmm.us/$REV$'
|
924
|
+
parse("[[#{k}]]", :git_url => git_url).should ==
|
925
|
+
v.sub('/code/test_space/git/changesets/',git_url).sub(rev,'').sub('$REV$',rev)
|
926
|
+
|
927
|
+
@asdfg = '$REV$'
|
928
|
+
parse("[[#{k}]]", :git_url => git_url).should ==
|
929
|
+
v.sub('/code/test_space/git/changesets/',git_url).sub(rev,'').sub('$REV$',rev)
|
930
|
+
end
|
931
|
+
|
899
932
|
it "parses [[#{k}]] with NULL git_url (ObjProxy)" do
|
900
933
|
rev = k.split(':').last.tr(']','')
|
901
934
|
git_url = Breakout::ObjProxy.new do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakout_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 20
|
10
|
+
version: 0.0.20
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Andrey "Zed" Zaikin
|