fastimage 1.2.1 → 1.2.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.
- data/README.textile +2 -2
- data/VERSION.yml +2 -1
- data/lib/fastimage.rb +1 -1
- data/test/test.rb +3 -3
- metadata +2 -2
data/README.textile
CHANGED
@@ -37,7 +37,7 @@ h4. Gem
|
|
37
37
|
|
38
38
|
<pre>
|
39
39
|
<code>
|
40
|
-
sudo gem install
|
40
|
+
sudo gem install fastimage
|
41
41
|
</code>
|
42
42
|
</pre>
|
43
43
|
|
@@ -49,7 +49,7 @@ Install the gem as above, and configure it in your environment.rb file as below:
|
|
49
49
|
...
|
50
50
|
Rails::Initializer.run do |config|
|
51
51
|
...
|
52
|
-
config.gem "
|
52
|
+
config.gem "fastimage", :lib=>"fastimage"
|
53
53
|
...
|
54
54
|
end
|
55
55
|
...
|
data/VERSION.yml
CHANGED
data/lib/fastimage.rb
CHANGED
data/test/test.rb
CHANGED
@@ -25,13 +25,13 @@ BadFixtures = [
|
|
25
25
|
TestUrl = "http://example.nowhere/"
|
26
26
|
|
27
27
|
GoodFixtures.each do |fn, info|
|
28
|
-
FakeWeb.register_uri(:get, "#{TestUrl}#{fn}", :
|
28
|
+
FakeWeb.register_uri(:get, "#{TestUrl}#{fn}", :body => File.join(FixturePath, fn))
|
29
29
|
end
|
30
30
|
BadFixtures.each do |fn|
|
31
|
-
FakeWeb.register_uri(:get, "#{TestUrl}#{fn}", :
|
31
|
+
FakeWeb.register_uri(:get, "#{TestUrl}#{fn}", :body => File.join(FixturePath, fn))
|
32
32
|
end
|
33
33
|
|
34
|
-
class
|
34
|
+
class FastImageTest < Test::Unit::TestCase
|
35
35
|
def test_should_report_type_correctly
|
36
36
|
GoodFixtures.each do |fn, info|
|
37
37
|
assert_equal info[0], FastImage.type(TestUrl + fn)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastimage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Sykes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-16 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|