marfa 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marfa/controllers/base_controller.rb +3 -1
- data/lib/marfa/version.rb +1 -1
- data/marfa.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cf8b86d1de62f5f093e97fb44a6050a8b378a4a
|
4
|
+
data.tar.gz: f35b86b6a9e8a4e257c8d0cac42f0980d9a49081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49e29a4a5d4b69b5d5bf6eab834082946c6fbdd79221f54700ac35e9bd61b5df83026d3857322d7ec5187ea668f9ebef42cc4669833bd095f343759ed58b6614
|
7
|
+
data.tar.gz: b0999e7a264e180cea3f397b75c4775f4abb54fcbb45ffb0e241bd1976087e12a2fc0c0cf73d4e112055b743e6b2bcc2397b18238dfbcb3b35180f5091b58bc2
|
@@ -13,7 +13,9 @@ module Marfa
|
|
13
13
|
class BaseController < Sinatra::Base
|
14
14
|
before do
|
15
15
|
if Marfa.config.device_detector[:enabled]
|
16
|
-
|
16
|
+
client = DeviceDetector.new(request.user_agent)
|
17
|
+
@device = client.device_type
|
18
|
+
@browser = client.name
|
17
19
|
@device = Marfa.config.device_detector[:default_device] if @device.nil?
|
18
20
|
end
|
19
21
|
|
data/lib/marfa/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Version constant
|
2
2
|
module Marfa
|
3
3
|
# The version constant for the current version of Marfa
|
4
|
-
VERSION = '0.4.
|
4
|
+
VERSION = '0.4.5' unless defined?(Marfa::VERSION)
|
5
5
|
|
6
6
|
# The current Marfa version.
|
7
7
|
# @return [String] The version number
|
data/marfa.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Krechetov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-05-
|
13
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: haml
|