url2png-dc 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/url2png/configuration.rb +1 -1
- data/test/configuration_test.rb +7 -7
- data/test/url_helper_test.rb +4 -4
- data/url2png-dc.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/test/configuration_test.rb
CHANGED
@@ -5,14 +5,14 @@ module Url2PngDc
|
|
5
5
|
def test_configuration_defaults
|
6
6
|
configuration = Configuration.new
|
7
7
|
|
8
|
-
assert_equal 'PXXXX',
|
9
|
-
assert_equal 'SXXXX',
|
10
|
-
assert_equal 'http://
|
11
|
-
assert_equal 'v6',
|
8
|
+
assert_equal 'PXXXX', configuration.url2png_apikey
|
9
|
+
assert_equal 'SXXXX', configuration.url2png_secret
|
10
|
+
assert_equal 'http://api.url2png.com', configuration.url2png_api_url
|
11
|
+
assert_equal 'v6', configuration.url2png_api_version
|
12
12
|
|
13
|
-
assert_equal '1280x1024',
|
14
|
-
assert_equal false,
|
15
|
-
assert_equal false,
|
13
|
+
assert_equal '1280x1024', configuration.viewport_dimensions
|
14
|
+
assert_equal false, configuration.fullpage
|
15
|
+
assert_equal false, configuration.force_refresh
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/test/url_helper_test.rb
CHANGED
@@ -23,7 +23,7 @@ module Url2PngDc
|
|
23
23
|
token = token(query_string_with_defaults)
|
24
24
|
url = Sandbox.new.url_2png a_url
|
25
25
|
|
26
|
-
assert_equal "http://
|
26
|
+
assert_equal "http://api.url2png.com/v6/#{url2png_apikey}/#{token}/png/?#{query_string_with_defaults}", url
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_url_2png_generates_valid_url2png_url_for_png_with_options
|
@@ -32,7 +32,7 @@ module Url2PngDc
|
|
32
32
|
token = token(query_string_with_options)
|
33
33
|
url = Sandbox.new.url_2png a_url, {:fullpage => true, :viewport => '720x480'}
|
34
34
|
|
35
|
-
assert_equal "http://
|
35
|
+
assert_equal "http://api.url2png.com/v6/#{url2png_apikey}/#{token}/png/?#{query_string_with_options}", url
|
36
36
|
end
|
37
37
|
|
38
38
|
|
@@ -40,7 +40,7 @@ module Url2PngDc
|
|
40
40
|
token = token(query_string_with_defaults)
|
41
41
|
url = Sandbox.new.url_2json a_url
|
42
42
|
|
43
|
-
assert_equal "http://
|
43
|
+
assert_equal "http://api.url2png.com/v6/#{url2png_apikey}/#{token}/json/?#{query_string_with_defaults}", url
|
44
44
|
end
|
45
45
|
|
46
46
|
def test_url_2json_generates_valid_url2png_url_for_json_with_options
|
@@ -49,7 +49,7 @@ module Url2PngDc
|
|
49
49
|
token = token(query_string_with_options)
|
50
50
|
url = Sandbox.new.url_2json a_url, {:fullpage => true, :viewport => '1080x720'}
|
51
51
|
|
52
|
-
assert_equal "http://
|
52
|
+
assert_equal "http://api.url2png.com/v6/#{url2png_apikey}/#{token}/json/?#{query_string_with_options}", url
|
53
53
|
end
|
54
54
|
|
55
55
|
|
data/url2png-dc.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: url2png-dc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
segments:
|
117
117
|
- 0
|
118
|
-
hash: -
|
118
|
+
hash: -2535661663424780289
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
none: false
|
121
121
|
requirements:
|