We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5edcd9b commit ab75561Copy full SHA for ab75561
2 files changed
Gemfile
@@ -1,4 +1,3 @@
1
source "http://rubygems.org"
2
-ruby RUBY_VERSION
3
# Specify your gem's dependencies in cloudinary.gemspec
4
gemspec
spec/cloudinary_spec.rb
@@ -9,8 +9,8 @@
9
Cloudinary.user_platform = @user_platform
10
end
11
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+\)$"
+ CLOUDINARY_USER_AGENT_REGEXP = %r"^CloudinaryRuby\/[\d.]+ \(Ruby [\d\.]+-p-?\d+\)$"
+ CLOUDINARY_USER_PLATFORM_REGEXP = %r"^Rails\/[\d.]+ CloudinaryRuby\/[\d.]+ \(Ruby [\d\.]+-p-?\d+\)$"
14
15
it "should return the USER_AGENT without user_platform if there's no Rails or set to empty" do
16
Cloudinary.user_platform = ""
0 commit comments