izolenta 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c88c2f580d9d1d4e4f8fba35e5a865a18520c63aee5c24d6457aaa32fb6a2da8
4
- data.tar.gz: 8b5315fb79d1dfc3a5a1186190f296848c81876a8bfeb5f29e897ce814b6e45d
3
+ metadata.gz: fd520ce5cefeee28f6985c56bc36b29f102dfdb5972ee736d6cabd11928139b9
4
+ data.tar.gz: 8e3e5acc0b8d853e9f78a9a8b1bc25e3e08836c506e0787fdb465420700f81fd
5
5
  SHA512:
6
- metadata.gz: 6394a0583ce73f68e0bd50f1d35feb8c2dd5a74f4f6ae729d5e446291b7495098b4772d84039eb185254cbbc7f153e90910f0dc9d20edfe3057223bea1040f2e
7
- data.tar.gz: 560940e4fa253be7315f351e9c757d73d995eafe7d8584ad08ffb6ec9b235aa8c8386f09b01f6d5a4244c499be2fae5e814580a920391abb20c3352df13a21eb
6
+ metadata.gz: d63396b28549ecde16b8e810c3c667c2a0245ee6fdce41cc9f1239abd5ebbad50e9b22a71780bf3b73ee7911bedd865e2d4f9315af6541ca226d5891b57f5dde
7
+ data.tar.gz: 8713a4d8039f843fe4d5eb9487a1dcf54146e83bc09564383a1673407034de28b3e1d6469b349dcf44ec23ca2f9b4a77b6d5d0dff23cc3828d87bd30fe25c9c6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #0.0.6
2
+ - new ruby 3 image for ruby 3 testing
3
+ - fix get_new_column_type incompatibility with ruby
4
+
1
5
  #0.0.5
2
6
  - rubocop-shopify added to dev dependencies
3
7
  - fixed ruby 3.0 incompatibility in delegate_uniqueness, now gem could be used with ruby 3+
data/README.md CHANGED
@@ -64,6 +64,9 @@ docker-compose build
64
64
 
65
65
  docker-compose run test /bin/bash
66
66
  > service postgresql start && rake test
67
+
68
+ docker-compose run test3 /bin/bash
69
+ > service postgresql start && rake test
67
70
  ```
68
71
 
69
72
  ## Future Features
data/docker-compose.yml CHANGED
@@ -8,3 +8,11 @@ services:
8
8
  volumes:
9
9
  - '.:/app'
10
10
 
11
+ test3:
12
+ build:
13
+ context: .
14
+ dockerfile: ruby3.Dockerfile
15
+ image: izolenta3
16
+ command: service postgresql start && rake test
17
+ volumes:
18
+ - '.:/app'
@@ -11,7 +11,7 @@ if defined? ActiveRecord
11
11
  reversible do |dir|
12
12
  dir.up do
13
13
  Helpers.create_helper_table(helper_table_name, column,
14
- Helpers.get_new_column_type(origin_table, column, options))
14
+ Helpers.get_new_column_type(origin_table, column, **options))
15
15
  add_index(helper_table_name, column, unique: true)
16
16
 
17
17
  Helpers.create_sync_trigger(origin_table, column, helper_table_name, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Izolenta
4
- VERSION = "0.0.5"
4
+ VERSION = "0.0.6"
5
5
  end
data/ruby3.Dockerfile ADDED
@@ -0,0 +1,20 @@
1
+ FROM ruby:3-bullseye
2
+
3
+ WORKDIR /app
4
+ RUN apt-get update && apt-get -y install lsb-release
5
+ #
6
+ RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
7
+ sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
8
+ apt-get update && apt-get -y install postgresql postgresql-client-12
9
+
10
+ RUN sh -c 'echo "local all all trust" > /etc/postgresql/14/main/pg_hba.conf' && \
11
+ service postgresql start && \
12
+ psql -U postgres -c 'CREATE DATABASE "izolenta-test"'
13
+
14
+ RUN gem install bundler
15
+
16
+ COPY lib/izolenta/version.rb /app/lib/izolenta/version.rb
17
+ COPY izolenta.gemspec /app/
18
+ COPY Gemfil* /app/
19
+ #
20
+ RUN bundle install
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: izolenta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
@@ -92,6 +92,7 @@ files:
92
92
  - lib/izolenta.rb
93
93
  - lib/izolenta/active_record_migration.rb
94
94
  - lib/izolenta/version.rb
95
+ - ruby3.Dockerfile
95
96
  homepage: https://github.com/alekseyl/izolenta
96
97
  licenses:
97
98
  - MIT