qismo 0.7.1 → 0.8.0

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
  SHA256:
3
- metadata.gz: 37a8b45b1fb3c7a407f44bb9490f47f101a6c617347fa81519195d408aadd7d8
4
- data.tar.gz: 48ff80a20004cd10e970fd07276e61aa9e1edffe575e7803fe8e10c2bdba1bdb
3
+ metadata.gz: dac88cb1f371d51c88e85081b67c5a76780b52213a09b63f72e09354d877d8f6
4
+ data.tar.gz: bc5767705a8da37415349f22734b0001197d5b42d49d158a5784c4894c1ca647
5
5
  SHA512:
6
- metadata.gz: 0dd79f84b481f832e7d6433d20af7e9b6cb729d3e2d19255024ec673eacfb8bde3441c253f6fadc240014d2d8be6c1bd839e09c3defdf3fd1784b66d4751dbc1
7
- data.tar.gz: f6893f2b12eb14a3770bfd28ed1bf96b286d46ae6fb7b4d4426e954c637e8a5fe842f45e54817abd3ee86156650cfb49003142fe4ba1196791d0c00859da4d64
6
+ metadata.gz: d7ea544beb490433c2e61a3b6790f4833511fbc3c89732000404603d2a5971fd47e179b1ada028a8abfd07086feaefa48a663fd7557a550ce4e489463fc5a786
7
+ data.tar.gz: cbb1ceb24dcc1078a27465a362b269c6d6707fe4ccca1e585c9d5e8a7c53298c2b6724d0ab101cd1185518daf8b8c966c76997300a251ecdb53174d4e7d85faf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qismo (0.6.0)
4
+ qismo (0.7.1)
5
5
  activesupport
6
6
  http
7
7
 
data/lib/qismo/model.rb CHANGED
@@ -10,6 +10,13 @@ module Qismo
10
10
  elsif value.is_a?(Hash)
11
11
  self.class.new(value)
12
12
  # instance_variable_set("@#{key}", self.class.new(value))
13
+ elsif value.is_a?(TrueClass) || value.is_a?(FalseClass)
14
+ method_name = key.to_s.delete_prefix("is_")
15
+ method_name = "#{method_name}?".to_sym
16
+
17
+ self.class.define_method(method_name) { value }
18
+
19
+ value
13
20
  else
14
21
  value
15
22
  # instance_variable_set("@#{key}", value)
data/lib/qismo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qismo
4
- VERSION = "0.7.1"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qismo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qiscus Integration