eco-helpers 2.0.51 → 2.0.52

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: fb5e3755230835f1a3ad402b7dd2fc9b25902ea2ca3a621c8eae0229de716791
4
- data.tar.gz: c0af346142ec3ff97c32503597ae36d9844273e1c20fb6908a3cfcf5595dff54
3
+ metadata.gz: c6424664c072321d2d1c45388fea06cfe16e8e42f4949e202be31555e8e052fa
4
+ data.tar.gz: 7b18ae74a24157949fbb80b26320b31312ef91c43eb73f1384c8c964da52e79c
5
5
  SHA512:
6
- metadata.gz: 4a2f508415dac83ffe596e330d56a55eb427788d57d239b62b1523bb6abb8f465d6400c1f0c61135d7eb6e036a595d7aacb158cc464e9840a5af8ac56d3582af
7
- data.tar.gz: b791358e41d4aa2db17b5fcd68e0e2aa97af7b4c31d21d9308132e470f07a67c638b53085846006363e2d9d962dba9b5250a9afe358844b113ac4a7c73a4df53
6
+ metadata.gz: 6d1e57dc41b76a01bc80cf08108b4e50a456976dbe05bb33a4620cccb2ae745c76e88ce5af0c43795171ac758f6f55465835e22373a484967dd5a4f3ed57e318
7
+ data.tar.gz: 901007d2346ef608b67011e6f49f560c16a5cb6f0010b16fa24441bf2cfd06a8f8aa82dfd4ba78b86e50cd0aca340047173f6e80800f56340dad668bb27f1516
data/CHANGELOG.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [2.0.52] - 2022-02-xx
5
+
6
+ ### Added
7
+ - `Eco::API::UseCases::DefaultCases::CleanUnknownTags` include `default_tag` refresh
8
+
9
+ ### Changed
10
+ ### Fixed
11
+ - `Eco::Data::Files::Directory#dir_files` to be returned in alphabetic order
12
+
4
13
  ## [2.0.51] - 2022-02-27
5
14
 
6
15
  ### Added
7
16
  - `Eco::API::MicroCases#person_update!` launches an update against the Server for one person
8
17
  - `Eco::API::MicroCases#take_email_from_account` with given an account associated to an `email` that we cannot take, it associates that account to a different email
9
18
 
10
- ### Changed
11
- ### Fixed
12
-
13
19
  ## [2.0.50] - 2022-02-23
14
20
 
15
21
  ### Added
@@ -23,6 +23,12 @@ class Eco::API::UseCases::DefaultCases::CleanUnknownTags < Eco::API::Common::Loa
23
23
  unknown_tags = person.filter_tags.select {|tag| !tag?(tag)}
24
24
  person.filter_tags -= unknown_tags
25
25
  unknown_tag!(*unknown_tags)
26
+ if (account = person.account) && tag = account.default_tag
27
+ unless tag?(tag)
28
+ micro.refresh_default_tag(person.entry, person, options)
29
+ unknown_tag!(tag)
30
+ end
31
+ end
26
32
  update.add(person)
27
33
  end
28
34
  end
@@ -53,7 +53,7 @@ module Eco
53
53
 
54
54
  def dir_files(file: nil, pattern: dir_pattern)
55
55
  find = !!file ? file_pattern(file) : file_pattern(pattern)
56
- Dir.glob(find)
56
+ Dir.glob(find).sort
57
57
  end
58
58
 
59
59
  def newest_file(files_list = nil, file: nil)
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.0.51"
2
+ VERSION = "2.0.52"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.51
4
+ version: 2.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura