lit 1.1.2 → 1.1.4

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
  SHA256:
3
- metadata.gz: 4d3b3569eb99f453aea4b65451511bdeb76680774b664ab108f445359b9e10f0
4
- data.tar.gz: cbf55f8eefb23231f5201087e612a58172e2ce4537fc0c8211a597ebba8e5f88
3
+ metadata.gz: 794e464bbb7293726c17f173655fa433935f74fe62fb4f7e1a43e0ee13eb91e9
4
+ data.tar.gz: c220e762571e1f7b6f058bd07de200a7649e5605d81c387ae51befd2e90de87c
5
5
  SHA512:
6
- metadata.gz: be93a781bdea6ff7a095bd86a60fc671c5f325f6d6f37a45bfea883b549f3655c4d9d5e768b125181501b944303dccc89d3032180952f4f870a8878bc7d6816d
7
- data.tar.gz: 8655233c8aba69f06bf775bd28df3bc7e17f81f4378dab0f8818c6fac05e22e521ef966c5ae3706dfc3f2552d747687d22c241422f51aeab1f34764bc30bd698
6
+ metadata.gz: 719737953df89add56b18733c921b3f85edf93d7d5e74c96fcc994a8903baa236b7ba4473f086d299cbdbeba2826da0ed5b10df6f8e87f99d158dfb278c83c01
7
+ data.tar.gz: 349be8208b2e0d8ec209e0eeb1db03e0762fc6c3922e539cf2f0fe2f86b27f723bb8e42a6047b0b1ce6ed40ba09e6946ad10ec6753fb9cac019b30fc843ff9bd
@@ -11,24 +11,22 @@ module Lit
11
11
  desc 'Automates Lit installation'
12
12
 
13
13
  def set_authentication_function
14
- @authentication_function = options['authentication-function'].presence ||
15
- ask("What's the authentication function, ie. :authenticate_user! :").presence ||
16
- nil
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 = options['key-value-engine'].presence ||
21
- ask("What's the key value engine? ([hash] OR redis):").presence ||
22
- :hash
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 do
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.rb', path
43
+ template 'initializer.erb', path
46
44
  end
47
45
  end
48
46
 
data/lib/lit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lit
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.1.4'.freeze
3
3
  end
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.2
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-26 00:00:00.000000000 Z
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.rb
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