ptools 1.2.5-universal-mingw32 → 1.2.6-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41e1aecc1f93c15856b690c034a659420bcddea5
4
- data.tar.gz: 10916384ef488f8a0ee3795445960fde10bcb743
3
+ metadata.gz: 8373c1a60771a64c0223717242859cf9f3e2c053
4
+ data.tar.gz: 77b98e2e54785592c8d1d4887a2c23964b8d69f6
5
5
  SHA512:
6
- metadata.gz: 4638b10a085e82b257b102783c124ef3c78b551cb2f2f8eda12ea7f83b58558def4a61328783b9b95cf0472594f00df01ad357a382552a3ea5516e1796414650
7
- data.tar.gz: 3ccc72c3b61f4522371dff22fe7660f0659e01aede38da5b0612206525b21510b74bfe101d735a2255f12d5899d8d29009fe7026e8aa5e4b6d487e8f48092429
6
+ metadata.gz: a19b9892f623478c012bf40366f5b434f2298978d8ca91ba79baa53f966bf11a608941b17781c9cddef6b88cdd48a34959bd5a6976e21ddbf73d605fa050015f
7
+ data.tar.gz: bc405a72c8e5f7fb489ebaf4c06f9bbf124cd6b0997f7ef26cf5b7312f77146a6a85d4dcaac757ab166e25b299b80189f81a7f96f732bb13b2c81760858c6550
data/CHANGES CHANGED
@@ -1,7 +1,12 @@
1
+ == 1.2.6 - 14-Jul-2014
2
+ * Updated the png? and jpg? methods so they explicitly specify the
3
+ offset argument so that it works with 1.9.2 and earlier. Thanks go to
4
+ Anurag Priyam for the spot.
5
+
1
6
  == 1.2.5 - 11-Jul-2014
2
7
  * Added a Gemfile, mostly for Travis CI.
3
8
  * Added rake as a development dependency.
4
- * Revert back to hash syntax supported by 1.9.x.
9
+ * Revert back to hash syntax supported by 1.8.x.
5
10
  * Removed rubyforge_project from gemspec.
6
11
  * Updated the tests for File.sparse? so that it doesn't rely on
7
12
  an external file.
data/lib/ptools.rb CHANGED
@@ -3,7 +3,7 @@ require 'win32/file' if File::ALT_SEPARATOR
3
3
 
4
4
  class File
5
5
  # The version of the ptools library.
6
- PTOOLS_VERSION = '1.2.5'
6
+ PTOOLS_VERSION = '1.2.6'
7
7
 
8
8
  # :stopdoc:
9
9
 
@@ -418,11 +418,11 @@ class File
418
418
  end
419
419
 
420
420
  def self.jpg?(file)
421
- IO.read(file, 10, :encoding => 'binary') == "\377\330\377\340\000\020JFIF".force_encoding(Encoding::BINARY)
421
+ IO.read(file, 10, nil, :encoding => 'binary') == "\377\330\377\340\000\020JFIF".force_encoding(Encoding::BINARY)
422
422
  end
423
423
 
424
424
  def self.png?(file)
425
- IO.read(file, 4, :encoding => 'binary') == "\211PNG".force_encoding(Encoding::BINARY)
425
+ IO.read(file, 4, nil, :encoding => 'binary') == "\211PNG".force_encoding(Encoding::BINARY)
426
426
  end
427
427
 
428
428
  def self.gif?(file)
data/ptools.gemspec CHANGED
@@ -3,7 +3,7 @@ require 'rbconfig'
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = 'ptools'
6
- gem.version = '1.2.5'
6
+ gem.version = '1.2.6'
7
7
  gem.license = 'Artistic 2.0'
8
8
  gem.author = 'Daniel J. Berger'
9
9
  gem.email = 'djberg96@gmail.com'
@@ -15,7 +15,7 @@ class TC_Ptools_Constants < Test::Unit::TestCase
15
15
  end
16
16
 
17
17
  test "PTOOLS_VERSION constant is set to expected value" do
18
- assert_equal('1.2.5', File::PTOOLS_VERSION)
18
+ assert_equal('1.2.6', File::PTOOLS_VERSION)
19
19
  end
20
20
 
21
21
  test "IMAGE_EXT constant is set to array of values" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ptools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-11 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake