使用Ruby包装器访问Discogs:key';计数';已替换为';总计';

使用Ruby包装器访问Discogs:key';计数';已替换为';总计';,ruby,discogs-api,Ruby,Discogs Api,我试图编写一个简短的脚本,从CSV文件中读取记录的标签ID,搜索Discogs并返回找到的所有信息,我使用这个ruby包装器访问Discogs: 得到这个作为回报: [DEPRECATED]: The key 'count' has been replaced with 'total'. When accessing, please use the latter. This message will be removed in the next major release. W

我试图编写一个简短的脚本,从CSV文件中读取记录的标签ID,搜索Discogs并返回找到的所有信息,我使用这个ruby包装器访问Discogs:

得到这个作为回报:

[DEPRECATED]: The key 'count' has been replaced with 'total'. When     accessing, please use the latter. This message will be removed in the next major     release.
W, [2018-01-15T19:29:26.463127 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#count defined in Enumerable. This     can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.467639 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.469200 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method.
W, [2018-01-15T19:29:26.469642 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.470643 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.471159 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.471644 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.472192 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.472653 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.473155 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.473653 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
老实说,我不确定这对我意味着什么,我对ruby还很陌生,但就我所见,我没有弄乱语法或Discogs自身的结构,或者我只是弄错了什么?非常感谢你!
您好,rtuz2th

只想指出您的原始代码无法运行,因为它有一些小问题(例如,包含单引号字符的单引号分隔字符串)。无论如何,我不确定,但我看到您在github上提出了一个问题,这是一个好的开端gem
discogs包装器
依赖于其他3个gem:
hashie
httparty
oauth
,并且该弃用警告很可能来自这3个gem中的一个(或其依赖项)。这只是一个弃用警告,你还不必担心它。请确保您始终使用最新版本。好的,非常感谢您的帮助!如果这是我的错误,那不是舒尔,所以我不是舒尔关于github的。
[DEPRECATED]: The key 'count' has been replaced with 'total'. When     accessing, please use the latter. This message will be removed in the next major     release.
W, [2018-01-15T19:29:26.463127 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#count defined in Enumerable. This     can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.467639 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.469200 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method.
W, [2018-01-15T19:29:26.469642 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.470643 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.471159 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.471644 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.472192 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.472653 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.473155 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.
W, [2018-01-15T19:29:26.473653 #12056] WARN -- : You are setting a key that     conflicts with a built-in method Hashie::Mash#type_ defined in Hashie::Mash.     This can cause unexpected behavior when accessing the key as a property. You can     still access the key via the #[] method.