active_admin_pagination 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb384a828b64c8d687d5ae0f68079d08a269ab5c
4
- data.tar.gz: 112763de3f098ce6723be7e14315feb79c2240d9
3
+ metadata.gz: eec0d3f99bd4adb8617cbe328925b139af5849a1
4
+ data.tar.gz: b6f0b7e8008a5c43d5b0b2d52dd8537f4bcc8b49
5
5
  SHA512:
6
- metadata.gz: 002ba794f25b5d33ab22fd000e20cc94c4b9e53569e3373aab183bfb64e4cc471f5d088c4dbe03db9684cea3d5f4487864db176ab2c66c9202ade54f9aa4442c
7
- data.tar.gz: 56ca64d66c676cb879c8f1ab2e40e5c525861607d63b3a07f8cfbb4c5253b0d51b0e1d3951a0ed3b594325a7aa5d1599ec29e034b77b6fded76ca72c35a0a814
6
+ metadata.gz: 0c55060ab73e50b381cc31053f3c08cac8ed1a32c6daa4c23a65932da4f0a5f31f66ecfc962220c47f60d2d6fe2c13e13256dd6bf7ac837d00211a2c3a589043
7
+ data.tar.gz: 09706e165f386721256950ff4dce1f735a6678effa25ad21e6febd02d10c4531cac489ba2ce4ed80761bdce1c6463b3f65224cd67b41240d16b93b7fe894fc6a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.2.0
2
+
3
+ * Change module name ([@timoschilling][])
4
+
1
5
  ## 0.1.0
2
6
 
3
7
  * Initial release
8
+
9
+ <!--- The following link definition list is generated by PimpMyChangelog --->
10
+ [@timoschilling]: https://github.com/timoschilling
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ActiveAdminPagination
2
2
 
3
- TODO: Write a gem description
3
+ Provides a pagination 'per page' interface for ActiveAdmin. It renders a sidebar section with a numeric select and modifies the Controller to use that 'per page' value.
4
4
 
5
5
  ## Installation
6
6
 
@@ -12,17 +12,15 @@ And then execute:
12
12
 
13
13
  $ bundle
14
14
 
15
- Or install it yourself as:
16
-
17
- $ gem install active_admin_pagination
18
-
19
15
  ## Usage
20
16
 
21
- TODO: Write usage instructions here
17
+ ActiveAdmin.register Post do
18
+ pagination [10, 50, 100], 50
19
+ end
22
20
 
23
21
  ## Contributing
24
22
 
25
- 1. Fork it ( https://github.com/[my-github-username]/active_admin_pagination/fork )
23
+ 1. Fork it ( https://github.com/timoschilling/active_admin_pagination/fork )
26
24
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
25
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
26
  4. Push to the branch (`git push origin my-new-feature`)
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Timo Schilling"]
10
10
  spec.email = ["timo@schilling.io"]
11
11
  spec.summary = %q{Provides a pagination 'per page' interface for ActiveAdmin.}
12
- spec.description = %q{Provides a pagination 'per page' interface for ActiveAdmin. It renders a sidebar section with a numeric select and modifies the Controller to use that 'per page'' value.}
12
+ spec.description = %q{Provides a pagination 'per page' interface for ActiveAdmin. It renders a sidebar section with a numeric select and modifies the Controller to use that 'per page' value.}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -1,9 +1,10 @@
1
1
  require "active_admin_pagination/version"
2
2
  require "active_admin_pagination/engine"
3
- require "active_admin_pagination/pagination_sidebar"
4
- require "active_admin/dsl" # encure that ActiveAdmin::DSL is loaded
3
+ require "active_admin_pagination/resource_dsl"
4
+ # ensure that ActiveAdmin is loaded
5
+ require "active_admin"
5
6
 
6
7
  module ActiveAdminPagination
7
8
  end
8
9
 
9
- ActiveAdmin::ResourceDSL.include ActiveAdminPagination::PaginationSidebar
10
+ ActiveAdmin::ResourceDSL.include ActiveAdminPagination::ResourceDSL
@@ -1,5 +1,5 @@
1
1
  module ActiveAdminPagination
2
- module PaginationSidebar
2
+ module ResourceDSL
3
3
  def pagination per_page_sizes, per_page_default_size = per_page_sizes.first
4
4
  controller do
5
5
  before_filter :paginate
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminPagination
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Schilling
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '0'
41
41
  description: Provides a pagination 'per page' interface for ActiveAdmin. It renders
42
42
  a sidebar section with a numeric select and modifies the Controller to use that
43
- 'per page'' value.
43
+ 'per page' value.
44
44
  email:
45
45
  - timo@schilling.io
46
46
  executables: []
@@ -57,7 +57,7 @@ files:
57
57
  - app/views/active_admin/base/_paginate.html.erb
58
58
  - lib/active_admin_pagination.rb
59
59
  - lib/active_admin_pagination/engine.rb
60
- - lib/active_admin_pagination/pagination_sidebar.rb
60
+ - lib/active_admin_pagination/resource_dsl.rb
61
61
  - lib/active_admin_pagination/version.rb
62
62
  homepage: ''
63
63
  licenses: