dubai 0.0.4 → 0.0.5

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: a000d551ae15db4dbda2e3b643f2d5e86baff535
4
- data.tar.gz: d5f05a9490bbdf2610b61e61d605442fff9dc4c1
3
+ metadata.gz: f03ad67c0282cdb9841212bb267d47a496779be3
4
+ data.tar.gz: e12cba1f5d4fca4b1e20cefff3c607463fc7f7b2
5
5
  SHA512:
6
- metadata.gz: 735aca2e0e2cdc6e5fd795d29218a21f3121de6c66c7ad0585407e4e96cd6d15005a08535e0a7c964e5f71defdaa1e42dcffbeb5340cb287ffd181860664a204
7
- data.tar.gz: bd5e90582f1c15ab7456dc70c1d0104d917beb760bf8f1d175efb68b3062a4aa52d78c49278df44367fb830e18a6e06e00a44ab4847e29d037b336a71f360adf
6
+ metadata.gz: 315da22dee33ce33a6753d5ae0d593a757c98a40ecf451dba12e35c278d578acb987caafa8443f0c7821c0f45806dafc8f386773c9279f7af59af81059834ca3
7
+ data.tar.gz: 184966d18893e12e2f4ff5b560f44dcfb99650274fd26cfa8e90eab847a7050a55baaa8bfcb8233a09ecdecbbcdda6ada281e39309c8c7860ec83d547e900799
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dubai (0.0.4)
4
+ dubai (0.0.5)
5
5
  commander (~> 4.1)
6
6
  json
7
7
  rubyzip
@@ -11,11 +11,11 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- commander (4.1.3)
14
+ commander (4.1.5)
15
15
  highline (~> 1.6.11)
16
16
  diff-lcs (1.2.4)
17
- highline (1.6.18)
18
- json (1.7.7)
17
+ highline (1.6.19)
18
+ json (1.8.0)
19
19
  multi_json (1.7.2)
20
20
  rack (1.5.2)
21
21
  rack-protection (1.5.0)
@@ -29,13 +29,13 @@ GEM
29
29
  rspec-expectations (2.13.0)
30
30
  diff-lcs (>= 1.1.3, < 2.0)
31
31
  rspec-mocks (2.13.1)
32
- rubyzip (0.9.9)
32
+ rubyzip (1.0.0)
33
33
  simplecov (0.7.1)
34
34
  multi_json (~> 1.0)
35
35
  simplecov-html (~> 0.7.1)
36
36
  simplecov-html (0.7.1)
37
- sinatra (1.4.2)
38
- rack (~> 1.5, >= 1.5.2)
37
+ sinatra (1.4.3)
38
+ rack (~> 1.4)
39
39
  rack-protection (~> 1.4)
40
40
  tilt (~> 1.3, >= 1.3.4)
41
41
  terminal-table (1.4.5)
