Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
source "http://rubygems.org"
ruby RUBY_VERSION
# Specify your gem's dependencies in cloudinary.gemspec
gemspec
4 changes: 2 additions & 2 deletions spec/cloudinary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
Cloudinary.user_platform = @user_platform
end

CLOUDINARY_USER_AGENT_REGEXP = %r"^CloudinaryRuby\/[\d.]+ \(Ruby [\d\.]+-p\d+\)$"
CLOUDINARY_USER_PLATFORM_REGEXP = %r"^Rails\/[\d.]+ CloudinaryRuby\/[\d.]+ \(Ruby [\d\.]+-p\d+\)$"
CLOUDINARY_USER_AGENT_REGEXP = %r"^CloudinaryRuby\/[\d.]+ \(Ruby [\d\.]+-p-?\d+\)$"
CLOUDINARY_USER_PLATFORM_REGEXP = %r"^Rails\/[\d.]+ CloudinaryRuby\/[\d.]+ \(Ruby [\d\.]+-p-?\d+\)$"

it "should return the USER_AGENT without user_platform if there's no Rails or set to empty" do
Cloudinary.user_platform = ""
Expand Down