gepub 0.6.8.8 → 0.6.8.9

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: 6a49977364411504504536966537b4dc82394c84
4
- data.tar.gz: 1c8677c9e418e21709f54bee42638c935312a5d7
3
+ metadata.gz: a0842819d24c9387921014eea4c75e30a5ecbd28
4
+ data.tar.gz: 3210ee8a74fb4e95e00fe82798dddbcd5b12f5f5
5
5
  SHA512:
6
- metadata.gz: d3e95f1f7d6c8dccd7950f78cea5a25e2c7b613951513d670c8a920ce29917c3a76ceee2c06dd47df0682b00b8ab4d7176bb42c0c9fd1e20d342e4d55ffb5889
7
- data.tar.gz: c43f2636679cef4a8d33a8a510904c7f3783507f64b9368b9906093341793db3845e4c26a9c60357215e3c28e9ba19671c549114f3ae3d6d633262b1ed4333d5
6
+ metadata.gz: 6953ffea49755dda0d1529398ffacdfeadfd1b33085a1e25763e4e569e8fe2d3f50f5180ae7922c1a2e72d1406ef120c49be3cbf0aac63a57b85ce75f69efeca
7
+ data.tar.gz: ad37f2937b7e8cea8ee11259dc2edc074ef3c52ffcf401f22a4f24268063a7b0029a15085368aeb2735710f3aeb18cf38fc65a1f06d1f942ff0a13456e3bc520
data/lib/gepub/package.rb CHANGED
@@ -41,10 +41,10 @@ module GEPUB
41
41
  end
42
42
 
43
43
  def generate_key(param = {})
44
+ prefix = param[:prefix] || ''
45
+ suffix = param[:suffix] || ''
46
+ count = [ param[:start] || 1, counter(prefix,suffix) || 1].max
44
47
  while (true)
45
- prefix = param[:prefix] || ''
46
- suffix = param[:suffix] || ''
47
- count = [ param[:start] || 1, counter(prefix,suffix) || 1].max
48
48
  if param[:without_count]
49
49
  k = prefix + suffix
50
50
  count -= 1
data/lib/gepub/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module GEPUB
2
2
  # GEPUB gem version
3
- VERSION = "0.6.8.8"
3
+ VERSION = "0.6.8.9"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gepub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8.8
4
+ version: 0.6.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOJIMA Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-18 00:00:00.000000000 Z
11
+ date: 2013-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project: gepub
149
- rubygems_version: 2.0.0
149
+ rubygems_version: 2.0.2
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: a generic EPUB library for Ruby.