structured_noise 0.1.0 → 0.1.1
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/lib/structured_noise/generator.rb +1 -5
- data/lib/structured_noise/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fbbdd04446079bd1f7add26a91bc99d46046e7f
|
4
|
+
data.tar.gz: 2856fcbdd0f94567ed551fd92317f5ca6fedc3b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 914eec0e928350604d5eff9953c4fed1b4f7843e1072dd899f0bb711f2e9f84f339e22f63ddfea14da71e0e0e032dbf5ccb27b55935b88a9a3c84545a81d3913
|
7
|
+
data.tar.gz: 22a024da4c80e60af4f81ddcc9a6837a4d531d4c425886ab44d383d145258229ca9bfde0b02a80c4b266fcb987c29c08c482981468104a0960bf43320a4b18ba
|
@@ -14,7 +14,7 @@ module StructuredNoise
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def load_schema
|
17
|
-
json = JSON.parse(File.read(
|
17
|
+
json = JSON.parse(File.read(@schema_file_name))
|
18
18
|
@schema_name = json["name"]
|
19
19
|
@namespace = json["namespace"] || ""
|
20
20
|
|
@@ -67,10 +67,6 @@ module StructuredNoise
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
def canonical_schema_file_name
|
71
|
-
File.join(File.dirname(__FILE__), '..', '..', @schema_file_name)
|
72
|
-
end
|
73
|
-
|
74
70
|
class TypeGenerator
|
75
71
|
def initialize(field)
|
76
72
|
@field = field
|