From cab85f3de30058cdfdff370b215117aaa383a150 Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Thu, 24 Apr 2014 13:53:37 -0500 Subject: [PATCH 1/2] Adding Linguist::VERSION --- lib/linguist.rb | 1 + lib/linguist/version.rb | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 lib/linguist/version.rb diff --git a/lib/linguist.rb b/lib/linguist.rb index ad8337c8..3714b5a0 100644 --- a/lib/linguist.rb +++ b/lib/linguist.rb @@ -4,3 +4,4 @@ require 'linguist/heuristics' require 'linguist/language' require 'linguist/repository' require 'linguist/samples' +require 'linguist/version' diff --git a/lib/linguist/version.rb b/lib/linguist/version.rb new file mode 100644 index 00000000..07042275 --- /dev/null +++ b/lib/linguist/version.rb @@ -0,0 +1,3 @@ +module Linguist + VERSION = "2.10.13" +end \ No newline at end of file From fd7db27b48702a3f7d7df91bee9a13f37cf79406 Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Thu, 24 Apr 2014 14:09:10 -0500 Subject: [PATCH 2/2] Using Linguist::VERSION in gemspec --- github-linguist.gemspec | 4 +++- lib/linguist/version.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/github-linguist.gemspec b/github-linguist.gemspec index 53e32190..9d2f73c1 100644 --- a/github-linguist.gemspec +++ b/github-linguist.gemspec @@ -1,6 +1,8 @@ +require File.expand_path('../lib/linguist/version', __FILE__) + Gem::Specification.new do |s| s.name = 'github-linguist' - s.version = '2.10.13' + s.version = Linguist::VERSION s.summary = "GitHub Language detection" s.description = 'We use this library at GitHub to detect blob languages, highlight code, ignore binary files, suppress generated files in diffs, and generate language breakdown graphs.' diff --git a/lib/linguist/version.rb b/lib/linguist/version.rb index 07042275..804253f7 100644 --- a/lib/linguist/version.rb +++ b/lib/linguist/version.rb @@ -1,3 +1,3 @@ module Linguist VERSION = "2.10.13" -end \ No newline at end of file +end