data/README.md CHANGED
@@ -1,13 +1,12 @@
1
- # Dubai
2
- **Generate and Preview Passbook Passes**
1
+ ![Dubai](https://raw.github.com/mattt/nomad-cli.com/assets/dubai-banner.png)
3
2
 
4
3
  [Passbook](http://www.apple.com/ios/whats-new/#passbook) is an iOS 6 feature that manages boarding passes, movie tickets, retail coupons, & loyalty cards. Using the [PassKit API](https://developer.apple.com/library/prerelease/ios/#documentation/UserExperience/Reference/PassKit_Framework/_index.html), developers can register web services to automatically update content on the pass, such as gate changes on a boarding pass, or adding credit to a loyalty card.
5
4
 
6
- Dubai makes it easy to generate `.pkpass` from a script or the command line, allowing you to rapidly iterate on the design and content of your passes, or generate one-offs on the fly.
5
+ Dubai makes it easy to generate `.pkpass` from a script or the command line, allowing you to rapidly iterate on the design and content of your passes, or generate one-offs on the fly.
7
6
 
8
7
  Pairs nicely with [Rack::Passbook](https://github.com/mattt/rack-passbook).
9
8
 
10
- > Dubai is named for [Dubai, UAE](http://en.wikipedia.org/wiki/Dubai), a center of commerce and trade (and as [Dave Rupert was all-too-eager to point out](https://twitter.com/davatron5000/status/304321180259721216), an unfortunate pun on "Do Buy!").
9
+ > Dubai is named for [Dubai, UAE](http://en.wikipedia.org/wiki/Dubai), a center of commerce and trade (and as [Dave Rupert was all-too-eager to point out](https://twitter.com/davatron5000/status/304321180259721216), an unfortunate pun on "Do Buy!").
11
10
  > It's part of a series of world-class command-line utilities for iOS development, which includes [Cupertino](https://github.com/mattt/cupertino) (Apple Dev Center management), [Shenzhen](https://github.com/mattt/shenzhen) (Building & Distribution), [Houston](https://github.com/mattt/houston) (Push Notifications), and [Venice](https://github.com/mattt/venice) (In-App Purchase Receipt Verification).
12
11
 
13
12
  ## Installation
@@ -19,9 +18,9 @@ Pairs nicely with [Rack::Passbook](https://github.com/mattt/rack-passbook).
19
18
  ```ruby
20
19
  require 'dubai'
21
20
 
22
- Dubai::Passbook.certificate, Dubai::Passbook.password = "/path/to/certificate.p12, "..."
21
+ Dubai::Passbook.certificate, Dubai::Passbook.password = "/path/to/certificate.p12", "..."
23
22
 
24
- # Example.pass is a directory with files "pass.png", "icon.png" & "icon@2x.png"
23
+ # Example.pass is a directory with files "pass.json", "icon.png" & "icon@2x.png"
25
24
  File.open("Example.pkpass", 'w') do |f|
26
25
  f.write Dubai::Passbook::Pass.new("Example.pass").pkpass.string
27
26
  end
@@ -35,7 +34,7 @@ end
35
34
 
36
35
  Dubai also comes with the `pk` binary, which provides a convenient way to generate and preview passes
37
36
 
38
- $ pk generate Example.pass -T boarding-pass
37
+ $ pk generate Example.pass -T boarding-pass
39
38
 
40
39
  Dubai comes with templates for all of the different Passbook layouts:
41
40
 
data/Rakefile CHANGED
@@ -1,5 +1,4 @@
1
- require "bundler"
2
- Bundler.setup
1
+ require "bundler/setup"
3
2
 
4
3
  gemspec = eval(File.read("dubai.gemspec"))
5
4
 
data/dubai-0.0.4.gem ADDED
Binary file
data/dubai.gemspec CHANGED
@@ -1,5 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
+
3
4
  require "dubai/version"
4
5
 
5
6
  Gem::Specification.new do |s|
data/lib/dubai/pass.rb CHANGED
@@ -2,7 +2,7 @@ require 'digest/sha1'
2
2
  require 'openssl'
3
3
  require 'base64'
4
4
  require 'json'
5
- require 'zip/zip'
5
+ require 'zip'
6
6
 
7
7
  module Dubai
8
8
  module Passbook
@@ -60,7 +60,7 @@ XnMuLyV1FQ==
60
60
  end
61
61
 
62
62
  def pkpass
63
- Zip::ZipOutputStream.write_buffer do |zip|
63
+ Zip::OutputStream.write_buffer do |zip|
64
64
  zip.put_next_entry 'pass.json' and zip.write @pass
65
65
  zip.put_next_entry 'manifest.json' and zip.write manifest
66
66
  zip.put_next_entry 'signature' and zip.write signature(manifest)
data/lib/dubai/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dubai
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dubai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-10 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -70,56 +70,56 @@ dependencies:
70
70
  name: rubyzip
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: Passbook pass generation and preview.
@@ -129,6 +129,7 @@ executables:
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - ./dubai-0.0.4.gem
132
133
  - ./dubai.gemspec
133
134
  - ./Gemfile
134
135
  - ./Gemfile.lock
@@ -160,12 +161,12 @@ require_paths:
160
161
  - lib
161
162
  required_ruby_version: !ruby/object:Gem::Requirement
162
163
  requirements:
163
- - - ! '>='
164
+ - - '>='
164
165
  - !ruby/object:Gem::Version
165
166
  version: '0'
166
167
  required_rubygems_version: !ruby/object:Gem::Requirement
167
168
  requirements:
168
- - - ! '>='
169
+ - - '>='
169
170
  - !ruby/object:Gem::Version
170
171
  version: '0'
171
172
  requirements: []