passbook 0.4.0 → 0.4.1

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: 97ea4c5ca0af4acfa45765aeaf6e0b25f178ccff
4
- data.tar.gz: 6b4956c66a4adab083bc56931720c98388d44a7e
3
+ metadata.gz: 13dcfa4609494b74e55a93ccb7112fd7eb0db940
4
+ data.tar.gz: 39ca932277b88c4e867fdb243cb59425d2a0636a
5
5
  SHA512:
6
- metadata.gz: 0c4c3cc667cd81ff7909fd9693696d46c802ee706f31f0401abcbb8dd0d9c4482086a40ab80ed8f20f4af82bf206d0605aefd4511eaa45ac166ae488d885cf9b
7
- data.tar.gz: 0aaa787aaad3dc34a6937c3a98f74bae8f3932becf14dce0aed930baab25fe075d44ac30d41fd7a13bd55c485988ad9e06aa05725ff1a179bbda5c3fb011f744
6
+ metadata.gz: e47891da09c51646de304691bd678b9db7d0a5ac486c3264bb209c2a2496eee105078881fd43ec6eb6363f5c8f454c2b526cf2fc1456a8c2d770c392eec5d77b
7
+ data.tar.gz: c05ce20890f7b0de157590b681e84cc4f334df65983420eca0fcd7f88d460cecfabead0c19c485fc4268fb72d816c35251d4a8f4078311088f887139c7f8f982
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in passbook.gemspec
4
- gem 'rubyzip', '~> 1.0.0'
4
+ gem 'rubyzip', '>= 1.0.0'
5
5
  gem 'grocer'
6
6
  gem 'commander'
7
7
  gem 'terminal-table'
@@ -9,7 +9,7 @@ gem 'terminal-table'
9
9
  group :test, :development do
10
10
  gem 'rack-test'
11
11
  gem 'activesupport'
12
- gem 'jeweler', :git => 'git://github.com/foxnewsnetwork/jeweler.git', :branch => 'ruby-2.0.0-ifying'
12
+ gem 'jeweler'
13
13
  gem 'simplecov'
14
14
  gem 'rspec'
15
15
  gem 'rake'
data/Gemfile.lock CHANGED
@@ -1,35 +1,61 @@
1
- GIT
2
- remote: git://github.com/foxnewsnetwork/jeweler.git
3
- revision: f05c62e168cfc29bd82cebe06df8fd11e1ef09ee
4
- branch: ruby-2.0.0-ifying
5
- specs:
6
- jeweler (1.8.4)
7
- bundler (~> 1.3.0.pre)
8
- git (>= 1.2.5)
9
- rake
10
- rdoc
11
-
12
1
  GEM
13
2
  remote: https://rubygems.org/
14
3
  specs:
15
4
  activesupport (3.2.14)
16
5
  i18n (~> 0.6, >= 0.6.4)
17
6
  multi_json (~> 1.0)
7
+ addressable (2.3.6)
8
+ builder (3.2.2)
18
9
  commander (4.1.5)
19
10
  highline (~> 1.6.11)
11
+ descendants_tracker (0.0.4)
12
+ thread_safe (~> 0.3, >= 0.3.1)
20
13
  diff-lcs (1.2.4)
21
- git (1.2.6)
14
+ faraday (0.9.0)
15
+ multipart-post (>= 1.2, < 3)
16
+ git (1.2.8)
17
+ github_api (0.12.2)
18
+ addressable (~> 2.3)
19
+ descendants_tracker (~> 0.0.4)
20
+ faraday (~> 0.8, < 0.10)
21
+ hashie (>= 3.3)
22
+ multi_json (>= 1.7.5, < 2.0)
23
+ nokogiri (~> 1.6.3)
24
+ oauth2
22
25
  grocer (0.4.1)
26
+ hashie (3.3.2)
23
27
  highline (1.6.19)
24
28
  i18n (0.6.5)
25
- json (1.8.0)
26
- json (1.8.0-java)
29
+ jeweler (2.0.1)
30
+ builder
31
+ bundler (>= 1.0)
32
+ git (>= 1.2.5)
33
+ github_api
34
+ highline (>= 1.6.15)
35
+ nokogiri (>= 1.5.10)
36
+ rake
37
+ rdoc
38
+ json (1.8.1)
39
+ json (1.8.1-java)
40
+ jwt (1.2.0)
41
+ mini_portile (0.6.1)
27
42
  multi_json (1.8.0)
43
+ multi_xml (0.5.5)
44
+ multipart-post (2.0.0)
45
+ nokogiri (1.6.5)
46
+ mini_portile (~> 0.6.0)
47
+ nokogiri (1.6.5-java)
48
+ oauth2 (1.0.0)
49
+ faraday (>= 0.8, < 0.10)
50
+ jwt (~> 1.0)
51
+ multi_json (~> 1.3)
52
+ multi_xml (~> 0.5)
53
+ rack (~> 1.2)
28
54
  rack (1.5.2)
