social_nets_db 0.0.3 → 0.0.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: a3ab9cf4043cbcf478b953642ac43a17ac0d9c629031195b83a86261567dff36
4
- data.tar.gz: 39c106fa105f86275155f9673994ab92a4dcd9a51426191044bcc8b01ba01c6e
3
+ metadata.gz: f700a5cb68bd9fb80912d42a01bc422d5acacc5622b92774f8f00f3ba743d08b
4
+ data.tar.gz: 30293ad58dc87169511ad0cbabe3975882e8c17457efd68d8cd54e99a8f01a83
5
5
  SHA512:
6
- metadata.gz: a1df5f62af4545f80b59830cd1720ce907eba907df990788290f73bbb5697d85d310eb5bc7e0e817ecae466ceebd4df0aea7af42fc1555ba203d9b21aa26bacb
7
- data.tar.gz: 340aa65a98823f0d72da7f5dd12c9de6d613a678e9b65493d13bc2512fcc064eef5a5c8a5ff1987fb696b248ea8d065dd6cf99978f00ccd252fc488fd6fd4247
6
+ metadata.gz: a62fe52dc23653f6711c1b122e0575e2a0da15517ebdb3e61eb3475b89a05378ab0562b929c02827552c19f5a88e7d8a9bfb2c66666a37324788f95c86825b5e
7
+ data.tar.gz: da1ed657ae79271f1ebb7254c9d43dfc9dafc6a13908913d2af7a263234965f87bf8f73b7c935df33827bd7bac06a216dc4f9bc93ec8b9d72d6213827a8caa25
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.4] - 2021-12-03
4
+
5
+ - Corrects an error in `values_for_select`
6
+
3
7
  ## [0.0.3] - 2021-12-03
4
8
 
5
9
  - Corrects an error with email / website
@@ -92,15 +92,15 @@ class SocialNetsDB
92
92
  end
93
93
 
94
94
  def names
95
- RECORDS.map { |uid, data| data[:name] }
95
+ RECORDS.map { |uid, data| data["name"] }
96
96
  end
97
97
 
98
98
  def uids
99
- RECORDS.map { |uid, data| data[:uid].to_s }
99
+ RECORDS.map { |uid, data| data["uid"].to_s }
100
100
  end
101
101
 
102
102
  def values_for_select
103
- RECORDS.map { |uid, data| [data[:name], uid] }
103
+ RECORDS.map { |uid, data| [data["name"], uid] }
104
104
  end
105
105
 
106
106
  alias_method :find, :find_by_uid
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class SocialNetsDB
4
- VERSION = "0.0.3".freeze
4
+ VERSION = "0.0.4".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_nets_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Pedan