dubai 0.1.1 → 0.1.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: 0c5bdc200101db47c3541c991aad639e892413f4
4
- data.tar.gz: 88d7cd18f2240a4caf29e42000d06befc87aa634
3
+ metadata.gz: 10e0f07b5292faf076a3eeed56dc601cabf4261e
4
+ data.tar.gz: d5e99e10840f743b022b05b37bc25ef89539041e
5
5
  SHA512:
6
- metadata.gz: f9c85cca38e21758123c5ae00d8325df699eec6735554bfa844b6766b7da2b7eeba9bbb49fa948163beea0bc5c2dfa50e01229a65d99a5d3158ba0aadd28c820
7
- data.tar.gz: 154e17fb83054a27955abf8a5c625cfb10819bfa3f6ae8f59b40c944f7015201c7d1d87f586cc2ec5fe55fec87ded8376ae9cf0fb0b1684d6450692c8db2e65d
6
+ metadata.gz: 8375888bcaf2e30a7e5e25b248702d04563345b116c430cd47bfb8a339f21e066174caf0b441db8c3b8fb1320ab5438c1055e228a158005e52a7ecf08717f8ed
7
+ data.tar.gz: f2b9bb9da6d95070ca8af5b29aa64e38053342059f84c5d3ab3d897dde5ff14302c7719eb30e0d23ad71acb60b1665378fac85c176bfa210a7c28569ee54b159
@@ -17,12 +17,13 @@ Gem::Specification.new do |s|
17
17
  s.add_dependency "json"
18
18
  s.add_dependency "commander", "~> 4.1"
19
19
  s.add_dependency "terminal-table", "~> 1.4"
20
- s.add_dependency "sinatra", "~> 1.3"
20
+ s.add_dependency "sinatra", [">= 1.3", "<= 2.0.0"]
21
21
  s.add_dependency "rubyzip", "~> 1.0"
22
22
 
23
23
  s.add_development_dependency "rspec"
24
24
  s.add_development_dependency "rake"
25
25
  s.add_development_dependency "simplecov"
26
+ s.add_development_dependency "rack-test"
26
27
 
27
28
  s.files = Dir["./**/*"].reject { |file| file =~ /\.\/(bin|log|pkg|script|spec|test|vendor)/ }
28
29
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,3 +1,3 @@
1
1
  module Dubai
2
- VERSION = "0.1.1"
2
+ VERSION = '0.1.2'
3
3
  end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+ require 'rack/test'
3
+ require_relative '../lib/dubai/server'
4
+
5
+ include Rack::Test::Methods
6
+
7
+ describe Dubai::Server do
8
+ let(:app) { Dubai::Server }
9
+
10
+ describe 'GET /pass.pkpass' do
11
+ it 'returns pkpass' do
12
+ Dubai::Server.set(:directory, 'directory')
13
+ pkpass = double(string: 'your.pkpass')
14
+ pass = double(pkpass: pkpass)
15
+ allow(Dubai::Passbook::Pass).to receive(:new).with('directory').and_return(pass)
16
+
17
+ get '/pass.pkpass'
18
+
19
+ expect(last_response.body).to eq('your.pkpass')
20
+ end
21
+ end
22
+ 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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-13 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: sinatra
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
+ - - "<="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.0.0
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ">="
67
70
  - !ruby/object:Gem::Version
68
71
  version: '1.3'
72
+ - - "<="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.0.0
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rubyzip
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +128,20 @@ dependencies:
122
128
  - - ">="
123
129
  - !ruby/object:Gem::Version
124
130
  version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rack-test
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
125
145
  description: Passbook pass generation and preview.
126
146
  email: m@mattt.me
127
147
  executables:
@@ -148,6 +168,7 @@ files:
148
168
  - "./lib/dubai/templates/store-card.json"
149
169
  - "./lib/dubai/version.rb"
150
170
  - bin/pk
171
+ - spec/server_spec.rb
151
172
  - spec/spec_helper.rb
152
173
  homepage: http://nomad-cli.com
153
174
  licenses:
@@ -169,9 +190,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
190
  version: '0'
170
191
  requirements: []
171
192
  rubyforge_project:
172
- rubygems_version: 2.6.8
193
+ rubygems_version: 2.6.11
173
194
  signing_key:
174
195
  specification_version: 4
175
196
  summary: Dubai
176
197
  test_files:
198
+ - spec/server_spec.rb
177
199
  - spec/spec_helper.rb