29
55
  rack-test (0.6.2)
30
56
  rack (>= 1.0)
31
57
  rake (10.1.0)
32
- rdoc (4.0.1)
58
+ rdoc (4.2.0)
33
59
  json (~> 1.4)
34
60
  rspec (2.14.1)
35
61
  rspec-core (~> 2.14.0)
@@ -45,6 +71,8 @@ GEM
45
71
  simplecov-html (~> 0.7.1)
46
72
  simplecov-html (0.7.1)
47
73
  terminal-table (1.4.5)
74
+ thread_safe (0.3.4)
75
+ thread_safe (0.3.4-java)
48
76
  yard (0.8.7.2)
49
77
 
50
78
  PLATFORMS
@@ -55,11 +83,11 @@ DEPENDENCIES
55
83
  activesupport
56
84
  commander
57
85
  grocer
58
- jeweler!
86
+ jeweler
59
87
  rack-test
60
88
  rake
61
89
  rspec
62
- rubyzip (~> 1.0.0)
90
+ rubyzip (>= 1.0.0)
63
91
  simplecov
64
92
  terminal-table
65
93
  yard
data/README.md CHANGED
@@ -27,14 +27,14 @@ Then go to a directory that you want to generate your pass under and use the "pk
27
27
  pk generate your_pass_name
28
28
  ```
29
29
 
30
- This will generate a directory called your_pass_name. Edit your pass.json file in the your_pass_directory to have a valid team identifier and passTypeIdentifier and create your cerificates if you haven't yet. [See this article for information on how to do this.](http://www.raywenderlich.com/20734/beginning-passbook-part-1#more-20734)
30
+ This will generate a directory called your_pass_name. Edit your pass.json file in the your_pass_directory to have a valid team identifier and passTypeIdentifier and create your certificates if you haven't yet. [See this article for information on how to do this.](http://www.raywenderlich.com/20734/beginning-passbook-part-1#more-20734)
31
31
 
32
- Assuming that you have put your cerificate files etc. in your working directory.
32
+ Assuming that you have put your certificate files etc. in your working directory.
33
33
 
34
34
  ```
35
35
  pk build your_pass_name -w ./wwdc.pem -c ./your_pass_name.p12 -p ''
36
36
  ```
37
- The wwdc.pem file is the exported Apple World Wide Develoler Relations Certification Authority certifiate file from your key manager and the your_pass_name.p12 is the exported p12 file from your pass certificate.
37
+ The wwdc.pem file is the exported Apple World Wide Developer Relations Certification Authority certificate file from your key manager and the your_pass_name.p12 is the exported p12 file from your pass certificate.
38
38
 
39
39
  If you are not building your passes on a mac or just prefer to use the pass certificate and key pem file.
40
40
 
@@ -42,7 +42,7 @@ If you are not building your passes on a mac or just prefer to use the pass cert
42
42
  pk build passbook_gem_name -w ./wwdc.pem -c ./your_pass_name_certificate.pem -k your_pass_name_key.pem -p '12345'
43
43
  ```
44
44
 
45
- Now you can drag the file over to a simulator or send it to your i-phone via e-mail to view your pass.
45
+ Now you can drag the file over to a simulator or send it to your iPhone via e-mail to view your pass.
46
46
 
47
47
 
48
48
  ## Configuration
@@ -74,7 +74,7 @@ If you are running this on a different machine from what you used to create your
74
74
  ```
75
75
  If you are using Sinatra you can place this in the file you are executing or in a file that you do a require on. You would also not reference Rails.root when specifying your file path.
76
76
 
77
- If You are doing push notifications then you will need to add some extra configuration options, namely a push notification certificate and a notification gateway certificate. Look at the Grocer gem documentation to find information on how to create this certificate. Settings you will want ot use for the notification gateway are either 'gateway.push.apple.com' for production, 'gateway.sandbox.push.apple.com' for developmetn and 'localhost' for unit tests.
77
+ If You are doing push notifications then you will need to add some extra configuration options, namely a push notification certificate and a notification gateway certificate. Look at the Grocer gem documentation to find information on how to create this certificate. Settings you will want to use for the notification gateway are either 'gateway.push.apple.com' for production, 'gateway.sandbox.push.apple.com' for development and 'localhost' for unit tests.
78
78
  ```
79
79
  Passbook.configure do |passbook|
80
80
  .....other settings.....
@@ -162,7 +162,7 @@ If you want to support passbook push notification updates you will need to confi
162
162
 
