xfrtuc 0.0.12 → 0.0.13

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: 62df6cb916d9969f797cee603a26e02bd426c72400441395420e9a9a1d786e5c
4
- data.tar.gz: 699296f13abe1ef5e62e8d535c786fe560cda2e82a13d6a0bc348f6138933279
3
+ metadata.gz: 8109216d2b9847adbf12b531021f04b5f534c9a50e107b5f3f3ceaffbce3a27a
4
+ data.tar.gz: 34f29944dbc0ad254b0cfbd2d8339b06dcc8bf661de5a770fefef9366b9e8db5
5
5
  SHA512:
6
- metadata.gz: 5071b29d2fa8c0f31990bf8e8b4ec2d47bab881cd36e1014fbd90834ba3c6f66e30ffdfbbcc4adfb312f1993bb11178e2996ad2a9d61389c374f5fe15c7e8e02
7
- data.tar.gz: f808aee23273e1ced225382681c518882d52ef9ec7e6d096d7d3e8dfd74f40e61a87568cc93c02247c4c5526da90531fba57bbede92098c5cc16dcb44840e7d5
6
+ metadata.gz: f374eac9ed3de14481c22e58cab4813b3961e82e12f87406e19dc1a06517e83e732548654e2f2aefc01c6f8ff75f26fb2724d68a47fa6286ae1b2df4ad7f6abf
7
+ data.tar.gz: d3b7f52f4387faeb8c3efbf3ca6169db28174d02e58fb83eb250b91fd0575240e7cba1c3705263b4ccba563fef4b1a83f33caabd2e608e1052b56a217357339a
@@ -0,0 +1,16 @@
1
+ version: 2.1
2
+ orbs:
3
+ ruby: circleci/ruby@0.1.2
4
+
5
+ jobs:
6
+ build:
7
+ docker:
8
+ - image: cimg/ruby:3.0.0
9
+ executor: ruby/default
10
+ steps:
11
+ - checkout
12
+ - run:
13
+ name: Which bundler?
14
+ command: bundle -v
15
+ - ruby/bundle-install
16
+ - run: bundle exec rspec
data/lib/xfrtuc.rb CHANGED
@@ -29,7 +29,7 @@ module Xfrtuc
29
29
  @group_client ||= Xfrtuc::Group.new(self)
30
30
  else
31
31
  self.class.new(@username, @password,
32
- @base_url + "/groups/#{URI.encode(name)}")
32
+ @base_url + "/groups/#{CGI.escape(name)}")
33
33
  end
34
34
  end
35
35
 
@@ -64,7 +64,7 @@ module Xfrtuc
64
64
  def initialize(client); super; end
65
65
 
66
66
  def info(name)
67
- client.get("/groups/#{URI.encode(name)}")
67
+ client.get("/groups/#{CGI.escape(name)}")
68
68
  end
69
69
 
70
70
  def list
@@ -76,7 +76,7 @@ module Xfrtuc
76
76
  end
77
77
 
78
78
  def delete(name)
79
- client.delete("/groups/#{URI.encode(name)}")
79
+ client.delete("/groups/#{CGI.escape(name)}")
80
80
  end
81
81
  end
82
82
 
@@ -123,15 +123,15 @@ module Xfrtuc
123
123
  end
124
124
 
125
125
  def delete(id)
126
- client.delete("/transfers/#{URI.encode(id)}")
126
+ client.delete("/transfers/#{CGI.escape(id)}")
127
127
  end
128
128
 
129
129
  def cancel(id)
130
- client.post("/transfers/#{URI.encode(id)}/actions/cancel")
130
+ client.post("/transfers/#{CGI.escape(id)}/actions/cancel")
131
131
  end
132
132
 
133
133
  def public_url(id, opts={})
134
- client.post("/transfers/#{URI.encode(id)}/actions/public-url", opts)
134
+ client.post("/transfers/#{CGI.escape(id)}/actions/public-url", opts)
135
135
  end
136
136
  end
137
137
 
@@ -168,11 +168,11 @@ module Xfrtuc
168
168
  sched_opts[:retain_weeks] = retain_weeks unless retain_weeks.nil?
169
169
  sched_opts[:retain_months] = retain_months unless retain_months.nil?
170
170
 
171
- client.put("/schedules/#{URI.encode(name)}", sched_opts)
171
+ client.put("/schedules/#{CGI.escape(name)}", sched_opts)
172
172
  end
173
173
 
174
174
  def delete(id)
175
- client.delete("/schedules/#{URI.encode(id)}")
175
+ client.delete("/schedules/#{CGI.escape(id)}")
176
176
  end
177
177
  end
178
178
  end
@@ -1,3 +1,3 @@
1
1
  module Xfrtuc
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
data/spec/xfrtuc_spec.rb CHANGED
@@ -368,7 +368,7 @@ module Xfrtuc
368
368
  group_client = client.group(group_name)
369
369
  expect(group_client).to be_instance_of(Client)
370
370
  expect(group_client.base_url).to eq(client.base_url +
371
- "/groups/#{URI.encode(group_name)}")
371
+ "/groups/#{CGI.escape(group_name)}")
372
372
  end
373
373
  end
374
374
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xfrtuc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciek Sakrejda
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-29 00:00:00.000000000 Z
11
+ date: 2021-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".circleci/config.yml"
62
63
  - ".gitignore"
63
64
  - Gemfile
64
65
  - LICENSE
@@ -71,7 +72,7 @@ homepage: https://github.com/heroku/xfrtuc
71
72
  licenses:
72
73
  - MIT
73
74
  metadata: {}
74
- post_install_message:
75
+ post_install_message:
75
76
  rdoc_options: []
76
77
  require_paths:
77
78
  - lib
@@ -86,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.0.8
90
- signing_key:
90
+ rubygems_version: 3.2.3
91
+ signing_key:
91
92
  specification_version: 4
92
93
  summary: 'Transferatu client: see https://github.com/heroku/transferatu'
93
94
  test_files: