inochi 5.1.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,6 +66,7 @@ module Inochi
66
66
  chmod 0755, command_file
67
67
 
68
68
  create_from_rbs binding, PROJECT_CONFIG_FILE
69
+ create_from_rbs binding, 'Gemfile'
69
70
 
70
71
  create_from_rbs binding, "lib/#{package_name}.rb", 'library'
71
72
  create_from_rbs binding, "lib/#{package_name}/inochi.rb"
@@ -28,8 +28,9 @@ module Inochi
28
28
  notify :update, path
29
29
  cur, old, new = path, "#{path}.old", "#{path}.new"
30
30
 
31
- FileUtils.cp cur, old, :preserve => true
31
+ FileUtils.cp cur, old
32
32
  File.write new, content
33
+ FileUtils.chmod 0400, [old, new]
33
34
 
34
35
  yield old, new, cur if block_given?
35
36
  end
@@ -18,12 +18,12 @@ module Inochi
18
18
  ##
19
19
  # Number of this release of this project.
20
20
  #
21
- VERSION = '5.1.0'
21
+ VERSION = '6.0.0'
22
22
 
23
23
  ##
24
24
  # Date of this release of this project.
25
25
  #
26
- RELDATE = '2010-08-14'
26
+ RELDATE = '2011-04-21'
27
27
 
28
28
  ##
29
29
  # Description of this release of this project.
@@ -42,7 +42,7 @@ module Inochi
42
42
  #
43
43
  # @example
44
44
  #
45
- # RUNTIME = {
45
+ # GEMDEPS = {
46
46
  # # this project needs exactly version 1.2.3 of the "an_example" gem
47
47
  # 'an_example' => [ '1.2.3' ],
48
48
  #
@@ -54,7 +54,7 @@ module Inochi
54
54
  # 'yet_another_example' => [],
55
55
  # }
56
56
  #
