File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11source "http://rubygems.org"
2- ruby RUBY_VERSION
32# Specify your gem's dependencies in cloudinary.gemspec
43gemspec
Original file line number Diff line number Diff line change 99 Cloudinary . user_platform = @user_platform
1010 end
1111
12- CLOUDINARY_USER_AGENT_REGEXP = %r"^CloudinaryRuby\/ [\d .]+ \( Ruby [\d \. ]+-p\d +\) $"
13- CLOUDINARY_USER_PLATFORM_REGEXP = %r"^Rails\/ [\d .]+ CloudinaryRuby\/ [\d .]+ \( Ruby [\d \. ]+-p\d +\) $"
12+ CLOUDINARY_USER_AGENT_REGEXP = %r"^CloudinaryRuby\/ [\d .]+ \( Ruby [\d \. ]+-p-? \d +\) $"
13+ CLOUDINARY_USER_PLATFORM_REGEXP = %r"^Rails\/ [\d .]+ CloudinaryRuby\/ [\d .]+ \( Ruby [\d \. ]+-p-? \d +\) $"
1414
1515 it "should return the USER_AGENT without user_platform if there's no Rails or set to empty" do
1616 Cloudinary . user_platform = ""
You can’t perform that action at this time.
0 commit comments