cp8_cli 4.1.1 → 4.1.2

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
  SHA1:
3
- metadata.gz: ce996c791621c5dcef34319c0d20ca01f92aba88
4
- data.tar.gz: 33738ccf220367212589e6f2487fd337fe36b3e1
3
+ metadata.gz: 2ad1c39b92a0d9a3dcc4a85f6fb126876730ab73
4
+ data.tar.gz: 882f23955cf9ce70eb44ed4e3e2f4f87135fab03
5
5
  SHA512:
6
- metadata.gz: 6e3ca2b252637aa654d88014ff0275bc3bf675ee55e41a721948b2e46880b798889b57e7dfa5d3a5ea2dd76e88cb9966214d33da098ffe20a9b7fbef009d714e
7
- data.tar.gz: 9a9e690a45e46e5f69e4a1a2a099d62b093ff6dbcc83ea93d04dada3ad8dbdf3c0192a75ddee28ff6e5245588be1860d5b3b574f6be4ca4bff2d8e77c9ed1a64
6
+ metadata.gz: 1945fc80bf9508d9b9806e13eb3f99bbbba85819feaa140bf6b189a69d5ccab9d4f32adb7f56ce0b74978e721eeafcaa05b2885c9a8479cc3f98af438f2e027a
7
+ data.tar.gz: e4aba255979a4afa0cb4354e6e2475f0f097badc9924a69d1239dea4c9828025248c93b4d06bfe01a0b87aba01c94467a52b28a7edfa1a861337593cb47da21a
data/lib/cp8_cli/ci.rb CHANGED
@@ -14,7 +14,11 @@ module Cp8Cli
14
14
  attr_reader :branch_name, :repo
15
15
 
16
16
  def url
17
- "https://circleci.com/gh/#{repo.user}/#{repo.name}/tree/#{URI.escape branch_name}"
17
+ "https://circleci.com/gh/#{repo.user}/#{repo.name}/tree/#{escape branch_name}"
18
+ end
19
+
20
+ def escape(text)
21
+ CGI.escape(text)
18
22
  end
19
23
  end
20
24
  end
@@ -53,7 +53,7 @@ module Cp8Cli
53
53
  end
54
54
 
55
55
  def escape(text)
56
- URI.escape text.to_s.strip
56
+ CGI.escape(text.to_s.strip)
57
57
  end
58
58
 
59
59
  def repo
@@ -1,5 +1,5 @@
1
1
  module Cp8Cli
2
- VERSION = "4.1.1"
2
+ VERSION = "4.1.2"
3
3
 
4
4
  class Version
5
5
  def self.latest?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cp8_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler