Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed version printing on repl.

  • Loading branch information...
commit c019846dd7efbb3071b94dfdb6015545cc4066cf 1 parent 13d8289
@vic authored
View
4 LICENSE
@@ -8,14 +8,14 @@ modification, are permitted provided that the following conditions are met:
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- * Neither the name of the <organization> nor the
+ * Neither the name of the original authors nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
View
2  Rakefile
@@ -19,7 +19,7 @@ spec = Gem::Specification.new do |s|
require File.expand_path('../lib/typhon/version', __FILE__)
s.name = "typhon"
- s.version = Typhon::VERSION.to_s
+ s.version = Typhon::Version.to_s
s.specification_version = 2 if s.respond_to? :specification_version=
View
4 lib/typhon/main.rb
@@ -98,12 +98,12 @@ def options(argv)
end
options.on "-V", "Print Python version and exit" do
- puts VERSION.python_string
+ puts Version.python_string
exit 0
end
options.on "--version", "Print version and exit" do
- puts VERSION.full_string
+ puts Version.full_string
exit 0
end
View
2  lib/typhon/repl.rb
@@ -15,7 +15,7 @@ def prompt(lineno = 1, level = 1, print_line = false)
end
def header
- puts VERSION.full_string
+ puts Version.full_string
puts 'Type "help", "copyright", "credits" or "license" for more information.'
end
View
2  lib/typhon/version.rb
@@ -2,7 +2,7 @@
module Typhon
- module VERSION
+ module Version
extend self
attr_accessor :major, :minor, :tiny, :commit, :codename, :tagline
Please sign in to comment.
Something went wrong with that request. Please try again.