oqgraph_rails 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Stuart Coyle <stuart.coyle@gmail.com>
|
data/LICENCE
CHANGED
@@ -27,10 +27,6 @@ module OQGraph
|
|
27
27
|
migration_template "graph_edge_migration.rb", "db/migrate/create_#{@edge_table_name}"
|
28
28
|
end
|
29
29
|
|
30
|
-
def create_initializer
|
31
|
-
template "graph_initializer.rb", File.join("config/initializers/#{file_name}_oqgraph.rb")
|
32
|
-
end
|
33
|
-
|
34
30
|
def create_oqgraph_migration
|
35
31
|
@oqgraph_table_name = "#{file_name}_oqgraph"
|
36
32
|
migration_template "graph_oqgraph_migration.rb", "db/migrate/create_#{@oqgraph_table_name}"
|
@@ -35,18 +35,6 @@ class OQgraphGeneratorTest < Rails::Generators::TestCase
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
test "creates the initializer" do
|
39
|
-
run_generator %w(funky)
|
40
|
-
assert_file 'config/initializers/funky_oqgraph.rb', /FunkyEdge.update_graph_table/
|
41
|
-
end
|
42
|
-
|
43
|
-
test "the initializer is parseable ruby" do
|
44
|
-
run_generator %w(funky)
|
45
|
-
assert_nothing_raised do
|
46
|
-
require 'tmp/config/initializers/funky_oqgraph.rb'
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
38
|
test "creates the oqgraph table migration" do
|
51
39
|
run_generator %w(funky)
|
52
40
|
assert_migration 'db/migrate/create_funky_oqgraph.rb'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oqgraph_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-25 00:00:00.000000000 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mysql2
|
17
|
-
requirement: &
|
17
|
+
requirement: &2167111280 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2167111280
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: activerecord
|
28
|
-
requirement: &
|
28
|
+
requirement: &2167110580 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2167110580
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: minitest
|
39
|
-
requirement: &
|
39
|
+
requirement: &2167109740 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2167109740
|
48
48
|
description: Graph engine interface for active record.
|
49
49
|
email:
|
50
50
|
- stuart.coyle@gmail.com
|
@@ -52,6 +52,7 @@ executables: []
|
|
52
52
|
extensions: []
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
|
+
- AUTHORS
|
55
56
|
- Gemfile
|
56
57
|
- Gemfile.lock
|
57
58
|
- LICENCE
|
@@ -60,7 +61,6 @@ files:
|
|
60
61
|
- lib/generators/oqgraph/oqgraph_generator.rb
|
61
62
|
- lib/generators/oqgraph/templates/graph_edge.rb
|
62
63
|
- lib/generators/oqgraph/templates/graph_edge_migration.rb
|
63
|
-
- lib/generators/oqgraph/templates/graph_initializer.rb
|
64
64
|
- lib/generators/oqgraph/templates/graph_node.rb
|
65
65
|
- lib/generators/oqgraph/templates/graph_oqgraph_migration.rb
|
66
66
|
- lib/oqgraph/edge.rb
|