openstax_utilities 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/openstax/utilities/network.rb +5 -4
- data/lib/openstax/utilities/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGEzMGU1N2Q4MTg2NTk1MzI1ZWMwZTY3NjY3ODg5OTk4N2IwM2UyNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODA4Njc1NjEwNGZkZjM2MzMxOTRmODU0ZDQ0MGQ5NGIwOTkzMzlhNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWZiYWZiNDA5ZjQ4ZjljOWVjMTYwMmY0M2JjNTlhYWQ3NTBjYzY0ZDcxYjFi
|
10
|
+
ZjY5MzJhYzU1NTgxOWQ2MjM4NzFkNjc0MTg5Njg4YzE0YTBiYWVkOTkxNGI3
|
11
|
+
ZTc5MTRiZjFiMzgxYmEzYmY3MjAwYzkxZWQ5YWZmOTkwODE4ODk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yjc4ZmIyMWVkNjkyYzZmMjkxZTI0MmM1MGEwMWI3ODAzYzNlYTZhMzI2ZGRj
|
14
|
+
YjVhZGFiMTg4MWUxZDdhMDZkOWJkZmQ3OGRlZGIzMmQzZjdiNjhjNTdlNWQz
|
15
|
+
ODE2ZTFkOWI3MzQ4ZTdiNWM2NmYzODQ4ZjkyZDkwMWU0ZTkwMGY=
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module OpenStax::Utilities
|
2
2
|
|
3
|
-
def self.generate_url(
|
4
|
-
|
5
|
-
uri
|
3
|
+
def self.generate_url(*urls)
|
4
|
+
params = urls.pop if urls.last.is_a? Hash
|
5
|
+
uri = URI.join(*urls)
|
6
|
+
uri.query = params.to_query if params
|
6
7
|
uri.to_s
|
7
8
|
end
|
8
9
|
|
9
|
-
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_utilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|