radiant-vapor-extension 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Vapor
1
+ # Vapor [![Build Status](https://secure.travis-ci.org/saturnflyer/radiant-vapor-extension.png?branch=master)](http://travis-ci.org/saturnflyer/radiant-vapor-extension)
2
2
 
3
3
  The Vapor extension provides an interface to redirect URLs.
4
4
 
@@ -125,7 +125,7 @@ class FlowMeter < ActiveRecord::Base
125
125
  end
126
126
 
127
127
  def clean_redirect_url
128
- clean_url(:redirect_url) unless redirect_url.blank? or redirect_url.match('^http://')
128
+ clean_url(:redirect_url) unless redirect_url.blank? or redirect_url.match('^https?://')
129
129
  end
130
130
 
131
131
  def clean_url(att)
@@ -1,5 +1,5 @@
1
1
  module RadiantVaporExtension
2
- VERSION = "2.1.3"
2
+ VERSION = "2.1.4"
3
3
  SUMMARY = "User managed redirects."
4
4
  DESCRIPTION = "User managed redirects."
5
5
  URL = "http://saturnflyer.com/"
@@ -95,6 +95,12 @@ describe FlowMeter do
95
95
  @flow_meter.redirect_url.should == 'http://www.saturnflyer.com/'
96
96
  end
97
97
 
98
+ it "should allow a redirect_url formatted like 'https://secure.saturnflyer.com/'" do
99
+ @flow_meter.redirect_url = 'https://secure.saturnflyer.com/'
100
+ @flow_meter.save!
101
+ @flow_meter.redirect_url.should == 'https://secure.saturnflyer.com/'
102
+ end
103
+
98
104
  it "should provide a catch_url_for_display which includes a leading slash" do
99
105
  @flow_meter.catch_url_for_display.should == '/stuff'
100
106
  end
@@ -108,6 +114,11 @@ describe FlowMeter do
108
114
  @flow_meter.redirect_url_for_display.should == "http://www.saturnflyer.com"
109
115
  end
110
116
 
117
+ it "should provide the actual redirect_url_for_display if it begins with 'https://'" do
118
+ @flow_meter.redirect_url = "https://secure.saturnflyer.com"
119
+ @flow_meter.redirect_url_for_display.should == "https://secure.saturnflyer.com"
120
+ end
121
+
111
122
  it "should err with 'Catch URL and Redirect URL may not be the same.' when given a catch_url that matches the redirect_url" do
112
123
  @flow_meter.redirect_url = "/stuff"
113
124
  lambda {@flow_meter.save!}.should raise_error(FlowMeter::DataMismatch, "Catch URL and Redirect URL may not be the same.")
metadata CHANGED
@@ -1,33 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: radiant-vapor-extension
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.4
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 1
9
- - 3
10
- version: 2.1.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jim Gay
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-05-09 00:00:00 Z
12
+ date: 2012-05-10 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
14
  description: User managed redirects.
22
- email:
15
+ email:
23
16
  - jim@saturnflyer.com
24
17
  executables: []
25
-
26
18
  extensions: []
27
-
28
19
  extra_rdoc_files: []
29
-
30
- files:
20
+ files:
31
21
  - app/controllers/admin/flow_meters_controller.rb
32
22
  - app/helpers/admin/flow_meters_helper.rb
33
23
  - app/helpers/admin/page_node_alterations_helper.rb
@@ -65,38 +55,29 @@ files:
65
55
  - VERSION
66
56
  homepage: http://saturnflyer.com/
67
57
  licenses: []
68
-
69
58
  post_install_message:
70
59
  rdoc_options: []
71
-
72
- require_paths:
60
+ require_paths:
73
61
  - lib
74
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
75
63
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- hash: 3
80
- segments:
81
- - 0
82
- version: "0"
83
- required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
69
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
92
74
  requirements: []
93
-
94
75
  rubyforge_project:
95
- rubygems_version: 1.8.17
76
+ rubygems_version: 1.8.11
96
77
  signing_key:
97
78
  specification_version: 3
98
79
  summary: User managed redirects.
99
- test_files:
80
+ test_files:
100
81
  - test/test_helper.rb
101
82
  - spec/ci/before_script
102
83
  - spec/ci/script