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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2df1c1b96c6a116c3342aee0df16f2264c0fec62
4
- data.tar.gz: d740e3dee3c294cd92e7825b8736cba925e76579
3
+ metadata.gz: fad96afb5f7664fe3b157a8fd19273276518cd5d
4
+ data.tar.gz: e2a61e0d1526428061f5fec4d953f83f96c79993
5
5
  SHA512:
6
- metadata.gz: 4b23f2907b25e5bde13515ef6daec6458bb8e62e59e4bc543e3e44a3a873bbc3327487a808db1f54183f2d9c2fe9d5e8eb9149c18dff35e5b046ac3cf000e97e
7
- data.tar.gz: 8c597a83dc006e93678ae11d2e3c819219b801254746bf3e6b91ae1b344bc249dc20daa65a66c579c35372406766e9e304676017375095c9d45a3db252934a34
6
+ metadata.gz: 021a945223632fc03fdfeab0a4af327b1a7ee322a1557ba23e925a884aec478d5b1b76d42ffae78055f7eaba5ef37b527b9825fc4e48a416a9d74c91b3cbfc1d
7
+ data.tar.gz: 549d0db774183ba9c04846b715962c7eef722ed622a80c9893d7157e564ac4fa508a6248fa761580b7a8f859dc2266eb576a5a252b2e14692c6ceeaa8dceec40
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  *.a
22
22
  mkmf.log
23
23
  ref/
24
+ .coveralls.yml
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Pliney
2
- [![Gem Version](https://badge.fury.io/rb/rubyzip.svg)](http://badge.fury.io/rb/pliney)
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://img.shields.io/coveralls/emonti/rpliney.svg)](https://coveralls.io/r/emonti/pliney?branch=master)
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
- TODO: Write usage instructions here
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
- ## Contributing
66
+ ## TODOS
32
67
 
33
- 1. Fork it ( https://github.com/[my-github-username]/pliney/fork )
34
- 2. Create your feature branch (`git checkout -b my-new-feature`)
35
- 3. Commit your changes (`git commit -am 'Add some feature'`)
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
@@ -1,3 +1,3 @@
1
1
  module Pliney
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/pliney.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec"
27
27
  spec.add_development_dependency "pry"
28
+ spec.add_development_dependency "coveralls"
28
29
  end
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
@@ -6,6 +6,9 @@ require 'tempfile'
6
6
  require 'rubygems'
7
7
  require 'rspec'
8
8
  require 'pry'
9
+ require 'coveralls'
10
+
11
+ Coveralls.wear!
9
12
 
10
13
  $LOAD_PATH << $SPECROOT.join("..", "lib").expand_path
11
14
  require 'pliney'
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.1
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-21 00:00:00.000000000 Z
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: