applinks 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/applinks/builder.rb +19 -16
- data/lib/applinks/version.rb +1 -1
- data/spec/dummy/log/test.log +1128 -0
- data/spec/dummy/spec/helpers/application_helper_spec.rb +42 -2
- data/spec/spec_helper.rb +4 -1
- metadata +2 -4
- data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -56,7 +56,6 @@ describe ApplicationHelper do
|
|
56
56
|
}
|
57
57
|
}
|
58
58
|
|
59
|
-
|
60
59
|
IOS_MULTI_DATA = {
|
61
60
|
ios: [
|
62
61
|
{
|
@@ -313,6 +312,47 @@ describe ApplicationHelper do
|
|
313
312
|
it 'should be 7 lines' do
|
314
313
|
expect(multi_version_meta_array.length).to eq 7
|
315
314
|
end
|
316
|
-
end
|
315
|
+
end
|
316
|
+
|
317
|
+
context 'web url forwarding' do
|
318
|
+
|
319
|
+
|
320
|
+
WEB_FALLBACK_DATA = {web:
|
321
|
+
{
|
322
|
+
url: 'http://applinks.org/documentation'
|
323
|
+
}
|
324
|
+
}
|
325
|
+
|
326
|
+
WEB_NOT_FALLBACK_DATA = {web:
|
327
|
+
{
|
328
|
+
should_fallback: false
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
context 'web fallback' do
|
333
|
+
let(:web_fallback) do
|
334
|
+
helper.applinks(WEB_FALLBACK_DATA).to_s.split("\n")
|
335
|
+
end
|
336
|
+
it 'should contain the forwarding url' do
|
337
|
+
expect(web_fallback[0]).to eq '<meta property="al:web:url" content="http://applinks.org/documentation" />'
|
338
|
+
end
|
339
|
+
it 'should have one line' do
|
340
|
+
expect(web_fallback.length).to eq 1
|
341
|
+
end
|
342
|
+
end
|
343
|
+
context 'no web fallback' do
|
344
|
+
|
345
|
+
let(:web_not_fallback) do
|
346
|
+
helper.applinks(WEB_NOT_FALLBACK_DATA).to_s.split("\n")
|
347
|
+
end
|
348
|
+
|
349
|
+
it 'should contain should_fallback false' do
|
350
|
+
expect(web_not_fallback[0]).to eq '<meta property="al:web:should_fallback" content="false" />'
|
351
|
+
end
|
352
|
+
it 'should have one line' do
|
353
|
+
expect(web_not_fallback.length).to eq 1
|
354
|
+
end
|
355
|
+
end
|
356
|
+
end
|
317
357
|
end
|
318
358
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
1
4
|
ENV['RAILS_ENV'] ||= 'test'
|
2
5
|
|
3
6
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
@@ -5,8 +8,8 @@ require 'rspec/rails'
|
|
5
8
|
require 'rspec/autorun'
|
6
9
|
|
7
10
|
Rails.backtrace_cleaner.remove_silencers!
|
8
|
-
# Load support files
|
9
11
|
|
12
|
+
# Load support files
|
10
13
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
14
|
|
12
15
|
RSpec.configure do |config|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: applinks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Jones
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -107,7 +107,6 @@ files:
|
|
107
107
|
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
108
108
|
- spec/dummy/tmp/cache/assets/development/sprockets/edbef6e0d0a4742346cf479f2c522eb0
|
109
109
|
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
110
|
-
- spec/dummy/tmp/pids/server.pid
|
111
110
|
- spec/spec_helper.rb
|
112
111
|
homepage: https://github.com/stujo/applinks
|
113
112
|
licenses:
|
@@ -185,6 +184,5 @@ test_files:
|
|
185
184
|
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
186
185
|
- spec/dummy/tmp/cache/assets/development/sprockets/edbef6e0d0a4742346cf479f2c522eb0
|
187
186
|
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
188
|
-
- spec/dummy/tmp/pids/server.pid
|
189
187
|
- spec/spec_helper.rb
|
190
188
|
has_rdoc:
|
@@ -1 +0,0 @@
|
|
1
|
-
56083
|