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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmM1YTRlNzRlZmFjZDI5YWFlOWI4NjNhZjUxMDRiYjNlMzJlMzdhMw==
4
+ OGEzMGU1N2Q4MTg2NTk1MzI1ZWMwZTY3NjY3ODg5OTk4N2IwM2UyNA==
5
5
  data.tar.gz: !binary |-
6
- NjgwNzUzYTM1NmJjN2ZkNTI0NzUzMTAzMjNlZTNkZDYyZDdjMTg3Nw==
6
+ ODA4Njc1NjEwNGZkZjM2MzMxOTRmODU0ZDQ0MGQ5NGIwOTkzMzlhNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzQzNDk0OGY2MzIxMTk0M2Y2NjY2YWIxZGNhMzU4YWY5MTNkODVlNjM1MDQy
10
- MzVkMDMxYjIyZjdjOTJkMzIzMzgwY2E4MGZlNjZlODkyZGNiNjU0ODc3NWY1
11
- NTViNjkxYWNmZjc1NjI4NzUyYWRhNTY2YjgzNmU5NDA1ZWJjYWE=
9
+ NWZiYWZiNDA5ZjQ4ZjljOWVjMTYwMmY0M2JjNTlhYWQ3NTBjYzY0ZDcxYjFi
10
+ ZjY5MzJhYzU1NTgxOWQ2MjM4NzFkNjc0MTg5Njg4YzE0YTBiYWVkOTkxNGI3
11
+ ZTc5MTRiZjFiMzgxYmEzYmY3MjAwYzkxZWQ5YWZmOTkwODE4ODk=
12
12
  data.tar.gz: !binary |-
13
- MmMwNzAyMjMzZDc2OTY2ZGU5OThmMzAyZTBmNDNhZTc3MWRhMDU0NThkMTc5
14
- ODMzNTI0ZTE2Mzc5YmQ1ZGU3MGQwMzAxNTFjN2U0NmQ5MzczZGQzZmEyY2Fh
15
- OTQ5MzNmNGU5ZjVkZDI2ZTBjZmY4ODk5NDg0ODc2YjJlYmNmM2I=
13
+ Yjc4ZmIyMWVkNjkyYzZmMjkxZTI0MmM1MGEwMWI3ODAzYzNlYTZhMzI2ZGRj
14
+ YjVhZGFiMTg4MWUxZDdhMDZkOWJkZmQ3OGRlZGIzMmQzZjdiNjhjNTdlNWQz
15
+ ODE2ZTFkOWI3MzQ4ZTdiNWM2NmYzODQ4ZjkyZDkwMWU0ZTkwMGY=
@@ -1,9 +1,10 @@
1
1
  module OpenStax::Utilities
2
2
 
3
- def self.generate_url(url, params = {})
4
- uri = URI(url)
5
- uri.query = params.to_query
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
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Utilities
3
- VERSION = "2.2.1"
3
+ VERSION = "2.2.2"
4
4
  end
5
5
  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.1
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-04-17 00:00:00.000000000 Z
11
+ date: 2014-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails