lite-archive 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/generators/lite/archive/install_generator.rb +0 -2
- data/lib/lite/archive.rb +5 -5
- data/{config → lib/lite/archive}/locales/en.yml +0 -0
- data/lib/lite/archive/railtie.rb +8 -10
- data/lib/lite/archive/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 851598e0a76d9695dd9eaeb19dc963dfac444ad698b7181a604a4783538dfc41
|
4
|
+
data.tar.gz: 61f17b3822835e73a51e44ebba4294ce7fb3ec5ec2d991e295c28d31a008ddda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93521127ebf7885e35a8cc33e41df535e3379681f4d4f8e70f16030832215a27f8ba5ade973f1ffd5165f45cc47137e273b1a9d9a0d05f9fa97dd25d58dbdb40
|
7
|
+
data.tar.gz: e13824f54810e733fa66311af86b65088beed5ba307e9074c62a43ca491d7ddb9fb9e132b91f5c3df04971dfb7ddc0326a504c1d9e44c1ac368e67f95bd98961
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/lite/archive.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'active_record'
|
4
|
-
require 'active_support'
|
3
|
+
require 'active_record' unless defined?(ActiveRecord)
|
4
|
+
require 'active_support' unless defined?(ActiveSupport)
|
5
5
|
|
6
|
+
require 'generators/lite/archive/install_generator' if defined?(Rails::Generators)
|
7
|
+
|
8
|
+
require 'lite/archive/railtie' if defined?(Rails::Railtie)
|
6
9
|
require 'lite/archive/version'
|
7
|
-
require 'lite/archive/railtie' if defined?(Rails)
|
8
10
|
|
9
11
|
%w[configuration schema_statement table_definition methods scopes base].each do |name|
|
10
12
|
require "lite/archive/#{name}"
|
11
13
|
end
|
12
|
-
|
13
|
-
require 'generators/lite/archive/install_generator'
|
File without changes
|
data/lib/lite/archive/railtie.rb
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'rails/railtie'
|
4
|
-
|
5
3
|
module Lite
|
6
4
|
module Archive
|
7
|
-
class Railtie <
|
5
|
+
class Railtie < Rails::Railtie
|
8
6
|
|
9
|
-
initializer 'lite-archive.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
next if !File.file?(path) || I18n.load_path.include?(path)
|
7
|
+
initializer 'lite-archive.configure_locales' do |app|
|
8
|
+
Array(app.config.i18n.available_locales).each do |locale|
|
9
|
+
path = File.expand_path("../locales/#{locale}.yml", __FILE__)
|
10
|
+
next unless File.file?(path)
|
14
11
|
|
15
|
-
|
16
|
-
end
|
12
|
+
I18n.load_path << path
|
17
13
|
end
|
14
|
+
|
15
|
+
I18n.reload!
|
18
16
|
end
|
19
17
|
|
20
18
|
end
|
data/lib/lite/archive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -228,12 +228,12 @@ files:
|
|
228
228
|
- _config.yml
|
229
229
|
- bin/console
|
230
230
|
- bin/setup
|
231
|
-
- config/locales/en.yml
|
232
231
|
- lib/generators/lite/archive/install_generator.rb
|
233
232
|
- lib/generators/lite/archive/templates/install.rb
|
234
233
|
- lib/lite/archive.rb
|
235
234
|
- lib/lite/archive/base.rb
|
236
235
|
- lib/lite/archive/configuration.rb
|
236
|
+
- lib/lite/archive/locales/en.yml
|
237
237
|
- lib/lite/archive/methods.rb
|
238
238
|
- lib/lite/archive/railtie.rb
|
239
239
|
- lib/lite/archive/schema_statement.rb
|