Skip to content

Commit bb33cac

Browse files
authored
Merge pull request #5 from nexB/update-dependency-regex-pattern
Update dependency regex pattern
2 parents 784da0e + 1fcfc91 commit bb33cac

File tree

4 files changed

+94
-1
lines changed

4 files changed

+94
-1
lines changed

gemfileparser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class GemfileParser(object):
6262

6363
gemspec_add_dvtdep_regex = re.compile(r".*add_development_dependency(?P<line>.*)")
6464
gemspec_add_rundep_regex = re.compile(r".*add_runtime_dependency(?P<line>.*)")
65-
gemspec_add_dep_regex = re.compile(r".*dependency(?P<line>.*)")
65+
gemspec_add_dep_regex = re.compile(r".*add_dependency(?P<line>.*)")
6666

6767
def __init__(self, filepath, appname=''):
6868
self.filepath = filepath
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Gem::Specification.new do |s|
2+
s.name = 'logstash-mixin-ecs_compatibility_support'
3+
s.version = '1.3.0'
4+
s.licenses = %w(Apache-2.0)
5+
s.summary = "Support for the ECS-Compatibility mode introduced in Logstash 7.x, for plugins wishing to use this API on older Logstashes"
6+
s.description = "This gem is meant to be a dependency of any Logstash plugin that wishes to use the ECS-Compatibility mode introduced in Logstash 7.x while maintaining backward-compatibility with earlier Logstash releases. When, used on older Logstash versions this adapter provides an implementation of ECS-Compatibility mode that can be controlled at the plugin instance level."
7+
s.authors = %w(Elastic)
8+
s.email = 'info@elastic.co'
9+
s.homepage = 'https://github.com/logstash-plugins/logstash-mixin-ecs_compatibility_support'
10+
s.require_paths = %w(lib)
11+
12+
s.files = %w(lib spec vendor).flat_map{|dir| Dir.glob("#{dir}/**/*")}+Dir.glob(["*.md","LICENSE"])
13+
14+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
15+
16+
s.platform = RUBY_PLATFORM
17+
18+
s.add_runtime_dependency 'logstash-core', '>= 6.0.0'
19+
20+
s.add_development_dependency 'logstash-devutils'
21+
s.add_development_dependency 'rspec', '~> 3.9'
22+
s.add_development_dependency 'rspec-its', '~>1.3'
23+
s.add_development_dependency 'logstash-codec-plain'
24+
end
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"development": [
3+
{
4+
"name": "logstash-devutils",
5+
"requirement": [],
6+
"autorequire": "",
7+
"source": "",
8+
"parent": [
9+
""
10+
],
11+
"group": "development"
12+
},
13+
{
14+
"name": "rspec",
15+
"requirement": [
16+
"~> 3.9"
17+
],
18+
"autorequire": "",
19+
"source": "",
20+
"parent": [
21+
""
22+
],
23+
"group": "development"
24+
},
25+
{
26+
"name": "rspec-its",
27+
"requirement": [
28+
"~>1.3"
29+
],
30+
"autorequire": "",
31+
"source": "",
32+
"parent": [
33+
""
34+
],
35+
"group": "development"
36+
},
37+
{
38+
"name": "logstash-codec-plain",
39+
"requirement": [],
40+
"autorequire": "",
41+
"source": "",
42+
"parent": [
43+
""
44+
],
45+
"group": "development"
46+
}
47+
],
48+
"runtime": [
49+
{
50+
"name": "logstash-core",
51+
"requirement": [
52+
">= 6.0.0"
53+
],
54+
"autorequire": "",
55+
"source": "",
56+
"parent": [
57+
""
58+
],
59+
"group": "runtime"
60+
}
61+
],
62+
"dependency": [],
63+
"test": [],
64+
"production": [],
65+
"metrics": []
66+
}

tests/test_gemfileparser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ def test_gemspec_2():
6565

6666
def test_gemspec_3():
6767
check_gemparser_results('tests/arel.gemspec')
68+
69+
def test_gemspec_4():
70+
check_gemparser_results('tests/logstash-mixin-ecs_compatibility_support.gemspec')

0 commit comments

Comments
 (0)