ridgepole 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/README.md +2 -0
- data/lib/ridgepole/delta.rb +1 -1
- data/lib/ridgepole/dsl_parser/context.rb +4 -0
- data/lib/ridgepole/version.rb +1 -1
- data/spec/dsl_parser/context_spec.rb +16 -0
- data/spec/fixtures/for_require_relative_spec.rb +3 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1663947686d2cff34fc79b5f06e6b9df2568b6c52f4e37be19a55dd3881f02f6
|
4
|
+
data.tar.gz: '0656469c72c0085c89fbdf29e180da8dca898e3a1d80d415cb0e3b2f03fb808f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da61fdbb7da55e9dd9d8fb7333f267292183397dc6454b246c3b6e5ba20b452213db281ad82a23547b814ede7b3f22aa5c9b1c3800b6357dd44ef4c038bf99a0
|
7
|
+
data.tar.gz: 28c19d1c188746f28be8ea271193946eb9f19107adb81a92cf461af416b661df5babe75ed06a74234368fdd24b18f914ec0bdf3ff8b0e4b5b145fbd186f572bb
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -113,6 +113,8 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
|
|
113
113
|
* Improve warning message on table options ([pull#291](https://github.com/winebarrel/ridgepole/pull/291))
|
114
114
|
* `>= 0.8.6`
|
115
115
|
* Support multiple databases feature ([pull#297](https://github.com/winebarrel/ridgepole/pull/297))
|
116
|
+
* `>= 0.8.7`
|
117
|
+
* Support `require_relative` ([pull#298](https://github.com/winebarrel/ridgepole/pull/298))
|
116
118
|
</details>
|
117
119
|
|
118
120
|
## Installation
|
data/lib/ridgepole/delta.rb
CHANGED
data/lib/ridgepole/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe Ridgepole::DSLParser::Context do
|
4
|
+
describe '#require_relative' do
|
5
|
+
subject { context.require_relative(relative_path) }
|
6
|
+
|
7
|
+
let!(:context) do
|
8
|
+
Ridgepole::DSLParser::Context.new
|
9
|
+
end
|
10
|
+
let!(:relative_path) do
|
11
|
+
'../fixtures/for_require_relative_spec.rb'
|
12
|
+
end
|
13
|
+
|
14
|
+
it { is_expected.to be_truthy }
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridgepole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -286,7 +286,9 @@ files:
|
|
286
286
|
- omnibus-ridgepole/package-scripts/ridgepole/postrm
|
287
287
|
- ridgepole.gemspec
|
288
288
|
- spec/cli_helper.rb
|
289
|
+
- spec/dsl_parser/context_spec.rb
|
289
290
|
- spec/erb_helper.rb
|
291
|
+
- spec/fixtures/for_require_relative_spec.rb
|
290
292
|
- spec/hide_pending_formatter.rb
|
291
293
|
- spec/mysql/_migrate/migrate_change_table_option_spec.rb
|
292
294
|
- spec/mysql/bigint_pk/bigint_pk_spec.rb
|
@@ -448,7 +450,9 @@ specification_version: 4
|
|
448
450
|
summary: Ridgepole is a tool to manage DB schema.
|
449
451
|
test_files:
|
450
452
|
- spec/cli_helper.rb
|
453
|
+
- spec/dsl_parser/context_spec.rb
|
451
454
|
- spec/erb_helper.rb
|
455
|
+
- spec/fixtures/for_require_relative_spec.rb
|
452
456
|
- spec/hide_pending_formatter.rb
|
453
457
|
- spec/mysql/_migrate/migrate_change_table_option_spec.rb
|
454
458
|
- spec/mysql/bigint_pk/bigint_pk_spec.rb
|