rbbt-rest 1.3.32 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.32
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-30 00:00:00.000000000 Z
11
+ date: 2014-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -173,7 +173,6 @@ extra_rdoc_files:
173
173
  files:
174
174
  - LICENSE
175
175
  - Rakefile
176
- - config.ru
177
176
  - lib/rbbt/rest/client.rb
178
177
  - lib/rbbt/rest/client/adaptor.rb
179
178
  - lib/rbbt/rest/client/get.rb
@@ -220,8 +219,10 @@ files:
220
219
  - share/views/compass/favourites.sass
221
220
  - share/views/compass/figure.sass
222
221
  - share/views/compass/finder.sass
222
+ - share/views/compass/fonts.sass
223
223
  - share/views/compass/foundation.sass
224
224
  - share/views/compass/functions.sass
225
+ - share/views/compass/grid_system.sass
225
226
  - share/views/compass/help.sass
226
227
  - share/views/compass/layout.sass
227
228
  - share/views/compass/monitor.sass
@@ -1109,6 +1110,7 @@ files:
1109
1110
  - share/views/public/plugins/jquery/js/jquery-1.8.0.min.js
1110
1111
  - share/views/public/plugins/jquery/js/jquery-1.9.1.js
1111
1112
  - share/views/public/plugins/jquery/js/jquery-2.0.0.js
1113
+ - share/views/public/plugins/jquery/js/jquery-2.1.1.js
1112
1114
  - share/views/public/plugins/jquery/js/jquery.cookie.js
1113
1115
  - share/views/public/plugins/jquery/js/jquery.form.js
1114
1116
  - share/views/public/plugins/underscore/js/underscore.js
data/config.ru DELETED
@@ -1,102 +0,0 @@
1
- require 'zurb-foundation'
2
- require 'modular-scale'
3
-
4
- require 'sinatra'
5
-
6
- require 'rbbt'
7
- require 'rbbt/rest/main'
8
- require 'rbbt/rest/entity'
9
- require 'rbbt/rest/workflow'
10
- require 'rbbt/rest/file_server'
11
- require 'rbbt/rest/helpers'
12
-
13
- YAML::ENGINE.yamler = 'syck' if defined? YAML::ENGINE and YAML::ENGINE.respond_to? :yamler
14
-
15
- class RbbtRest < Sinatra::Base
16
-
17
- #{{{ MODULES AND HELPERS
18
- register Sinatra::RbbtRESTMain
19
- register Sinatra::RbbtRESTEntity
20
- register Sinatra::RbbtRESTWorkflow
21
- register Sinatra::RbbtRESTFileServer
22
- helpers Sinatra::RbbtMiscHelpers
23
-
24
- #{{{ DIRECTORIES
25
- local_var = Rbbt.var.find(:lib)
26
- set :cache_dir , local_var.sinatra.cache.find
27
- set :file_dir , local_var.sinatra.files.find
28
- set :favourites_dir , local_var.sinatra.favourites.find
29
- set :favourite_lists_dir , local_var.sinatra.favourite_lists
30
-
31
- #{{{ SESSIONS
32
- use Rack::Session::Cookie, :key => 'rack.session',
33
- :path => '/',
34
- :expire_after => 2592000,
35
- :secret => 'StudyExplorer secret!!'
36
-
37
- #{{{ FOUNDATION RESOURCES
38
- add_sass_load_path "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
39
- add_sass_load_path "#{Gem.loaded_specs['zurb-foundation'].full_gem_path}/scss/"
40
- add_sass_load_path "#{Gem.loaded_specs['modular-scale'].full_gem_path}/stylesheets/"
41
- RbbtRESTHelpers.javascript_resources << Path.setup("#{Gem.loaded_specs['zurb-foundation'].full_gem_path}/js/foundation")
42
- RbbtRESTHelpers.javascript_resources << Path.setup("#{Gem.loaded_specs['zurb-foundation'].full_gem_path}/js/vendor")
43
- end
44
-
45
- #{{{ WORKFLOWS
46
-
47
- if Rbbt.etc.workflows.find(:lib).exists?
48
- class RbbtRest
49
- Rbbt.etc.workflows.find(:lib).read.split("\n").each do |workflow|
50
- Workflow.require_workflow workflow
51
- add_workflow Kernel.const_get(workflow), true
52
- end
53
- end
54
- end
55
-
56
- #{{{ ENTITIES
57
-
58
- require 'rbbt/entity'
59
- require 'rbbt/entity/genomic_mutation'
60
- require 'rbbt/entity/snp'
61
- require 'rbbt/entity/mutated_isoform'
62
- require 'rbbt/entity/chromosome_range'
63
- require 'rbbt/entity/study'
64
- require 'rbbt/entity/study/genotypes'
65
- require 'rbbt/entity/study/cnv'
66
- require 'rbbt/entity/study/methylation'
67
-
68
- require 'rbbt/sources/string'
69
- require 'rbbt/sources/pina'
70
- require 'rbbt/sources/go'
71
- require 'rbbt/sources/kegg'
72
- require 'rbbt/sources/InterPro'
73
- require 'rbbt/sources/pfam'
74
- require 'rbbt/sources/tfacts'
75
-
76
- $annotation_repo = Rbbt.var.find(:lib).cache.annotation_repo.find
77
-
78
- Entity.entity_list_cache = Rbbt.var.find(:lib).sinatra.entity_lists
79
-
80
- [Study, Sample, MutatedIsoform, GenomicMutation, SNP, ChromosomeRange, CNV, Gene, Protein, PMID, InterProDomain, KeggPathway, GOTerm, PfamDomain, NCINaturePathway, NCIReactomePathway, NCIReactomePathway].each do |mod|
81
- mod.module_eval do
82
- include Entity::REST
83
- end
84
- end
85
-
86
- #{{{ FINDER
87
- class RbbtRest
88
- finder = Finder.new
89
- if production?
90
- Thread.new do
91
- #finder.add_instance(KEGG.pathways, :grep => "^hsa", :fields => ["Pathway Name"], :namespace => Organism.default_code("Hsa"))
92
- #finder.add_instance(Organism.lexicon(Organism.default_code("Hsa")), :persist => true, :namespace => Organism.default_code("Hsa"), :grep => "^LRG_", :invert_grep => true)
93
- end
94
- end
95
- set :finder, finder
96
- end
97
-
98
- #{{{ RUN
99
- $title = "RbbtRest"
100
-
101
- use Rack::Deflater
102
- run RbbtRest