feed_us_grabber 1.0.1 → 1.0.2
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.
@@ -53,7 +53,7 @@ class FeedUsGrabberController < ActionController::Base
|
|
53
53
|
isPermitted = IsPermittedToProceed()
|
54
54
|
|
55
55
|
renderText = ""
|
56
|
-
if @mArgs[:Debug] == true
|
56
|
+
if @mArgs[:Debug] == true && isPermitted
|
57
57
|
renderText << @mArgs[:DebugOutput]
|
58
58
|
end
|
59
59
|
|
@@ -72,7 +72,7 @@ class FeedUsGrabberController < ActionController::Base
|
|
72
72
|
end
|
73
73
|
else
|
74
74
|
renderText << "<img src=\"http://feed.us/images/feedus_logo_people.png\"><br />
|
75
|
-
<p style=\"font-family:arial;\"> IP " + @mClientIp + " is not authorized. Modify
|
75
|
+
<p style=\"font-family:arial;\"> IP " + @mClientIp + " is not authorized. Modify your controller to include :ClientWhiteList => '" + @mClientIp + "' and make a request to your contoller before trying to clear the cache again"
|
76
76
|
end
|
77
77
|
|
78
78
|
render :text=> renderText
|
@@ -175,6 +175,7 @@ class FeedUsGrabber
|
|
175
175
|
end
|
176
176
|
|
177
177
|
def saveState
|
178
|
+
appendDebugOutput("Does state file exist " + self.stateFileExists.to_s)
|
178
179
|
if (!self.stateFileExists)
|
179
180
|
self.createStateFile
|
180
181
|
end
|
@@ -195,9 +196,11 @@ class FeedUsGrabber
|
|
195
196
|
@mstrClientWhiteList = line
|
196
197
|
end
|
197
198
|
end
|
199
|
+
appendDebugOutput("Read from state file #{@mstrStateFile} value #{@mstrClientWhiteList}")
|
198
200
|
end
|
199
201
|
|
200
202
|
def writeStateFile
|
203
|
+
appendDebugOutput("Writing to state file #{@mstrStateFile} value #{@mstrClientWhiteList}")
|
201
204
|
File.open(@mstrStateFile,'w') do |file|
|
202
205
|
file.write(@mstrClientWhiteList)
|
203
206
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feed_us_grabber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
segments:
|
126
126
|
- 0
|
127
|
-
hash:
|
127
|
+
hash: 637896321
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|