bio-samtools 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ before_install:
3
+ - sudo apt-get update
4
+ - sudo apt-get install zlib1g-dev libncurses5-dev libtinfo-dev
5
+ before_script:
6
+ - cd ext
7
+ - ruby mkrf_conf.rb
8
+ - rake -f Rakefile
9
+ - cd ../
10
+ rvm:
11
+ - 1.9.3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/bio-samtools.gemspec CHANGED
@@ -4,21 +4,25 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "bio-samtools"
8
- s.version = "0.5.2"
7
+ s.name = %q{bio-samtools}
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ricardo Ramirez-Gonzalez", "Dan MacLean", "Raoul J.P. Bonnal"]
12
- s.date = "2012-03-14"
13
- s.description = "Binder of samtools for ruby, on the top of FFI. \n\n This project was born from the need to add support of BAM files to \n the gee_fu genome browser (http://github.com/danmaclean/gee_fu)."
14
- s.email = "ilpuccio.febo@gmail.com"
15
- s.extensions = ["ext/mkrf_conf.rb"]
11
+ s.authors = [%q{Ricardo Ramirez-Gonzalez}, %q{Dan MacLean}, %q{Raoul J.P. Bonnal}]
12
+ s.date = %q{2012-04-14}
13
+ s.description = %q{Binder of samtools for ruby, on the top of FFI.
14
+
15
+ This project was born from the need to add support of BAM files to
16
+ the gee_fu genome browser (http://github.com/danmaclean/gee_fu).}
17
+ s.email = %q{ilpuccio.febo@gmail.com}
18
+ s.extensions = [%q{ext/mkrf_conf.rb}]
16
19
  s.extra_rdoc_files = [
17
20
  "LICENSE.txt",
18
21
  "README.rdoc"
19
22
  ]
20
23
  s.files = [
21
24
  ".document",
25
+ ".travis.yml",
22
26
  "Gemfile",
23
27
  "Gemfile.lock",
24
28
  "LICENSE.txt",
@@ -153,7 +157,6 @@ Gem::Specification.new do |s|
153
157
  "doc/tutorial.html",
154
158
  "doc/tutorial.pdf",
155
159
  "ext/Makefile-bioruby.patch",
156
- "ext/Rakefile",
157
160
  "ext/mkrf_conf.rb",
158
161
  "lib/bio-samtools.rb",
159
162
  "lib/bio/.DS_Store",
@@ -191,11 +194,11 @@ Gem::Specification.new do |s|
191
194
  "test/test_bio-samtools.rb",
192
195
  "test/test_vcf.rb"
193
196
  ]
194
- s.homepage = "http://github.com/helios/bioruby-samtools"
195
- s.licenses = ["MIT"]
196
- s.require_paths = ["lib"]
197
- s.rubygems_version = "1.8.10"
198
- s.summary = "Binder of samtools for ruby, on the top of FFI."
197
+ s.homepage = %q{http://github.com/helios/bioruby-samtools}
198
+ s.licenses = [%q{MIT}]
199
+ s.require_paths = [%q{lib}]
200
+ s.rubygems_version = %q{1.8.6}
201
+ s.summary = %q{Binder of samtools for ruby, on the top of FFI.}
199
202
 
200
203
  if s.respond_to? :specification_version then
201
204
  s.specification_version = 3
@@ -3,7 +3,7 @@
3
3
  @@ -1,10 +1,11 @@
4
4
  CC= gcc
5
5
  -CFLAGS= -g -Wall -O2 #-m64 #-arch ppc
6
- +CFLAGS= -g -Wall -O2 -m64 -fPIC #-arch ppc
6
+ +CFLAGS= -g -Wall -O2 -fPIC #-m64 #-fPIC #-arch ppc
7
7
  DFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1
8
8
  KNETFILE_O= knetfile.o
9
9
  LOBJS= bgzf.o kstring.o bam_aux.o bam.o bam_import.o sam.o bam_index.o \
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-samtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-14 00:00:00.000000000 Z
14
+ date: 2012-04-14 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: ffi
18
- requirement: &2168700900 !ruby/object:Gem::Requirement
18
+ requirement: &2155890140 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2168700900
26
+ version_requirements: *2155890140
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bio
29
- requirement: &2168700160 !ruby/object:Gem::Requirement
29
+ requirement: &2153046360 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.4.2
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2168700160
37
+ version_requirements: *2153046360
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: shoulda
40
- requirement: &2168699180 !ruby/object:Gem::Requirement
40
+ requirement: &2153045200 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2168699180
48
+ version_requirements: *2153045200
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &2168698320 !ruby/object:Gem::Requirement
51
+ requirement: &2153043840 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 1.0.0
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2168698320
59
+ version_requirements: *2153043840
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: jeweler
62
- requirement: &2168697320 !ruby/object:Gem::Requirement
62
+ requirement: &2153042320 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2168697320
70
+ version_requirements: *2153042320
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rcov
73
- requirement: &2168696260 !ruby/object:Gem::Requirement
73
+ requirement: &2153039920 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2168696260
81
+ version_requirements: *2153039920
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: bio
84
- requirement: &2168695500 !ruby/object:Gem::Requirement
84
+ requirement: &2153031660 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 1.4.2
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2168695500
92
+ version_requirements: *2153031660
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: ffi
95
- requirement: &2152334180 !ruby/object:Gem::Requirement
95
+ requirement: &2153030200 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2152334180
103
+ version_requirements: *2153030200
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rdoc
106
- requirement: &2152333420 !ruby/object:Gem::Requirement
106
+ requirement: &2153028420 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,7 +111,7 @@ dependencies:
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2152333420
114
+ version_requirements: *2153028420
115
115
  description: ! "Binder of samtools for ruby, on the top of FFI. \n\n This project
116
116
  was born from the need to add support of BAM files to \n the gee_fu genome browser
117
117
  (http://github.com/danmaclean/gee_fu)."
@@ -124,6 +124,7 @@ extra_rdoc_files:
124
124
  - README.rdoc
125
125
  files:
126
126
  - .document
127
+ - .travis.yml
127
128
  - Gemfile
128
129
  - Gemfile.lock
129
130
  - LICENSE.txt
@@ -258,7 +259,6 @@ files:
258
259
  - doc/tutorial.html
259
260
  - doc/tutorial.pdf
260
261
  - ext/Makefile-bioruby.patch
261
- - ext/Rakefile
262
262
  - ext/mkrf_conf.rb
263
263
  - lib/bio-samtools.rb
264
264
  - lib/bio/.DS_Store
@@ -310,7 +310,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
310
310
  version: '0'
311
311
  segments:
312
312
  - 0
313
- hash: -37499078565960311
313
+ hash: -2712419178803943908
314
314
  required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  none: false
316
316
  requirements:
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  version: '0'
320
320
  requirements: []
321
321
  rubyforge_project:
322
- rubygems_version: 1.8.10
322
+ rubygems_version: 1.8.6
323
323
  signing_key:
324
324
  specification_version: 3
325
325
  summary: Binder of samtools for ruby, on the top of FFI.
data/ext/Rakefile DELETED
@@ -1,55 +0,0 @@
1
- require 'rbconfig'
2
- require 'open-uri'
3
- require 'fileutils'
4
- include FileUtils::Verbose
5
- require 'rake/clean'
6
-
7
- URL = "http://sourceforge.net/projects/samtools/files/samtools/0.1.18/samtools-0.1.18.tar.bz2/download"
8
-
9
- task :download do
10
- open(URL) do |uri|
11
- File.open("samtools-0.1.18.tar.bz2",'wb') do |fout|
12
- fout.write(uri.read)
13
- end #fout
14
- end #uri
15
- end
16
-
17
- task :compile do
18
- sh "tar xvfj samtools-0.1.18.tar.bz2"
19
- cd("samtools-0.1.18") do
20
- sh "patch < ../Makefile-bioruby.patch"
21
- case Config::CONFIG['host_os']
22
- when /linux/
23
- #sh "CFLAGS='-g -Wall -O2 -fPIC' make -e"
24
- sh "make"
25
- cp("libbam.a","/Users/macleand/bioruby-samtools/ext/../lib/bio/db/sam/external")
26
- #sh "CFLAGS='-g -Wall -O2 -fPIC' make -e libbam.so.1-local"
27
- sh "make libbam.so.1-local"
28
- cp("samtools", "/Users/macleand/bioruby-samtools/ext/../lib/bio/db/sam/external")
29
- cp("libbam.so.1","/Users/macleand/bioruby-samtools/ext/../lib/bio/db/sam/external")
30
- when /darwin/
31
- sh "make"
32
- cp("libbam.a","/Users/macleand/bioruby-samtools/ext/../lib/bio/db/sam/external")
33
- sh "make libbam.1.dylib-local"
34
- cp("libbam.1.dylib","/Users/macleand/bioruby-samtools/ext/../lib/bio/db/sam/external")
35
- sh "make"
36
- cp('samtools', "/Users/macleand/bioruby-samtools/ext/../lib/bio/db/sam/external")
37
- when /mswin|mingw/ then raise NotImplementedError, "BWA library is not available for Windows platform"
38
- end #case
39
- end #cd
40
- cd("samtools-0.1.18/bcftools") do
41
- sh "make"
42
- cp('bcftools', "/Users/macleand/bioruby-samtools/ext/../lib/bio/db/sam/external")
43
- end
44
- end
45
-
46
- task :clean do
47
- cd("samtools-0.1.18") do
48
- sh "make clean"
49
- end
50
- rm("samtools-0.1.18.tar.bz2")
51
- rm_rf("samtools-0.1.18")
52
- end
53
-
54
- task :default => [:download, :compile, :clean]
55
-