163
163
  In order to support push notifications you will need to have a basic understanding of the way that push notifications work and how the data is passed back and forth. See [this](http://developer.apple.com/library/ios/#Documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Creating.html) for basic information about passes and [this](http://developer.apple.com/library/ios/#Documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Updating.html#//apple_ref/doc/uid/TP40012195-CH5-SW1) to understand the information that needs to be exchanged between each device and your application to support the update service.
164
164
 
165
- Your pass will need to have a field called 'webServiceURL' with the base url to your site and a field called 'authenticationToken'. The json snippet should look like this. Note that your url needs to be a valid signed https endpoint for production. You can put your phone in dev mode to test updates against a insecure http endpoint (under settings => developer => passkit testing).
165
+ Your pass will need to have a field called 'webServiceURL' with the base url to your site and a field called 'authenticationToken'. The json snippet should look like this. Note that your url needs to be a valid signed https endpoint for production. You can put your phone in dev mode to test updates against a insecure http endpoint (under settings => developer => passkit testing).
166
166
 
167
167
  ```
168
168
  ...
@@ -280,7 +280,10 @@ Allow passbook gem to return a ZipOutputStream (needed when garbage collector de
280
280
  Adding support for push notification updates for passes.
281
281
 
282
282
  ### 0.4.0
283
- Adding support for using multiple signatures per gem configuration and introducing command line helpers.
283
+ Adding support for using multiple signatures per gem configuration and introducing command line helpers. More in [this](http://www.polyglotprogramminginc.com/allowing-for-more-signature-flexibility-in-the-ruby-passbook-gem/) blog post.
284
+
285
+ ### 0.4.1
286
+ Update rubyzip dependency to >= 1.0.0
284
287
 
285
288
  License
286
289
  -------
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -9,10 +9,10 @@ module Passbook
9
9
 
10
10
  TYPES = ['boarding-pass', 'coupon', 'event-ticket', 'store-card', 'generic']
11
11
 
12
- def initialize pass, init_signer = Passbook::Signer.new
12
+ def initialize pass, init_signer = nil
13
13
  @pass = pass
14
14
  @manifest_files = []
15
- @signer = init_signer
15
+ @signer = init_signer || Passbook::Signer.new
16
16
  end
17
17
 
18
18
  def addFile file
data/passbook.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: passbook 0.4.0 ruby lib
5
+ # stub: passbook 0.4.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "passbook"
9
- s.version = "0.4.0"
9
+ s.version = "0.4.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Thomas Lauro", "Lance Gleason"]
14
- s.date = "2014-06-22"
14
+ s.date = "2014-12-08"
15
15
  s.description = "This gem allows you to create IOS Passbooks. Unlike some, this works with Rails but does not require it."
16
16
  s.email = ["thomas@lauro.fr", "lgleason@polyglotprogramminginc.com"]
17
17
  s.executables = ["pk"]
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
69
69
  s.specification_version = 4
70
70
 
71
71
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
72
- s.add_runtime_dependency(%q<rubyzip>, ["~> 1.0.0"])
72
+ s.add_runtime_dependency(%q<rubyzip>, [">= 1.0.0"])
73
73
  s.add_runtime_dependency(%q<grocer>, [">= 0"])
74
74
  s.add_runtime_dependency(%q<commander>, [">= 0"])
75
75
  s.add_runtime_dependency(%q<terminal-table>, [">= 0"])
@@ -81,7 +81,7 @@ Gem::Specification.new do |s|
81
81
  s.add_development_dependency(%q<rake>, [">= 0"])
82
82
  s.add_development_dependency(%q<yard>, [">= 0"])
83
83
  else
84
- s.add_dependency(%q<rubyzip>, ["~> 1.0.0"])
84
+ s.add_dependency(%q<rubyzip>, [">= 1.0.0"])
85
85
  s.add_dependency(%q<grocer>, [">= 0"])
86
86
  s.add_dependency(%q<commander>, [">= 0"])
87
87
  s.add_dependency(%q<terminal-table>, [">= 0"])
@@ -94,7 +94,7 @@ Gem::Specification.new do |s|
94
94
  s.add_dependency(%q<yard>, [">= 0"])
95
95
  end
96
96
  else
97
- s.add_dependency(%q<rubyzip>, ["~> 1.0.0"])
97
+ s.add_dependency(%q<rubyzip>, [">= 1.0.0"])
98
98
  s.add_dependency(%q<grocer>, [">= 0"])
99
99
  s.add_dependency(%q<commander>, [">= 0"])
100
100
  s.add_dependency(%q<terminal-table>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Lauro
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-22 00:00:00.000000000 Z
12
+ date: 2014-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyzip
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 1.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 1.0.0
28
28
  - !ruby/object:Gem::Dependency