File: add-version-gemspec.patch

package info (click to toggle)
ruby-tsort 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 140 kB
  • sloc: ruby: 91; makefile: 4; sh: 4
file content (17 lines) | stat: -rw-r--r-- 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/tsort.gemspec
+++ b/tsort.gemspec
@@ -1,13 +1,8 @@
 name = File.basename(__FILE__, ".gemspec")
-version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
-  break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
-    /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
-  end rescue nil
-end
 
 Gem::Specification.new do |spec|
   spec.name          = name
-  spec.version       = version
+  spec.version       = "0.2.0"
   spec.authors       = ["Tanaka Akira"]
   spec.email         = ["akr@fsij.org"]