active_tools 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35e4edeeacffcf4fe1268e51ea8d2897f99c3852
|
4
|
+
data.tar.gz: cc8087a148a728ce82987df84c247d282142749d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd71b48b22f62949248e3e540d59bb45df25275c721070003a21e080c9779a2227c81c930dfe7c397f0b52b9c0a00b7496b2edbb9d3dcb67b48431a8b699cc7e
|
7
|
+
data.tar.gz: 882a83eb8071e6554c432ed5559c501f74cfc20401ca1cd182ed3a00a542fe71127f8e220b584cec72e73d79589b38553ecb067c79a6a150571d384ca6ba59a2
|
@@ -9,19 +9,19 @@ module ActiveTools
|
|
9
9
|
|
10
10
|
def both_indent(*args)
|
11
11
|
indent_size = args.delete_at(0)
|
12
|
-
raise(TypeError, "
|
12
|
+
raise(TypeError, "Integer expected, #{indent_size.class} passed") unless indent_size.is_a?(Integer)
|
13
13
|
center(size+indent_size*2, *args)
|
14
14
|
end
|
15
15
|
|
16
16
|
def left_indent(*args)
|
17
17
|
indent_size = args.delete_at(0)
|
18
|
-
raise(TypeError, "
|
18
|
+
raise(TypeError, "Integer expected, #{indent_size.class} passed") unless indent_size.is_a?(Integer)
|
19
19
|
rjust(size+indent_size, *args)
|
20
20
|
end
|
21
21
|
|
22
22
|
def right_indent(*args)
|
23
23
|
indent_size = args.delete_at(0)
|
24
|
-
raise(TypeError, "
|
24
|
+
raise(TypeError, "Integer expected, #{indent_size.class} passed") unless indent_size.is_a?(Integer)
|
25
25
|
ljust(size+indent_size, *args)
|
26
26
|
end
|
27
27
|
end
|
data/lib/active_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valery Kvon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project: active_tools
|
128
|
-
rubygems_version: 2.6.
|
128
|
+
rubygems_version: 2.6.8
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: ActionDispatch, ActionController, ActiveModel, ActiveRecord, ActiveSupport,
|
@@ -133,4 +133,3 @@ summary: ActionDispatch, ActionController, ActiveModel, ActiveRecord, ActiveSupp
|
|
133
133
|
test_files:
|
134
134
|
- spec/active_tools/active_model/delegate_attributes_spec.rb
|
135
135
|
- spec/spec_helper.rb
|
136
|
-
has_rdoc:
|