viperaptor 2.0.1 → 2.0.2

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: 1ad2f1f1236c489a2da07d3f32fe6f83c00229fec6aeb6e9d88069c8f721a8ab
4
- data.tar.gz: 5dca6caf4e2ba5050c6ae5770e88abb79019a7e90d06e551f5289e02e5e8d68a
3
+ metadata.gz: '05568a147ce6c94c0129756da124fbcdcccd0adadeda98470f8d74e7e6593e27'
4
+ data.tar.gz: c4e0440b2aa1cddafc1ca301ecb5097bef675bace8d3819bdd76f3e8d90766c1
5
5
  SHA512:
6
- metadata.gz: e071d663481b3ff80bbb44723247f7f8b807001105b8473c8b09c7f14fb6615aec6d1d93f9ec6c90b3afe46bc275164593daf8aaae5317dff2a80a8a5377a9ca
7
- data.tar.gz: b7de98cd987e5259f037669908769e80f786c82d607d4608c54683b1dc02f4e65b6411b0b3eca15b809865bb7a6a62a22ebc6f9f451872db606dc4fc571fc241
6
+ metadata.gz: 5208926beb1bab564491ddea68e61aa46a96091308491906e8df816a0da5b2f8709dbd1a86c10eaf26bc6c524d6df489198c5f1a9c1ea7f7928e2ee56116751d
7
+ data.tar.gz: 2ae41d53a65ae9066ef1fd2b47113cc68c52d2485a88709c27da64548eea5bee8249142deb4f775e6ce52629f1702162b544a4b211ed33a5b135c5743d4a9155
@@ -22,7 +22,7 @@ module Viperaptor
22
22
  preferences = file_contents.empty? ? {} : YAML.load(file_contents).to_hash
23
23
 
24
24
  history = preferences[USER_PREFERENCES_TEMPLATES_HISTORY_KEY] || []
25
- if history.count == 0 && history[0] != template_name
25
+ if history.count == 0 || history[0] != template_name
26
26
  history.unshift(template_name)
27
27
  max_history = 60
28
28
  if history.count > max_history
@@ -1,5 +1,5 @@
1
1
  module Viperaptor
2
- VERSION = '2.0.1'
3
- RELEASE_DATE = '11.01.2021'
2
+ VERSION = '2.0.2'
3
+ RELEASE_DATE = '29.01.2021'
4
4
  RELEASE_LINK = "https://github.com/ladeiko/Viperaptor/releases/tag/#{VERSION}"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viperaptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siarhei Ladzeika
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor