Compare commits

..

No commits in common. "234c866e2849f09bd69428cc9e5cefe111ef1535" and "a4dd6804455e330bea6f70ccc35c09d49c89cd7a" have entirely different histories.

7 changed files with 14 additions and 4 deletions

View file

@ -60,6 +60,7 @@ gem 'letter_opener', '~> 1.8', '>= 1.8.1', group: :development
gem 'parallel', '~> 1.23'
# For miscellaneous HTTP requests.
gem "httparty", "~> 0.22.0"
gem "addressable", "~> 2.8"
# For advanced batching of many HTTP requests.

View file

@ -133,6 +133,7 @@ GEM
bigdecimal
rexml
crass (1.0.6)
csv (3.3.2)
date (3.4.1)
debug (1.9.2)
irb (~> 1.10)
@ -191,6 +192,10 @@ GEM
hashdiff (1.1.2)
hashie (5.0.0)
http_accept_language (2.1.1)
httparty (0.22.0)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
io-console (0.8.0)
@ -240,6 +245,8 @@ GEM
mini_portile2 (2.8.8)
minitest (5.25.5)
msgpack (1.7.5)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
mysql2 (0.5.6)
net-http (0.6.0)
uri
@ -533,6 +540,7 @@ DEPENDENCIES
falcon (~> 0.48.0)
haml (~> 6.1, >= 6.1.1)
http_accept_language (~> 2.1, >= 2.1.1)
httparty (~> 0.22.0)
jsbundling-rails (~> 1.3)
letter_opener (~> 1.8, >= 1.8.1)
memory_profiler (~> 1.0)

View file

@ -33,8 +33,9 @@
= link_to t('items.show.resources.jn_items'), jn_items_url_for(item)
= link_to t('items.show.resources.impress_2020'), impress_2020_url_for(item)
- if item.nc_trade_value
= link_to 'https://www.neopets.com/~lebron',
title: nc_trade_value_updated_at_text(item.nc_trade_value) do
%span{
title: nc_trade_value_updated_at_text(item.nc_trade_value)
}
= t 'items.show.resources.lebron',
value: nc_trade_value_estimate_text(item.nc_trade_value)
- unless item.nc?

View file

@ -225,14 +225,14 @@
- content_for :subtitle, flush: true do
- if item.nc_trade_value.present?
- if nc_trade_value_is_estimate(item.nc_trade_value)
= link_to 'https://www.neopets.com/~lebron', target: '_blank',
= content_tag :span,
class: "nc-trade-guide-info-link",
title: 'Lebron keeps track of approximate "capsule" values of NC items for trading. Items with similar values can often be traded for one another. This is an estimate, not a rule!' do
%span.nc-trade-guide-info-label [Lebron]
Estimated value:
= nc_trade_value_estimate_text(item.nc_trade_value)
- else
= link_to 'https://www.neopets.com/~lebron', target: '_blank',
= content_tag :span,
class: "nc-trade-guide-info-link",
title: "Lebron keeps track of how to get certain special items, even when there isn't a clear NC trade estimate." do
%span.nc-trade-guide-info-label [Lebron]

BIN
vendor/cache/csv-3.3.2.gem vendored Normal file

Binary file not shown.

BIN
vendor/cache/httparty-0.22.0.gem vendored Normal file

Binary file not shown.

BIN
vendor/cache/multi_xml-0.7.1.gem vendored Normal file

Binary file not shown.