strum 0.0.36 → 0.0.37

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: 4a98e22573be6b09987ea2c5b45d5853811e92f36db4f7120ebfc200de21ad4c
4
- data.tar.gz: c5a8d56637a2cc97bf9b0f64af7ca8b88e4abe432948afc652f3ff8fce6ffa08
3
+ metadata.gz: c32aa174ec57179db47cb92671ede4105153bb2fa81532503f6a265ffe80c61c
4
+ data.tar.gz: 0f21b7a52606b8dd0aaf7712398813e61cd321ebf81a5fc4f8ab990771c918c4
5
5
  SHA512:
6
- metadata.gz: ca84b02ce3ba1790637bbf21655a9443366d52ed2beb58630a14d59a68fd5bc55fbbd89aae569dc698e2c8e73881385d78a4f652a3caa48b9c9ad238ccd65a12
7
- data.tar.gz: cb2cb38e207feeb6361e49d4fc6545c402edd2413e5957533bbf3a3a8fcd89d4ddd5c18f5f20b7c1a19d1bee371ac4bdbc1bb15f6bb57ce3b34686d53a5c69e4
6
+ metadata.gz: c6412d098f6b302fe1996db462c977de7cfce91353a5cf4aeeaaef65f258b663d6fcdd41aefb1779364e177f651c2c142fc8357978dd52eb5d863a0426ec9f3b
7
+ data.tar.gz: c94a799ad41c3086922b45aa26908145daf666a4e7c252a24bd43735e60fb49bcdc931ed0bb724ebb1fbf890f0c6bdc7234836e5bff05bfbcec4410f7a295aa1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strum (0.0.36)
4
+ strum (0.0.37)
5
5
  dry-inflector (~> 0.2.0)
6
6
  dry-matcher (~> 0.8.2)
7
7
  thor (~> 0.20)
@@ -49,6 +49,9 @@ GEM
49
49
  ruby-progressbar (~> 1.7)
50
50
  unicode-display_width (>= 1.4.0, < 1.7)
51
51
  ruby-progressbar (1.10.1)
52
+ sequel (5.28.0)
53
+ sequel-annotate (1.4.0)
54
+ sequel (>= 4)
52
55
  thor (0.20.3)
53
56
  unicode-display_width (1.6.0)
54
57
 
@@ -61,6 +64,7 @@ DEPENDENCIES
61
64
  rake (~> 10.0)
62
65
  rspec (~> 3.0)
63
66
  rubocop (~> 0.76.0)
67
+ sequel-annotate (~> 1.4.0)
64
68
  strum!
65
69
 
66
70
  BUNDLED WITH
@@ -58,6 +58,16 @@ module Strum
58
58
  strum_errors
59
59
  end
60
60
 
61
+ def method_missing(method_name, *args, &_block)
62
+ super unless input[method_name.to_sym]
63
+
64
+ args.count.positive? ? public_send(input[method_name.to_sym], args) : input[method_name.to_sym]
65
+ end
66
+
67
+ def respond_to_missing?(method_name, include_private = false)
68
+ input[method_name.to_sym] || super
69
+ end
70
+
61
71
  protected
62
72
 
63
73
  attr_accessor :_input, :input, :strum_errors, :outputs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Strum
4
- VERSION = "0.0.36"
4
+ VERSION = "0.0.37"
5
5
  end
@@ -43,4 +43,5 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency "rake", "~> 10.0"
44
44
  spec.add_development_dependency "rspec", "~> 3.0"
45
45
  spec.add_development_dependency "rubocop", "~> 0.76.0"
46
+ spec.add_dependency "sequel-annotate", "~> 1.4.0"
46
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhiy Nazarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-28 00:00:00.000000000 Z
11
+ date: 2020-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.76.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: sequel-annotate
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.4.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.4.0
125
139
  description:
126
140
  email:
127
141
  - sn@nazarov.com.ua