dbd_data_engine 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 +4 -4
- data/Gemfile +2 -0
- data/Guardfile +3 -2
- data/HISTORY.txt +7 -0
- data/app/controllers/dbd_data_engine/contexts_controller.rb +37 -0
- data/app/controllers/dbd_data_engine/resources_controller.rb +5 -2
- data/app/models/dbd_data_engine/context.rb +13 -0
- data/app/views/dbd_data_engine/contexts/_context.html.haml +1 -0
- data/app/views/dbd_data_engine/contexts/_context_fact.html.haml +3 -0
- data/app/views/dbd_data_engine/contexts/create.html.haml +9 -0
- data/app/views/dbd_data_engine/contexts/index.html.haml +4 -0
- data/app/views/dbd_data_engine/contexts/new.html.haml +13 -0
- data/app/views/dbd_data_engine/resources/_resource.html.haml +1 -0
- data/app/views/dbd_data_engine/resources/index.html.haml +3 -1
- data/config/routes.rb +1 -0
- data/dbd_data_engine.gemspec +2 -2
- data/lib/dbd_data_engine/version.rb +1 -1
- data/lib/dbd_data_engine.rb +1 -0
- data/spec/features/contexts/index_spec.rb +40 -0
- data/spec/features/contexts/new_spec.rb +32 -0
- data/spec/features/{data_spec.rb → data/data_spec.rb} +0 -0
- data/spec/features/resources/index_spec.rb +40 -0
- data/spec/features/{resources_spec.rb → resources/new_spec.rb} +0 -19
- data/spec/models/dbd_data_engine/context/predicates_spec.rb +17 -0
- data/spec/requests/contexts/create_spec.rb +117 -0
- data/spec/requests/{resources_spec.rb → resources/create_spec.rb} +3 -0
- data/spec/views/dbd_data_engine/contexts/create.html.haml_spec.rb +10 -0
- data/spec/views/dbd_data_engine/contexts/index.html.haml_spec.rb +16 -0
- data/spec/views/dbd_data_engine/contexts/new.html.haml_spec.rb +39 -0
- data/spec/views/dbd_data_engine/resources/index.html.haml_spec.rb +9 -0
- metadata +35 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82f85724f9a57475c424c42dac21fe88581b5bd6
|
4
|
+
data.tar.gz: d9c19869fa7dcc87a4d0e8c838bd772770109607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df2e89cf55cd92187eb6fde6e4271eb5b654fbdffcf339aaa97922b202f2b1c3b0c2ca1585edfec549464a6e14447ebbd9758234f468d3dfe16f77f90cfe6efa
|
7
|
+
data.tar.gz: a9db5852d4904c510126e42a54b6045958aca60353046fc3cac15e59e18ed0bdd9c1a965ca2682968176fb8b79d301c0d134ba9c73495ce52ae03905850b6719
|
data/Gemfile
CHANGED
data/Guardfile
CHANGED
@@ -6,11 +6,12 @@ guard 'rspec', :all_on_start => true, :all_after_pass => true do
|
|
6
6
|
# Rails example
|
7
7
|
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
8
8
|
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
9
|
+
watch(%r{^app/models/(.*)\.rb$}) { |m| "spec/models/#{m[1]}" }
|
9
10
|
watch(%r{^app/controllers/dbd_data_engine/(.+)_(controller)\.rb$}) do |m|
|
10
11
|
["spec/routing/#{m[1]}_routing_spec.rb",
|
11
12
|
"spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb",
|
12
|
-
"spec/features/#{m[1]}
|
13
|
-
"spec/requests/#{m[1]}
|
13
|
+
"spec/features/#{m[1]}",
|
14
|
+
"spec/requests/#{m[1]}"]
|
14
15
|
end
|
15
16
|
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
16
17
|
watch('config/routes.rb') { "spec/routing" }
|
data/HISTORY.txt
CHANGED
@@ -19,3 +19,10 @@
|
|
19
19
|
=====
|
20
20
|
|
21
21
|
* force dbd >= 0.0.17 (uses neography 1.1.3 that fixes the rubyzip issue)
|
22
|
+
|
23
|
+
0.0.5 (2013-09-02)
|
24
|
+
=====
|
25
|
+
|
26
|
+
* add a naive DbdDataEngine::Context model
|
27
|
+
* add a naive ContextsController
|
28
|
+
* it takes the predicates for the "new" screen from DbdOnto::Context
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require_dependency "dbd_data_engine/application_controller"
|
2
|
+
|
3
|
+
module DbdDataEngine
|
4
|
+
class ContextsController < ApplicationController
|
5
|
+
def index
|
6
|
+
graph = Dbd::Graph.new
|
7
|
+
graph = graph.from_unsorted_CSV_file(filename)
|
8
|
+
@contexts = graph.subjects.map{ |s| graph.by_subject(s) }
|
9
|
+
end
|
10
|
+
|
11
|
+
def new
|
12
|
+
@predicates = Context.predicates
|
13
|
+
end
|
14
|
+
|
15
|
+
def create
|
16
|
+
graph = Dbd::Graph.new
|
17
|
+
@context = Dbd::Context.new()
|
18
|
+
[params[:predicate], params[:object]].transpose.each do |predicate, object|
|
19
|
+
context_fact = Dbd::ContextFact.new(predicate: predicate,
|
20
|
+
object: object)
|
21
|
+
@context << context_fact
|
22
|
+
end
|
23
|
+
graph << @context
|
24
|
+
new_data = graph.to_CSV
|
25
|
+
File.open(filename, 'a') do |f|
|
26
|
+
f.syswrite new_data
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def filename
|
33
|
+
DbdDataEngine.default_CSV_location
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
@@ -3,6 +3,9 @@ require_dependency "dbd_data_engine/application_controller"
|
|
3
3
|
module DbdDataEngine
|
4
4
|
class ResourcesController < ApplicationController
|
5
5
|
def index
|
6
|
+
graph = Dbd::Graph.new
|
7
|
+
graph = graph.from_unsorted_CSV_file(filename)
|
8
|
+
@resources = graph.subjects.map{ |s| graph.by_subject(s) }
|
6
9
|
end
|
7
10
|
|
8
11
|
def new
|
@@ -13,8 +16,8 @@ module DbdDataEngine
|
|
13
16
|
graph = Dbd::Graph.new
|
14
17
|
@resource = Dbd::Resource.new(context_subject: Dbd::Context.new_subject)
|
15
18
|
[params[:predicate], params[:object]].transpose.each do |predicate, object|
|
16
|
-
fact = Dbd::Fact.new(
|
17
|
-
|
19
|
+
fact = Dbd::Fact.new(predicate: predicate,
|
20
|
+
object: object)
|
18
21
|
@resource << fact
|
19
22
|
end
|
20
23
|
graph << @resource
|
@@ -0,0 +1 @@
|
|
1
|
+
%table= render partial: 'context_fact', collection: context
|
@@ -0,0 +1,13 @@
|
|
1
|
+
%h1 Create a new context
|
2
|
+
|
3
|
+
= form_tag('/data/contexts', method: :post) do # engine controller route not loaded in view tests
|
4
|
+
%table
|
5
|
+
%tr
|
6
|
+
%th predicate
|
7
|
+
%th object
|
8
|
+
- @predicates.each do |predicate|
|
9
|
+
%tr
|
10
|
+
%td= text_field_tag('predicate[]', predicate)
|
11
|
+
%td= text_field_tag('object[]')
|
12
|
+
|
13
|
+
%p= submit_tag('Submit')
|
@@ -0,0 +1 @@
|
|
1
|
+
%table= render partial: 'fact', collection: resource
|
data/config/routes.rb
CHANGED
data/dbd_data_engine.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_development_dependency 'rake'
|
24
24
|
s.add_dependency 'rails', '>= 4.0.0'
|
25
25
|
s.add_dependency 'haml'
|
26
|
-
s.add_dependency 'dbd', '>= 0.0.
|
27
|
-
s.add_dependency '
|
26
|
+
s.add_dependency 'dbd', '>= 0.0.18'
|
27
|
+
s.add_dependency 'dbd_onto'
|
28
28
|
|
29
29
|
s.add_development_dependency 'haml-rails'
|
30
30
|
s.add_development_dependency 'rspec-rails'
|
data/lib/dbd_data_engine.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'rspec/mocks'
|
3
|
+
|
4
|
+
module DbdDataEngine
|
5
|
+
describe ContextsController do
|
6
|
+
describe 'GET /data/contexts' do
|
7
|
+
context 'routing' do
|
8
|
+
it 'contexts_path is correct' do
|
9
|
+
dbd_data_engine.contexts_path.should == '/data/contexts'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
::RSpec::Mocks.setup(self)
|
14
|
+
|
15
|
+
before(:each) do
|
16
|
+
graph = Dbd::Graph.new
|
17
|
+
graph << Dbd::ContextFact.new(subject: Dbd::Fact.factory.new_subject,
|
18
|
+
predicate: 'foobar',
|
19
|
+
object: 'tuxping')
|
20
|
+
Dbd::Graph.any_instance.stub(:from_unsorted_CSV_file).and_return(graph)
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'page content' do
|
24
|
+
|
25
|
+
before(:each) do
|
26
|
+
visit(dbd_data_engine.contexts_path)
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'talks about contexts' do
|
30
|
+
expect(page).to have_text('Contexts')
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'shows a test context' do
|
34
|
+
expect(page).to have_text('foobar')
|
35
|
+
expect(page).to have_text('tuxping')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module DbdDataEngine
|
4
|
+
describe ContextsController do
|
5
|
+
describe 'GET /data/contexts/new' do
|
6
|
+
context 'routing' do
|
7
|
+
it 'new_contexts_path is correct' do
|
8
|
+
dbd_data_engine.new_context_path.should == '/data/contexts/new'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
context 'page content' do
|
13
|
+
|
14
|
+
before(:each) do
|
15
|
+
visit(dbd_data_engine.new_context_path)
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'talks about a new context' do
|
19
|
+
expect(page.text).to match(/new context/i)
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'has a label array with context:visibility as value' do
|
23
|
+
expect(page).to have_field('predicate[]', type: 'text', count: 6)
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'has a field array' do
|
27
|
+
expect(page).to have_field('object[]', count: 6)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
File without changes
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'rspec/mocks'
|
3
|
+
|
4
|
+
module DbdDataEngine
|
5
|
+
describe ResourcesController do
|
6
|
+
describe 'GET /data/resources' do
|
7
|
+
context 'routing' do
|
8
|
+
it 'resources_path is correct' do
|
9
|
+
dbd_data_engine.resources_path.should == '/data/resources'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
::RSpec::Mocks.setup(self)
|
14
|
+
|
15
|
+
before(:each) do
|
16
|
+
graph = Dbd::Graph.new
|
17
|
+
graph << Dbd::ContextFact.new(subject: Dbd::Fact.factory.new_subject,
|
18
|
+
predicate: 'foobar',
|
19
|
+
object: 'tuxping')
|
20
|
+
Dbd::Graph.any_instance.stub(:from_unsorted_CSV_file).and_return(graph)
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'page content' do
|
24
|
+
|
25
|
+
before(:each) do
|
26
|
+
visit(dbd_data_engine.resources_path)
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'talks about resources' do
|
30
|
+
expect(page).to have_text('Resources')
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'shows a test resource' do
|
34
|
+
expect(page).to have_text('foobar')
|
35
|
+
expect(page).to have_text('tuxping')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -2,25 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module DbdDataEngine
|
4
4
|
describe ResourcesController do
|
5
|
-
describe 'GET /data/resources' do
|
6
|
-
context 'routing' do
|
7
|
-
it 'resources_path is correct' do
|
8
|
-
dbd_data_engine.resources_path.should == '/data/resources'
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
context 'page content' do
|
13
|
-
|
14
|
-
before(:each) do
|
15
|
-
visit(dbd_data_engine.resources_path)
|
16
|
-
end
|
17
|
-
|
18
|
-
it 'talks about resources' do
|
19
|
-
expect(page).to have_text('Resources')
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
5
|
describe 'GET /data/resources/new' do
|
25
6
|
context 'routing' do
|
26
7
|
it 'new_resources_path is correct' do
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module DbdDataEngine
|
4
|
+
describe Context do
|
5
|
+
let(:context_predicates) {
|
6
|
+
['context:visibility',
|
7
|
+
'context:encryption',
|
8
|
+
'context:license',
|
9
|
+
'dc:source',
|
10
|
+
'dc:creator',
|
11
|
+
'dcterms:created']}
|
12
|
+
|
13
|
+
it 'has all the context predicates' do
|
14
|
+
described_class.predicates.should == context_predicates
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module DbdDataEngine
|
4
|
+
describe ContextsController do
|
5
|
+
context 'POST /data/contexts' do
|
6
|
+
context 'routing' do
|
7
|
+
it 'contexts_path is correct' do
|
8
|
+
dbd_data_engine.contexts_path.should == '/data/contexts'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
context 'creating the resource from parameters' do
|
13
|
+
|
14
|
+
let(:test_filename) { 'data/test_graph.csv' }
|
15
|
+
|
16
|
+
let(:one_fact) do
|
17
|
+
{'predicate' => ['schema:givenName'],
|
18
|
+
'object' => ['Peter']}
|
19
|
+
end
|
20
|
+
|
21
|
+
let(:two_facts) do
|
22
|
+
{'predicate' => ['schema:givenName', 'schema:familyName'],
|
23
|
+
'object' => ['Peter', 'Vandenabeele']}
|
24
|
+
end
|
25
|
+
|
26
|
+
let(:two_other_facts) do
|
27
|
+
{'predicate' => ['schema:givenName', 'schema:familyName'],
|
28
|
+
'object' => ['Frans', 'VDA']}
|
29
|
+
end
|
30
|
+
|
31
|
+
before(:each) { DbdDataEngine.stub(:default_CSV_location).and_return(test_filename) }
|
32
|
+
|
33
|
+
describe 'with correct parameters' do
|
34
|
+
it 'with correct data does_not raise_error' do
|
35
|
+
post(dbd_data_engine.contexts_path, one_fact)
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'calls Dbd::Context.new' do
|
39
|
+
Dbd::Context.should_receive(:new).and_call_original
|
40
|
+
post(dbd_data_engine.contexts_path, one_fact)
|
41
|
+
end
|
42
|
+
|
43
|
+
before(:each) do
|
44
|
+
Dbd::Graph.new.to_CSV_file(test_filename) # empty the file
|
45
|
+
end
|
46
|
+
|
47
|
+
def read_back_graph
|
48
|
+
Dbd::Graph.new.from_unsorted_CSV_file(test_filename)
|
49
|
+
end
|
50
|
+
|
51
|
+
context 'with 1 line, creates 1 resource' do
|
52
|
+
|
53
|
+
before(:each) { post(dbd_data_engine.contexts_path, one_fact) }
|
54
|
+
|
55
|
+
it 'adds 1 line to the graph' do
|
56
|
+
read_back_graph.size.should == 1
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'shows the result' do
|
60
|
+
expect(response.body).to include('schema:givenName')
|
61
|
+
expect(response.body).to include('Peter')
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
context 'with 2 lines, creates resource with 2 facts' do
|
66
|
+
|
67
|
+
before(:each) { post(dbd_data_engine.contexts_path, two_facts) }
|
68
|
+
|
69
|
+
it 'adds 2 lines to the graph' do
|
70
|
+
read_back_graph.size.should == 2
|
71
|
+
end
|
72
|
+
|
73
|
+
it 'the 2 facts have the same subject (1 resource)' do
|
74
|
+
read_back_graph.map(&:subject).uniq.size.should == 1
|
75
|
+
end
|
76
|
+
|
77
|
+
it 'shows the result' do
|
78
|
+
expect(response.body).to include('schema:givenName')
|
79
|
+
expect(response.body).to include('Peter')
|
80
|
+
expect(response.body).to include('schema:familyName')
|
81
|
+
expect(response.body).to include('Vandenabeele')
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
context 'with 2 submits of 2 lines, creates 2 contexts' do
|
86
|
+
context 'submits directly after each other' do
|
87
|
+
|
88
|
+
before(:each) do
|
89
|
+
post(dbd_data_engine.contexts_path, two_facts)
|
90
|
+
post(dbd_data_engine.contexts_path, two_other_facts)
|
91
|
+
end
|
92
|
+
|
93
|
+
it 'adds 4 lines to the graph in the file' do
|
94
|
+
read_back_graph.size.should == 4
|
95
|
+
end
|
96
|
+
|
97
|
+
it 'the 4 facts are of 2 contexts' do
|
98
|
+
read_back_graph.map(&:subject).uniq.size.should == 2
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'shows the results for each submit' do
|
103
|
+
post(dbd_data_engine.contexts_path, two_facts)
|
104
|
+
expect(response.body).to include('schema:givenName')
|
105
|
+
expect(response.body).to include('Peter')
|
106
|
+
expect(response.body).to include('schema:familyName')
|
107
|
+
expect(response.body).to include('Vandenabeele')
|
108
|
+
post(dbd_data_engine.contexts_path, two_other_facts)
|
109
|
+
expect(response.body).to include('Frans')
|
110
|
+
expect(response.body).to include('VDA')
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -112,6 +112,9 @@ module DbdDataEngine
|
|
112
112
|
end
|
113
113
|
|
114
114
|
context 'with multi-threaded requests does a clean write' do
|
115
|
+
|
116
|
+
before(:each) { pending("multi-threaded tests fail on JRuby") if RUBY_PLATFORM == 'java' }
|
117
|
+
|
115
118
|
it 'does not fail on parallel access (also tested on 1000.times)' do
|
116
119
|
threads = []
|
117
120
|
[two_facts, two_other_facts].each do |resource|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'dbd_data_engine/contexts/index.html.haml' do
|
4
|
+
|
5
|
+
let(:contexts) { [:foo] }
|
6
|
+
|
7
|
+
before(:each) { @contexts = contexts }
|
8
|
+
|
9
|
+
it 'renders' do
|
10
|
+
render
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'renders the context partial' do
|
14
|
+
render.should render_template(partial: '_context')
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'dbd_data_engine/contexts/new.html.haml' do
|
4
|
+
context 'renders' do
|
5
|
+
|
6
|
+
before(:each) do
|
7
|
+
@predicates = DbdDataEngine::Context.predicates
|
8
|
+
render
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'without exceptions' do
|
12
|
+
#should_not raise_error
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'has table header "predicate"' do
|
16
|
+
rendered.should have_xpath('.//table/tr/th', :text => 'predicate')
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'has table header "object"' do
|
20
|
+
rendered.should have_xpath('.//table/tr/th', :text => 'object')
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'has an array of drop down select boxes with predicates' do
|
24
|
+
rendered.should have_field('predicate[]')
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'has an array of fields with objects' do
|
28
|
+
rendered.should have_field('object[]')
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'has a submit button' do
|
32
|
+
rendered.should have_button('Submit')
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'has a form that posts to /data/contexts' do
|
36
|
+
rendered.should have_xpath('.//form[@action="/data/contexts"][@method="post"]', :text => 'predicate')
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -1,7 +1,16 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'dbd_data_engine/resources/index.html.haml' do
|
4
|
+
|
5
|
+
let(:resources) { [:foo] }
|
6
|
+
|
7
|
+
before(:each) { @resources = resources }
|
8
|
+
|
4
9
|
it 'renders' do
|
5
10
|
render
|
6
11
|
end
|
12
|
+
|
13
|
+
it 'renders the resource partial' do
|
14
|
+
render.should render_template(partial: '_resource')
|
15
|
+
end
|
7
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbd_data_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenabeele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,16 +58,16 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.
|
61
|
+
version: 0.0.18
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.0.
|
68
|
+
version: 0.0.18
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: dbd_onto
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '>='
|
@@ -171,11 +171,19 @@ files:
|
|
171
171
|
- app/assets/images/dbd_data_engine/.keep
|
172
172
|
- app/assets/stylesheets/dbd_data_engine/application.css
|
173
173
|
- app/controllers/dbd_data_engine/application_controller.rb
|
174
|
+
- app/controllers/dbd_data_engine/contexts_controller.rb
|
174
175
|
- app/controllers/dbd_data_engine/data_controller.rb
|
175
176
|
- app/controllers/dbd_data_engine/resources_controller.rb
|
176
177
|
- app/helpers/dbd_data_engine/application_helper.rb
|
178
|
+
- app/models/dbd_data_engine/context.rb
|
179
|
+
- app/views/dbd_data_engine/contexts/_context.html.haml
|
180
|
+
- app/views/dbd_data_engine/contexts/_context_fact.html.haml
|
181
|
+
- app/views/dbd_data_engine/contexts/create.html.haml
|
182
|
+
- app/views/dbd_data_engine/contexts/index.html.haml
|
183
|
+
- app/views/dbd_data_engine/contexts/new.html.haml
|
177
184
|
- app/views/dbd_data_engine/data/index.html.haml
|
178
185
|
- app/views/dbd_data_engine/resources/_fact.html.haml
|
186
|
+
- app/views/dbd_data_engine/resources/_resource.html.haml
|
179
187
|
- app/views/dbd_data_engine/resources/create.html.haml
|
180
188
|
- app/views/dbd_data_engine/resources/index.html.haml
|
181
189
|
- app/views/dbd_data_engine/resources/new.html.haml
|
@@ -227,10 +235,18 @@ files:
|
|
227
235
|
- spec/dummy/public/422.html
|
228
236
|
- spec/dummy/public/500.html
|
229
237
|
- spec/dummy/public/favicon.ico
|
230
|
-
- spec/features/
|
231
|
-
- spec/features/
|
232
|
-
- spec/
|
238
|
+
- spec/features/contexts/index_spec.rb
|
239
|
+
- spec/features/contexts/new_spec.rb
|
240
|
+
- spec/features/data/data_spec.rb
|
241
|
+
- spec/features/resources/index_spec.rb
|
242
|
+
- spec/features/resources/new_spec.rb
|
243
|
+
- spec/models/dbd_data_engine/context/predicates_spec.rb
|
244
|
+
- spec/requests/contexts/create_spec.rb
|
245
|
+
- spec/requests/resources/create_spec.rb
|
233
246
|
- spec/spec_helper.rb
|
247
|
+
- spec/views/dbd_data_engine/contexts/create.html.haml_spec.rb
|
248
|
+
- spec/views/dbd_data_engine/contexts/index.html.haml_spec.rb
|
249
|
+
- spec/views/dbd_data_engine/contexts/new.html.haml_spec.rb
|
234
250
|
- spec/views/dbd_data_engine/data/index.html.haml_spec.rb
|
235
251
|
- spec/views/dbd_data_engine/resources/create.html.haml_spec.rb
|
236
252
|
- spec/views/dbd_data_engine/resources/index.html.haml_spec.rb
|
@@ -299,10 +315,18 @@ test_files:
|
|
299
315
|
- spec/dummy/public/422.html
|
300
316
|
- spec/dummy/public/500.html
|
301
317
|
- spec/dummy/public/favicon.ico
|
302
|
-
- spec/features/
|
303
|
-
- spec/features/
|
304
|
-
- spec/
|
318
|
+
- spec/features/contexts/index_spec.rb
|
319
|
+
- spec/features/contexts/new_spec.rb
|
320
|
+
- spec/features/data/data_spec.rb
|
321
|
+
- spec/features/resources/index_spec.rb
|
322
|
+
- spec/features/resources/new_spec.rb
|
323
|
+
- spec/models/dbd_data_engine/context/predicates_spec.rb
|
324
|
+
- spec/requests/contexts/create_spec.rb
|
325
|
+
- spec/requests/resources/create_spec.rb
|
305
326
|
- spec/spec_helper.rb
|
327
|
+
- spec/views/dbd_data_engine/contexts/create.html.haml_spec.rb
|
328
|
+
- spec/views/dbd_data_engine/contexts/index.html.haml_spec.rb
|
329
|
+
- spec/views/dbd_data_engine/contexts/new.html.haml_spec.rb
|
306
330
|
- spec/views/dbd_data_engine/data/index.html.haml_spec.rb
|
307
331
|
- spec/views/dbd_data_engine/resources/create.html.haml_spec.rb
|
308
332
|
- spec/views/dbd_data_engine/resources/index.html.haml_spec.rb
|