sandthorn_sequel_projection 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 4ed993e1161fdd690cbdc9d687b477bc817d9914
4
- data.tar.gz: 761900e638aacf45e73657775e9b933b906b72e8
3
+ metadata.gz: fd7e60a70c4a2d0f1074dea867281bf9138ceef1
4
+ data.tar.gz: 89e32de168ec58ea217bec061767687de4f54804
5
5
  SHA512:
6
- metadata.gz: b3aaf8e7a717c7ed0350af0255f899e208b544519c3f43c15bebdde8127e5ba06e96af036e06e4c6259ea06931de67ac975471c9cb0bd797305498dc92e8467a
7
- data.tar.gz: ca046141de5a0893faab75c07661244c598bcc4a28d2faad01486e0e541323c6e217fe5f954d2a65474a2ba82a6a7a7eed1fbe453006719001af1adda13102bf
6
+ metadata.gz: 8d07c96e0eb781e401267d6007ecf42c18f18f979b7c9d4f10194e0d463a7921e8975ba108a394c04ca480279173fd0e55b9f487338c4e8bd9c4e0a9f1a30856
7
+ data.tar.gz: 874b41407f5c1d7a3820ec01ed11998c8a607cfeb077598b45043a0d5b2348e4c6eb1bc65d88393df92afe669f54f7fcdd9598abdb2b3bf7dd6530b8f3b84b05
@@ -5,7 +5,7 @@ require 'forwardable'
5
5
  extend Forwardable
6
6
  include SimpleMigrator::Migratable
7
7
 
8
- def_delegators self, :identifier, :event_store
8
+ def_delegators :klass, :identifier, :event_store
9
9
  def_delegators :tracker, :last_processed_sequence_number
10
10
 
11
11
  attr_reader :db_connection, :event_handlers, :tracker
@@ -25,6 +25,10 @@ require 'forwardable'
25
25
  end
26
26
  end
27
27
 
28
+ def klass
29
+ self.class
30
+ end
31
+
28
32
  def migrator
29
33
  SimpleMigrator.migrator(db_connection)
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module SandthornSequelProjection
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
32
32
  spec.add_runtime_dependency "sandthorn", "~> 0.7"
33
33
  spec.add_runtime_dependency "sandthorn_event_filter", "~> 0.0.4"
34
34
  spec.add_runtime_dependency "sequel"
35
- spec.add_runtime_dependency "simple_migrator", "~> 0.0.2"
35
+ spec.add_runtime_dependency "simple_migrator", "~> 0.0.3"
36
36
 
37
37
  end
@@ -41,6 +41,12 @@ module SandthornSequelProjection
41
41
  end
42
42
  end
43
43
 
44
+ describe "#identifier" do
45
+ it "snake cases the class identifier" do
46
+ expect(MyModule::TestProjection.new.identifier).to eq("sandthorn_sequel_projection_my_module_test_projection")
47
+ end
48
+ end
49
+
44
50
  describe "#update!" do
45
51
 
46
52
  before do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sandthorn_sequel_projection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Krantz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.0.2
173
+ version: 0.0.3
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.0.2
180
+ version: 0.0.3
181
181
  description: Helps creating sql projections from sandthorn events
182
182
  email:
183
183
  - lars.krantz@alaz.se
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  version: '0'
246
246
  requirements: []
247
247
  rubyforge_project:
248
- rubygems_version: 2.4.3
248
+ rubygems_version: 2.4.6
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: Helps creating sql projections from sandthorn events