orientdb-schema-migrator 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/orientdb-schema-migrator.rb +2 -5
- data/lib/orientdb_schema_migrator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8ae65147c435144ef1572bdc26cb06d603c8597
|
|
4
|
+
data.tar.gz: 52de230d686dd89e5401c065ce7d4f082b5739d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 09b6e882bc1602171ed161a2aa1fd5a6cb213634744e03271ecdf18c28165f4fe491de07277fd8140fbd8424ad9c66f976f14a2421357dec802443a429adabe2
|
|
7
|
+
data.tar.gz: 3ab348ddf5f472fd24b38ca0173423eaccdf4d9b2e91d33a8fde5969a3b432d97f849922eab5526b042c06e49d51997680532c03d2129e92ac2425d9c67aab51
|
data/README.md
CHANGED
|
@@ -39,7 +39,8 @@ Rollback (one migration at a time).
|
|
|
39
39
|
1. Install OrientDb and run it locally.
|
|
40
40
|
2. Create a database named `schema_test` with an admin user named `test`, password `test` (or provide your own credentials via environment variables).
|
|
41
41
|
You can test that this is correctly setup with `rake db:test_connection`.
|
|
42
|
-
3. `rake
|
|
42
|
+
3. `ODB_TEST=true bundle exec rake db:add_schema_class`
|
|
43
|
+
4. `bundle exec rake spec`
|
|
43
44
|
|
|
44
45
|
## Contributing
|
|
45
46
|
|
|
@@ -31,11 +31,8 @@ module OrientdbSchemaMigrator
|
|
|
31
31
|
YAML.load_file(config_file)[env]
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
@client = nil
|
|
34
35
|
def self.client
|
|
35
|
-
|
|
36
|
-
$client
|
|
37
|
-
else
|
|
38
|
-
$client = Orientdb4r.client(:host => get_config["host"])
|
|
39
|
-
end
|
|
36
|
+
@client ||= Orientdb4r.client(:host => get_config["host"])
|
|
40
37
|
end
|
|
41
38
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orientdb-schema-migrator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- CoPromote
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: orientdb4r
|