autopage 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/History.txt +33 -13
  2. data/Manifest.txt +3 -3
  3. data/README.rdoc +14 -10
  4. data/TODO +1 -1
  5. data/install.rb +9 -8
  6. data/lib/autopage.rb +1 -1
  7. metadata +7 -7
@@ -1,36 +1,56 @@
1
- == 0.0.9 2009-04-16
1
+ == 0.0.12 2009-04-17
2
2
 
3
- 1 add ActionView::Base helper method for js,css file inclusion.
3
+ 1 minor enhancements:
4
+
5
+ * modify README, History.txt content.
6
+
7
+ == 0.0.11 2009-04-16
8
+
9
+ 1 minor enhancements:
10
+
11
+ * add ActionView::Base helper method for js,css file inclusion.
4
12
 
5
13
  == 0.0.9 2009-04-15
6
14
 
7
- 1 add jquery js and css file, so remove dependency of Jquery
15
+ 1 major enhancements:
16
+
17
+ * add jquery js and css file, so remove dependency of Jquery
8
18
 
9
19
  == 0.0.8 2009-04-15
10
20
 
11
- * 1 clean unused folders and add rspec for class method.
21
+ 1 bug fixes:
22
+
23
+ * clean unused folders and add rspec for class method.
12
24
 
13
25
  == 0.0.7 2009-04-15
14
26
 
15
- * 1 fix the gem as a rails plugin.
16
- install autopage plugin: ruby script/plugin install git://rubyforge.org:autopage.git
27
+ 1 bug fixes:
28
+
29
+ * fix the gem as a rails plugin.
30
+ * install autopage plugin: ruby script/plugin install git://rubyforge.org:autopage.git
17
31
 
18
32
  == 0.0.5 2009-04-15
19
33
 
20
- * 1 add 'rake mani' task to replace 'rake manifest' does not work on windows
21
- 2 add 'install.rb' to auto copy jquery.idTabs.min.js file into rails plugin if install gems as a plugin
34
+ 2 minor enhancements:
35
+
36
+ * add 'rake mani' task to replace 'rake manifest' does not work on windows
37
+ * add 'install.rb' to auto copy jquery.idTabs.min.js file into rails plugin if install gems as a plugin
22
38
 
23
39
  == 0.0.4 2009-04-15
24
40
 
25
- * 1 fix manifest bug which cause gem without content
26
- replace 'rake gem' with [ find . -type f | egrep -v "(.git\/|nbproject\/|pkg\/|script\/|\.gitignore$|\.gem$)" | sed 's/\.\///g' > Manifest.txt ]
41
+ 1 bug fixes:
42
+
43
+ * fix manifest bug which cause gem without content
44
+ * replace 'rake gem' with [ find . -type f | egrep -v "(.git\/|nbproject\/|pkg\/|script\/|\.gitignore$|\.gem$)" | sed 's/\.\///g' > Manifest.txt ]
27
45
 
28
46
  == 0.0.2 2009-04-14
29
47
 
30
- * 1 fix spec bug
31
- * include init.rb to make this gem suitable for rails plugin
48
+ 1 bug fixes:
49
+
50
+ * fix spec bug include init.rb to make this gem suitable for rails plugin
32
51
 
33
52
  == 0.0.1 2009-04-13
34
53
 
35
- * 1 major enhancement:
54
+ 1 major enhancement:
55
+
36
56
  * Initial release
@@ -8,9 +8,9 @@ Manifest.txt
8
8
  templates/css/jquery-ui-tab.css
9
9
  templates/js/jquery.min.js
10
10
  templates/js/jquery-ui.min.js
11
+ init.rb
12
+ Rakefile
13
+ install.rb
11
14
  README.rdoc
12
15
  TODO
13
- install.rb
14
- init.rb
15
16
  History.txt
16
- Rakefile
@@ -1,33 +1,37 @@
1
1
  = auto_page
2
2
 
3
3
  * http://autopage.rubyforge.org
4
+ * http://github.com/eiffelqiu/autopage/tree/master
4
5
 
5
6
  == DESCRIPTION:
6
7
 
7
- A Rails Plugin to autogenerate long text content to multipage.
8
+ A Rails Plugin to convert long text into multi tab page.
8
9
 
9
10
  == FEATURES/PROBLEMS:
10
11
 
11
- * can not install idstab jquery plugin during gem installation.
12
+ * can not install and run as a gem
12
13
 
13
- == SYNOPSIS:
14
+ == INSTALL:
14
15
 
