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: 35b5f97ee5ecc8e3963a023e8364de243e8f4490
4
- data.tar.gz: 3486f436c95d814d036d10c5d308e607334c8f71
3
+ metadata.gz: 35e4edeeacffcf4fe1268e51ea8d2897f99c3852
4
+ data.tar.gz: cc8087a148a728ce82987df84c247d282142749d
5
5
  SHA512:
6
- metadata.gz: aa9a896cc121bf17c70b3bec62a7c66ea2980e4eea84d7255bcf7068a0895acd34221a43b33de4b9191539d3ee48d1165dc2cc8a01bf005d327182abeb730d9c
7
- data.tar.gz: c70a5459085b61c6ce0d3c993b8f84134708827772d9fe12d87209b98e7ada010294c764987e926cd6fd4e15ad22fe0dbc55825d2f11aad9c1df2194aa9f54e4
6
+ metadata.gz: fd71b48b22f62949248e3e540d59bb45df25275c721070003a21e080c9779a2227c81c930dfe7c397f0b52b9c0a00b7496b2edbb9d3dcb67b48431a8b699cc7e
7
+ data.tar.gz: 882a83eb8071e6554c432ed5559c501f74cfc20401ca1cd182ed3a00a542fe71127f8e220b584cec72e73d79589b38553ecb067c79a6a150571d384ca6ba59a2
@@ -52,7 +52,7 @@ module ActiveTools
52
52
  if response && !response.is_a?(::ActiveRecord::Base)
53
53
  count = case value
54
54
  when String, Symbol then owner.send(value)
55
- when Fixnum then value
55
+ when Integer then value
56
56
  end
57
57
  yield object, key, count
58
58
  end
@@ -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, "Fixnum expected, #{indent_size.class} passed") unless indent_size.is_a?(Fixnum)
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, "Fixnum expected, #{indent_size.class} passed") unless indent_size.is_a?(Fixnum)
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, "Fixnum expected, #{indent_size.class} passed") unless indent_size.is_a?(Fixnum)
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
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-09-06 00:00:00.000000000 Z
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.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: