lit 1.1.2 → 1.1.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 794e464bbb7293726c17f173655fa433935f74fe62fb4f7e1a43e0ee13eb91e9
|
|
4
|
+
data.tar.gz: c220e762571e1f7b6f058bd07de200a7649e5605d81c387ae51befd2e90de87c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 719737953df89add56b18733c921b3f85edf93d7d5e74c96fcc994a8903baa236b7ba4473f086d299cbdbeba2826da0ed5b10df6f8e87f99d158dfb278c83c01
|
|
7
|
+
data.tar.gz: 349be8208b2e0d8ec209e0eeb1db03e0762fc6c3922e539cf2f0fe2f86b27f723bb8e42a6047b0b1ce6ed40ba09e6946ad10ec6753fb9cac019b30fc843ff9bd
|
|
File without changes
|
|
@@ -11,24 +11,22 @@ module Lit
|
|
|
11
11
|
desc 'Automates Lit installation'
|
|
12
12
|
|
|
13
13
|
def set_authentication_function
|
|
14
|
-
@authentication_function =
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
@authentication_function =
|
|
15
|
+
options['authentication-function'].presence ||
|
|
16
|
+
ask("What's the authentication function, ie. :authenticate_user! :").presence || nil
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def set_key_value_engine
|
|
20
|
-
@key_value_engine =
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
@key_value_engine =
|
|
21
|
+
options['key-value-engine'].presence || ask("What's the key value engine? ([hash] OR redis):").presence ||
|
|
22
|
+
:hash
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def add_redis_dependency
|
|
26
26
|
if @key_value_engine == 'redis'
|
|
27
27
|
puts 'Adding redis dependency'
|
|
28
28
|
gem 'redis'
|
|
29
|
-
Bundler.with_clean_env
|
|
30
|
-
run 'bundle install'
|
|
31
|
-
end
|
|
29
|
+
Bundler.with_clean_env { run 'bundle install' }
|
|
32
30
|
end
|
|
33
31
|
end
|
|
34
32
|
|
|
@@ -42,7 +40,7 @@ module Lit
|
|
|
42
40
|
puts 'Skipping config/initializers/lit.rb creation, file already exists!'
|
|
43
41
|
else
|
|
44
42
|
puts 'Adding lit initializer (config/initializers/lit.rb)...'
|
|
45
|
-
template 'initializer.
|
|
43
|
+
template 'initializer.erb', path
|
|
46
44
|
end
|
|
47
45
|
end
|
|
48
46
|
|
data/lib/lit/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maciej Litwiniuk
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2021-04-
|
|
14
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|
|
@@ -305,7 +305,7 @@ files:
|
|
|
305
305
|
- db/migrate/20181018075955_lit_add_localization_key_is_deleted_to_localization_keys.rb
|
|
306
306
|
- db/migrate/20181030111522_lit_add_is_visited_again_to_localization_keys.rb
|
|
307
307
|
- db/migrate/20181129103819_lit_add_localization_key_locale_unique_index_to_localizations.rb
|
|
308
|
-
- lib/generators/lit/install/templates/initializer.
|
|
308
|
+
- lib/generators/lit/install/templates/initializer.erb
|
|
309
309
|
- lib/generators/lit/install_generator.rb
|
|
310
310
|
- lib/lit.rb
|
|
311
311
|
- lib/lit/adapters/hash_storage.rb
|