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 +4 -4
- data/.circleci/config.yml +16 -0
- data/lib/xfrtuc.rb +8 -8
- data/lib/xfrtuc/version.rb +1 -1
- data/spec/xfrtuc_spec.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8109216d2b9847adbf12b531021f04b5f534c9a50e107b5f3f3ceaffbce3a27a
|
4
|
+
data.tar.gz: 34f29944dbc0ad254b0cfbd2d8339b06dcc8bf661de5a770fefef9366b9e8db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/#{
|
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/#{
|
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/#{
|
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/#{
|
126
|
+
client.delete("/transfers/#{CGI.escape(id)}")
|
127
127
|
end
|
128
128
|
|
129
129
|
def cancel(id)
|
130
|
-
client.post("/transfers/#{
|
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/#{
|
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/#{
|
171
|
+
client.put("/schedules/#{CGI.escape(name)}", sched_opts)
|
172
172
|
end
|
173
173
|
|
174
174
|
def delete(id)
|
175
|
-
client.delete("/schedules/#{
|
175
|
+
client.delete("/schedules/#{CGI.escape(id)}")
|
176
176
|
end
|
177
177
|
end
|
178
178
|
end
|
data/lib/xfrtuc/version.rb
CHANGED
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/#{
|
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.
|
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:
|
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.
|
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:
|