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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf9d9e3fb0150f23f6bfd7a70b5da16feba0c8fb
4
- data.tar.gz: b9da196ea991fba8ba19a7160f619bc35d9d6ce3
3
+ metadata.gz: b8ae65147c435144ef1572bdc26cb06d603c8597
4
+ data.tar.gz: 52de230d686dd89e5401c065ce7d4f082b5739d8
5
5
  SHA512:
6
- metadata.gz: 3beca086f3fe46ae19be29c1ff8718599177444622e07be46f6de42c3fbdd2eb30aace0fe7c417be5f0719b1a62920d499d57363006c24a9fc0dd3e8a605add0
7
- data.tar.gz: c28718cd7823755f1902159573b3a266a474ab6c77e9229e62cfe99529fd0fb60d1af4909c7378651bb0a17315e2cfa32dd507efcba36a1caa4020868c18189d
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 spec`
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
- if defined?($client)
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
@@ -1,3 +1,3 @@
1
1
  module OrientdbSchemaMigrator
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  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.2
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-29 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orientdb4r