small 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +23 -3
  2. data/lib/small.rb +1 -1
  3. data/lib/small/object.rb +8 -0
  4. metadata +2 -2
data/README.md CHANGED
@@ -1,8 +1,19 @@
1
- Small
2
- ======
1
+ Small [![TravisCI][travis-img]][travis-ci] [![Dependency Status][gemnasium-img]][gemnasium]
2
+ ===
3
+
4
+ [travis-img]: https://secure.travis-ci.org/bry4n/small.png?branch=master
5
+ [travis-ci]: http://travis-ci.org/bry4n/small
6
+ [gemnasium-img]: https://gemnasium.com/bry4n/small.png?travis
7
+ [gemnasium]: https://gemnasium.com/bry4n/small
3
8
 
4
9
  Small collection of useful Ruby utilities
5
10
 
11
+ ## Support
12
+
13
+ * Ruby 1.9.x
14
+ * JRuby 1.6.x in 1.9 mode
15
+ * Rubinious 1.2.x in 1.9 mode
16
+
6
17
  ## Classes
7
18
 
8
19
  * **Math**
@@ -24,6 +35,8 @@ Small collection of useful Ruby utilities
24
35
  * to_md5
25
36
  * escape
26
37
  * unescape
38
+ * html_escape
39
+ * url_encode
27
40
 
28
41
  * **Integer**
29
42
 
@@ -85,6 +98,13 @@ Small collection of useful Ruby utilities
85
98
 
86
99
  * **Object**
87
100
 
101
+ * string?
102
+ * boolean?
103
+ * numeric?
104
+ * integer?
105
+ * fixnum?
106
+ * float?
107
+ * proc?
88
108
  * blank?
89
109
  * present?
90
110
  * presence
@@ -133,4 +153,4 @@ Using a `time` command execution
133
153
 
134
154
  ## License
135
155
 
136
- **small** is licensed under the MIT license
156
+ **small** is licensed under the MIT license
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Small
3
- VERSION = "0.5"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
 
6
6
  require 'small/object'
@@ -1,5 +1,13 @@
1
1
  class Object
2
2
 
3
+ def array?
4
+ is_a?(Array)
5
+ end
6
+
7
+ def hash?
8
+ is_a?(Hash)
9
+ end
10
+
3
11
  def string?
4
12
  is_a?(String)
5
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: small
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-18 00:00:00.000000000 Z
12
+ date: 2012-05-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: bryann83@gmail.com