15
- <%= @blog.content.tab_page(300) %>
16
+ * ruby script/plugin install git://rubyforge.org:autopage.git
17
+ or
18
+ * ruby script/plugin install git@github.com:eiffelqiu/autopage.git
16
19
 
17
- == REQUIREMENTS:
20
+ == SYNOPSIS:
18
21
 
19
- * require install jrails plugin
22
+ STEP 1: put in your html <head>
23
+ <%= javascript_include_autopage %>
20
24
 
21
- == INSTALL:
25
+ -----------------------------------
22
26
 
23
- * gem install autopage
24
- * ruby script/plugin install git://rubyforge.org:autopage.git
27
+ STEP 2: call tab_page function on String
28
+ <%= @article.tab_page(188) %>
25
29
 
26
30
  == LICENSE:
27
31
 
28
32
  (The MIT License)
29
33
 
30
- Copyright (c) 2009 Eiffel Q
34
+ Copyright (c) 2009 Eiffel Qiu
31
35
 
32
36
  Permission is hereby granted, free of charge, to any person obtaining
33
37
  a copy of this software and associated documentation files (the
data/TODO CHANGED
@@ -1,4 +1,4 @@
1
1
  TODO
2
2
  ====
3
3
 
4
- * add css file for display tab.
4
+ * run it as a gem.
data/install.rb CHANGED
@@ -1,10 +1,11 @@
1
1
  require 'fileutils'
2
2
 
3
- js1 = File.dirname(__FILE__) + '/../../../public/javascripts/jquery.min.js'
4
- js2 = File.dirname(__FILE__) + '/../../../public/javascripts/jquery-ui.min.js'
5
- css1 = File.dirname(__FILE__) + '/../../../public/stylesheets/jquery-ui-tab.css'
6
-
7
- FileUtils.cp File.dirname(__FILE__) + '/templates/js/jquery.min.js', js1 unless File.exist?(js1)
8
- FileUtils.cp File.dirname(__FILE__) + '/templates/js/jquery-ui.min.js', js2 unless File.exist?(js2)
9
- FileUtils.cp File.dirname(__FILE__) + '/templates/css/jquery-ui-tab.css', css1 unless File.exist?(css1)
10
-
3
+ ["jquery.min.js","jquery-ui.min.js","jquery-ui-tab.css"].each do |o|
4
+ if o.index('.js') then
5
+ x = File.dirname(__FILE__) + "/../../../public/javascripts/#{o}"
6
+ FileUtils.cp File.dirname(__FILE__) + "/templates/js/#{o}", x unless File.exist?(x)
7
+ else
8
+ x = File.dirname(__FILE__) + "/../../../public/stylesheets/#{o}"
9
+ FileUtils.cp File.dirname(__FILE__) + "/templates/css/#{o}", x unless File.exist?(x)
10
+ end
11
+ end
@@ -7,7 +7,7 @@ $KCODE = 'u'
7
7
  # A Rails Plugin to autogenerate long text content to multipage.
8
8
  #
9
9
  module Autopage
10
- VERSION = '0.0.11'
10
+ VERSION = '0.0.12'
11
11
 
12
12
  def self.included(base)
13
13
  base.extend ClassMethods
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiffel qiu
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-16 00:00:00 +08:00
12
+ date: 2009-04-18 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.8.0
34
34
  version:
35
- description: A Rails Plugin to autogenerate long text content to multipage.
35
+ description: A Rails Plugin to convert long text into multi tab page.
36
36
  email:
37
37
  - eiffelqiu@gmail.com
38
38
  executables: []
@@ -54,12 +54,12 @@ files:
54
54
  - templates/css/jquery-ui-tab.css
55
55
  - templates/js/jquery.min.js
56
56
  - templates/js/jquery-ui.min.js
57
+ - init.rb
58
+ - Rakefile
59
+ - install.rb
57
60
  - README.rdoc
58
61
  - TODO
59
- - install.rb
60
- - init.rb
61
62
  - History.txt
62
- - Rakefile
63
63
  has_rdoc: true
64
64
  homepage: http://autopage.rubyforge.org
65
65
  post_install_message:
@@ -86,6 +86,6 @@ rubyforge_project: autopage
86
86
  rubygems_version: 1.3.1
87
87
  signing_key:
88
88
  specification_version: 2
89
- summary: A Rails Plugin to autogenerate long text content to multipage.
89
+ summary: A Rails Plugin to convert long text into multi tab page.
90
90
  test_files: []
91
91