zuora_connect 1.4.62 → 1.4.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79d1aa64b83239e8451d986dcc1600ad7bb55005
4
- data.tar.gz: e207887088d10b21ea73877a31758c8ff7c5d179
3
+ metadata.gz: e267f0740948b973f51731068454374f6bfec0bc
4
+ data.tar.gz: d139aec8c89a18286d8201f03e1837abce54b657
5
5
  SHA512:
6
- metadata.gz: 75bbca58d85161938bdddaef735227774096fa70c03b59aba51c5c1c845c92af6a397180a850b0635c2696be79ba9b89aa41c4fe9c21c54624289813bffc73e9
7
- data.tar.gz: d2d7154e40c524674a1f5320869c7053fc0cd099b0a1e4201cde9ba294dc2ce6dff7b89febd517a16f4ba95b98ce5c6cee4fcf4f565d5f6fe2f6f349dfc5307d
6
+ metadata.gz: d6973d64e8726c0fe6864ebf3628a77b647f9d67e16589569da64956ffef409e41e2c44fa3396870a9c3ac8469c863e5cb956c70bcca8ca05ac1a551c7641a54
7
+ data.tar.gz: de20686f4a492ac17b1c0f5b99cd7ebcf4d203100b122759d31c42c0014922dfc89987b19c143ce805602265e85b152caf8c598b87dfc85a0851bf4a8a5a4ce3
@@ -0,0 +1,24 @@
1
+ class String
2
+ def to_bool
3
+ return self if (self.class == TrueClass || self.class == FalseClass)
4
+ return true if self == true || self =~ (/(true|t|yes|y|1)$/i)
5
+ return false if self == false || self.blank? || self =~ (/(false|f|no|n|0)$/i)
6
+ return false
7
+ raise ArgumentError.new("invalid value for Boolean: \"#{self}\"")
8
+ end
9
+ end
10
+ class TrueClass
11
+ def to_bool
12
+ return self
13
+ end
14
+ end
15
+ class FalseClass
16
+ def to_bool
17
+ return self
18
+ end
19
+ end
20
+ class NilClass
21
+ def to_bool
22
+ return false
23
+ end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.4.62"
2
+ VERSION = "1.4.63"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.62
4
+ version: 1.4.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-session_store
@@ -226,6 +226,7 @@ files:
226
226
  - config/initializers/apartment.rb
227
227
  - config/initializers/redis.rb
228
228
  - config/initializers/resque.rb
229
+ - config/initializers/to_bool.rb
229
230
  - config/routes.rb
230
231
  - db/migrate/20100718151733_create_connect_app_instances.rb
231
232
  - db/migrate/20101024162319_add_tokens_to_app_instance.rb