loco-liquid-filters 0.0.8 → 0.0.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.
@@ -1,7 +1,7 @@
1
1
  module Loco
2
2
  module Liquid
3
3
  module Filters
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
6
6
  end
7
7
  end
@@ -33,6 +33,14 @@ module Loco
33
33
  def url_decode(string)
34
34
  URI.unescape string
35
35
  end
36
+
37
+ def trim(string)
38
+ string.strip
39
+ end
40
+
41
+ def random(max, min = 1)
42
+ rand(min..max)
43
+ end
36
44
  end
37
45
  end
38
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loco-liquid-filters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: -3053509217030061665
108
+ hash: -1868051506796147716
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  none: false
111
111
  requirements:
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: -3053509217030061665
117
+ hash: -1868051506796147716
118
118
  requirements: []
119
119
  rubyforge_project:
120
120
  rubygems_version: 1.8.24