rept 0.1.4 → 0.1.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/lib/init.yaml CHANGED
@@ -1,4 +1,4 @@
1
1
  # �o�[�W�����ԍ�(�S�c�[���ŋ��ʂɂ��Ă���)
2
- version: "0.1.4"
2
+ version: "0.1.5"
3
3
 
4
4
  # @insert
data/lib/rept.rb CHANGED
@@ -326,6 +326,7 @@ class Creator
326
326
  s.gsub!(/reptname#{index + 1}/, i.downcase)
327
327
  s.gsub!(/REPTNAME#{index + 1}/, i.upcase)
328
328
  s.gsub!(/rept_name#{index + 1}/, i.joinUnderbar)
329
+ s.gsub!(/REPT_NAME#{index + 1}/, i.joinUnderbar.upcase)
329
330
  end
330
331
 
331
332
  s
data/lib/rept4diff.rb CHANGED
@@ -194,6 +194,7 @@ class Parser
194
194
  s.gsub!(arg.downcase, "reptname#{index + 1}")
195
195
  s.gsub!(arg.upcase, "REPTNAME#{index + 1}")
196
196
  s.gsub!(arg.joinUnderbar, "rept_name#{index + 1}")
197
+ s.gsub!(arg.joinUnderbar.upcase, "REPT_NAME#{index + 1}")
197
198
  end
198
199
 
199
200
  s
data/test/test4.diff ADDED
@@ -0,0 +1,21 @@
1
+ Index: FooBar.cpp
2
+ ===================================================================
3
+ --- FooBar.cpp (���r�W���� 0)
4
+ +++ FooBar.cpp (���r�W���� 242)
5
+ @@ -0,0 +1,16 @@
6
+ +// --------------------------------------------------------------------------
7
+ +/**
8
+ + * FooBar�N���X�A����
9
+ + */
10
+ +
11
+ +#include "FooBar.h"
12
+ +
13
+ +void FOO_BAR::method1()
14
+ +{
15
+ +}
16
+ +
17
+ +int FooBar::method2() const
18
+ +{
19
+ + return 0
20
+ +}
21
+ +
data/test/test4.rept ADDED
@@ -0,0 +1,19 @@
1
+ Args:
2
+ FooBar
3
+ Index: ReptName1.cpp
4
+ // --------------------------------------------------------------------------
5
+ /**
6
+ * ReptName1�N���X�A����
7
+ */
8
+
9
+ #include "ReptName1.h"
10
+
11
+ void REPT_NAME1::method1()
12
+ {
13
+ }
14
+
15
+ int ReptName1::method2() const
16
+ {
17
+ return 0
18
+ }
19
+
@@ -33,5 +33,11 @@ class TC_Rept4Diff < Test::Unit::TestCase
33
33
  parser.parse
34
34
  assert_equal(parser.result, readRept('test3.rept'))
35
35
  end
36
+
37
+ def test_test4
38
+ parser = Parser.new('test4.diff', ['FooBar'])
39
+ parser.parse
40
+ assert_equal(parser.result, readRept('test4.rept'))
41
+ end
36
42
  end
37
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rept
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ongaeshi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-31 00:00:00 +09:00
12
+ date: 2009-06-24 00:00:00 +09:00
13
13
  default_executable: rept
14
14
  dependencies: []
15
15
 
@@ -63,6 +63,8 @@ files:
63
63
  - test/test2.rept
64
64
  - test/test3.diff
65
65
  - test/test3.rept
66
+ - test/test4.diff
67
+ - test/test4.rept
66
68
  - test/test_fileinsert.rb
67
69
  - test/test_rept4diff.rb
68
70
  has_rdoc: true