oplogjam 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +738 -0
- data/lib/oplogjam.rb +69 -0
- data/lib/oplogjam/apply_ops.rb +49 -0
- data/lib/oplogjam/command.rb +41 -0
- data/lib/oplogjam/delete.rb +50 -0
- data/lib/oplogjam/insert.rb +62 -0
- data/lib/oplogjam/noop.rb +39 -0
- data/lib/oplogjam/operation.rb +31 -0
- data/lib/oplogjam/operators.rb +2 -0
- data/lib/oplogjam/operators/assignment.rb +12 -0
- data/lib/oplogjam/operators/field_assignment.rb +11 -0
- data/lib/oplogjam/operators/index_assignment.rb +39 -0
- data/lib/oplogjam/operators/intermediate.rb +47 -0
- data/lib/oplogjam/operators/intermediate_field.rb +13 -0
- data/lib/oplogjam/operators/intermediate_index.rb +43 -0
- data/lib/oplogjam/operators/set.rb +100 -0
- data/lib/oplogjam/operators/unset.rb +40 -0
- data/lib/oplogjam/operators/unset_field.rb +15 -0
- data/lib/oplogjam/operators/unset_index.rb +39 -0
- data/lib/oplogjam/oplog.rb +21 -0
- data/lib/oplogjam/sanitizer.rb +19 -0
- data/lib/oplogjam/schema.rb +44 -0
- data/lib/oplogjam/update.rb +79 -0
- data/spec/oplogjam/apply_ops_spec.rb +174 -0
- data/spec/oplogjam/command_spec.rb +103 -0
- data/spec/oplogjam/delete_spec.rb +163 -0
- data/spec/oplogjam/insert_spec.rb +289 -0
- data/spec/oplogjam/noop_spec.rb +123 -0
- data/spec/oplogjam/operation_spec.rb +110 -0
- data/spec/oplogjam/operators/set_spec.rb +53 -0
- data/spec/oplogjam/sanitizer_spec.rb +35 -0
- data/spec/oplogjam/update_spec.rb +406 -0
- data/spec/spec_helper.rb +19 -0
- metadata +199 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'timecop'
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
5
|
+
config.filter_run_when_matching :focus
|
6
|
+
config.example_status_persistence_file_path = 'spec/examples.txt'
|
7
|
+
config.disable_monkey_patching!
|
8
|
+
config.warnings = true
|
9
|
+
config.default_formatter = 'doc' if config.files_to_run.one?
|
10
|
+
config.profile_examples = 10
|
11
|
+
config.order = :random
|
12
|
+
Kernel.srand config.seed
|
13
|
+
config.expect_with :rspec do |expectations|
|
14
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
15
|
+
end
|
16
|
+
config.mock_with :rspec do |mocks|
|
17
|
+
mocks.verify_partial_doubles = true
|
18
|
+
end
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oplogjam
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Paul Mucur
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bson
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: oj
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.3'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pg
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.21'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.21'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sequel
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mongo
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '12.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '12.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.6'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.6'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: timecop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.9'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.9'
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
executables: []
|
128
|
+
extensions: []
|
129
|
+
extra_rdoc_files: []
|
130
|
+
files:
|
131
|
+
- LICENSE
|
132
|
+
- README.md
|
133
|
+
- lib/oplogjam.rb
|
134
|
+
- lib/oplogjam/apply_ops.rb
|
135
|
+
- lib/oplogjam/command.rb
|
136
|
+
- lib/oplogjam/delete.rb
|
137
|
+
- lib/oplogjam/insert.rb
|
138
|
+
- lib/oplogjam/noop.rb
|
139
|
+
- lib/oplogjam/operation.rb
|
140
|
+
- lib/oplogjam/operators.rb
|
141
|
+
- lib/oplogjam/operators/assignment.rb
|
142
|
+
- lib/oplogjam/operators/field_assignment.rb
|
143
|
+
- lib/oplogjam/operators/index_assignment.rb
|
144
|
+
- lib/oplogjam/operators/intermediate.rb
|
145
|
+
- lib/oplogjam/operators/intermediate_field.rb
|
146
|
+
- lib/oplogjam/operators/intermediate_index.rb
|
147
|
+
- lib/oplogjam/operators/set.rb
|
148
|
+
- lib/oplogjam/operators/unset.rb
|
149
|
+
- lib/oplogjam/operators/unset_field.rb
|
150
|
+
- lib/oplogjam/operators/unset_index.rb
|
151
|
+
- lib/oplogjam/oplog.rb
|
152
|
+
- lib/oplogjam/sanitizer.rb
|
153
|
+
- lib/oplogjam/schema.rb
|
154
|
+
- lib/oplogjam/update.rb
|
155
|
+
- spec/oplogjam/apply_ops_spec.rb
|
156
|
+
- spec/oplogjam/command_spec.rb
|
157
|
+
- spec/oplogjam/delete_spec.rb
|
158
|
+
- spec/oplogjam/insert_spec.rb
|
159
|
+
- spec/oplogjam/noop_spec.rb
|
160
|
+
- spec/oplogjam/operation_spec.rb
|
161
|
+
- spec/oplogjam/operators/set_spec.rb
|
162
|
+
- spec/oplogjam/sanitizer_spec.rb
|
163
|
+
- spec/oplogjam/update_spec.rb
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
homepage: https://github.com/mudge/oplogjam
|
166
|
+
licenses:
|
167
|
+
- MIT
|
168
|
+
metadata: {}
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 2.6.11
|
186
|
+
signing_key:
|
187
|
+
specification_version: 4
|
188
|
+
summary: A Ruby library to convert MongoDB oplog entries into SQL
|
189
|
+
test_files:
|
190
|
+
- spec/oplogjam/apply_ops_spec.rb
|
191
|
+
- spec/oplogjam/command_spec.rb
|
192
|
+
- spec/oplogjam/delete_spec.rb
|
193
|
+
- spec/oplogjam/insert_spec.rb
|
194
|
+
- spec/oplogjam/noop_spec.rb
|
195
|
+
- spec/oplogjam/operation_spec.rb
|
196
|
+
- spec/oplogjam/operators/set_spec.rb
|
197
|
+
- spec/oplogjam/sanitizer_spec.rb
|
198
|
+
- spec/oplogjam/update_spec.rb
|
199
|
+
- spec/spec_helper.rb
|