rasti-app 0.0.2 → 0.0.3

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: 810ced51e549403a8244ddddd97b3edb6b87dc64
4
- data.tar.gz: bd76c4b01dc943f7db396ce049d7b4ed825be20e
3
+ metadata.gz: bfeca72665ea45a2f31879c7d382a33b9ad6c293
4
+ data.tar.gz: a10524ff0d841415e953ab4d3e8b855799f40c04
5
5
  SHA512:
6
- metadata.gz: 8bc75d822afc30ea320495fbe01d189d4d5fb9a45e3985ce5ec80590067a07cc7d7f284435ff72911350978008cf02f37937c55222b4e13edd65a72dcaab682c
7
- data.tar.gz: 02b6107ace662a86984abd3cc409cfba90da9ec330bcc8dee0f871fd9e33d018d0ff94765f614a6cf64924f57b3b154019cdf01fde8f4ee2228a70433eeda910
6
+ metadata.gz: ee6174e5054a59fa7b5a385c4bf3d740a2597cadd2a4eaa75368ee59b89c25e13d592d7f04966a3e793151e3d618780e65c5522ee76eb61dcbbbaac6b1b2208f
7
+ data.tar.gz: dddf69965815c9bd209f0cdd2ad4b17579641dc6f84c3ca70aaf674be83474ee91cb5b1512837da6b8b93fa470419ccd061c70898161c0ac2999514756dc6978
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.3.0
1
+ ruby-2.4.0
data/.travis.yml CHANGED
@@ -1,10 +1,22 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
4
  - 1.9.3
4
5
  - 2.0
5
6
  - 2.1
6
7
  - 2.2
7
8
  - 2.3.0
8
- - jruby
9
+ - 2.4.0
10
+ - jruby-1.7.25
11
+ - jruby-9.1.7.0
12
+ - ruby-head
13
+ - jruby-head
14
+
15
+ matrix:
16
+ fast_finish: true
17
+ allow_failures:
18
+ - rvm: ruby-head
19
+ - rvm: jruby-head
20
+
9
21
  before_install:
10
22
  - gem install bundler
data/lib/rasti/app.rb CHANGED
@@ -5,7 +5,7 @@ require 'asynchronic'
5
5
  require 'hash_ext'
6
6
  require 'consty'
7
7
  require 'multi_require'
8
-
8
+ require 'rasti-form'
9
9
 
10
10
  module Rasti
11
11
  class App
@@ -2,6 +2,8 @@ module Rasti
2
2
  class App
3
3
  class Interaction
4
4
 
5
+ include Rasti::Form::Validable
6
+
5
7
  def self.build_form(params)
6
8
  constants.include?(:Form) ? const_get(:Form).new(params) : Form.new
7
9
  end
@@ -13,6 +15,7 @@ module Rasti
13
15
 
14
16
  def call(params)
15
17
  Thread.current[thread_form_key] = self.class.build_form(params)
18
+ validate!
16
19
  execute
17
20
  ensure
18
21
  Thread.current[thread_form_key] = nil
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  class App
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
data/rasti-app.gemspec CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_runtime_dependency 'multi_require', '~> 1.0'
24
24
  spec.add_runtime_dependency 'hash_ext', '~> 0.2', '>= 0.2.1'
25
25
  spec.add_runtime_dependency 'consty', '~> 1.0'
26
+ spec.add_runtime_dependency 'rasti-form', '~> 1.0', '>= 1.0.1'
26
27
 
27
28
  spec.add_development_dependency 'bundler', '~> 1.12'
28
29
  spec.add_development_dependency 'rake', '~> 11.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rasti-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-18 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto
@@ -86,6 +86,26 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '1.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rasti-form
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.0'
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 1.0.1
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '1.0'
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: 1.0.1
89
109
  - !ruby/object:Gem::Dependency
90
110
  name: bundler
91
111
  requirement: !ruby/object:Gem::Requirement
@@ -249,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
269
  version: '0'
250
270
  requirements: []
251
271
  rubyforge_project:
252
- rubygems_version: 2.5.1
272
+ rubygems_version: 2.6.8
253
273
  signing_key:
254
274
  specification_version: 4
255
275
  summary: ''