pliney 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +43 -10
- data/lib/pliney/ipa.rb +8 -0
- data/lib/pliney/version.rb +1 -1
- data/pliney.gemspec +1 -0
- data/spec/ipa_spec.rb +8 -0
- data/spec/spec_helper.rb +3 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad96afb5f7664fe3b157a8fd19273276518cd5d
|
4
|
+
data.tar.gz: e2a61e0d1526428061f5fec4d953f83f96c79993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021a945223632fc03fdfeab0a4af327b1a7ee322a1557ba23e925a884aec478d5b1b76d42ffae78055f7eaba5ef37b527b9825fc4e48a416a9d74c91b3cbfc1d
|
7
|
+
data.tar.gz: 549d0db774183ba9c04846b715962c7eef722ed622a80c9893d7157e564ac4fa508a6248fa761580b7a8f859dc2266eb576a5a252b2e14692c6ceeaa8dceec40
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Pliney
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/pliney.svg)](https://badge.fury.io/rb/pliney)
|
3
3
|
[![Build Status](https://secure.travis-ci.org/emonti/pliney.svg)](https://travis-ci.org/emonti/pliney)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/emonti/pliney.svg)](https://codeclimate.com/github/emonti/pliney)
|
5
|
-
[![Coverage Status](https://
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/emonti/pliney/badge.svg?branch=master)](https://coveralls.io/r/emonti/pliney?branch=master)
|
6
6
|
|
7
7
|
Pliney is for working with Apple IPAs.
|
8
8
|
|
9
9
|
Includes various helpers and interfaces for working with IPA files,
|
10
|
-
mobileprovisioning, and other file formats related Apple iOS apps.
|
10
|
+
mobileprovisioning, and other file formats related to Apple iOS apps.
|
11
11
|
|
12
12
|
|
13
13
|
## Installation
|
@@ -24,14 +24,47 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
$ gem install pliney
|
26
26
|
|
27
|
+
|
27
28
|
## Usage
|
28
29
|
|
29
|
-
|
30
|
+
ipa = Pliney::IPA.from_path 'spec/samples/pliney-test.ipa'
|
31
|
+
# => #<Pliney::IPA:0x...
|
32
|
+
|
33
|
+
ipa.bundle_identifier
|
34
|
+
# => "computer.versus.pliney-test"
|
35
|
+
|
36
|
+
ipa.appdir
|
37
|
+
# => #<Pathname:Payload/pliney-test.app/>
|
38
|
+
|
39
|
+
ipa.executable_path
|
40
|
+
# => #<Pathname:Payload/pliney-test.app/pliney-test>
|
41
|
+
|
42
|
+
ipa.info_plist
|
43
|
+
# => { "DTSDKName"=>"iphoneos8.2", "CFBundleName"=>"pliney-test", "DTXcode"=>"0620", ...
|
44
|
+
|
45
|
+
ipa.read_path(ipa.executable_path)
|
46
|
+
# => "\xCA\xFE\xBA\xBE\x00\x00\x00\...
|
47
|
+
|
48
|
+
profile = ipa.provisioning_profile
|
49
|
+
# => #<Pliney::ProvisioningProfile:0x0...
|
50
|
+
|
51
|
+
profile.developer_certificates
|
52
|
+
# => [#<OpenSSL::X509::Certificate:...
|
53
|
+
|
54
|
+
profile.expiration_date
|
55
|
+
# => 2016-04-20 14:18:13 -0700
|
56
|
+
|
57
|
+
profile.expired?
|
58
|
+
# => false
|
59
|
+
|
60
|
+
profile.entitlements
|
61
|
+
# => #<Pliney::EntitlementsMask:0x0000010330cc18 @ents={"keychain-access-groups"=>[...
|
62
|
+
|
63
|
+
ipa.close
|
64
|
+
|
30
65
|
|
31
|
-
##
|
66
|
+
## TODOS
|
32
67
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
37
|
-
5. Create a new Pull Request
|
68
|
+
- macho parsing
|
69
|
+
- entitlements extraction/parsing/serialization
|
70
|
+
- ?
|
data/lib/pliney/ipa.rb
CHANGED
@@ -53,6 +53,14 @@ module Pliney
|
|
53
53
|
return info_plist["CFBundleIdentifier"]
|
54
54
|
end
|
55
55
|
|
56
|
+
def bundle_version
|
57
|
+
return info_plist["CFBundleVersion"]
|
58
|
+
end
|
59
|
+
|
60
|
+
def bundle_short_version
|
61
|
+
return info_plist["CFBundleShortVersionString"]
|
62
|
+
end
|
63
|
+
|
56
64
|
def executable_path
|
57
65
|
return appdir.join(info_plist["CFBundleExecutable"])
|
58
66
|
end
|
data/lib/pliney/version.rb
CHANGED
data/pliney.gemspec
CHANGED
data/spec/ipa_spec.rb
CHANGED
@@ -56,6 +56,14 @@ describe Pliney::IPA do
|
|
56
56
|
@ipa.provisioning_profile.name.should == "Pliney Test Profile"
|
57
57
|
end
|
58
58
|
|
59
|
+
it "gets the bundle version" do
|
60
|
+
@ipa.bundle_version.should == "1"
|
61
|
+
end
|
62
|
+
|
63
|
+
it "gets the bundle short version string" do
|
64
|
+
@ipa.bundle_short_version.should == "1.0"
|
65
|
+
end
|
66
|
+
|
59
67
|
it "reads the executable object"
|
60
68
|
|
61
69
|
it "reads the entitlements"
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pliney
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Monti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description: Includes various helpers and interfaces for working with IPA files, mobileprovisioning,
|
98
112
|
and other formats related Apple iOS apps.
|
99
113
|
email:
|