chinese_permalink 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -46,15 +46,15 @@ end
46
46
 
47
47
  *2. Generate migration*
48
48
 
49
- <pre><code>script/generate chinese_permalink_migration (migration name) (table name) (permalink column name)</code></pre>
49
+ <pre><code>script/generate chinese_permalink_migration (table name) (permalink column name)</code></pre>
50
50
 
51
51
  For example:
52
52
 
53
- <pre><code>script/generate chinese_permalink_migration add_permalink_to_posts posts</code></pre>
53
+ <pre><code>script/generate chinese_permalink_migration posts</code></pre>
54
54
 
55
55
  Or
56
56
 
57
- <pre><code>script/generate chinese_permalink_migration add_permalink_to_posts posts slug_url</code></pre>
57
+ <pre><code>script/generate chinese_permalink_migration posts slug_url</code></pre>
58
58
 
59
59
 
60
60
  *3. Define ar to_param method*
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{chinese_permalink}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Richard Huang"]
@@ -24,8 +24,8 @@ Gem::Specification.new do |s|
24
24
  "chinese_permalink.gemspec",
25
25
  "generators/chinese_permalink_migration/chinese_permalink_migration_generator.rb",
26
26
  "generators/chinese_permalink_migration/templates/migration.rb",
27
- "init.rb",
28
27
  "lib/chinese_permalink.rb",
28
+ "rails/init.rb",
29
29
  "test/chines_permalink_test.rb"
30
30
  ]
31
31
  s.homepage = %q{http://github.com/flyerhzm/chinese_permalink}
@@ -1,8 +1,8 @@
1
1
  # user this migration generator
2
- # ruby script/generate chinese_permalink_migartion (migration name) (table name) [permalink column name]
2
+ # ruby script/generate chinese_permalink_migartion (table name) [permalink column name]
3
3
  # for example:
4
- # ruby script/generate chinese_permalink_migration add_permalink_to_posts posts
5
- # ruby script/generate chiense_permalink_migration add_permalink_to_posts posts slug_url
4
+ # ruby script/generate chinese_permalink_migration posts
5
+ # ruby script/generate chiense_permalink_migration posts slug_url
6
6
  class ChinesePermalinkMigrationGenerator < Rails::Generator::NamedBase
7
7
  attr_reader :permalink_table_name
8
8
  attr_reader :permalink_field_name
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chinese_permalink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
@@ -39,8 +39,8 @@ files:
39
39
  - chinese_permalink.gemspec
40
40
  - generators/chinese_permalink_migration/chinese_permalink_migration_generator.rb
41
41
  - generators/chinese_permalink_migration/templates/migration.rb
42
- - init.rb
43
42
  - lib/chinese_permalink.rb
43
+ - rails/init.rb
44
44
  - test/chines_permalink_test.rb
45
45
  has_rdoc: true
46
46
  homepage: http://github.com/flyerhzm/chinese_permalink