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 CHANGED
@@ -37,7 +37,7 @@ h4. Gem
37
37
 
38
38
  <pre>
39
39
  <code>
40
- sudo gem install sdsykes-fastimage -s http://gems.github.com
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 "sdsykes-fastimage", :lib=>"fastimage"
52
+ config.gem "fastimage", :lib=>"fastimage"
53
53
  ...
54
54
  end
55
55
  ...
data/VERSION.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
+ :patch: 2
2
3
  :major: 1
3
4
  :minor: 2
4
- :patch: 1
5
+ :build:
data/lib/fastimage.rb CHANGED
@@ -275,6 +275,6 @@ class FastImage
275
275
 
276
276
  def parse_size_for_bmp
277
277
  d = get_chars(27)[12..26]
278
- d[0] == 40 ? d[4..-1].unpack('LL') : d[4..8].unpack('SS')
278
+ d.unpack("C")[0] == 40 ? d[4..-1].unpack('LL') : d[4..8].unpack('SS')
279
279
  end
280
280
  end
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}", :file => File.join(FixturePath, 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}", :file => File.join(FixturePath, fn))
31
+ FakeWeb.register_uri(:get, "#{TestUrl}#{fn}", :body => File.join(FixturePath, fn))
32
32
  end
33
33
 
34
- class FasImageTest < Test::Unit::TestCase
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.1
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: 2009-10-10 00:00:00 +03:00
12
+ date: 2010-02-16 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15