miga-base 1.3.9.5 → 1.3.9.6

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: b2f7ce1299d3d30cc002c12d05cbb80ecd0ed3e542ea741a97ea6586050507bb
4
- data.tar.gz: 264c50bd0ce1c8e63aacc9bcf77fd5c3965b0640cfe5e666c7fe669b50c3e7c1
3
+ metadata.gz: d4b28c04587658e8efa8fcbd012d003b24d1526c1563d82d33a4ae68f561926c
4
+ data.tar.gz: d835e3bf5474c897c000d7b2f096dda0946a0ee759fa9d43b017b5f4ffdf324f
5
5
  SHA512:
6
- metadata.gz: fabf0a936099b9f80ccd1e15babac2ab2c809173af73aa3f13a95df998a79ddd763d5e57161545d519e36f41d84b0aa3645198d6282139d473391189e3e31a48
7
- data.tar.gz: 6bf137db6a855c719aa8597bed4eabfc9beab7432482d9623dddc0024197241b8e2f5ae9c0653325e12450b8dc8477f43851cb70807c0d1e1aa4f98291075b09
6
+ metadata.gz: 6121ff05020da43565f597167e0a36a948bc5d4d8507ab38128e2bfdfd72000d0bddff02e20ad3bf3ef62fd0d5dd48cc7db68c2a77c662ba24baa7185fd3763d
7
+ data.tar.gz: f19fb727f8adb2620fa92c742421466cd1668991d5ce6bf80571f5a633b7f0b0767d83159871151681d0cd7469e296b6698c2efea32d65e63f570e55d5df5881
@@ -79,7 +79,7 @@ module MiGA::Cli::Action::Download::Ncbi
79
79
 
80
80
  if cli[:ncbi_list_json]
81
81
  cli.say "Saving remote list: #{cli[:ncbi_list_json]}"
82
- MiGA::Json.generate_plain(list, cli[:ncbi_list_json])
82
+ MiGA::Json.generate_fast(list, cli[:ncbi_list_json])
83
83
  end
84
84
 
85
85
  list
data/lib/miga/json.rb CHANGED
@@ -75,6 +75,13 @@ class MiGA::Json < MiGA::MiGA
75
75
  generate_generic(:generate, obj, path)
76
76
  end
77
77
 
78
+ ##
79
+ # Generates and returns plain JSON to represent +obj+ without checking for
80
+ # circular references. If +path+ is passed, it saves the JSON in that file.
81
+ def generate_fast(obj, path = nil)
82
+ generate_generic(:fast_generate, obj, path)
83
+ end
84
+
78
85
  private
79
86
 
80
87
  def generate_generic(method, obj, path)
@@ -26,7 +26,7 @@ module MiGA::Project::Dataset
26
26
  ##
27
27
  # Returns MiGA::Dataset
28
28
  def dataset(name)
29
- name = name.miga_name
29
+ name = name.to_s.miga_name
30
30
  return nil unless MiGA::Dataset.exist?(self, name)
31
31
 
32
32
  @datasets ||= {}
data/lib/miga/version.rb CHANGED
@@ -12,7 +12,7 @@ module MiGA
12
12
  # - String indicating release status:
13
13
  # - rc* release candidate, not released as gem
14
14
  # - [0-9]+ stable release, released as gem
15
- VERSION = [1.3, 9, 5].freeze
15
+ VERSION = [1.3, 9, 6].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
@@ -20,7 +20,7 @@ module MiGA
20
20
 
21
21
  ##
22
22
  # Date of the current gem relese.
23
- VERSION_DATE = Date.new(2024, 1, 23)
23
+ VERSION_DATE = Date.new(2024, 1, 24)
24
24
 
25
25
  ##
26
26
  # References of MiGA
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9.5
4
+ version: 1.3.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons