PodfileTool 0.0.1
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 +7 -0
- data/lib/PodfileTool.rb +15 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a462d0787f24166b0fcbb1bc9c6f2007e5e98a3
|
4
|
+
data.tar.gz: b05ce99d37b81483df47888da790b0c6ec38a53c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 103dbae2117fba3590f9669f4d4c4a4cfcad8213553986e6ffed01d8048c2c338e9a0af866ee909b3445ebdf3800ac18695baa78fa8e61ad80a61199819cd389
|
7
|
+
data.tar.gz: e8d64cf46de1c71d3f21d292eaaeae6174deaebf41b7f6d6027ea476c0b4dad6348db10919aef68e9e0a2c376ebf4e6493828e32d17072a882634163a54cad65
|
data/lib/PodfileTool.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'cocoapods'
|
2
|
+
require 'json'
|
3
|
+
require 'cocoapods-core'
|
4
|
+
|
5
|
+
class PodfileTool
|
6
|
+
def self.outputJson(path)
|
7
|
+
podfile_hash = Pod::Podfile.from_file(path).to_hash
|
8
|
+
podfile_json = JSON.pretty_generate(podfile_hash)
|
9
|
+
puts podfile_json
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.hi
|
13
|
+
puts "Hello world!"
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: PodfileTool
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- dacaiguoguo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: output Cocoapods Podfile to Json
|
14
|
+
email: dacaiguoguo@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/PodfileTool.rb
|
20
|
+
homepage: http://rubygems.org/gems/PodfileTool
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.6.7
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: PodfileTool!
|
44
|
+
test_files: []
|
45
|
+
has_rdoc:
|