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 CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -1,6 +1,6 @@
1
1
  module Url2PngDc
2
2
  class Configuration
3
- URL2PNG_API_URL = 'http://beta.url2png.com'
3
+ URL2PNG_API_URL = 'http://api.url2png.com'
4
4
  URL2PNG_API_VERSION = 'v6'
5
5
 
6
6
  attr_accessor :url2png_apikey
@@ -5,14 +5,14 @@ module Url2PngDc
5
5
  def test_configuration_defaults
6
6
  configuration = Configuration.new
7
7
 
8
- assert_equal 'PXXXX', configuration.url2png_apikey
9
- assert_equal 'SXXXX', configuration.url2png_secret
10
- assert_equal 'http://beta.url2png.com', configuration.url2png_api_url
11
- assert_equal 'v6', configuration.url2png_api_version
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', configuration.viewport_dimensions
14
- assert_equal false, configuration.fullpage
15
- assert_equal false, configuration.force_refresh
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
@@ -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://beta.url2png.com/v6/#{url2png_apikey}/#{token}/png/?#{query_string_with_defaults}", url
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://beta.url2png.com/v6/#{url2png_apikey}/#{token}/png/?#{query_string_with_options}", url
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://beta.url2png.com/v6/#{url2png_apikey}/#{token}/json/?#{query_string_with_defaults}", url
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://beta.url2png.com/v6/#{url2png_apikey}/#{token}/json/?#{query_string_with_options}", url
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "url2png-dc"
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yung Hwa Kwon"]
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.7
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: -3933517765045135780
118
+ hash: -2535661663424780289
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements: