mark_facets 0.1.7 → 0.1.9

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.
@@ -6,7 +6,7 @@ path = File.join(File.dirname(__FILE__), 'mark_facets')
6
6
  ruby_path = File.join(path, 'ruby')
7
7
  rails_path = File.join(path, 'rails')
8
8
 
9
- %w{ruby string hash big_decimal math file magic_attributes will_paginate}.each do |f|
9
+ %w{ruby string hash big_decimal math file magic_attributes will_paginate kaminari}.each do |f|
10
10
  p = File.expand_path(File.join(ruby_path, f))
11
11
  # puts p
12
12
  require p
@@ -14,4 +14,18 @@ class ActiveSupport::TimeZone
14
14
 
15
15
  end
16
16
 
17
+ end
18
+
19
+ module Kernel
20
+
21
+ def with_time_zone(zone, &block)
22
+ orig_tz = Time.zone
23
+ begin
24
+ Time.zone = zone
25
+ yield
26
+ ensure
27
+ Time.zone = orig_tz
28
+ end
29
+ end
30
+
17
31
  end
@@ -0,0 +1,19 @@
1
+ if defined?(Kaminari)
2
+
3
+ class Array
4
+
5
+ def total_count
6
+ self.size
7
+ end
8
+
9
+ def limit_value
10
+ 10
11
+ end
12
+
13
+ def offset_value
14
+ 0
15
+ end
16
+
17
+ end
18
+
19
+ end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mark_facets
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 7
9
- version: 0.1.7
4
+ prerelease:
5
+ version: 0.1.9
10
6
  platform: ruby
11
7
  authors:
12
8
  - markbates
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-12-24 00:00:00 -05:00
13
+ date: 2011-02-25 00:00:00 -05:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -24,8 +20,6 @@ dependencies:
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
23
  version: "0"
30
24
  type: :runtime
31
25
  prerelease: false
@@ -53,6 +47,7 @@ files:
53
47
  - lib/mark_facets/ruby/big_decimal.rb
54
48
  - lib/mark_facets/ruby/file.rb
55
49
  - lib/mark_facets/ruby/hash.rb
50
+ - lib/mark_facets/ruby/kaminari.rb
56
51
  - lib/mark_facets/ruby/magic_attributes.rb
57
52
  - lib/mark_facets/ruby/math.rb
58
53
  - lib/mark_facets/ruby/ruby.rb
@@ -75,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
70
  requirements:
76
71
  - - ">="
77
72
  - !ruby/object:Gem::Version
78
- hash: 3855513727437175703
73
+ hash: 3474806802023863937
79
74
  segments:
80
75
  - 0
81
76
  version: "0"
@@ -84,13 +79,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
79
  requirements:
85
80
  - - ">="
86
81
  - !ruby/object:Gem::Version
82
+ hash: 3474806802023863937
87
83
  segments:
88
84
  - 0
89
85
  version: "0"
90
86
  requirements: []
91
87
 
92
88
  rubyforge_project: magrathea
93
- rubygems_version: 1.3.7
89
+ rubygems_version: 1.5.0
94
90
  signing_key:
95
91
  specification_version: 3
96
92
  summary: mark_facets