autostrip 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/autostrip.gemspec +1 -1
  3. data/lib/autostrip.rb +6 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 000664f4e079a8e338ba1a9b59d355ed33b217ff
4
- data.tar.gz: 73faf0e3c9ba12e91f9a998ffa14193f3fe9de31
3
+ metadata.gz: 70989ae37ee48f0891f3b0f5e7901e2fc2dd4698
4
+ data.tar.gz: c1a3401e126a12a3e78aa7943aa9af5986655849
5
5
  SHA512:
6
- metadata.gz: 8ea4f77bc144cf8468383a9cb4f87088ef34423d0ddb36355a244261f419c1ef6b9e8a2941f6b5ef63d0e2ab9a4fbac358481fb8561b2b702270914f6a695855
7
- data.tar.gz: a9ad45a19dec60020d1192c698943d760f4899b5b71138e04cf3026b456f0dcaa60b7bfdbdd71d715b6b76ebefaa2ab75ffb16cd6471d7cc945f4ce74c7d5864
6
+ metadata.gz: 2760c4e74cf8406fdb110bb2ae976fa03376955ba2895e5bab3e1e12ac34e93b5f6081126055b838c4baeae0413a5cdbcbc9fee321ca97ce27154cb24648ead2
7
+ data.tar.gz: 940e18551e1018e008b66b7a21cb3f8240ee1c846442d80404d948d7d2ae264cdc098fc882997a2abf3a03cbc3ba4b7c4ffb2a20c51ca5967009aa0e24a2da92
data/autostrip.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'autostrip'
4
- s.version = '1.0.1'
4
+ s.version = '1.0.2'
5
5
  s.authors = ['Yaroslav Konoplov']
6
6
  s.email = ['eahome00@gmail.com']
7
7
  s.summary = 'Automatically strip leading and trailing whitespace'
data/lib/autostrip.rb CHANGED
@@ -18,3 +18,9 @@ end
18
18
  module ActiveModel::Validations::HelperMethods
19
19
  include Autostrip::Extension
20
20
  end
21
+
22
+ if defined?(ActiveRecord::Base) && !ActiveRecord::Base.methods.include?(:autostrip)
23
+ class ActiveRecord::Base
24
+ extend Autostrip::Extension
25
+ end
26
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autostrip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Konoplov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2016-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel