morse_active_record_helpers 1.1.1 → 1.1.2

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: 6cfcb3eab6e67f4e3f0c89dcfb2021f441729149
4
- data.tar.gz: 89ed40d285b296f0f3658be531a78496a94bedf6
3
+ metadata.gz: f0f73502f926df39a0f5c028537b821d759d1253
4
+ data.tar.gz: 696a4b75e0f07505a8fd3422829b2131433f01b1
5
5
  SHA512:
6
- metadata.gz: 0482bffd2c42c45bb6d15a3c6f5a325d8524a36dfca6ace3a269d66b9d9f56341e77ca3017b830ba8c5169601b890e110b7df8939582ace5eb9f3f40d542ee52
7
- data.tar.gz: 863f6f13d2214d5f140a6a9737d574f71fb492f0e1101c10656a0dc0c0e50eac1930f8ef910c0ccd69013b09a7956a662fa3ac363c11736b56a1e58bf11914cf
6
+ metadata.gz: 37ad5d44222e58c842530c29b3bb4e3eacd56689676f8dc63ecc7be96f970b3a3a2632462ec72b8a9e3233bcb4cc7d9e3171cfa7781c0c6d1925faa4da384f99
7
+ data.tar.gz: bed01ad72e25864becc3afdbba05cce8aa8e8d26b71a5b54dcf6aa43564fe9a6e1b6fbd67f7b2c7a5a8af2168be5c96d16b7a9b346ef064fec35a94d945362cd
@@ -53,6 +53,10 @@ module MorseActiveRecordHelpers
53
53
  end
54
54
  end
55
55
 
56
+ def strip(*things)
57
+ things.each(&:strip)
58
+ end
59
+
56
60
  def survive_if(thing)
57
61
  if self.send(thing)==true
58
62
  errors.add(:base,"Cannot destroy while #{thing} is true")
@@ -1,3 +1,3 @@
1
1
  module MorseActiveRecordHelpers
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_active_record_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2017-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.5.1
137
+ rubygems_version: 2.6.8
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Module to provide some nice helpers for Active Record Models