ping 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ping/issue_reference.rb +1 -1
- data/lib/ping/version.rb +1 -1
- data/test/ping/parser_test.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c038c318b349ab0bd683828072e3bad0e5a3d0
|
4
|
+
data.tar.gz: fd32e55dcb21b9c7123ecc8b6f898149a361a0f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c7cb7f3cff59f1b61ce8df1b265125262d05af247d9ab2474bc4cd66cbf22049975353430db3d532a2ac962db716e0efc87b51f868a0b251c6e79dac1157b03
|
7
|
+
data.tar.gz: 5daf030d94134663161813db7da958b15ee2d45ac4f751ecf76526a7920aad9ced3f8df300bad619efef86aee34755ead52fe78143a009be581e401f1ab61849
|
data/lib/ping/issue_reference.rb
CHANGED
data/lib/ping/version.rb
CHANGED
data/test/ping/parser_test.rb
CHANGED
@@ -129,6 +129,16 @@ class Ping::ParserTest < MiniTest::Test
|
|
129
129
|
assert_equal nil, issue.repository
|
130
130
|
assert_equal "43", issue.number
|
131
131
|
end
|
132
|
+
|
133
|
+
should "handle variable casing in repo names" do
|
134
|
+
text = "needs Liquid-Labs/rf-app-admin-web-app#2"
|
135
|
+
parser = Ping::Parser.new(text)
|
136
|
+
issue = parser.issue_references.first
|
137
|
+
|
138
|
+
assert_equal "needs", issue.qualifier
|
139
|
+
assert_equal "Liquid-Labs/rf-app-admin-web-app", issue.repository
|
140
|
+
assert_equal "2", issue.number
|
141
|
+
end
|
132
142
|
end
|
133
143
|
|
134
144
|
context "#issue_references with GH-XXX syntax" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derrick Reimer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|