sbfaulkner-pygmalion 0.9.1 → 0.9.2

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/README.markdown CHANGED
@@ -20,6 +20,19 @@ Install the gem(s):
20
20
 
21
21
  $ sudo gem install -r sbfaulkner-pygmalion
22
22
 
23
+ ## Usage
24
+
25
+ In ruby...
26
+
27
+ require 'pygmalion'
28
+ ...
29
+ string.highlight
30
+ string.highlight(:language => 'js')
31
+ string.highlight(:language => 'rb', :line_numbers => true)
32
+
33
+ From the command-line...
34
+
35
+ pygmalion
23
36
  ## Example
24
37
 
25
38
  File.read('hello.rb').highlight
@@ -30,7 +43,6 @@ Results in...
30
43
  <span class="n">puts</span> <span class="s">&quot;hello&quot;</span>
31
44
  <span class="n">end</span>
32
45
  </pre></div>'
33
-
34
46
 
35
47
 
36
48
  ## Legal
data/bin/pygmalion CHANGED
@@ -3,6 +3,8 @@
3
3
  require 'rubygems'
4
4
  require 'getoptlong'
5
5
 
6
+ require 'pygmalion'
7
+
6
8
  opts = GetoptLong.new(
7
9
  [ "--help", "-h", GetoptLong::NO_ARGUMENT ],
8
10
  [ "--language", "-l", GetoptLong::REQUIRED_ARGUMENT ],
@@ -19,8 +21,9 @@ OPTIONS = {
19
21
  opts.each do |opt, arg|
20
22
  case opt
21
23
  when '--help'
22
- puts "Usage: #{File.basename(ARGV[0])} [options] [file ...]"
24
+ puts "Usage: pygmalion [options] [file ...]"
23
25
  puts "\nOptions:"
26
+ puts " -h, --help Display this message."
24
27
  puts " -l, --language=name The language for the code to be highlighted."
25
28
  puts " -n, --line-numbers Include line numbers."
26
29
  exit 1
data/pygmalion.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  SPEC = Gem::Specification.new do |s|
2
2
  # identify the gem
3
3
  s.name = "pygmalion"
4
- s.version = "0.9.1"
4
+ s.version = "0.9.2"
5
5
  s.author = "S. Brent Faulkner"
6
6
  s.email = "brentf@unwwwired.net"
7
7
  s.homepage = "http://www.unwwwired.net"
@@ -15,6 +15,6 @@ SPEC = Gem::Specification.new do |s|
15
15
  # s.test_file = "test/pygmalion.rb"
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ["README.markdown"]
18
- s.add_dependency "active_support"
18
+ s.add_dependency "activesupport"
19
19
  s.executables = ["pygmalion"]
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbfaulkner-pygmalion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - S. Brent Faulkner
@@ -13,7 +13,7 @@ date: 2008-08-13 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: active_support
16
+ name: activesupport
17
17
  version_requirement:
18
18
  version_requirements: !ruby/object:Gem::Requirement
19
19
  requirements: