rails_event_store_active_record 0.6.12 → 0.6.13

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: 2de78176117b7f8f5f156f747f104f84c28b2929
4
- data.tar.gz: 3b0220033c70d23aad69c662781c4987cbd9a1e8
3
+ metadata.gz: 772e54bf88c1b4ffb31fb3a838335870be4f5630
4
+ data.tar.gz: 122e4f6f15ea78ec984a41be605d476fd4f24ef8
5
5
  SHA512:
6
- metadata.gz: a5c3f86b18c4fca3983df8171aa63ca527c50d58f8a31357b7ceb7c7adfaa07dc92ab0b1c09c74534d69f0d9d9a1c6ba907fd98a3e0440dff1d18ad5fb2d47a8
7
- data.tar.gz: 9b2bf9ad3fae6f219eca12012a3e75a2f40487923e88ee9ff5441ff41c634e4016f638afa0a231cff2cea3ecb9c48ce861193c402e46094f6e8f4c4cc4c9cae7
6
+ metadata.gz: ac99bcc7a22aab73c1f4dc74e7503ab47ec06f20424300c9d2621861790ecfbe914aade7b82d3fcca5756da8e69fac1f88ff2e996579c14979529af026fdfa90
7
+ data.tar.gz: e37e7b0b9a7f25caa0c789c6ccd8b46710d592585cc90c3cc5886aac0e9ff138266a13bb3d11de83bd546cddaaae5b94fc6ca683548c65c1d5b0f3c2735ae77c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ### 0.6.11 (21.08.2017)
1
+ ### 0.6.13 (24.08.2017)
2
+
3
+ * Fix: Generate migration with version number for Rails versions that support it. Fixes compatibility with Rails 5.1.
4
+
5
+ ### 0.6.12 (21.08.2017)
2
6
 
3
7
  * ruby_event_store updated to 0.14.0
4
8
 
data/CONTRIBUTING.md CHANGED
@@ -1,27 +1,3 @@
1
- # Contributing to RailsEventStoreActiveRecord
1
+ # Contributing to this repository
2
2
 
3
- Any kind of contribution is welcomed. Here is a few guidelines that we need contributors to follow.
4
-
5
- ## Found a bug? Have a question?
6
-
7
- * [Create a new issue](https://github.com/arkency/rails_event_store_active_record/issues/new), assuming one does not already exist.
8
- * Clearly describe the issue including steps to reproduce when it is a bug.
9
- * If possible provide a Pull Request with failing test case.
10
-
11
- ## Getting Started
12
-
13
- * Make sure you have a [GitHub account](https://github.com/signup/free).
14
- * [Fork the repository](https://help.github.com/articles/fork-a-repo/) on GitHub.
15
-
16
- ## Making Changes
17
-
18
- * Create a feature branch from where you want to base your work.
19
- * Do your work. Please try to keep your commits small and focussed.
20
- * Make sure you have added the necessary tests for your changes.
21
- * Push your changes to a feature branch in your fork of the repository.
22
- * Submit a pull request to the RailsEventStore repository.
23
-
24
- # Additional Resources
25
-
26
- * [General GitHub documentation](http://help.github.com/)
27
- * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
3
+ Contribution Policy for this repository: [http://railseventstore.org/docs/contributing.html](http://railseventstore.org/docs/contributing.html)
@@ -10,9 +10,17 @@ module RailsEventStoreActiveRecord
10
10
 
11
11
  private
12
12
 
13
+ def rails_version
14
+ Rails::VERSION::STRING
15
+ end
16
+
17
+ def migration_version
18
+ return nil if Gem::Version.new(rails_version) < Gem::Version.new("5.0.0")
19
+ "[4.2]"
20
+ end
21
+
13
22
  def timestamp
14
23
  Time.now.strftime("%Y%m%d%H%M%S")
15
24
  end
16
-
17
25
  end
18
26
  end
@@ -1,4 +1,4 @@
1
- class CreateEventStoreEvents < ActiveRecord::Migration
1
+ class CreateEventStoreEvents < ActiveRecord::Migration<%= migration_version %>
2
2
  def change
3
3
  create_table(:event_store_events) do |t|
4
4
  t.string :stream, null: false
@@ -1,3 +1,3 @@
1
1
  module RailsEventStoreActiveRecord
2
- VERSION = "0.6.12"
2
+ VERSION = "0.6.13"
3
3
  end
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'rails', '~> 4.2'
27
27
  spec.add_development_dependency 'sqlite3'
28
28
  spec.add_development_dependency 'mutant-rspec', '~> 0.8.11'
29
+ spec.add_development_dependency 'fakefs'
29
30
 
30
31
  spec.add_dependency 'ruby_event_store', '~> 0.14.0'
31
32
  spec.add_dependency 'activesupport', '>= 3.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_event_store_active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.12
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-21 00:00:00.000000000 Z
11
+ date: 2017-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.8.11
111
+ - !ruby/object:Gem::Dependency
112
+ name: fakefs
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: ruby_event_store
113
127
  requirement: !ruby/object:Gem::Requirement