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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92094cfeedcd9adf5826698db686360f0b87f52b
4
- data.tar.gz: f58ec2c03de3127eb407d684b0336f8819228efa
3
+ metadata.gz: a7c038c318b349ab0bd683828072e3bad0e5a3d0
4
+ data.tar.gz: fd32e55dcb21b9c7123ecc8b6f898149a361a0f8
5
5
  SHA512:
6
- metadata.gz: 7bc19aa9205072e443d9ff61493e56e7e71e3175d031d013561566996e33ace7dc85621b5a9a4866e68abcad0ec6ea0fdae6098bea2f6e7f5dd17657785e2eff
7
- data.tar.gz: 023de1fbd8ce729b94be5253e415ec36f022a34247f04ecf5a86bd35fcc29f361879ed1c405493544eb749c0f8f423d8a5a7afe14a1e0c5ae838f01a8954db9e
6
+ metadata.gz: 2c7cb7f3cff59f1b61ce8df1b265125262d05af247d9ab2474bc4cd66cbf22049975353430db3d532a2ac962db716e0efc87b51f868a0b251c6e79dac1157b03
7
+ data.tar.gz: 5daf030d94134663161813db7da958b15ee2d45ac4f751ecf76526a7920aad9ced3f8df300bad619efef86aee34755ead52fe78143a009be581e401f1ab61849
@@ -7,7 +7,7 @@ module Ping
7
7
  need|needs|needed|require|requires|required
8
8
  /ix
9
9
 
10
- RepositoryName = /[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9\-_]*/
10
+ RepositoryName = /[a-z0-9][a-z0-9\-]*\/[a-z0-9][a-z0-9\-_]*/ix
11
11
 
12
12
  Pattern = /
13
13
  (?:^|\W) # beginning of string or non-word char
@@ -1,3 +1,3 @@
1
1
  module Ping
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -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.6
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-01-31 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler