autopage 0.0.7 → 0.0.8

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.
@@ -1,4 +1,8 @@
1
- == 0.0.6 2009-04-15
1
+ == 0.0.8 2009-04-15
2
+
3
+ * 1 clean unused folders and add rspec for class method.
4
+
5
+ == 0.0.7 2009-04-15
2
6
 
3
7
  * 1 fix the gem as a rails plugin.
4
8
  install autopage plugin: ruby script/plugin install git://rubyforge.org:autopage.git
@@ -1,15 +1,14 @@
1
- Rakefile
2
1
  tasks/rspec.rake
3
2
  tasks/manifest.rake
4
- spec/autopage_spec.rb
5
3
  spec/spec.opts
6
4
  spec/spec_helper.rb
5
+ spec/autopage_spec.rb
7
6
  lib/autopage.rb
8
- config/website.yml
9
- History.txt
10
- TODO
11
7
  Manifest.txt
12
8
  templates/jquery.idTabs.min.js
13
9
  init.rb
14
10
  README.rdoc
15
11
  install.rb
12
+ Rakefile
13
+ History.txt
14
+ TODO
data/Rakefile CHANGED
@@ -25,4 +25,4 @@ require 'newgem/tasks' # load /tasks/*.rake
25
25
  Dir['tasks/**/*.rake'].each { |t| load t }
26
26
 
27
27
  # TODO - want other tests/tasks run by default? Add them to the list
28
- # task :default => [:spec, :features]
28
+ task :default => [:spec]
data/TODO CHANGED
@@ -1 +1,4 @@
1
- replace 'rake gem' with [ find . -type f | egrep -v "(.git\/|nbproject\/|pkg\/|script\/|\.gitignore$|\.gem$)" | sed 's/\.\///g' > Manifest.txt ]
1
+ TODO
2
+ ====
3
+
4
+ * add css file for display tab.
@@ -5,7 +5,7 @@ $:.unshift(File.dirname(__FILE__)) unless
5
5
  # A Rails Plugin to autogenerate long text content to multipage.
6
6
  #
7
7
  module Autopage
8
- VERSION = '0.0.7'
8
+ VERSION = '0.0.8'
9
9
 
10
10
  def self.included(base)
11
11
  base.extend ClassMethods
@@ -28,4 +28,13 @@ describe "autopage" do
28
28
  @htmlStr.strip.should == %{<ul class='idTabs'><li><a href='#page1'>1</a></li><li><a href='#page2'>2</a></li></ul><div id='page1'>xxx</div><div id='page2'>xxx</div>}
29
29
  end
30
30
  end
31
+
32
+ describe 'ClassMethod#split_page' do
33
+ it 'split_page should return an array' do
34
+ String.split_page('xxxxxx',3).should be_kind_of(Array)
35
+ String.split_page('xxxxxx',3).should == ['xxx','xxx']
36
+ String.split_page('xxxxxxx',3).should == ['xxx','xxx','x']
37
+ end
38
+ end
39
+
31
40
  end
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiffel qiu
@@ -40,25 +40,24 @@ executables: []
40
40
  extensions: []
41
41
 
42
42
  extra_rdoc_files:
43
- - History.txt
44
43
  - Manifest.txt
45
44
  - README.rdoc
45
+ - History.txt
46
46
  files:
47
- - Rakefile
48
47
  - tasks/rspec.rake
49
48
  - tasks/manifest.rake
50
- - spec/autopage_spec.rb
51
49
  - spec/spec.opts
52
50
  - spec/spec_helper.rb
51
+ - spec/autopage_spec.rb
53
52
  - lib/autopage.rb
54
- - config/website.yml
55
- - History.txt
56
- - TODO
57
53
  - Manifest.txt
58
54
  - templates/jquery.idTabs.min.js
59
55
  - init.rb
60
56
  - README.rdoc
61
57
  - install.rb
58
+ - Rakefile
59
+ - History.txt
60
+ - TODO
62
61
  has_rdoc: true
63
62
  homepage: http://autopage.rubyforge.org
64
63
  post_install_message:
@@ -1,2 +0,0 @@
1
- host: eiffelqiu@rubyforge.org
2
- remote_dir: /var/www/gforge-projects/autopage