binman 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.markdown CHANGED
@@ -1,3 +1,16 @@
1
+ ------------------------------------------------------------------------------
2
+ Version 3.0.0 (2012-01-09)
3
+ ------------------------------------------------------------------------------
4
+
5
+ Breaking changes:
6
+
7
+ * Removed the `binman/gemspec` helper library because it did not play well
8
+ with Bundler. Use the standard `add_runtime_dependency` method instead.
9
+
10
+ External changes:
11
+
12
+ * The `binman/Rakefile` helper library now hooks into Bundler's Rake tasks.
13
+
1
14
  ------------------------------------------------------------------------------
2
15
  Version 2.0.0 (2011-12-06)
3
16
  ------------------------------------------------------------------------------
data/README.markdown CHANGED
@@ -2,16 +2,16 @@ binman - UNIX man pages for Ruby bin/ scripts
2
2
  ==============================================================================
3
3
 
4
4
  [binman] produces UNIX man pages for your Ruby `bin/` scripts using
5
- markdown(7), roff(7), [Redcarpet2] for conversion thereof, and man(1).
5
+ markdown(7), roff(7), [md2man] for conversion thereof, and man(1).
6
6
 
7
- ![Obligatory Screen-shot of binman(1) in action!](http://ompldr.org/vYXNlNg)
7
+ ![Obligatory Screen-shot of binman(1) in action!](http://ompldr.org/vYm5mcg)
8
8
 
9
- Here is [an example bin/ script][binman-bin] to help get you started!
9
+ Here is [an example bin/ script][binman-bin] to help you get started!
10
10
 
11
11
  [binman]: https://github.com/sunaku/binman
12
12
  [binman-api]: http://rdoc.info/github/sunaku/binman
13
13
  [binman-bin]: https://raw.github.com/sunaku/binman/master/bin/binman
14
- [Redcarpet2]: https://github.com/tanoku/redcarpet
14
+ [md2man]: https://github.com/sunaku/md2man
15
15
 
16
16
  ------------------------------------------------------------------------------
17
17
  Features
@@ -83,7 +83,7 @@ See the [API documentation][binman-api] for more delicious recipes.
83
83
 
84
84
  Add the following line to your `Rakefile` and you've got a `binman` task!
85
85
 
86
- require 'binman/rake_tasks'
86
+ require 'binman/rakefile'
87
87
 
88
88
  It will pre-build UNIX man page files for your `bin/` scripts into a `man/`
89
89
  directory so that your end-users do not need the markdown to roff converter
data/bin/binman CHANGED
@@ -2,7 +2,7 @@
2
2
  # encoding: utf-8
3
3
  =begin
4
4
 
5
- BINMAN 1 "2011-12-06" "2.0.0"
5
+ BINMAN 1 "2012-01-09" "3.0.0"
6
6
  =============================
7
7
 
8
8
  NAME
@@ -20,7 +20,7 @@ DESCRIPTION
20
20
 
21
21
  [binman] produces UNIX man pages for your Ruby `bin/` scripts. It can extract
22
22
  their leading comment headers (defined below), convert them from markdown(7)
23
- into roff(7) using [md2man] and [Redcarpet2], and display them using man(1).
23
+ into roff(7) using [md2man], and display them using man(1).
24
24
 
25
25
  ### Leading Comment Headers
26
26
 
data/binman.gemspec CHANGED
@@ -1,24 +1,20 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
  require "binman/version"
4
- require "binman/gemspec"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = "binman"
8
- s.version = BinMan::VERSION
6
+ s.name = "binman"
7
+ s.version = BinMan::VERSION
9
8
  s.authors,
10
- s.email = File.read('LICENSE').scan(/Copyright \d+ (.+) <(.+?)>/).transpose
11
- s.homepage = "http://github.com/sunaku/binman"
12
- s.summary = "UNIX man pages for Ruby bin/ scripts"
13
- s.description = nil
9
+ s.email = File.read('LICENSE').scan(/Copyright \d+ (.+) <(.+?)>/).transpose
10
+ s.homepage = "http://github.com/sunaku/binman"
11
+ s.summary = "UNIX man pages for Ruby bin/ scripts"
12
+ s.description = nil
14
13
 
15
- s.files = `git ls-files`.split("\n")
14
+ s.files = `git ls-files`.split("\n") + Dir["man/**/*"]
16
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
17
  s.require_paths = ["lib"]
19
18
 
20
- # specify any dependencies here; for example:
21
- # s.add_development_dependency "rspec"
22
- # s.add_runtime_dependency "rest-client"
23
19
  s.add_development_dependency "md2man", "~> 1"
24
20
  end
@@ -1,9 +1,12 @@
1
1
  require 'rake'
2
2
 
3
- path = 'man/man1'
3
+ directory path = 'man/man1'
4
4
  bins = FileList['bin/*']
5
5
  mans = bins.pathmap("#{path}/%n.1")
6
6
 
7
+ desc 'Build UNIX man pages for bin/ scripts.'
8
+ task :binman => mans
9
+
7
10
  bins.zip(mans).each do |bin, man|
8
11
  file man => [bin, path] do
9
12
  require 'binman'
@@ -12,7 +15,5 @@ bins.zip(mans).each do |bin, man|
12
15
  end
13
16
  end
14
17
 
15
-
16
- desc 'Build UNIX man pages for bin/ scripts.'
17
- task :binman => mans
18
- directory path
18
+ # build man pages before building ruby gem using bundler
19
+ %w[build install release].each {|t| task t => :binman }
@@ -1,3 +1,3 @@
1
1
  module BinMan
2
- VERSION = "2.0.0"
2
+ VERSION = "3.0.0"
3
3
  end
data/man/man1/binman.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH BINMAN 1 "2011\-12\-06" "2.0.0"
1
+ .TH BINMAN 1 "2012\-01\-09" "3.0.0"
2
2
  .SH NAME
3
3
  .PP
4
4
  binman \- UNIX man pages for Ruby \fB\fCbin/\fR scripts
@@ -17,9 +17,6 @@ into
17
17
  .BR roff (7)
18
18
  using md2man
19
19
  .UR https://github.com/sunaku/md2man
20
- .UE
21
- and Redcarpet2
22
- .UR https://github.com/tanoku/redcarpet
23
20
  .UE , and display them using
24
21
  .BR man (1).
25
22
  .SS Leading Comment Headers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binman
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-07 00:00:00.000000000 Z
12
+ date: 2012-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: md2man
16
- requirement: &13240480 !ruby/object:Gem::Requirement
16
+ requirement: &17179080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '1'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *13240480
24
+ version_requirements: *17179080
25
25
  description: ''
26
26
  email:
27
27
  - sunaku@gmail.com
@@ -39,7 +39,6 @@ files:
39
39
  - bin/binman
40
40
  - binman.gemspec
41
41
  - lib/binman.rb
42
- - lib/binman/gemspec.rb
43
42
  - lib/binman/rakefile.rb
44
43
  - lib/binman/version.rb
45
44
  - man/man1/binman.1
@@ -1,27 +0,0 @@
1
- require 'rubygems'
2
-
3
- class Gem::Specification
4
- alias _582ab9fd_ffc8_4972_b37f_1a46031a9163 initialize
5
- def initialize *args, &block
6
- _582ab9fd_ffc8_4972_b37f_1a46031a9163(*args, &block)
7
-
8
- # pre-build man page files
9
- require 'binman/rakefile'
10
- Rake::Task[:binman].invoke
11
-
12
- # and add them to the gem
13
- self.files += Dir['man/**/*']
14
-
15
- # add binman as dependency
16
- if self.name and self.name != 'binman'
17
- require 'binman/version'
18
- binman_gem = ['binman', "~> #{BinMan::VERSION[/\d+/]}"]
19
- self.add_runtime_dependency(*binman_gem)
20
- binman_vers = Gem::Dependency.new(*binman_gem)
21
- binman_spec = Gem::SpecFetcher.fetcher.fetch(binman_vers).flatten.first
22
- binman_spec.development_dependencies.unshift(binman_vers).each do |dep|
23
- self.add_development_dependency dep.name, dep.requirements_list
24
- end
25
- end
26
- end
27
- end