petasos 0.3.0 → 0.3.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/petasos/location.rb +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb6d3349efb1d5df1e59fb199b7ee742462e25ba5b0637b3d96ae837bfddbe6a
4
- data.tar.gz: 055bbda229afefba11e1bdc79ce3d0b32cdce8fbfb9d62d6a2ba2f7663d0608a
3
+ metadata.gz: b7bd8aa04cae7535d319a4b2d9141e2f40bb95b8342613541fe605022735c9b3
4
+ data.tar.gz: d418dabaf63b7a0b6b2777cd30a3a333bcbc2ee59a60cbd63ceceda9cb78485d
5
5
  SHA512:
6
- metadata.gz: 9b683fe0a0cecf5685fbfaf459335b97bea7e69a34207ea90967235a415facdb996c8e0614d71417ce9dfc632df7b6a2e9121a43ad339cf83506e7094a014f5a
7
- data.tar.gz: 8d73c62519cc0b98c566e8b27d51be01c3ca071488f21be3999a0ba407be4e212bf252af5c8e974b89dedcca6ed28f8528506c0d85c3d376d106874ef25c7614
6
+ metadata.gz: 51ad7a4fb5de50153261a857597836cb302c1f6f8263ab850e25dfac91a1b3c8dab751e4222da75c597f259360d9cf7894dc9185fc7034c8046d98e0068cdccb
7
+ data.tar.gz: 7acb74142c0bf285cad8d715505fb27625dd18ec90cab3f9763c7068ca393bbbb8a01fbd840ce3070721dd323be0ead3b4a1a6fc122154924ae5df4227de3d70
@@ -46,7 +46,8 @@ class Petasos::Location
46
46
 
47
47
  # update list of seen files
48
48
  # unless the location opts out
49
- unless config["disable_seen"]
49
+ # or the pool opts out
50
+ unless config["disable_seen"] or pool["disable_seen"]
50
51
  update_seen_pool_files(pool, seen_pool_files + new_files)
51
52
  end
52
53
  end
@@ -131,8 +132,10 @@ class Petasos::Location
131
132
 
132
133
  def initialize_all_seen_pool_files
133
134
  pools.each do |pool|
134
- yaml_path = "seen_#{config["name"]}_#{pool["name"]}.yaml"
135
- write_yaml(yaml_path, []) unless File.file?(yaml_path)
135
+ unless config["disable_seen"] or pool["disable_seen"]
136
+ yaml_path = "seen_#{config["name"]}_#{pool["name"]}.yaml"
137
+ write_yaml(yaml_path, []) unless File.file?(yaml_path)
138
+ end
136
139
  end
137
140
  end
138
141
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: petasos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Myers