Skip to content

Commit 79faeb9

Browse files
committed
Fix ActiveSupport::SecureRandom non-dependency for recent versions of activesupport.
1 parent df7e841 commit 79faeb9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ PATH
55
activesupport (>= 3.0.0)
66
coderay (>= 1.0.7.rc1)
77
i18n (>= 0.1.0)
8-
json (>= 1.4.0)
9-
mustache (>= 0.99.0)
8+
json (>= 1.4.6)
9+
mustache (>= 0.99.4)
10+
rack-oauth2 (>= 0.14.4)
1011
rspec (>= 2.6.0)
1112
webmock (>= 1.7.0)
1213

@@ -102,7 +103,6 @@ DEPENDENCIES
102103
aruba
103104
capybara
104105
fakefs
105-
rack-oauth2
106106
rake
107107
rspec_api_documentation!
108108
sinatra

lib/rspec_api_documentation/oauth2_mac_client.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
require "active_support/secure_random"
1+
begin
2+
require "active_support/secure_random"
3+
rescue LoadError
4+
# ActiveSupport::SecureRandom not provided in activesupport >= 3.2
5+
end
26
require "rack/oauth2"
37

48
module RspecApiDocumentation

0 commit comments

Comments
 (0)