alphabetic_paginate 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/{alphabetical_paginate.gemspec → alphabetic_paginate.gemspec} +4 -4
- data/lib/alphabetic_paginate.rb +6 -0
- data/lib/{alphabetical_paginate → alphabetic_paginate}/paginator.rb +1 -1
- data/lib/alphabetic_paginate/version.rb +3 -0
- data/lib/generators/alphabetic_paginate/alphabetic_paginate_generator.rb +16 -0
- data/lib/{assets/javascripts/alphabetical_paginate → generators/templates}/paginate.js +0 -0
- data/spec/alphabetic_paginate_spec.rb +5 -0
- metadata +13 -14
- data/.gitignore +0 -17
- data/lib/alphabetical_paginate.rb +0 -11
- data/lib/alphabetical_paginate/version.rb +0 -3
- data/lib/rails/generators/alphabetical_paginate/install_generator.rb +0 -11
- data/spec/alphabetical_paginate_spec.rb +0 -5
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
#
|
1
|
+
# AlphabeticPaginate
|
2
2
|
|
3
|
-
Paginates in
|
3
|
+
Paginates in alphabetic groups
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem '
|
9
|
+
gem 'alphabetic_paginate'
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -14,7 +14,7 @@ And then execute:
|
|
14
14
|
|
15
15
|
Or install it yourself as:
|
16
16
|
|
17
|
-
$ gem install
|
17
|
+
$ gem install alphabetic_paginate
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
@@ -1,16 +1,16 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'alphabetic_paginate/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "alphabetic_paginate"
|
8
|
-
spec.version =
|
8
|
+
spec.version = AlphabeticPaginate::VERSION
|
9
9
|
spec.authors = ["Oleg Grishin", "Linglian Zhang"]
|
10
10
|
spec.email = ["og402@nyu.edu", "lz781@nyu.edu"]
|
11
|
-
spec.description = "Paginates in
|
11
|
+
spec.description = "Paginates in alphabetic groups"
|
12
12
|
spec.summary = "Creates pagination where all data is sorted into pages based on the first letter of the sorting value"
|
13
|
-
spec.homepage = "https://github.com/grishinoleg/
|
13
|
+
spec.homepage = "https://github.com/grishinoleg/alphabetic_paginate"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/named_base'
|
3
|
+
|
4
|
+
module Alphabetic_paginate
|
5
|
+
module Generators
|
6
|
+
class CellGenerator < ::Rails::Generators::NamedBase
|
7
|
+
|
8
|
+
source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
9
|
+
|
10
|
+
def create_java_file
|
11
|
+
template 'paginate.js', File.join('app/alphabetic_pagine', class_path, "#{file_name}_paginate.js")
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alphabetic_paginate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
- - ! '>='
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
|
-
description: Paginates in
|
79
|
+
description: Paginates in alphabetic groups
|
80
80
|
email:
|
81
81
|
- og402@nyu.edu
|
82
82
|
- lz781@nyu.edu
|
@@ -84,19 +84,18 @@ executables: []
|
|
84
84
|
extensions: []
|
85
85
|
extra_rdoc_files: []
|
86
86
|
files:
|
87
|
-
- .gitignore
|
88
87
|
- Gemfile
|
89
88
|
- LICENSE.txt
|
90
89
|
- README.md
|
91
90
|
- Rakefile
|
92
|
-
-
|
93
|
-
- lib/
|
94
|
-
- lib/
|
95
|
-
- lib/
|
96
|
-
- lib/
|
97
|
-
- lib/
|
98
|
-
- spec/
|
99
|
-
homepage: https://github.com/grishinoleg/
|
91
|
+
- alphabetic_paginate.gemspec
|
92
|
+
- lib/alphabetic_paginate.rb
|
93
|
+
- lib/alphabetic_paginate/paginator.rb
|
94
|
+
- lib/alphabetic_paginate/version.rb
|
95
|
+
- lib/generators/alphabetic_paginate/alphabetic_paginate_generator.rb
|
96
|
+
- lib/generators/templates/paginate.js
|
97
|
+
- spec/alphabetic_paginate_spec.rb
|
98
|
+
homepage: https://github.com/grishinoleg/alphabetic_paginate
|
100
99
|
licenses:
|
101
100
|
- MIT
|
102
101
|
post_install_message:
|
@@ -111,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
110
|
version: '0'
|
112
111
|
segments:
|
113
112
|
- 0
|
114
|
-
hash:
|
113
|
+
hash: -2008056317683508478
|
115
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
115
|
none: false
|
117
116
|
requirements:
|
@@ -120,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
119
|
version: '0'
|
121
120
|
segments:
|
122
121
|
- 0
|
123
|
-
hash:
|
122
|
+
hash: -2008056317683508478
|
124
123
|
requirements: []
|
125
124
|
rubyforge_project:
|
126
125
|
rubygems_version: 1.8.25
|
@@ -129,4 +128,4 @@ specification_version: 3
|
|
129
128
|
summary: Creates pagination where all data is sorted into pages based on the first
|
130
129
|
letter of the sorting value
|
131
130
|
test_files:
|
132
|
-
- spec/
|
131
|
+
- spec/alphabetic_paginate_spec.rb
|
data/.gitignore
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
require "alphabetical_paginate/version"
|
2
|
-
require "alphabetical_paginate/paginator.rb"
|
3
|
-
|
4
|
-
module Rails
|
5
|
-
class Alphabetical_paginate < Engine
|
6
|
-
initializer :assets do |install|
|
7
|
-
Rails.application.install.assets.precompile += %w( alphabetical_paginate/paginate.js )
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|