57
- RUNTIME = {
57
+ GEMDEPS = {
58
58
  'ember' => [ '>= 0.3.0' , '< 1' ], # for eRuby templates
59
59
  'highline' => [ '>= 1.5' , '< 2' ], # for echoless password entry
60
60
  'mechanize' => [ '>= 1' , '< 2' ], # for publishing announcements
@@ -63,38 +63,4 @@ module Inochi
63
63
  'yard' => [ '>= 0.5.8' , '< 1' ], # for making API documentation
64
64
  }
65
65
 
66
- ##
67
- # RubyGems required by this project during development.
68
- #
69
- # @example
70
- #
71
- # DEVTIME = {
72
- # # this project needs exactly version 1.2.3 of the "an_example" gem
73
- # 'an_example' => [ '1.2.3' ],
74
- #
75
- # # this project needs at least version 1.2 (but not
76
- # # version 1.2.4 or newer) of the "another_example" gem
77
- # 'another_example' => [ '>= 1.2' , '< 1.2.4' ],
78
- #
79
- # # this project needs any version of the "yet_another_example" gem
80
- # "yet_another_example" => [],
81
- # }
82
- #
83
- DEVTIME = {
84
- 'detest' => [ '>= 3.1.0', '< 4' ], # for unit testing
85
- }
86
-
87
- # establish gem version dependencies
88
- if respond_to? :gem, true
89
- [RUNTIME, DEVTIME].each do |deps|
90
- deps.each do |gem_name, gem_version|
91
- begin
92
- gem gem_name, *Array(gem_version)
93
- rescue LoadError => error
94
- warn "#{self.inspect}: #{error}"
95
- end
96
- end
97
- end
98
- end
99
-
100
66
  end
@@ -24,6 +24,7 @@
24
24
  body {
25
25
  max-width: 50em; /* approximately 80 characters wide */
26
26
  margin-left: 15em;
27
+ font-size: 95%;
27
28
  }
28
29
 
29
30
  #toc {
@@ -1,5 +1,14 @@
1
- desc 'Build release package for RubyGems.'
2
- task :gem do
1
+ @gem_spec_dst = @project_package_name + '.gemspec'
2
+ @gem_spec_src = FileList[
3
+ '{bin,lib,ext}/**/*',
4
+ 'LICENSE',
5
+ @man_roff_dst
6
+ ]
7
+
8
+ desc 'Build RubyGems package specification.'
9
+ task 'gem:spec' => @gem_spec_dst
10
+
11
+ file @gem_spec_dst => @gem_spec_src do
3
12
  Rake::Task[:@ann_nfo_text].invoke
4
13
  Rake::Task[:@project_authors_text].invoke
5
14
 
@@ -24,20 +33,9 @@ task :gem do
24
33
  gem.homepage = @project_module::WEBSITE
25
34
  gem.authors = @project_authors_text.split(/\s*,\s*/)
26
35
  gem.executables = FileList['bin/*'].pathmap('%f')
36
+ gem.files = @gem_spec_src
27
37
 
28
- Rake::Task[:man].invoke
29
- gem.files = FileList[
30
- '{bin,lib,ext}/**/*',
31
- 'LICENSE',
32
- 'CREDITS',
33
- @man_roff_dst
34
- ]
35
-
36
- @project_module::DEVTIME.each do |gem_name, gem_version|
37
- gem.add_development_dependency gem_name, *Array(gem_version)
38
- end
39
-
40
- @project_module::RUNTIME.each do |gem_name, gem_version|
38
+ @project_module::GEMDEPS.each do |gem_name, gem_version|
41
39
  gem.add_dependency gem_name, *Array(gem_version)
42
40
  end
43
41
 
@@ -47,10 +45,20 @@ task :gem do
47
45
  end
48
46
 
49
47
  # emit gemspec
50
- File.write @project_gem_file + 'spec', gem.to_ruby
48
+ File.write @gem_spec_dst, gem.to_ruby.
49
+ sub('Gem::Specification.new', 'gemspec = \&').
50
+ sub(/\Z/, "\nsystem 'inochi', *gemspec.files\ngemspec")
51
+
52
+ @gem_spec = gem
53
+ end
54
+
55
+ CLOBBER.include @gem_spec_dst
56
+
57
+ desc 'Build release package for RubyGems.'
58
+ task :gem => @project_gem_file
51
59
 
52
- # build gem
53
- Gem::Builder.new(gem).build
60
+ file @project_gem_file => @gem_spec_dst do
61
+ Gem::Builder.new(@gem_spec).build
54
62
  end
55
63
 
56
- CLOBBER.include '*.gem', '*.gemspec'
64
+ CLOBBER.include @project_gem_file
@@ -8,6 +8,7 @@ some_command(1), another_command(5), yet_another_command(7)
8
8
  === References
9
9
 
10
10
  [horizontal]
11
+ [[[Bundler]]]:: http://gembundler.com
11
12
  [[[Inochi]]]:: <%= Inochi::WEBSITE %>
12
13
  [[[RubyGems]]]:: http://rubygems.org
13
14
  [[[Ruby]]]:: http://ruby-lang.org
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gem 'inochi', '>= #{Inochi::VERSION}', '< #{Inochi::VERSION.to_i.next}'
@@ -2,10 +2,10 @@
2
2
 
3
3
  === Prerequisites
4
4
 
5
- Install Ruby libraries necessary for development:
5
+ Install Ruby libraries necessary for development using <<Bundler>>:
6
6
 
7
7
  ------------------------------------------------------------------------------
8
- gem install #{package_name} --development
8
+ bundle install
9
9
  ------------------------------------------------------------------------------
10
10
 
11
11
  // TODO: list additional tools and libraries needed to develop your project
@@ -73,7 +73,7 @@ set -x RUBYOPT -rubygems # fish
73
73
  === Running tests
74
74
 
75
75
  Simply execute the included test runner, which sets up Ruby's `$LOAD_PATH` for
76
- testing, loads the `test/helper.rb` file, and then evaluates all
76
+ testing, loads the included `test/test_helper.rb` file, and then evaluates all
77
77
  `test/**/*_test.rb` files:
78
78
 
79
79
  ------------------------------------------------------------------------------
@@ -82,7 +82,7 @@ ruby test/runner
82
82
 
83
83
  Its exit status will indicate whether all tests have passed. It may also
84
84
  print additional pass/fail information depending on the testing library used
85
- in the `test/helper.rb` file.
85
+ in the `test/test_helper.rb` file.
86
86
 
87
87
  === Contributing
88
88
 
@@ -42,7 +42,7 @@ module #{library_name}
42
42
  #
43
43
  # @example
44
44
  #
45
- # RUNTIME = {
45
+ # GEMDEPS = {
46
46
  # # this project needs exactly version 1.2.3 of the "an_example" gem
47
47
  # 'an_example' => [ '1.2.3' ],
48
48
  #
@@ -54,40 +54,6 @@ module #{library_name}
54
54
  # 'yet_another_example' => [],
55
55
  # }
56
56
  #
57
- RUNTIME = {}
58
-
59
- ##
60
- # RubyGems required by this project during development.
61
- #
62
- # @example
63
- #
64
- # DEVTIME = {
65
- # # this project needs exactly version 1.2.3 of the "an_example" gem
66
- # 'an_example' => [ '1.2.3' ],
67
- #
68
- # # this project needs at least version 1.2 (but not
69
- # # version 1.2.4 or newer) of the "another_example" gem
70
- # 'another_example' => [ '>= 1.2' , '< 1.2.4' ],
71
- #
72
- # # this project needs any version of the "yet_another_example" gem
73
- # "yet_another_example" => [],
74
- # }
75
- #
76
- DEVTIME = {
77
- 'inochi' => [ '>= #{Inochi::VERSION}', '< #{Inochi::VERSION.to_i.next}' ],
78
- }
79
-
80
- # establish gem version dependencies
81
- if respond_to? :gem, true
82
- [RUNTIME, DEVTIME].each do |deps|
83
- deps.each do |gem_name, gem_version|
84
- begin
85
- gem gem_name, *Array(gem_version)
86
- rescue LoadError => error
87
- warn "\#{self.inspect}: \#{error}"
88
- end
89
- end
90
- end
91
- end
57
+ GEMDEPS = {}
92
58
 
93
59
  end
@@ -24,7 +24,7 @@ lib_dir = File.expand_path('../../lib', __FILE__)
24
24
  test_dir = File.expand_path('..', __FILE__)
25
25
  $LOAD_PATH.unshift lib_dir, test_dir
26
26
 
27
- load File.join(test_dir, 'helper.rb')
27
+ require 'test_helper'
28
28
 
29
29
  ARGV << "\#{test_dir}/**/*_test.rb" if ARGV.empty?
30
30
  ARGV.each {|glob| Dir[glob].each {|test| load test } }
@@ -1,13 +1,22 @@
1
1
  '\" t
2
2
  .\" Title: inochi
3
3
  .\" Author: [see the "AUTHORS" section]
4
- .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
- .\" Date: 2010-08-14
4
+ .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5
+ .\" Date: 2011-04-21
6
6
  .\" Manual: \ \&
7
- .\" Source: \ \& 5.1.0
7
+ .\" Source: \ \& 6.0.0
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "INOCHI" "1" "2010\-08\-14" "\ \& 5\&.1\&.0" "\ \&"
10
+ .TH "INOCHI" "1" "2011\-04\-21" "\ \& 6\&.0\&.0" "\ \&"
11
+ .\" -----------------------------------------------------------------
12
+ .\" * Define some portability stuff
13
+ .\" -----------------------------------------------------------------
14
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
+ .\" http://bugs.debian.org/507673
16
+ .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
+ .ie \n(.g .ds Aq \(aq
19
+ .el .ds Aq '
11
20
  .\" -----------------------------------------------------------------
12
21
  .\" * set default formatting
13
22
  .\" -----------------------------------------------------------------
@@ -358,29 +367,29 @@ Append the following code to the test/word_count_test\&.rb file:
358
367
  class TestWordCount < Test::Unit::TestCase
359
368
  def test_handles_empty_input
360
369
  assert_equal(0, WordCount\&.count(nil))
361
- assert_equal(0, WordCount\&.count(\'\'))
362
- assert_equal(0, WordCount\&.count(\' \'))
370
+ assert_equal(0, WordCount\&.count(\*(Aq\*(Aq))
371
+ assert_equal(0, WordCount\&.count(\*(Aq \*(Aq))
363
372
  end
364
373
 
365
374
  def test_handles_single_words
366
- assert_equal(1, WordCount\&.count(\'a\'))
367
- assert_equal(1, WordCount\&.count(\'foo\'))
368
- assert_equal(1, WordCount\&.count(\'bar\'))
375
+ assert_equal(1, WordCount\&.count(\*(Aqa\*(Aq))
376
+ assert_equal(1, WordCount\&.count(\*(Aqfoo\*(Aq))
377
+ assert_equal(1, WordCount\&.count(\*(Aqbar\*(Aq))
369
378
  end
370
379
 
371
380
  def test_handles_multiple_words
372
- assert_equal(2, WordCount\&.count(\'a b\'))
373
- assert_equal(2, WordCount\&.count(\'a\-b\'))
374
- assert_equal(2, WordCount\&.count(\'a/b\'))
381
+ assert_equal(2, WordCount\&.count(\*(Aqa b\*(Aq))
382
+ assert_equal(2, WordCount\&.count(\*(Aqa\-b\*(Aq))
383
+ assert_equal(2, WordCount\&.count(\*(Aqa/b\*(Aq))
375
384
  end
376
385
 
377
386
  def test_ignores_punctuation_and_space
378
- assert_equal(0, WordCount\&.count(\'!\'))
379
- assert_equal(0, WordCount\&.count(\'! @ # % #!@#\'))
380
- assert_equal(0, WordCount\&.count(\' !\'))
381
- assert_equal(0, WordCount\&.count(\'! \'))
382
- assert_equal(0, WordCount\&.count(\' ! \'))
383
- assert_equal(0, WordCount\&.count(\' ! \'))
387
+ assert_equal(0, WordCount\&.count(\*(Aq!\*(Aq))
388
+ assert_equal(0, WordCount\&.count(\*(Aq! @ # % #!@#\*(Aq))
389
+ assert_equal(0, WordCount\&.count(\*(Aq !\*(Aq))
390
+ assert_equal(0, WordCount\&.count(\*(Aq! \*(Aq))
391
+ assert_equal(0, WordCount\&.count(\*(Aq ! \*(Aq))
392
+ assert_equal(0, WordCount\&.count(\*(Aq ! \*(Aq))
384
393
  end
385
394
  end
386
395
  .fi
@@ -475,6 +484,7 @@ lt lt
475
484
  lt lt
476
485
  lt lt
477
486
  lt lt
487
+ lt lt
478
488
  lt lt.
479
489
  T{
480
490
  .sp
@@ -534,6 +544,13 @@ Build release package for RubyGems\&.
534
544
  T}
535
545
  T{
536
546
  .sp
547
+ gem:spec
548
+ T}:T{
549
+ .sp
550
+ Build RubyGems package specification\&.
551
+ T}
552
+ T{
553
+ .sp
537
554
  init
538
555
  T}:T{
539
556
  .sp
@@ -662,6 +679,7 @@ old=$1; new=$2; out=$3;
662
679
  # meld "$new" "$out" # use meld
663
680
  # tkdiff "$old" "$new" \-o "$out" # use tkdiff
664
681
  # kdiff3 \-\-merge "$old" "$new" \-\-output "$out" # use kdiff3
682
+ # diffuse "$old" "$out" "$new" # use diffuse
665
683
  .fi
666
684
  .if n \{\
667
685
  .RE
@@ -880,14 +898,14 @@ Example:
880
898
  .\}
881
899
  .nf
882
900
  :gem_spec_logic: |
883
- # show the Inochi\-provided specification for this project\'s gem
901
+ # show the Inochi\-provided specification for this project\*(Aqs gem
884
902
  puts gem\&.to_ruby
885
903
 
886
904
  # add files that are outside this project directory to the gem
887
- gem\&.files += [\'some\', \'files\', \'in\', \'this\', \'directory\']
905
+ gem\&.files += [\*(Aqsome\*(Aq, \*(Aqfiles\*(Aq, \*(Aqin\*(Aq, \*(Aqthis\*(Aq, \*(Aqdirectory\*(Aq]
888
906
 
889
- # omit some added files in this project\'s directory from the gem
890
- gem\&.files \-= [\'lib/top_secret\&.rb\', \'bin/more_top_secret_stuff\']
907
+ # omit some added files in this project\*(Aqs directory from the gem
908
+ gem\&.files \-= [\*(Aqlib/top_secret\&.rb\*(Aq, \*(Aqbin/more_top_secret_stuff\*(Aq]
891
909
 
892
910
  # and so on\&.\&.\&. anything is possible! use your imagination!
893
911
  .fi
@@ -921,11 +939,8 @@ test/runner
921
939
  .RS 4
922
940
  Executable Ruby script that hides the details of running the test suite\&.
923
941
  .RE
924
- .PP
925
- test/helper\&.rb
926
- .RS 4
927
- Ruby source file that prepares the testing environment by loading a testing library and defining common knowledge and utility logic shared by the actual tests\&.
928
- .RE
942
+ .sp
943
+ test/test_helper\&.rb: Ruby source file that prepares the testing environment by loading a testing library and defining common knowledge and utility logic shared by the actual tests\&.
929
944
  .PP
930
945
  test/**/*_test\&.rb
931
946
  .RS 4
@@ -1005,13 +1020,13 @@ You may choose to omit some or all of these components by simply not mentioning
1005
1020
  .SH "HACKING"
1006
1021
  .SS "Prerequisites"
1007
1022
  .sp
1008
- Install Ruby libraries necessary for development:
1023
+ Install Ruby libraries necessary for development using [Bundler]:
1009
1024
  .sp
1010
1025
  .if n \{\
1011
1026
  .RS 4
1012
1027
  .\}
1013
1028
  .nf
1014
- gem install inochi \-\-development
1029
+ bundle install
1015
1030
  .fi
1016
1031
  .if n \{\
1017
1032
  .RE
@@ -1097,7 +1112,7 @@ set \-x RUBYOPT \-rubygems # fish
1097
1112
  .\}
1098
1113
  .SS "Running tests"
1099
1114
  .sp
1100
- Simply execute the included test runner, which sets up Ruby\(cqs $LOAD_PATH for testing, loads the test/helper\&.rb file, and then evaluates all test/**/*_test\&.rb files:
1115
+ Simply execute the included test runner, which sets up Ruby\(cqs $LOAD_PATH for testing, loads the included test/test_helper\&.rb file, and then evaluates all test/**/*_test\&.rb files:
1101
1116
  .sp
1102
1117
  .if n \{\
1103
1118
  .RS 4
@@ -1109,11 +1124,154 @@ ruby test/runner
1109
1124
  .RE
1110
1125
  .\}
1111
1126
  .sp
1112
- Its exit status will indicate whether all tests have passed\&. It may also print additional pass/fail information depending on the testing library used in the test/helper\&.rb file\&.
1127
+ Its exit status will indicate whether all tests have passed\&. It may also print additional pass/fail information depending on the testing library used in the test/test_helper\&.rb file\&.
1113
1128
  .SS "Contributing"
1114
1129
  .sp
1115
1130
  \m[blue]\fBFork this project on GitHub\fR\m[] and send a pull request\&.
1116
1131
  .SH "HISTORY"
1132
+ .SS "Version 6\&.0\&.0 (2011\-04\-21)"
1133
+ .sp
1134
+ This release adopts some common Rails testing and development conventions, drops runtime gem version dependency establishment in favor of [Bundler], produces a gemspec file for greater interoperability, and improves merging\&.
1135
+ .PP
1136
+ \fBIncompatible changes\fR
1137
+ .sp
1138
+ .RS 4
1139
+ .ie n \{\
1140
+ \h'-04'\(bu\h'+03'\c
1141
+ .\}
1142
+ .el \{\
1143
+ .sp -1
1144
+ .IP \(bu 2.3
1145
+ .\}
1146
+ Remove runtime gem version dependency establishment from
1147
+ lib/*/inochi\&.rb\&.
1148
+ .RE
1149
+ .sp
1150
+ .RS 4
1151
+ .ie n \{\
1152
+ \h'-04'\(bu\h'+03'\c
1153
+ .\}
1154
+ .el \{\
1155
+ .sp -1
1156
+ .IP \(bu 2.3
1157
+ .\}
1158
+ Replace
1159
+ DEVTIME
1160
+ constant in
1161
+ lib/*/inochi\&.rb
1162
+ with
1163
+ [Bundler]\*(Aqs Gemfile\&.
1164
+ .RE
1165
+ .sp
1166
+ .RS 4
1167
+ .ie n \{\
1168
+ \h'-04'\(bu\h'+03'\c
1169
+ .\}
1170
+ .el \{\
1171
+ .sp -1
1172
+ .IP \(bu 2.3
1173
+ .\}
1174
+ Rename
1175
+ RUNTIME
1176
+ constant to
1177
+ GEMDEPS
1178
+ in
1179
+ lib/*/inochi\&.rb\&.
1180
+ .RE
1181
+ .sp
1182
+ .RS 4
1183
+ .ie n \{\
1184
+ \h'-04'\(bu\h'+03'\c
1185
+ .\}
1186
+ .el \{\
1187
+ .sp -1
1188
+ .IP \(bu 2.3
1189
+ .\}
1190
+ Rename
1191
+ test/helper\&.rb
1192
+ to
1193
+ test/test_helper\&.rb
1194
+ per Rails convention\&.
1195
+ .RE
1196
+ .PP
1197
+ \fBNew features\fR
1198
+ .sp
1199
+ .RS 4
1200
+ .ie n \{\
1201
+ \h'-04'\(bu\h'+03'\c
1202
+ .\}
1203
+ .el \{\
1204
+ .sp -1
1205
+ .IP \(bu 2.3
1206
+ .\}
1207
+ Add
1208
+ gem:spec
1209
+ task to generate a gemspec file for your project\&.
1210
+ .RE
1211
+ .sp
1212
+ .RS 4
1213
+ .ie n \{\
1214
+ \h'-04'\(bu\h'+03'\c
1215
+ .\}
1216
+ .el \{\
1217
+ .sp -1
1218
+ .IP \(bu 2.3
1219
+ .\}
1220
+ Allow gem package to be built via
1221
+ gem build *\&.gemspec
1222
+ as
1223
+ \m[blue]\fBYehuda Katz suggests\fR\m[]\&\s-2\u[3]\d\s+2\&.
1224
+ .RE
1225
+ .PP
1226
+ \fBBug fixes\fR
1227
+ .sp
1228
+ .RS 4
1229
+ .ie n \{\
1230
+ \h'-04'\(bu\h'+03'\c
1231
+ .\}
1232
+ .el \{\
1233
+ .sp -1
1234
+ .IP \(bu 2.3
1235
+ .\}
1236
+ Make old and new files read\-only before merging\&.
1237
+ .RE
1238
+ .PP
1239
+ \fBDocumentation\fR
1240
+ .sp
1241
+ .RS 4
1242
+ .ie n \{\
1243
+ \h'-04'\(bu\h'+03'\c
1244
+ .\}
1245
+ .el \{\
1246
+ .sp -1
1247
+ .IP \(bu 2.3
1248
+ .\}
1249
+ Add diffuse tool to the example merge2 script\&.
1250
+ .RE
1251
+ .sp
1252
+ .RS 4
1253
+ .ie n \{\
1254
+ \h'-04'\(bu\h'+03'\c
1255
+ .\}
1256
+ .el \{\
1257
+ .sp -1
1258
+ .IP \(bu 2.3
1259
+ .\}
1260
+ Reduce font size to accomodate small screens\&.
1261
+ .RE
1262
+ .PP
1263
+ \fBHousekeeping\fR
1264
+ .sp
1265
+ .RS 4
1266
+ .ie n \{\
1267
+ \h'-04'\(bu\h'+03'\c
1268
+ .\}
1269
+ .el \{\
1270
+ .sp -1
1271
+ .IP \(bu 2.3
1272
+ .\}
1273
+ Omit CREDITS file from gem: help manual already includes it\&.
1274
+ .RE
1117
1275
  .SS "Version 5\&.1\&.0 (2010\-08\-14)"
1118
1276
  .sp
1119
1277
  This release uses [Pygments] for syntax highlighting, adds icons to admonitions, speeds up the \fBpub:web\fR task, and further refines the HTML version of your project\(cqs help manual\&.
@@ -1221,7 +1379,7 @@ This release emits hyperlink URLs in the generated UNIX manpage, beautifies the
1221
1379
  Emit hyperlink URLs when rendering the help manual into UNIX manpage format by using xsltproc(1) instead of a2x(1)\&. Thanks to Rainer Müller on the
1222
1380
  [AsciiDoc]
1223
1381
  mailing list for
1224
- \m[blue]\fBhelping me find the solution\fR\m[]\&\s-2\u[3]\d\s+2
1382
+ \m[blue]\fBhelping me find the solution\fR\m[]\&\s-2\u[4]\d\s+2
1225
1383
  to this problem\&.
1226
1384
  .RE
1227
1385
  .sp
@@ -1453,7 +1611,7 @@ This release fixes a bug in gem version dependency establishment\&.
1453
1611
  .\}
1454
1612
  Gem version dependencies were not being established in Ruby 1\&.8\&.7 and 1\&.9\&.2 because
1455
1613
  Kernel#gem
1456
- \m[blue]\fBis a private method\fR\m[]\&\s-2\u[4]\d\s+2
1614
+ \m[blue]\fBis a private method\fR\m[]\&\s-2\u[5]\d\s+2
1457
1615
  in those Ruby versions\&.
1458
1616
  .sp
1459
1617
  To propagate this fix into your projects, please reinitialize them with this version of Inochi\&.
@@ -1758,8 +1916,8 @@ Task files were not loaded in correct order\&. As a result, certain Inochi tasks
1758
1916
  .\}
1759
1917
  .nf
1760
1918
  inochi aborted!
1761
- Don\'t know how to build task \'\'
1762
- /usr/lib/ruby/gems/1\&.9\&.1/gems/rake\-0\&.8\&.7/lib/rake\&.rb:1728:in `[]\'
1919
+ Don\*(Aqt know how to build task \*(Aq\*(Aq
1920
+ /usr/lib/ruby/gems/1\&.9\&.1/gems/rake\-0\&.8\&.7/lib/rake\&.rb:1728:in `[]\*(Aq
1763
1921
  (See full trace by running task with \-\-trace)
1764
1922
  .fi
1765
1923
  .if n \{\
@@ -2021,8 +2179,8 @@ Add instructions for building gems without Inochi as a runtime dependency\&.
2021
2179
  .IP \(bu 2.3
2022
2180
  .\}
2023
2181
  Put release notes in "description" field of gemspec, as
2024
- \m[blue]\fBsuggested by Eric Hodel\fR\m[]\&\s-2\u[5]\d\s+2, so that subscribers of
2025
- \m[blue]\fBthe RubyForge gems feed\fR\m[]\&\s-2\u[6]\d\s+2
2182
+ \m[blue]\fBsuggested by Eric Hodel\fR\m[]\&\s-2\u[6]\d\s+2, so that subscribers of
2183
+ \m[blue]\fBthe RubyForge gems feed\fR\m[]\&\s-2\u[7]\d\s+2
2026
2184
  are aware of the changes in a published gem\&.
2027
2185
  .RE
2028
2186
  .sp
@@ -2045,7 +2203,7 @@ Set the "date" field in gemspec to project release date\&.
2045
2203
  .sp -1
2046
2204
  .IP \(bu 2.3
2047
2205
  .\}
2048
- Change file extension of generated user manuals from \&.xhtml to \&.html to accomodate Microsoft web browsers\' inability to process the application/xhtml+xml mime type\&.
2206
+ Change file extension of generated user manuals from \&.xhtml to \&.html to accomodate Microsoft web browsers\*(Aq inability to process the application/xhtml+xml mime type\&.
2049
2207
  .RE
2050
2208
  .PP
2051
2209
  \fBBug fixes\fR
@@ -2215,9 +2373,9 @@ ERBook 7\&.1\&.0 is now used for generating the user manual\&. This is a major s
2215
2373
  .IP \(bu 2.3
2216
2374
  .\}
2217
2375
 
2218
- \m[blue]\fBSDoc\fR\m[]\&\s-2\u[7]\d\s+2
2376
+ \m[blue]\fBSDoc\fR\m[]\&\s-2\u[8]\d\s+2
2219
2377
  is now used to generate API documentation instead of
2220
- \m[blue]\fBYARD\fR\m[]\&\s-2\u[8]\d\s+2\&. If you link to particular classes or methods in the generated API documentation, be sure to update your link addresses!
2378
+ \m[blue]\fBYARD\fR\m[]\&\s-2\u[9]\d\s+2\&. If you link to particular classes or methods in the generated API documentation, be sure to update your link addresses!
2221
2379
  .RE
2222
2380
  .sp
2223
2381
  .RS 4
@@ -2296,7 +2454,7 @@ option\&.
2296
2454
  .IP \(bu 2.3
2297
2455
  .\}
2298
2456
  Add "lint" rake task which reports
2299
- \m[blue]\fBcode quality statistics\fR\m[]\&\s-2\u[9]\d\s+2\&.
2457
+ \m[blue]\fBcode quality statistics\fR\m[]\&\s-2\u[10]\d\s+2\&.
2300
2458
  .RE
2301
2459
  .sp
2302
2460
  .RS 4
@@ -2319,7 +2477,7 @@ Add "test:cov" rake task which reports code coverage statistics\&.
2319
2477
  .IP \(bu 2.3
2320
2478
  .\}
2321
2479
  Add "test:ruby" task which runs all tests with
2322
- \m[blue]\fBmultiruby\fR\m[]\&\s-2\u[10]\d\s+2\&.
2480
+ \m[blue]\fBmultiruby\fR\m[]\&\s-2\u[11]\d\s+2\&.
2323
2481
  .RE
2324
2482
  .sp
2325
2483
  .RS 4
@@ -2523,9 +2681,9 @@ Notify user when attempting to publish announcements in the "pub" Rake tasks\&.
2523
2681
  .IP \(bu 2.3
2524
2682
  .\}
2525
2683
  In Windows,
2526
- ENV[\'USERPROFILE\']
2684
+ ENV[\*(AqUSERPROFILE\*(Aq]
2527
2685
  gives the path to the user\(cqs home directory and
2528
- ENV[\'HOME\']
2686
+ ENV[\*(AqHOME\*(Aq]
2529
2687
  is not defined\&.
2530
2688
  .RE
2531
2689
  .sp
@@ -2549,7 +2707,7 @@ gem install \-\-force
2549
2707
  .RE
2550
2708
  .\}
2551
2709
  .sp
2552
- You should update the "Setup" section in your projects\' user manuals accordingly\&.
2710
+ You should update the "Setup" section in your projects\*(Aq user manuals accordingly\&.
2553
2711
  .RE
2554
2712
  .PP
2555
2713
  \fBHousekeeping\fR
@@ -2623,7 +2781,7 @@ This release adds support for unit testing, improves the portability of Inochi a
2623
2781
  .IP \(bu 2.3
2624
2782
  .\}
2625
2783
  Added support for unit testing via the
2626
- \m[blue]\fBminitest\fR\m[]\&\s-2\u[11]\d\s+2
2784
+ \m[blue]\fBminitest\fR\m[]\&\s-2\u[12]\d\s+2
2627
2785
  library\&.
2628
2786
  .RE
2629
2787
  .sp
@@ -2675,7 +2833,7 @@ create foobar/LICENSE
2675
2833
  .IP \(bu 2.3
2676
2834
  .\}
2677
2835
  Allow project authors to be specified via
2678
- Inochi\&.init :YourProject, :authors => [[\'name\', \'mail\']]
2836
+ Inochi\&.init :YourProject, :authors => [[\*(Aqname\*(Aq, \*(Aqmail\*(Aq]]
2679
2837
  (thanks to Florian Gilcher)
2680
2838
  .RE
2681
2839
  .PP
@@ -2743,7 +2901,7 @@ module: project name calculation and CamelCase to snake_case conversion\&.
2743
2901
  .RE
2744
2902
  .SS "Version 0\&.1\&.0 (2009\-01\-13)"
2745
2903
  .sp
2746
- This release reattempts to fix the \m[blue]\fBcircular dependency problem\fR\m[]\&\s-2\u[12]\d\s+2 that occurred when installing either Inochi or ERBook\&.
2904
+ This release reattempts to fix the \m[blue]\fBcircular dependency problem\fR\m[]\&\s-2\u[13]\d\s+2 that occurred when installing either Inochi or ERBook\&.
2747
2905
  .PP
2748
2906
  \fBNew features\fR
2749
2907
  .sp
@@ -2811,7 +2969,7 @@ This release fixes some show\-stopper bugs\&.
2811
2969
  .IP \(bu 2.3
2812
2970
  .\}
2813
2971
  The name of the project library was
2814
- \m[blue]\fBbeing determined incorrectly\fR\m[]\&\s-2\u[13]\d\s+2\&. (thanks to Florian Gilcher)
2972
+ \m[blue]\fBbeing determined incorrectly\fR\m[]\&\s-2\u[14]\d\s+2\&. (thanks to Florian Gilcher)
2815
2973
  .RE
2816
2974
  .sp
2817
2975
  .RS 4
@@ -2823,7 +2981,7 @@ The name of the project library was
2823
2981
  .IP \(bu 2.3
2824
2982
  .\}
2825
2983
  There was a
2826
- \m[blue]\fBcircular dependency problem\fR\m[]\&\s-2\u[12]\d\s+2
2984
+ \m[blue]\fBcircular dependency problem\fR\m[]\&\s-2\u[13]\d\s+2
2827
2985
  when installing the
2828
2986
  Inochi
2829
2987
  gem\&. (thanks to Florian Gilcher)
@@ -2897,7 +3055,7 @@ The "inochi\&.png" image and its "inochi\&.svg" source utilize the "3 flowers" g
2897
3055
  .sp
2898
3056
  (the ISC license)
2899
3057
  .sp
2900
- Copyright 2008 Suraj N\&. Kurapati <\m[blue]\fBsunaku@gmail\&.com\fR\m[]\&\s-2\u[14]\d\s+2>
3058
+ Copyright 2008 Suraj N\&. Kurapati <\m[blue]\fBsunaku@gmail\&.com\fR\m[]\&\s-2\u[15]\d\s+2>
2901
3059
  .sp
2902
3060
  Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies\&.
2903
3061
  .sp
@@ -2925,6 +3083,7 @@ lt lt
2925
3083
  lt lt
2926
3084
  lt lt
2927
3085
  lt lt
3086
+ lt lt
2928
3087
  lt lt.
2929
3088
  T{
2930
3089
  .sp
@@ -2935,6 +3094,13 @@ T}:T{
2935
3094
  T}
2936
3095
  T{
2937
3096
  .sp
3097
+ [Bundler]
3098
+ T}:T{
3099
+ .sp
3100
+ \m[blue]\fBhttp://gembundler\&.com\fR\m[]
3101
+ T}
3102
+ T{
3103
+ .sp
2938
3104
  [Ember]
2939
3105
  T}:T{
2940
3106
  .sp
@@ -3066,61 +3232,66 @@ ruby-wrapper
3066
3232
  \%http://github.com/chneukirchen/rup/blob/master/ruby-wrapper
3067
3233
  .RE
3068
3234
  .IP " 3." 4
3235
+ Yehuda Katz suggests
3236
+ .RS 4
3237
+ \%http://yehudakatz.com/2010/04/02/using-gemspecs-as-intended/
3238
+ .RE
3239
+ .IP " 4." 4
3069
3240
  helping me find the solution
3070
3241
  .RS 4
3071
3242
  \%http://groups.google.com/group/asciidoc/msg/949fae9deb9f86b8
3072
3243
  .RE
3073
- .IP " 4." 4
3244
+ .IP " 5." 4
3074
3245
  is a private method
3075
3246
  .RS 4
3076
3247
  \%http://redmine.ruby-lang.org/issues/show/3617
3077
3248
  .RE
3078
- .IP " 5." 4
3249
+ .IP " 6." 4
3079
3250
  suggested by Eric Hodel
3080
3251
  .RS 4
3081
3252
  \%http://www.ruby-forum.com/topic/190220#830072
3082
3253
  .RE
3083
- .IP " 6." 4
3254
+ .IP " 7." 4
3084
3255
  the RubyForge gems feed
3085
3256
  .RS 4
3086
3257
  \%http://gems.rubyforge.org/index.rss
3087
3258
  .RE
3088
- .IP " 7." 4
3259
+ .IP " 8." 4
3089
3260
  SDoc
3090
3261
  .RS 4
3091
3262
  \%http://github.com/voloko/sdoc/tree/master
3092
3263
  .RE
3093
- .IP " 8." 4
3264
+ .IP " 9." 4
3094
3265
  YARD
3095
3266
  .RS 4
3096
3267
  \%http://yard.rubyforge.org
3097
3268
  .RE
3098
- .IP " 9." 4
3269
+ .IP "10." 4
3099
3270
  code quality statistics
3100
3271
  .RS 4
3101
3272
  \%http://www.infoq.com/news/2008/11/static-analysis-tool-roundup
3102
3273
  .RE
3103
- .IP "10." 4
3274
+ .IP "11." 4
3104
3275
  multiruby
3105
3276
  .RS 4
3106
3277
  \%http://www.infoq.com/news/2008/02/multiruby-testing
3107
3278
  .RE
3108
- .IP "11." 4
3279
+ .IP "12." 4
3109
3280
  minitest
3110
3281
  .RS 4
3111
3282
  \%http://rubyforge.org/projects/bfts/
3112
3283
  .RE
3113
- .IP "12." 4
3284
+ .IP "13." 4
3114
3285
  circular dependency problem
3115
3286
  .RS 4
3116
3287
  \%http://www.ruby-forum.com/topic/176173#771281
3117
3288
  .RE
3118
- .IP "13." 4
3289
+ .IP "14." 4
3119
3290
  being determined incorrectly
3120
3291
  .RS 4
3121
3292
  \%http://www.ruby-forum.com/topic/176173#771351
3122
3293
  .RE
3123
- .IP "14." 4
3294
+ .IP "15." 4
3124
3295
  sunaku@gmail.com
3125
3296
  .RS 4
3126
3297
  \%mailto:sunaku@gmail.com
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inochi
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 5
7
- - 1
8
- - 0
9
- version: 5.1.0
4
+ prerelease:
5
+ version: 6.0.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - Suraj N. Kurapati
@@ -14,145 +10,93 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-08-14 00:00:00 -07:00
13
+ date: 2011-04-21 00:00:00 -07:00
18
14
  default_executable:
19
15
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: detest
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 1
31
- - 0
32
- version: 3.1.0
33
- - - <
34
- - !ruby/object:Gem::Version
35
- segments:
36
- - 4
37
- version: "4"
38
- type: :development
39
- version_requirements: *id001
40
16
  - !ruby/object:Gem::Dependency
41
17
  name: ember
42
18
  prerelease: false
43
- requirement: &id002 !ruby/object:Gem::Requirement
19
+ requirement: &id001 !ruby/object:Gem::Requirement
44
20
  none: false
45
21
  requirements:
46
22
  - - ">="
47
23
  - !ruby/object:Gem::Version
48
- segments:
49
- - 0
50
- - 3
51
- - 0
52
24
  version: 0.3.0
53
25
  - - <
54
26
  - !ruby/object:Gem::Version
55
- segments:
56
- - 1
57
27
  version: "1"
58
28
  type: :runtime
59
- version_requirements: *id002
29
+ version_requirements: *id001
60
30
  - !ruby/object:Gem::Dependency
61
31
  name: highline
62
32
  prerelease: false
63
- requirement: &id003 !ruby/object:Gem::Requirement
33
+ requirement: &id002 !ruby/object:Gem::Requirement
64
34
  none: false
65
35
  requirements:
66
36
  - - ">="
67
37
  - !ruby/object:Gem::Version
68
- segments:
69
- - 1
70
- - 5
71
38
  version: "1.5"
72
39
  - - <
73
40
  - !ruby/object:Gem::Version
74
- segments:
75
- - 2
76
41
  version: "2"
77
42
  type: :runtime
78
- version_requirements: *id003
43
+ version_requirements: *id002
79
44
  - !ruby/object:Gem::Dependency
80
45
  name: mechanize
81
46
  prerelease: false
82
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ requirement: &id003 !ruby/object:Gem::Requirement
83
48
  none: false
84
49
  requirements:
85
50
  - - ">="
86
51
  - !ruby/object:Gem::Version
87
- segments:
88
- - 1
89
52
  version: "1"
90
53
  - - <
91
54
  - !ruby/object:Gem::Version
92
- segments:
93
- - 2
94
55
  version: "2"
95
56
  type: :runtime
96
- version_requirements: *id004
57
+ version_requirements: *id003
97
58
  - !ruby/object:Gem::Dependency
98
59
  name: nokogiri
99
60
  prerelease: false
100
- requirement: &id005 !ruby/object:Gem::Requirement
61
+ requirement: &id004 !ruby/object:Gem::Requirement
101
62
  none: false
102
63
  requirements:
103
64
  - - ">="
104
65
  - !ruby/object:Gem::Version
105
- segments:
106
- - 1
107
- - 4
108
66
  version: "1.4"
109
67
  - - <
110
68
  - !ruby/object:Gem::Version
111
- segments:
112
- - 2
113
69
  version: "2"
114
70
  type: :runtime
115
- version_requirements: *id005
71
+ version_requirements: *id004
116
72
  - !ruby/object:Gem::Dependency
117
73
  name: rake
118
74
  prerelease: false
119
- requirement: &id006 !ruby/object:Gem::Requirement
75
+ requirement: &id005 !ruby/object:Gem::Requirement
120
76
  none: false
121
77
  requirements:
122
78
  - - ">="
123
79
  - !ruby/object:Gem::Version
124
- segments:
125
- - 0
126
- - 8
127
- - 4
128
80
  version: 0.8.4
129
81
  - - <
130
82
  - !ruby/object:Gem::Version
131
- segments:
132
- - 1
133
83
  version: "1"
134
84
  type: :runtime
135
- version_requirements: *id006
85
+ version_requirements: *id005
136
86
  - !ruby/object:Gem::Dependency
137
87
  name: yard
138
88
  prerelease: false
139
- requirement: &id007 !ruby/object:Gem::Requirement
89
+ requirement: &id006 !ruby/object:Gem::Requirement
140
90
  none: false
141
91
  requirements:
142
92
  - - ">="
143
93
  - !ruby/object:Gem::Version
144
- segments:
145
- - 0
146
- - 5
147
- - 8
148
94
  version: 0.5.8
149
95
  - - <
150
96
  - !ruby/object:Gem::Version
151
- segments:
152
- - 1
153
97
  version: "1"
154
98
  type: :runtime
155
- version_requirements: *id007
99
+ version_requirements: *id006
156
100
  description: Inochi is an infrastructure that helps you create, test, document, package,
157
101
  publish, and announce your [Ruby] projects.
158
102
  email:
159
103
  executables:
@@ -163,35 +107,35 @@ extra_rdoc_files: []
163
107
 
164
108
  files:
165
109
  - bin/inochi
166
- - lib/inochi.rb
167
- - lib/inochi/inochi.rb
168
- - lib/inochi/engine.rb
169
- - lib/inochi/generate.rb
170
- - lib/inochi/templates/test_helper.rb.rbs
171
110
  - lib/inochi/templates/CREDITS.rbs
172
- - lib/inochi/templates/inochi.rb.rbs
173
- - lib/inochi/templates/test_runner.rbs
174
- - lib/inochi/templates/inochi.conf.rbs
111
+ - lib/inochi/templates/INSTALL.rbs
112
+ - lib/inochi/templates/Gemfile.rbs
113
+ - lib/inochi/templates/HACKING.rbs
175
114
  - lib/inochi/templates/LICENSE.rbs
115
+ - lib/inochi/templates/MANUAL.rbs
116
+ - lib/inochi/templates/inochi.rb.rbs
176
117
  - lib/inochi/templates/README.rbs
177
- - lib/inochi/templates/HACKING.rbs
178
- - lib/inochi/templates/INSTALL.rbs
179
- - lib/inochi/templates/USAGE.rbs
118
+ - lib/inochi/templates/test_runner.rbs
180
119
  - lib/inochi/templates/library.rbs
181
- - lib/inochi/templates/command.rbs
182
- - lib/inochi/templates/HISTORY.rbs
183
120
  - lib/inochi/templates/SYNOPSIS.rbs
121
+ - lib/inochi/templates/HISTORY.rbs
122
+ - lib/inochi/templates/inochi.conf.rbs
184
123
  - lib/inochi/templates/library_test.rb.rbs
124
+ - lib/inochi/templates/USAGE.rbs
125
+ - lib/inochi/templates/test_helper.rb.rbs
126
+ - lib/inochi/templates/command.rbs
185
127
  - lib/inochi/templates/BEYOND.rbs
186
- - lib/inochi/templates/MANUAL.rbs
128
+ - lib/inochi/generate.rb
129
+ - lib/inochi/inochi.rb
130
+ - lib/inochi/engine.rb
187
131
  - lib/inochi/tasks/2-man.css
188
- - lib/inochi/tasks/1-api.rake
189
132
  - lib/inochi/tasks/5-pub.rake
190
133
  - lib/inochi/tasks/3-ann.rake
191
- - lib/inochi/tasks/2-man.rake
134
+ - lib/inochi/tasks/1-api.rake
192
135
  - lib/inochi/tasks/4-gem.rake
136
+ - lib/inochi/tasks/2-man.rake
137
+ - lib/inochi.rb
193
138
  - LICENSE
194
- - CREDITS
195
139
  - man/man1/inochi.1
196
140
  has_rdoc: true
197
141
  homepage: http://snk.tuxfamily.org/lib/inochi/
@@ -207,21 +151,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
151
  requirements:
208
152
  - - ">="
209
153
  - !ruby/object:Gem::Version
210
- segments:
211
- - 0
212
154
  version: "0"
213
155
  required_rubygems_version: !ruby/object:Gem::Requirement
214
156
  none: false
215
157
  requirements:
216
158
  - - ">="
217
159
  - !ruby/object:Gem::Version
218
- segments:
219
- - 0
220
160
  version: "0"
221
161
  requirements: []
222
162
 
223
163
  rubyforge_project:
224
- rubygems_version: 1.3.7
164
+ rubygems_version: 1.6.2
225
165
  signing_key:
226
166
  specification_version: 3
227
167
  summary: Gives life to Ruby projects
data/CREDITS DELETED
@@ -1,15 +0,0 @@
1
- == AUTHORS
2
-
3
- Suraj N. Kurapati
4
-
5
- === Credits
6
-
7
- Florian Gilcher,
8
- Peileppe Production,
9
- Rainer Müller
10
-
11
- %< 'logo/README'
12
-
13
- === License
14
-
15
- %< 'LICENSE'