ios_analytics 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61a8b6b0a79c85e4373afa32ddc6ed3661acc993
4
- data.tar.gz: 32baf2dbb2bf9881d9f705e5a43c6d952824feca
3
+ metadata.gz: 8ccc98945456af52089d62c5c5aec2d99ec96729
4
+ data.tar.gz: 8762e343978c1b4d5ee1bf99330cb4c5f2e57fc9
5
5
  SHA512:
6
- metadata.gz: 1c48f09f046cb184f6c0abf50a7bb58e121e018e906c1fedb7b62c9d0a100055221f95c0310f0012be7654a1b2bc3a1fe529bf48fdce748f97b908cf3abde286
7
- data.tar.gz: bbf2d6a07636a717e68c1896d492ab84ef2cba86e29a79977e6b8a340ff2b6daf9356173c977787b262c4d912d3c6d32ff19aefc35ea5a693721c06ca586a172
6
+ metadata.gz: a32fde7e02b15dc00eba12682d3d33c0267933235407b1ece1c1e618df2dc21f1b3eb6db31d2dde64db46c1a472f86533aefb48611512aaa306611231e2129f6
7
+ data.tar.gz: 57a21cc038315f678dda423c02ca65a66643e91d58279c9f0562058f611a91d704edf30c74f72e3b91dd0f62ef9af844c08636c06481c8efd83b885017fa1a0e
@@ -6,15 +6,24 @@ module IosAnalytics
6
6
  desc 'translate', 'Exec Translate'
7
7
  option :data
8
8
  option :file
9
- # path = '/Users/ishikuranoboru/.ghq/github.com/noboru-i/kyouen-ios/derivedData/Build/Intermediates/TumeKyouen.build/**/StaticAnalyzer/**/*.plist'
10
- option :derivedData, default: '/Users/ishikuranoboru/.ghq/github.com/noboru-i/ios_analytics/samples/*.plist'
9
+ option :appName, require: true
10
+ option :derivedData, require: true
11
11
  def translate
12
12
  doc = REXML::Document.new
13
13
  doc << REXML::XMLDecl.new('1.0', 'UTF-8')
14
14
 
15
15
  checkstyle = doc.add_element('checkstyle')
16
16
 
17
- path = options[:derivedData]
17
+ path = Pathname.new(options[:derivedData])
18
+ .join(
19
+ 'Build',
20
+ 'Intermediates',
21
+ "#{options[:appName]}.build",
22
+ '**',
23
+ 'StaticAnalyzer',
24
+ '**',
25
+ '*.plist'
26
+ )
18
27
  Dir.glob(path).each do |plist_file|
19
28
  trans(checkstyle, plist_file)
20
29
  end
@@ -4,6 +4,7 @@ require 'rexml/document'
4
4
  module IosAnalytics
5
5
  module Translate
6
6
  def trans(checkstyle_dom, plist_file)
7
+ puts plist_file
7
8
  result = Plist::parse_xml(plist_file)
8
9
  return nil if result['files'].empty?
9
10
 
@@ -1,3 +1,3 @@
1
1
  module IosAnalytics
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - noboru-i