autopage 0.0.10 → 0.0.11

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.
@@ -3,15 +3,14 @@ tasks/manifest.rake
3
3
  spec/spec.opts
4
4
  spec/spec_helper.rb
5
5
  spec/autopage_spec.rb
6
- lib/.autopage.rb.swp
7
6
  lib/autopage.rb
8
7
  Manifest.txt
9
8
  templates/css/jquery-ui-tab.css
10
9
  templates/js/jquery.min.js
11
10
  templates/js/jquery-ui.min.js
12
11
  README.rdoc
13
- Rakefile
14
12
  TODO
15
13
  install.rb
16
14
  init.rb
17
15
  History.txt
16
+ Rakefile
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ $hoe = Hoe.new('autopage', Autopage::VERSION) do |p|
15
15
  ['newgem', ">= #{::Newgem::VERSION}"]
16
16
  ]
17
17
 
18
- p.clean_globs |= %w[**/.DS_Store tmp *.log]
18
+ p.clean_globs |= %w[**/.DS_Store tmp *.log *.swp]
19
19
  path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
20
20
  p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
21
21
  p.rsync_args = '-av --delete --ignore-errors'
@@ -1,11 +1,13 @@
1
1
  $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
+ $KCODE = 'u'
5
+
4
6
  ##
5
7
  # A Rails Plugin to autogenerate long text content to multipage.
6
8
  #
7
9
  module Autopage
8
- VERSION = '0.0.10'
10
+ VERSION = '0.0.11'
9
11
 
10
12
  def self.included(base)
11
13
  base.extend ClassMethods
@@ -20,7 +22,7 @@ module Autopage
20
22
  #
21
23
  # @api public
22
24
  def split_page(width=200)
23
- scan(/.{1,#{width}}/u)
25
+ scan(/.{1,#{width}}/m)
24
26
  end
25
27
 
26
28
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autopage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiffel qiu
@@ -49,18 +49,17 @@ files:
49
49
  - spec/spec.opts
50
50
  - spec/spec_helper.rb
51
51
  - spec/autopage_spec.rb
52
- - lib/.autopage.rb.swp
53
52
  - lib/autopage.rb
54
53
  - Manifest.txt
55
54
  - templates/css/jquery-ui-tab.css
56
55
  - templates/js/jquery.min.js
57
56
  - templates/js/jquery-ui.min.js
58
57
  - README.rdoc
59
- - Rakefile
60
58
  - TODO
61
59
  - install.rb
62
60
  - init.rb
63
61
  - History.txt
62
+ - Rakefile
64
63
  has_rdoc: true
65
64
  homepage: http://autopage.rubyforge.org
66
65
  post_install_message:
Binary file