rbfam 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a266530dd38f3e5f9505a9f4ed0ce6ca4ccdea89
4
- data.tar.gz: 2d0376d8ba04b9afe22a7d434f75d9e8bc17a4d2
3
+ metadata.gz: 72736d685dc023b81de0d42d323299e5cdf1c7e7
4
+ data.tar.gz: b68c6070354e1066d9616aaa11fdc8a34e708668
5
5
  SHA512:
6
- metadata.gz: e1534185f816b75dc489fd5b92bb37f5e133a1cf2c6f9c7dbb65fda8184bb8cd7d7ffb5b40e6ca10a608b75355a209246ad41843e9def666f8c9a07422d846a7
7
- data.tar.gz: cbdf33c78a5a248a5eb59a02a39affaa6b3ed66fd51651a68e8ac0db18c2ed22157b891a4a2a5c16d37fff48a4c0a8d20a37d008b5e2da251c16639f914402af
6
+ metadata.gz: 19a5fa18cc57e0c6b1ec139609d842e69b6938491dd65bb4e5abe734130e49642b7325d37c142f4121e0055c2202310b26c66affe9c3a959ac6dbf2c5b49b573
7
+ data.tar.gz: bdc862b5010cc551ed10f6444d097f6e8af8c4b660c2d499fd08500dbb55565e8672a9d918d302f7a95ddba5afb381b2db0e5d8d4cb615aeb179dafc023f234c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbfam (0.2.0)
4
+ rbfam (0.2.1)
5
5
  activerecord
6
6
  activesupport
7
7
  bio (~> 1.4, >= 1.4.2)
@@ -1,5 +1,3 @@
1
- # SequenceTable(id: integer, family: string, accession: string, sequence: text, sequence_length: integer, from: integer, to: integer, seq_from: integer, seq_to: integer, seed: boolean, created_at: datetime, updated_at: datetime, extended: boolean)
2
-
3
1
  require "mysql2"
4
2
  require "active_record"
5
3
 
@@ -8,7 +6,7 @@ module Rbfam
8
6
  class Sequence < ActiveRecord::Base
9
7
  belongs_to :alignment
10
8
 
11
- validates_uniqueness_of :accession, scope: [:sequence, :seq_from, :seq_to]
9
+ validates_uniqueness_of :accession, scope: [:stripped_sequence, :from, :to]
12
10
 
13
11
  def self.connect
14
12
  ActiveRecord::Base.establish_connection(config = { adapter: "mysql2", username: "root", reconnect: true })
@@ -24,7 +22,7 @@ module Rbfam
24
22
 
25
23
  def to_rbfam(family = nil)
26
24
  # Should use a singleton pattern here to look up the family.
27
- ::Rbfam::Sequence.new(family || Rbfam::Family.new(family), accession, from, to, { sequence: sequence })
25
+ ::Rbfam::Sequence.new(family || Rbfam::Family.new(family), accession, from, to, { sequence: stripped_sequence })
28
26
  end
29
27
  end
30
28
 
data/lib/rbfam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rbfam
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbfam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Senter
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  requirements: []
249
249
  rubyforge_project:
250
- rubygems_version: 2.4.4
250
+ rubygems_version: 2.4.5
251
251
  signing_key:
252
252
  specification_version: 4
253
253
  summary: Bindings to Rfam.