evt-transform 0.2.0.0 → 0.2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7260f7bfa8857baec7819abfc066e1ca82351426370080050a79eff83045b0ca
4
- data.tar.gz: d93f0bf14cfdea3e7bfb1b067bc42280680ba08ac51713f4d849aa1d0dca414e
3
+ metadata.gz: 87309f4dedeadf10b24f0305dbd1ac325784437efa435847b6aeefcd9e704ba6
4
+ data.tar.gz: dc7de644c23da63874398015adb181b6128a48f8e92c768dadab0a4be4e88d22
5
5
  SHA512:
6
- metadata.gz: 61fd991c0d43026f027a7326fa229168eeb3ac9bedb83239bffb965a9606ab99002b2fa1350f9038d1f22eaa909bddbcdf9df1e7d9140b5de105030aff13b495
7
- data.tar.gz: e1147a06fd830aac80c7860fdfd6e0e7d8d97fd05537d205df579c43d6ee939816eaa85e364dd59fb5988d8bd39fcca05c9a41c24b1d138a4ad5228c1d725b44
6
+ metadata.gz: 9da7d930c8c4e1874e96f94563c52c4945d10d76e2b5d01cd3aa628d018818755777234fcd9494b2fcbda1296a9cb0acc2d69c9567a57880cbc11f1a44793747
7
+ data.tar.gz: 7fa33be25b31855abfba399b0e3ffcfc6ef338ae07e5607ed7b9d9c86d7b32f31bc2390955a5338e5a64ed277a5c90941c80929f9cc11a1ac0a541ea05d5a46d
@@ -1,8 +1,8 @@
1
1
  require 'transform/controls/text'
2
2
  require 'transform/controls/raw_data'
3
- require 'transform/controls/subject'
4
3
  require 'transform/controls/subject/instance_receives_class'
5
4
  require 'transform/controls/subject/transform'
6
5
  require 'transform/controls/subject/transformer'
6
+ require 'transform/controls/subject'
7
7
  require 'transform/controls/no_transformer'
8
8
  require 'transform/controls/no_transform_methods'
@@ -1,13 +1,49 @@
1
1
  module Transform
2
2
  module Controls
3
3
  module Subject
4
- Transformer = Subject
4
+ def self.example
5
+ instance = example_class.new
6
+ instance.some_attribute = Controls::RawData.example
7
+ instance
8
+ end
9
+
10
+ def self.example_class
11
+ Example
12
+ end
13
+
14
+ class Example
15
+ attr_accessor :some_attribute
16
+
17
+ def ==(other)
18
+ other.some_attribute == self.some_attribute
19
+ end
20
+
21
+ module Transformer
22
+ def self.some_format
23
+ SomeFormat
24
+ end
25
+
26
+ def self.instance(raw_data)
27
+ instance = Example.new
28
+ instance.some_attribute = raw_data
29
+ instance
30
+ end
31
+
32
+ def self.raw_data(instance)
33
+ instance.some_attribute
34
+ end
35
+
36
+ module SomeFormat
37
+ def self.write(raw_data)
38
+ Controls::Text.example
39
+ end
40
+
41
+ def self.read(text)
42
+ Controls::RawData.example
43
+ end
44
+ end
45
+ end
46
+ end
5
47
  end
6
48
  end
7
49
  end
8
- module Transform
9
- module Controls
10
- Subject = Transform::Controls::Subject::Transformer
11
- end
12
- end
13
-
@@ -1,51 +1,7 @@
1
1
  module Transform
2
2
  module Controls
3
3
  module Subject
4
- module Transformer
5
- def self.example
6
- instance = example_class.new
7
- instance.some_attribute = Controls::RawData.example
8
- instance
9
- end
10
-
11
- def self.example_class
12
- Example
13
- end
14
-
15
- class Example
16
- attr_accessor :some_attribute
17
-
18
- def ==(other)
19
- other.some_attribute == self.some_attribute
20
- end
21
-
22
- module Transformer
23
- def self.some_format
24
- SomeFormat
25
- end
26
-
27
- def self.instance(raw_data)
28
- instance = Example.new
29
- instance.some_attribute = raw_data
30
- instance
31
- end
32
-
33
- def self.raw_data(instance)
34
- instance.some_attribute
35
- end
36
-
37
- module SomeFormat
38
- def self.write(raw_data)
39
- Controls::Text.example
40
- end
41
-
42
- def self.read(text)
43
- Controls::RawData.example
44
- end
45
- end
46
- end
47
- end
48
- end
4
+ Transformer = Subject
49
5
  end
50
6
  end
51
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-transform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.0
4
+ version: 0.2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-log
@@ -71,7 +71,6 @@ files:
71
71
  - lib/transform/copy.rb
72
72
  - lib/transform/log.rb
73
73
  - lib/transform/read.rb
74
- - lib/transform/retry_test.rb
75
74
  - lib/transform/transform.rb
76
75
  - lib/transform/write.rb
77
76
  homepage: https://github.com/eventide-project/transform
@@ -1,5 +0,0 @@
1
- test retry
2
-
3
- need to raise expected version error
4
-
5
- expected version raises when version number is mismatched