dubai 0.0.6 → 0.1.0

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: ca4b11313ba6613e0cbbfba1feeeca15a5a4117e
4
- data.tar.gz: d578fa2402930ed12745016511259e510098bcaf
3
+ metadata.gz: f8098b50c32ada7d33d4b1b135386dc907b80e1b
4
+ data.tar.gz: 2ba44aee639724055359acb068bfe39c96e24469
5
5
  SHA512:
6
- metadata.gz: 8278e7acf0b75cd705809f2eb4e7f5bb07e1bd7911b07297a84b9d47e8dba25f717d8408f91fa29f8a58feddb44edae3bc47d08f739086872039957730958eaa
7
- data.tar.gz: 75e83072bb68711861cb4357e7c59cb0b79820699a16de9c6a7094c33f425e90fd9508a9fbcb9bfe9d8f6d079713a3ca97250793ad52ba3e33f0bb91ea566779
6
+ metadata.gz: f3f15cbc18e7fced062db005c4418b9eb7c7385ab4ea0f7f6486c7d69ae248a01c229e77a1a43c98014f3f978f59878b28ae7da4daaaba11a9ad6056be837a77
7
+ data.tar.gz: dafac00dc23d7dd2475a7ae0efff9897e3a49e6b964cc5707dca935d8959ab035a8c9a0eae565718a442cef8a3d69f5eebee1102322836faccf17e316c0fbd21
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dubai (0.0.6)
4
+ dubai (0.1.0)
5
5
  commander (~> 4.1)
6
6
  json
7
7
  rubyzip (~> 1.0)
@@ -11,7 +11,7 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- commander (4.1.6)
14
+ commander (4.2.0)
15
15
  highline (~> 1.6.11)
16
16
  diff-lcs (1.2.5)
17
17
  docile (1.1.3)
@@ -19,7 +19,7 @@ GEM
19
19
  json (1.8.1)
20
20
  multi_json (1.9.2)
21
21
  rack (1.5.2)
22
- rack-protection (1.5.2)
22
+ rack-protection (1.5.3)
23
23
  rack
24
24
  rake (10.2.1)
25
25
  rspec (2.14.1)
@@ -30,13 +30,13 @@ GEM
30
30
  rspec-expectations (2.14.5)
31
31
  diff-lcs (>= 1.1.3, < 2.0)
32
32
  rspec-mocks (2.14.6)
33
- rubyzip (1.1.2)
33
+ rubyzip (1.1.6)
34
34
  simplecov (0.8.2)
35
35
  docile (~> 1.1.0)
36
36
  multi_json
37
37
  simplecov-html (~> 0.8.0)
38
38
  simplecov-html (0.8.0)
39
- sinatra (1.4.4)
39
+ sinatra (1.4.5)
40
40
  rack (~> 1.4)
41
41
  rack-protection (~> 1.4)
42
42
  tilt (~> 1.3, >= 1.3.4)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![Dubai](https://raw.github.com/mattt/nomad-cli.com/assets/dubai-banner.png)
1
+ ![Dubai](https://raw.github.com/nomad/nomad.github.io/assets/dubai-banner.png)
2
2
 
3
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.
4
4
 
@@ -7,7 +7,7 @@ Dubai makes it easy to generate `.pkpass` from a script or the command line, all
7
7
  Pairs nicely with [Rack::Passbook](https://github.com/mattt/rack-passbook).
8
8
 
9
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!").
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).
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), [Venice](https://github.com/mattt/venice) (In-App Purchase Receipt Verification), and [Nashville](https://github.com/nomad/nashville) (iTunes Store API).
11
11
 
12
12
  ## Installation
13
13
 
@@ -26,10 +26,6 @@ File.open("Example.pkpass", 'w') do |f|
26
26
  end
27
27
  ```
28
28
 
29
- <p align="center" >
30
- <img src="http://f.cl.ly/items/1U3o0K2A1L1i0R2r3d2Z/dubai-screentshot.png" alt="Dubai Screenshot" title="Dubai Screenshot">
31
- </p>
32
-
33
29
  ## Comand Line Interface
34
30
 
35
31
  Dubai also comes with the `pk` binary, which provides a convenient way to generate and preview passes
@@ -53,6 +49,10 @@ Build a `.pkpass` file (which can previewed with a drag-and-drop onto the iOS Si
53
49
  $ pk serve Example.pass -c /path/to/certificate.p12
54
50
  $ open http://localhost:4567/pass.pkpass
55
51
 
52
+ Specify a `-H` / `--host` option to bind the server to a particular host. Binding on `0.0.0.0` will listen for all incoming connections on the local network, such as an iPhone or iPad:
53
+
54
+ $ pk serve Example.pass -H 0.0.0.0
55
+
56
56
  ## Contact
57
57
 
58
58
  Mattt Thompson
Binary file
@@ -6,7 +6,8 @@ command :serve do |c|
6
6
  c.example 'description', 'pk archive mypass'
7
7
  c.option '-c', '--certificate /path/to/cert.pem', 'Pass certificate'
8
8
  c.option '-p', '--[no]-password', 'Prompt for certificate password'
9
-
9
+ c.option '-H', '--host [HOST]', 'Host to bind to'
10
+
10
11
  c.action do |args, options|
11
12
  determine_directory! unless @directory = args.first
12
13
  validate_directory!
@@ -17,8 +18,11 @@ command :serve do |c|
17
18
  @password = ask("Enter certificate password:"){|q| q.echo = false} if options.password
18
19
 
19
20
  Dubai::Passbook.certificate, Dubai::Passbook.password = @certificate, @password
20
-
21
+
21
22
  Dubai::Server.set :directory, @directory
23
+
24
+ Dubai::Server.set :bind, options.host if options.host
25
+
22
26
  Dubai::Server.run!
23
27
  end
24
28
  end
@@ -45,5 +49,5 @@ def validate_directory!
45
49
  end
46
50
 
47
51
  def validate_certificate!
48
- say_error "Missing or invalid certificate file" and abort if @certificate.nil? or not File.exist?(@certificate)
52
+ say_error "Missing or invalid certificate file" and abort if @certificate.nil? or not File.exist?(@certificate)
49
53
  end
@@ -1,3 +1,3 @@
1
1
  module Dubai
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dubai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-26 00:00:00.000000000 Z
11
+ date: 2015-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -131,6 +131,7 @@ extra_rdoc_files: []
131
131
  files:
132
132
  - ./dubai-0.0.4.gem
133
133
  - ./dubai-0.0.5.gem
134
+ - ./dubai-0.0.6.gem
134
135
  - ./dubai.gemspec
135
136
  - ./Gemfile
136
137
  - ./Gemfile.lock