breakout_parser 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -2152,16 +2152,16 @@ process_url_link(const char*target,const char* proto){
2152
2152
 
2153
2153
  process_svn_link(const char*target){
2154
2154
  const char *c;
2155
- concat("<a href=\"http://code.assembla.com/",34);
2155
+ concat("<a href=\"/code/",15);
2156
2156
  concat(space_name,space_name_len);
2157
- concat("/svn/changesets/",16);
2157
+ concat("/subversion/changesets/",23);
2158
2158
  for(c=target; *c && *c!=']' && *c!='|'; c++) concat_raw_char(*c);
2159
2159
  process_link_tail(target,NULL,"revision:");
2160
2160
  }
2161
2161
 
2162
2162
  process_git_link(const char*target){
2163
2163
  const char *c;
2164
- concat("<a href=\"http://code.assembla.com/",34);
2164
+ concat("<a href=\"/code/",15);
2165
2165
  concat(space_name,space_name_len);
2166
2166
  concat("/git/changesets/",16);
2167
2167
  for(c=target; *c && *c!=']' && *c!='|'; c++) concat_raw_char(*c);
@@ -282,16 +282,16 @@ process_url_link(const char*target,const char* proto){
282
282
 
283
283
  process_svn_link(const char*target){
284
284
  const char *c;
285
- concat("<a href=\"http://code.assembla.com/",34);
285
+ concat("<a href=\"/code/",15);
286
286
  concat(space_name,space_name_len);
287
- concat("/svn/changesets/",16);
287
+ concat("/subversion/changesets/",23);
288
288
  for(c=target; *c && *c!=']' && *c!='|'; c++) concat_raw_char(*c);
289
289
  process_link_tail(target,NULL,"revision:");
290
290
  }
291
291
 
292
292
  process_git_link(const char*target){
293
293
  const char *c;
294
- concat("<a href=\"http://code.assembla.com/",34);
294
+ concat("<a href=\"/code/",15);
295
295
  concat(space_name,space_name_len);
296
296
  concat("/git/changesets/",16);
297
297
  for(c=target; *c && *c!=']' && *c!='|'; c++) concat_raw_char(*c);
data/spec/parser_spec.rb CHANGED
@@ -704,11 +704,11 @@ describe 'BreakoutParser' do
704
704
 
705
705
  a["ticket:234"] = '<a href="/spaces/test_space/tickets/234">#234</a>'
706
706
  a["revision:1f4bdab77be696efd"] =
707
- '<a href="http://code.assembla.com/test_space/git/changesets/1f4bdab77be696efd">revision:1f4bdab77be696efd</a>'
707
+ '<a href="/code/test_space/git/changesets/1f4bdab77be696efd">revision:1f4bdab77be696efd</a>'
708
708
  a["revision:12345"] =
709
- '<a href="http://code.assembla.com/test_space/svn/changesets/12345">revision:12345</a>'
710
- a["r:2345"] = '<a href="http://code.assembla.com/test_space/svn/changesets/2345">revision:2345</a>'
711
- a["r:2345ef"] = '<a href="http://code.assembla.com/test_space/git/changesets/2345ef">revision:2345ef</a>'
709
+ '<a href="/code/test_space/subversion/changesets/12345">revision:12345</a>'
710
+ a["r:2345"] = '<a href="/code/test_space/subversion/changesets/2345">revision:2345</a>'
711
+ a["r:2345ef"] = '<a href="/code/test_space/git/changesets/2345ef">revision:2345ef</a>'
712
712
 
713
713
  a["url:http://www.ru"] = '<a rel="nofollow" href="http://www.ru">http://www.ru</a>'
714
714
  a["url:https://www.ru"] = '<a rel="nofollow" href="https://www.ru">https://www.ru</a>'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breakout_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "Zed" Zaikin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-12 00:00:00 +05:00
12
+ date: 2010-03-13 00:00:00 +05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency