swagalicious 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c78326c2bf5360baef928aef9a89f8aea2c92b16f5f6d0e7d30132d54459e09
4
- data.tar.gz: 615446c0b948abff9fd62d8caadbd67c6fe7dbc43dc8a096cba8795f72007858
3
+ metadata.gz: 89c4466d6c9ea1d244b293d16b86edf9f1611b3c9fd0f6057cd3dcf63a8328ed
4
+ data.tar.gz: 0e879d017afc95a8a4f0f27a02e0dad9650eb2eefb07c468d8b732c2149ef70f
5
5
  SHA512:
6
- metadata.gz: 15bc38e19774ac274a10f07fae2beeaf8b14c895168208772f5584060f7a31091e3194eeafb363cb338db94cf41ab52a724ceac0a1e02ca92683a9c93f6e9d36
7
- data.tar.gz: '09858d1b6c3464d5d160541a9e9c5c9917abf9eec55d73cc9bab41c9d78462707d186924ba088d70f578feddb8bb180f878e84bbd5aa1689fbc40aad91c3474f'
6
+ metadata.gz: 2de2c29b4bb1dd5a19fed86010160a445b5f4add5a05a01608761704101f502173dc537c863d7cff8577cac0b8047d7c74a8d4018bfaed1ec61bb63af0918e07
7
+ data.tar.gz: ec3740df707edf4485ed2d50294f6a696bec691541f102c4b63094e9218d5973a8406299570eb642d10721867073858e41919e40e1a96fb8f5674ea318021b84
@@ -20,7 +20,13 @@ class Swagalicious
20
20
  end
21
21
 
22
22
  def app
23
- @app ||= defined?(Rails) ? Rails.application : Rack::Builder.parse_file("config.ru").first
23
+ @app ||= if defined?(Rails)
24
+ Rails.application
25
+ elsif Rack::RELEASE >= "3.0.0"
26
+ Rack::Builder.parse_file("config.ru")
27
+ else
28
+ Rack::Builder.parse_file("config.ru").first
29
+ end
24
30
  end
25
31
 
26
32
  def client
@@ -1,3 +1,3 @@
1
1
  class Swagalicious
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagalicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Howe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-08 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday