siteleaf 2.1.0 → 2.1.1

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
- SHA1:
3
- metadata.gz: b58e2191052b78089839ad0f0b413ffd3a621f96
4
- data.tar.gz: 6da80855926d96b93ab727d976d76a6dc3c69056
2
+ SHA256:
3
+ metadata.gz: 1ec284cc046f9c5e51dfbba051755160066b078f14301e874b4196b2fe046d96
4
+ data.tar.gz: 964a33326bb9753b4676dc1754345b6de1dc8fc7786c75675faea4f178681fd9
5
5
  SHA512:
6
- metadata.gz: 0dd932d6d6f2c16e996ef39609914b906f9c3069838af7f37db3fa9eca8c3248d1c6848eb2281ae4f5de40d8917803460c9b567cc021adc0b59d8440bc25d8f3
7
- data.tar.gz: 3818d0f20838566907748e7aab27d3bc9c80b2af7dada8a01759460b93421767d938e008e76c7aecee6dd062b0ed4cf1afd626bac160c685c43ac70b977c2d42
6
+ metadata.gz: 95c90c707c9cc8f90ee16d9d07a2b00756a440d5c4201aeedda7d2d9511b70be421be8d7175be69ee8a3f810b864d634f3c3d3e6dc58291253fff205964b5b3c
7
+ data.tar.gz: aad52462704662408a6adbe07b39bd78ac1f125267a01bf34feb6cdc8e078208498dcfa28bbbb97b7eab755f3e95ea9ca8e19523760688abfcfb4cde33c26584
data/README.md CHANGED
@@ -11,7 +11,7 @@ Siteleaf v2 Gem
11
11
  Installation
12
12
  ------------
13
13
 
14
- The Siteleaf gem is available for installation on [Rubygems](https://rubygems.org/gems/siteleaf). To install run:
14
+ The [Siteleaf](https://www.siteleaf.com) gem is available for installation on [Rubygems](https://rubygems.org/gems/siteleaf). To install run:
15
15
 
16
16
  gem install siteleaf
17
17
 
@@ -5,7 +5,9 @@ module Siteleaf
5
5
  attr_reader :name, :url, :download_url, :type, :filesize, :sha, :created_at, :updated_at, :user_id
6
6
 
7
7
  def create_endpoint
8
- ::File.join("sites", site_id, "source", URI.escape(identifier))
8
+ uri = URI.encode(identifier)
9
+ uri = uri.gsub('[', '%5B').gsub(']', '%5D') # workaround for https://bugs.ruby-lang.org/issues/12235
10
+ ::File.join('sites', site_id, 'source', uri)
9
11
  end
10
12
 
11
13
  def entity_endpoint
@@ -17,7 +19,7 @@ module Siteleaf
17
19
  end
18
20
 
19
21
  def to_file
20
- Client.get(::File.join("sites", site_id, "source", "#{URI.escape(identifier)}?download"))
22
+ Client.get("#{entity_endpoint}?download")
21
23
  end
22
24
 
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module Siteleaf
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siteleaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siteleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -115,8 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubyforge_project:
119
- rubygems_version: 2.6.13
118
+ rubygems_version: 3.1.2
120
119
  signing_key:
121
120
  specification_version: 4
122
121
  summary: Siteleaf Ruby interface