ember-cli-deploy-rack 2.4.4 → 2.5.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: dedbf499cfb19e511f87b40011a61cd7650fda04
4
- data.tar.gz: 51cbb7596d92d35ebea572b5a752bcb33228489a
3
+ metadata.gz: aef09821864ab5fe2fb9f773866e81b6d5a8c14b
4
+ data.tar.gz: ccd4eb4726edaad25d1f3eb7a732d3b997948590
5
5
  SHA512:
6
- metadata.gz: 103848c71fca8f1db29037b7e251a1e110430ba43b55fd1cfb306eda5710cb3a3b356257a917690da9709b873a7b1acddca8bdfd3fbba476196e2208615a8b38
7
- data.tar.gz: 931d83b576f680f19ef1d416443898c7bcb1c0284fc7bb1cfc42262dd148a0fa83f2b5c75b89fb0848354a5c39e91f15bf9cfe0ba57e4e5b2f59e361d784ac50
6
+ metadata.gz: 2ef05b14ffd4610e513074786067a44e70293debd2a97fbdc52f45bd5b3c0690b2566e86116e3cbdc93f0dde5d8e7ff3e8f5fd7e1af9dd23424cf4d82f6361d1
7
+ data.tar.gz: 71c1c886c5765124d2c5b8c085e9325ac50a960aaf47a87afc0b6d5a81a9cb6e3f698daa5ee9137c23c246b107ff70d448510a254eb744c9c0365360ec0d6109
@@ -1,3 +1,14 @@
1
+ 2.5.0
2
+ =====
3
+
4
+ * [✓] Catch all routes, fixes #1
5
+ * [➠] Updated Gems
6
+
7
+ 2.4.4
8
+ =====
9
+
10
+ * [➠] Updated Gems
11
+
1
12
  2.4.3
2
13
  =====
3
14
 
data/README.md CHANGED
@@ -175,7 +175,7 @@ $ thin stop
175
175
  Bug Reports
176
176
  -----------
177
177
 
178
- Github Issues are used for managing bug reports and feature requests. If you run into issues, please search the issues
178
+ GitHub Issues are used for managing bug reports and feature requests. If you run into issues, please search the issues
179
179
  and submit new problems [here].
180
180
 
181
181
  Versioning
@@ -69,14 +69,6 @@ module Ember
69
69
 
70
70
  # === Routes ===
71
71
 
72
- get '/' do
73
- content_type 'text/html'
74
-
75
- logger.debug 'Processing request for `/` route...'
76
-
77
- index params[:revision]
78
- end
79
-
80
72
  get '/debug' do
81
73
  if settings.debug
82
74
  @id = 'debug'
@@ -89,6 +81,14 @@ module Ember
89
81
  end
90
82
  end
91
83
 
84
+ get '/*' do
85
+ content_type 'text/html'
86
+
87
+ logger.debug 'Processing request for `/*` route...'
88
+
89
+ index params[:revision]
90
+ end
91
+
92
92
  # === Private ===
93
93
 
94
94
  protected
@@ -4,7 +4,7 @@ module Ember
4
4
  module CLI
5
5
  module Deploy
6
6
  module Rack # :nodoc:
7
- VERSION = '2.4.4'.freeze
7
+ VERSION = '2.5.0'.freeze
8
8
  end
9
9
  end
10
10
  end
@@ -11,7 +11,7 @@ RSpec.describe Ember::CLI::Deploy::Rack::Engine do
11
11
  end
12
12
 
13
13
  context 'data available' do
14
- describe '/' do
14
+ describe '/*' do
15
15
  it 'returns the `current-content` revision as default' do
16
16
  revision = 'current-content'
17
17
  fixture = File.expand_path "ember/cli/deploy/rack/engine/revisions/#{revision}.html", fixtures
@@ -23,6 +23,11 @@ RSpec.describe Ember::CLI::Deploy::Rack::Engine do
23
23
 
24
24
  expect(last_response).to be_ok
25
25
  expect(last_response.body).to eq html
26
+
27
+ get '/foo/bar'
28
+
29
+ expect(last_response).to be_ok
30
+ expect(last_response.body).to eq html
26
31
  end
27
32
 
28
33
  it 'returns a specific revision' do
@@ -36,6 +41,11 @@ RSpec.describe Ember::CLI::Deploy::Rack::Engine do
36
41
 
37
42
  expect(last_response).to be_ok
38
43
  expect(last_response.body).to eq html
44
+
45
+ get '/foo/bar', revision: revision
46
+
47
+ expect(last_response).to be_ok
48
+ expect(last_response.body).to eq html
39
49
  end
40
50
  end
41
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-cli-deploy-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maik Kempe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -96,20 +96,20 @@ dependencies:
96
96
  requirements:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: '10.5'
99
+ version: '11.1'
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 10.5.0
102
+ version: 11.1.1
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '10.5'
109
+ version: '11.1'
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 10.5.0
112
+ version: 11.1.1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '2.4'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.6.1
181
+ rubygems_version: 2.6.2
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: A Rack package to launch your Ember.js application into the Cloud.