sfp 0.3.8 → 0.3.9

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.md CHANGED
@@ -1,7 +1,7 @@
1
1
  SFP Language Parser
2
2
  ===================
3
3
  - Author: Herry (herry13@gmail.com)
4
- - Version: 0.3.8
4
+ - [Version](https://github.com/herry13/sfp-ruby/blob/master/VERSION)
5
5
  - License: [BSD License](https://github.com/herry13/sfp-ruby/blob/master/LICENSE)
6
6
 
7
7
  A Ruby gem that provides a Ruby interface to parse [SFP language](https://github.com/herry13/nuri/wiki/SFP-language), a declarative language to specify a planning task.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.3.9
data/bin/sfp CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- libdir = File.expand_path(File.dirname(__FILE__))
4
- require "#{libdir}/../lib/sfp"
3
+ dir = File.expand_path(File.dirname(__FILE__))
4
+ require "#{dir}/../lib/sfp"
5
5
  require 'yaml'
6
6
 
7
7
  opts = Trollop::options do
8
- version "sfp 0.3.8 (c) 2013 Herry"
8
+ version "sfp " + File.read("#{dir}/../VERSION").sub(/\n/, '') + " (c) 2013 Herry"
9
9
  banner <<-EOS
10
10
  Parse a SFP file and print the result in JSON format.
11
11