cambium 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3dd369caaa37abfdb21cc95b643e81f0e335af3c
4
- data.tar.gz: 673ea8a7750b717e8bc94dd9fa1993e6e71ac925
3
+ metadata.gz: fc814d50333ba2ef8344943466e599c20cbb93b4
4
+ data.tar.gz: 5a51643a346128dde465ff5bec33ffa1e54df6ff
5
5
  SHA512:
6
- metadata.gz: 77a6769ec1f1f93c1ce9934f0e95a3690843bc0a1641954632f687ca4b7be313a4043c4735f04cea672714553d5b23ae1bb5b9969e95bbfe9f3ba67024621a31
7
- data.tar.gz: 985f48660c5b5db2b3dc7ecc9ec417c1036f4ebd7629384d24a0c00963ab5ececcc50b027db02fea81e6588c61a4c43c6ad669bef9e4e337568a4a40af266d34
6
+ metadata.gz: 54ad0b892ae3b124eb2ac4c7ce12b33026dc6424887943b9dab5db473d5a8a06eec43c61fabbe35af69e9c941ab6b4e461c02e8a17541d5eb1dff8fae097265c
7
+ data.tar.gz: 430a001a30dd9ec7b9851478648e9a9ff51cf135049806d0d187a14cb5b04a1d8f90c541c9cc10da5dcf05f384cda0ed9032c7ac8c9afe18431945570b974755
@@ -1,3 +1,3 @@
1
1
  module Cambium
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
data/lib/cambium.rb CHANGED
@@ -12,6 +12,9 @@ require 'pg_search'
12
12
  require 'pickadate-rails'
13
13
  require 'superslug'
14
14
 
15
+ # Temp (hopefully) monkeypatch solution for Kaminari
16
+ require 'kaminari/helpers/tag'
17
+
15
18
  module Cambium
16
19
  require 'cambium/engine' if defined?(Rails)
17
20
  end
@@ -0,0 +1,16 @@
1
+ module Kaminari
2
+ module Helpers
3
+ class Tag
4
+
5
+ def page_url_for(page)
6
+ arguments = @params.merge(@param_name => (page <= 1 ? nil : page), :only_path => true).symbolize_keys
7
+ begin
8
+ Cambium::Engine.routes.url_helpers.url_for arguments
9
+ rescue
10
+ @template.main_app.url_for arguments
11
+ end
12
+ end
13
+
14
+ end
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cambium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean C Davis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-30 00:00:00.000000000 Z
12
+ date: 2015-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -262,6 +262,7 @@ files:
262
262
  - lib/generators/templates/gitignore
263
263
  - lib/help/cambium_prereqs.txt
264
264
  - lib/help/pg_search_post_install.txt
265
+ - lib/kaminari/helpers/tag.rb
265
266
  - lib/tasks/db.rake
266
267
  - lib/tasks/rename.rake
267
268
  - test/controllers/cambium/admin/dashboard_controller_test.rb