findbugs_translate_checkstyle_format 0.2.6 → 0.3.0

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: 929240f068947b98b1e5e25729365a00c6a8fa0b
4
- data.tar.gz: 132a041eb4a679d5ab29c7cbe4b95bbe8a11aab2
3
+ metadata.gz: 63565b8366950f20e74d4c0621f291356270397b
4
+ data.tar.gz: df9004ad170055e929f90f6ef15e7940ad33a36d
5
5
  SHA512:
6
- metadata.gz: '09d12e92628c8cc747bd6f1c87b7e3a79227e8d3808a1f18ba7fcdc223a39f0f513cc5b97ab6e9e8bc695c25078c68438108b870b89ab5f28268f5e9c6d13f68'
7
- data.tar.gz: eaa5570703c524680a62f202118f15b7ec2bfaf55f290414296bd39193ec0789bdb1f7b33de0401de2fb375f672f9aec584001fc42896cf6de4425834d5e30b0
6
+ metadata.gz: d4cc66349db1a376bff61c37c7d694924bdc91adde32cd24508bffa75d8f41254157170183e6f30edbe9bba639cc267c9bae97c62b5174a15edeaf5a580ea046
7
+ data.tar.gz: ec98639f234a71f3a7ab2f4a1eee812d67d44efda3d076a626870febe5923123b347b40847ed4fc1e167e173c5e39b9fb3669502b36336f7ee761a8a9ba6e561
data/README.md CHANGED
@@ -37,6 +37,13 @@ cat findbugs.xml | findbugs_translate_checkstyle_format translate
37
37
  findbugs_translate_checkstyle_format translate --file="findbugs.xml"
38
38
  ```
39
39
 
40
+ ### Use from ruby script
41
+
42
+ ```ruby
43
+ require 'findbugs_translate_checkstyle_format'
44
+ findbugs_xml = ::FindbugsTranslateCheckstyleFormat::Script.translate('<?xml ...')
45
+ ```
46
+
40
47
  ## Development
41
48
 
42
49
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -51,4 +58,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
51
58
  ## License
52
59
 
53
60
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
54
-
@@ -1,5 +1,6 @@
1
1
  require 'findbugs_translate_checkstyle_format/version'
2
2
  require 'findbugs_translate_checkstyle_format/translate'
3
+ require 'findbugs_translate_checkstyle_format/script'
3
4
 
4
5
  module FindbugsTranslateCheckstyleFormat
5
6
  end
@@ -0,0 +1,8 @@
1
+ module FindbugsTranslateCheckstyleFormat
2
+ class Script
3
+ extend ::FindbugsTranslateCheckstyleFormat::Translate
4
+ def self.translate(xml_text)
5
+ trans(parse(xml_text)).to_s
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module FindbugsTranslateCheckstyleFormat
2
- VERSION = '0.2.6'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findbugs_translate_checkstyle_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - noboru-i
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-03 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -118,6 +118,7 @@ files:
118
118
  - findbugs_translate_checkstyle_format.gemspec
119
119
  - lib/findbugs_translate_checkstyle_format.rb
120
120
  - lib/findbugs_translate_checkstyle_format/cli.rb
121
+ - lib/findbugs_translate_checkstyle_format/script.rb
121
122
  - lib/findbugs_translate_checkstyle_format/translate.rb
122
123
  - lib/findbugs_translate_checkstyle_format/version.rb
123
124
  homepage: https://github.com/noboru-i/findbugs_translate_checkstyle_format
@@ -140,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
141
  version: '0'
141
142
  requirements: []
142
143
  rubyforge_project:
143
- rubygems_version: 2.5.2
144
+ rubygems_version: 2.6.11
144
145
  signing_key:
145
146
  specification_version: 4
146
147
  summary: Translate findbugs format into checkstyle format.