genomer-plugin-view 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.required_rubygems_version = "~> 1.8.0"
17
17
  s.rubyforge_project = "genomer-view-plugin"
18
18
 
19
- s.add_dependency "genomer", ">= 0.0.5"
19
+ s.add_dependency "genomer", ">= 0.0.6"
20
20
 
21
21
  # Specs
22
22
  s.add_development_dependency "rspec", "~> 2.9.0"
@@ -38,7 +38,7 @@ class GenomerPluginView::Table < Genomer::Plugin
38
38
 
39
39
  if name
40
40
  name = name.clone
41
- name[0] = name[0].upcase
41
+ name[0,1] = name[0,1].upcase
42
42
  prdt, ftn = name,prdt
43
43
  end
44
44
 
@@ -1,3 +1,3 @@
1
1
  class GenomerViewPlugin
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -187,7 +187,7 @@ describe GenomerPluginView::Table do
187
187
  end
188
188
 
189
189
  it "should set the capitalise value to the product key" do
190
- subject.should == cds({:attributes => {'product' => 'AbcD'}})
190
+ subject.should have_identical_attributes cds({:attributes => {'product' => 'AbcD'}})
191
191
  end
192
192
 
193
193
  end
@@ -203,7 +203,7 @@ describe GenomerPluginView::Table do
203
203
  end
204
204
 
205
205
  it "should not change attributes" do
206
- subject.should == cds({:attributes => attributes})
206
+ subject.should have_identical_attributes cds({:attributes => attributes})
207
207
  end
208
208
 
209
209
  end
@@ -219,7 +219,7 @@ describe GenomerPluginView::Table do
219
219
  end
220
220
 
221
221
  it "should not change attributes" do
222
- subject.should == cds({:attributes => attributes})
222
+ subject.should have_identical_attributes cds({:attributes => attributes})
223
223
  end
224
224
 
225
225
  end
@@ -227,7 +227,7 @@ describe GenomerPluginView::Table do
227
227
  describe "passed a gene with product and function attributes" do
228
228
 
229
229
  let(:attributes) do
230
- {'product' => 'abcd','function' => 'efgh'}
230
+ {'product' => 'abcd', 'function' => 'efgh'}
231
231
  end
232
232
 
233
233
  let(:annotations) do
@@ -235,7 +235,7 @@ describe GenomerPluginView::Table do
235
235
  end
236
236
 
237
237
  it "should not change attributes" do
238
- subject.should == cds({:attributes => attributes})
238
+ subject.should have_identical_attributes cds({:attributes => attributes})
239
239
  end
240
240
 
241
241
  end
@@ -251,7 +251,7 @@ describe GenomerPluginView::Table do
251
251
  end
252
252
 
253
253
  it "should map Name to product and product to function" do
254
- subject.should == cds({:attributes =>
254
+ subject.should have_identical_attributes cds({:attributes =>
255
255
  {'product' => 'AbcD','function' => 'efgh'}})
256
256
  end
257
257
 
@@ -268,7 +268,7 @@ describe GenomerPluginView::Table do
268
268
  end
269
269
 
270
270
  it "should map Name to product and product to function" do
271
- subject.should == cds({:attributes =>
271
+ subject.should have_identical_attributes cds({:attributes =>
272
272
  {'product' => 'AbcD','function' => 'efgh'}})
273
273
  end
274
274
 
data/spec/spec_helper.rb CHANGED
@@ -29,4 +29,11 @@ RSpec.configure do |config|
29
29
  def cds(opts = Hash.new)
30
30
  gene({:feature => 'CDS'}.merge(opts))
31
31
  end
32
+
33
+ class Bio::GFF::GFF3::Record
34
+ def has_identical_attributes?(other)
35
+ self.attributes.sort == other.attributes.sort
36
+ end
37
+ end
38
+
32
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genomer-plugin-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-29 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: genomer
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.5
21
+ version: 0.0.6
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.0.5
29
+ version: 0.0.6
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -132,6 +132,7 @@ extra_rdoc_files: []
132
132
  files:
133
133
  - .document
134
134
  - .gitignore
135
+ - .travis.yml
135
136
  - Gemfile
136
137
  - LICENSE.txt
137
138
  - README.rdoc
@@ -179,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
180
  version: '0'
180
181
  segments:
181
182
  - 0
182
- hash: -3689932046879280024
183
+ hash: 2531486959390668075
183
184
  required_rubygems_version: !ruby/object:Gem::Requirement
184
185
  none: false
185
186
  requirements: