wurfl_cloud_client 1.0.1 → 1.1.0
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 +5 -5
- data/Gemfile.lock +36 -22
- data/lib/wurfl_cloud.rb +1 -1
- data/lib/wurfl_cloud/version.rb +1 -1
- data/spec/wurfl_cloud/device_capabilities_spec.rb +3 -3
- data/spec/wurfl_cloud/server_request_spec.rb +2 -2
- metadata +4 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 0d86272df2c8d3f763bd8c45b66e5933fa87fd63e10d69023b16235f956da594
|
|
4
|
+
data.tar.gz: 073f589aed820842062a1fad06c98801ce61c0d9283fc24d9d657f68ae70f97f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e9a928c7cf7fa861933ea3c64c039ff9797a5b594b17f630663966b936c415450c6d20939d7bcdb46e21f7487c0b7cdedb7d260e501a6a3e7d97cf2f0c7117c
|
|
7
|
+
data.tar.gz: a9493b63653b1c78587688dfc91dde454822e242782bb52ddc0fb8d504815eb0ec32e87861ec91e1c50cded011dde784ecd78b4da69a70ec50479489e1b04a56
|
data/Gemfile.lock
CHANGED
|
@@ -1,34 +1,45 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
wurfl_cloud_client (1.
|
|
4
|
+
wurfl_cloud_client (1.1.0)
|
|
5
5
|
json
|
|
6
6
|
rack
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: http://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
addressable (2.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
rspec
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
11
|
+
addressable (2.7.0)
|
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
13
|
+
crack (0.4.3)
|
|
14
|
+
safe_yaml (~> 1.0.0)
|
|
15
|
+
diff-lcs (1.4.4)
|
|
16
|
+
docile (1.3.2)
|
|
17
|
+
hashdiff (1.0.1)
|
|
18
|
+
json (2.3.1)
|
|
19
|
+
public_suffix (4.0.5)
|
|
20
|
+
rack (2.2.3)
|
|
21
|
+
rspec (3.9.0)
|
|
22
|
+
rspec-core (~> 3.9.0)
|
|
23
|
+
rspec-expectations (~> 3.9.0)
|
|
24
|
+
rspec-mocks (~> 3.9.0)
|
|
25
|
+
rspec-core (3.9.2)
|
|
26
|
+
rspec-support (~> 3.9.3)
|
|
27
|
+
rspec-expectations (3.9.2)
|
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
29
|
+
rspec-support (~> 3.9.0)
|
|
30
|
+
rspec-mocks (3.9.1)
|
|
31
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
32
|
+
rspec-support (~> 3.9.0)
|
|
33
|
+
rspec-support (3.9.3)
|
|
34
|
+
safe_yaml (1.0.5)
|
|
35
|
+
simplecov (0.18.5)
|
|
36
|
+
docile (~> 1.1)
|
|
37
|
+
simplecov-html (~> 0.11)
|
|
38
|
+
simplecov-html (0.12.2)
|
|
39
|
+
webmock (3.8.3)
|
|
40
|
+
addressable (>= 2.3.6)
|
|
41
|
+
crack (>= 0.3.2)
|
|
42
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
32
43
|
|
|
33
44
|
PLATFORMS
|
|
34
45
|
ruby
|
|
@@ -38,3 +49,6 @@ DEPENDENCIES
|
|
|
38
49
|
simplecov
|
|
39
50
|
webmock
|
|
40
51
|
wurfl_cloud_client!
|
|
52
|
+
|
|
53
|
+
BUNDLED WITH
|
|
54
|
+
2.1.4
|
data/lib/wurfl_cloud.rb
CHANGED
|
@@ -30,7 +30,7 @@ module WurflCloud
|
|
|
30
30
|
# @example
|
|
31
31
|
# WurflCloud.configure do |config|
|
|
32
32
|
# config.api_key = '00000000:xxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
|
33
|
-
# config.host = '
|
|
33
|
+
# config.host = 'api.wurflcloud.com'
|
|
34
34
|
# end
|
|
35
35
|
def configure(silent = false)
|
|
36
36
|
yield(configuration)
|
data/lib/wurfl_cloud/version.rb
CHANGED
|
@@ -32,7 +32,7 @@ describe WurflCloud::DeviceCapabilities do
|
|
|
32
32
|
it "should return true from has_key? if the key is set" do
|
|
33
33
|
key = String.random
|
|
34
34
|
subject[key] = nil
|
|
35
|
-
subject.has_key?(key).should
|
|
35
|
+
subject.has_key?(key).should be_truthy
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
context "when merging" do
|
|
@@ -67,12 +67,12 @@ describe WurflCloud::DeviceCapabilities do
|
|
|
67
67
|
|
|
68
68
|
context "the empty? method" do
|
|
69
69
|
it "should return true if there are no capabilities defined" do
|
|
70
|
-
WurflCloud::DeviceCapabilities.new.empty?.should
|
|
70
|
+
WurflCloud::DeviceCapabilities.new.empty?.should be_truthy
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
it "should return false if there are capabilities defined" do
|
|
74
74
|
subject[String.random] = String.random
|
|
75
|
-
subject.empty?.should
|
|
75
|
+
subject.empty?.should be_falsey
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
78
|
end
|
|
@@ -23,7 +23,7 @@ describe "the client doing a real request" do
|
|
|
23
23
|
})
|
|
24
24
|
else
|
|
25
25
|
WurflCloud.configure do |config|
|
|
26
|
-
config.host = '
|
|
26
|
+
config.host = 'api.wurflcloud.com'
|
|
27
27
|
config.api_key = TEST_API_KEY
|
|
28
28
|
end
|
|
29
29
|
@environment = WurflCloud::Environment.new({"HTTP_USER_AGENT"=>%{Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Mobile/7D11}})
|
|
@@ -39,7 +39,7 @@ describe "the client doing a real request" do
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
it "should have the device capabilities" do
|
|
42
|
-
@device['
|
|
42
|
+
@device['advertised_device_os'].should == 'iOS'
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wurfl_cloud_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ScientiaMobile, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -144,28 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
145
|
version: '0'
|
|
146
146
|
requirements: []
|
|
147
|
-
|
|
148
|
-
rubygems_version: 2.4.7
|
|
147
|
+
rubygems_version: 3.0.3
|
|
149
148
|
signing_key:
|
|
150
149
|
specification_version: 4
|
|
151
150
|
summary: Wurfl Cound Ruby Client
|
|
152
|
-
test_files:
|
|
153
|
-
- spec/files/generic.json
|
|
154
|
-
- spec/files/generic_filtered.json
|
|
155
|
-
- spec/files/lumia.json
|
|
156
|
-
- spec/files/lumia_filtered.json
|
|
157
|
-
- spec/files/strange_values.json
|
|
158
|
-
- spec/spec_helper.rb
|
|
159
|
-
- spec/support/rack_helpers.rb
|
|
160
|
-
- spec/support/string_extensions.rb
|
|
161
|
-
- spec/wurfl_cloud/client_spec.rb
|
|
162
|
-
- spec/wurfl_cloud/configuration_spec.rb
|
|
163
|
-
- spec/wurfl_cloud/cookie_cache_spec.rb
|
|
164
|
-
- spec/wurfl_cloud/device_capabilities_spec.rb
|
|
165
|
-
- spec/wurfl_cloud/environment_spec.rb
|
|
166
|
-
- spec/wurfl_cloud/helper_spec.rb
|
|
167
|
-
- spec/wurfl_cloud/memcached_cache_spec.rb
|
|
168
|
-
- spec/wurfl_cloud/null_cache_spec.rb
|
|
169
|
-
- spec/wurfl_cloud/rack_cache_manager_spec.rb
|
|
170
|
-
- spec/wurfl_cloud/rails_cache_spec.rb
|
|
171
|
-
- spec/wurfl_cloud/server_request_spec.rb
|
|
151
|
+
test_files: []
|