ruby-xz 0.2.2 → 0.2.3

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY.rdoc +8 -2
  3. data/lib/xz.rb +9 -11
  4. data/lib/xz/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28c451853871a094353485f28db08d64c5a5effa
4
- data.tar.gz: 93ef5cba40e6a6330364206caf86dbcca6f95a7e
3
+ metadata.gz: efdc22da09c7e44e2c6d20b307e103f74975f430
4
+ data.tar.gz: 5c6bc972a178bd963e8f932fe7c13f7dc7b3e03e
5
5
  SHA512:
6
- metadata.gz: 75552a3ee976a8441ff397953bd608a8e9e6e5508b9c7cae73eb05278f509475c00fcea7ade557f758520c5b06b42711d96c162e9e5f2f5cc7ebed05e810a99f
7
- data.tar.gz: 11b58af7569d56fe0c7486945a9e5ef87bfb0bf9579d29a82c3f7f21f8aa9ae2d03e118927bdc295585e857b82d5d536ddb9012393646591dc4a58585462587e
6
+ metadata.gz: 1c9e49f86d2b1fd3c7174b45580b5567b34ac644e3b59733c1dafe758d6d4066f253662e16d0313ef7fb55332efb394eef15264102338ca4edb684f3e8aef61f
7
+ data.tar.gz: cef131976e91ece8b49a152d882271524bd3869931b45b75d1ce04ad8ca6829c3b82f77873a459e984ea1dcd59d2b135ba40515a5180f811c3f9573a724c2953
@@ -1,8 +1,14 @@
1
1
  = Version history
2
2
 
3
- == 0.2.2 (unreleased)
3
+ == 0.2.3 (2015-12-29)
4
4
 
5
- * *Add* XZ.disable_deprecation_notes
5
+ * *Fix* documentation of XZ module (a :nodoc: was causing havoc
6
+ in the XZ module so it appeared to have no methods).
7
+ * No other changes this release.
8
+
9
+ == 0.2.2 (2015-12-27)
10
+
11
+ * *Add* XZ.disable_deprecation_notices
6
12
  * *Deprecate* use of XZ::StreamReader.open with an IO argument
7
13
  * *Deprecate* use of XZ::StreamReader.new with a filename argument
8
14
  * *Deprecate* use of XZ::StreamWriter.open with an IO argument
data/lib/xz.rb CHANGED
@@ -48,17 +48,6 @@ module XZ
48
48
 
49
49
  class << self
50
50
 
51
- # :nodoc:
52
- #
53
- # Output a deprecation notice.
54
- def deprecate(msg)
55
- @disable_deprecation_notices ||= false
56
-
57
- unless @disable_deprecation_notices
58
- $stderr.puts("DEPRECATION NOTICE: #{msg}\n#{caller.drop(1).join("\n\t")}")
59
- end
60
- end
61
-
62
51
  # Force ruby-xz to be silent about deprecations. Using this is
63
52
  # discouraged so that you are aware of upcoming changes to the
64
53
  # API. However, if your standard error stream is closed,
@@ -69,6 +58,15 @@ module XZ
69
58
  @disable_deprecation_notices = bool
70
59
  end
71
60
 
61
+ # Output a deprecation notice.
62
+ def deprecate(msg) # :nodoc:
63
+ @disable_deprecation_notices ||= false
64
+
65
+ unless @disable_deprecation_notices
66
+ $stderr.puts("DEPRECATION NOTICE: #{msg}\n#{caller.drop(1).join("\n\t")}")
67
+ end
68
+ end
69
+
72
70
  # call-seq:
73
71
  # decompress_stream(io [, memory_limit [, flags ] ] ) → a_string
74
72
  # decompress_stream(io [, memory_limit [, flags ] ] ){|chunk| ... } → an_integer
@@ -28,6 +28,6 @@
28
28
  module XZ
29
29
 
30
30
  # The version of this library.
31
- VERSION = "0.2.2".freeze
31
+ VERSION = "0.2.3".freeze
32
32
 
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-xz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Gülker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-27 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi