CodonUsage 0.0.4 → 0.0.5

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: e98fa638049cf13652967c4d3c6440c713b36a1b
4
- data.tar.gz: b94d43c7043ae9126dad70acd976e714e374faa9
3
+ metadata.gz: af2549f93bbdd35c721a0c2d99d4e9548e13958d
4
+ data.tar.gz: 2fc033a88ed24ff97b6ff6e429fc5377841b8b43
5
5
  SHA512:
6
- metadata.gz: e5bb0fdc1edaf6f48e5ce5a84855eb38d0a658f4fbd4476866783509e39b88094f33e4beb8fd8e18dd49ef9c41f14ca688ce2e6cc7782f07f8a1cf956533683b
7
- data.tar.gz: bdc3bf83dcdae1149b8fd031a6a768a2d219b0fcc574ba05e029b5a62b4e04f3895adce098ea0d0b160921d6c9d5c7e457748e36481ce755fa27499510715a29
6
+ metadata.gz: 560609d20ab6caa80437d017f318055b5ee649aea1ec0ebf65ffeffac72533f1d277a28936903434e3a6caa6c61292fc93a5d1c12105556e80f9d3935916ad9d
7
+ data.tar.gz: de9325603ed2628a37b2d338076f0949e85235fa78a8a2b03f127f29a0f04d3aa0dd72ff8c0a684ade776ebf8592b790e5abc53bda7792d4ece935527014e46b
data/CodonUsage.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = '>=2.0'
21
22
  spec.add_development_dependency "bundler", "~> 1.5"
22
23
  spec.add_development_dependency "rspec", "~> 2.14"
23
24
  end
data/README.md CHANGED
@@ -2,20 +2,20 @@
2
2
  A ruby gem that parses Codon Usage table provided by: http://www.kazusa.or.jp/codon/ that output the information in a hash or JSON format. You can find this gem on http://rubygems.org/gems/CodonUsage
3
3
 
4
4
  ## Version
5
- 0.0.4
5
+ 0.0.5
6
6
 
7
7
  ## Disclaimer
8
8
  I write this gem because bioruby doesn't provide any library for me to do this job, and this is my first ruby gem. Hope this gem can help people in the bioinformatics field! :)
9
9
 
10
10
  ## Before start
11
- * Please use Ruby 1.9.3 or above
11
+ * Please use Ruby 2.0 or above
12
12
 
13
13
  ## Installation
14
14
  $ gem install CodonUsage
15
15
 
16
16
  ## Usage
17
17
  require "CodonUsage" # load the gem
18
- foo = CodonUsage::KazusaDB.new(aa = "1", species = "9606") # Noted that parameters should be STRING
18
+ foo = CodonUsage::KazusaDB.new(aa: "1", species: "9606") # Noted that parameters should be STRING
19
19
  p foo.getURL
20
20
  p foo.getHash
21
21
  p foo.to_json
@@ -1,3 +1,3 @@
1
1
  module CodonUsage
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -17,6 +17,9 @@ describe CodonUsage::KazusaDB do
17
17
  it "#species:Mycobacterium tuberculosis H37Rv" do
18
18
  CodonUsage::KazusaDB.new(species: "83332").getURL.should == "http://www.kazusa.or.jp/codon/cgi-bin/showcodon.cgi?species=83332&aa=1&style=N"
19
19
  end
20
+ it "#species: \"83332\" + #aa: \"11\"" do
21
+ CodonUsage::KazusaDB.new(aa: "11", species: "83332").getURL.should == "http://www.kazusa.or.jp/codon/cgi-bin/showcodon.cgi?species=83332&aa=11&style=N"
22
+ end
20
23
  it "#getHash working?" do
21
24
  p CodonUsage::KazusaDB.new(species: "83332").getHash
22
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CodonUsage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - proxhotdog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-18 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: '0'
72
+ version: '2.0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - ">="