lib/twitter-text/configuration.rb in twitter-text-2.0.0 vs lib/twitter-text/configuration.rb in twitter-text-2.0.1
- old
+ new
@@ -13,15 +13,15 @@
attr_reader :version, :max_weighted_tweet_length, :scale
attr_reader :default_weight, :transformed_url_length, :ranges
CONFIG_V1 = File.join(
- File.expand_path('../../../../config', __FILE__), # project root
+ File.expand_path('../../../config', __FILE__), # project root
"#{PARSER_VERSION_CLASSIC}.json"
)
CONFIG_V2 = File.join(
- File.expand_path('../../../../config', __FILE__), # project root
+ File.expand_path('../../../config', __FILE__), # project root
"#{PARSER_VERSION_DEFAULT}.json"
)
def self.parse_string(string, options = {})
JSON.parse(string, options.merge(symbolize_names: true))