va 0.0.4 → 0.0.5

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: 812d1fe28b3e808709aba9b2b35ecd7c4405d807
4
- data.tar.gz: dc76e8781210a33e85a1bf4e4aef040e22b3ea52
3
+ metadata.gz: b9ebf46848bd833c96256fac55089f6bdce797d3
4
+ data.tar.gz: bb14d921880db063a2f08083fd35fe5ee56e5b63
5
5
  SHA512:
6
- metadata.gz: 8e385075c38f9043f302a2a6773ff1637761da362f710a6d81d274dd590aaa715cf379497fc47276c88c83b54bf3f53dcf8e7acf2f5d5d8a6a91dcbe0adb854e
7
- data.tar.gz: 5362e5da675c8684d36ccd5cb41b4532cce92f9e1ed77cdde6d01326e923ae0e753977d68388f2e8fd62b91dce8942484fab2d83ee48c50589dc3e25cac3a038
6
+ metadata.gz: 3a86ef475bc99f931a54fef45562f01873cc69f5dceb309137cd15581e8269eda0f6d8e9fb8f2e84dc52603ebaafcf8b004e7596cbc5eb89fd8d5bc099bbbda4
7
+ data.tar.gz: 46e078c1071d3b8c4d7155d0a8f6fa311782f410c602e2ab7c5a60e563313e70a0534408b735ef7619556ff7bf7b7d314d0a823b39456b1abd5c0fe496df3dca
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Va
2
2
 
3
- TODO: Write a gem description
3
+ Va is a minimalistic, framework agnostic, validation library.
4
+
5
+ It is meant to be used as a first line of defense from external imputs.
6
+
7
+ ## Usage
8
+
9
+ TODO: Write usage instructions here
4
10
 
5
11
  ## Installation
6
12
 
@@ -18,9 +24,6 @@ Or install it yourself as:
18
24
 
19
25
  $ gem install va
20
26
 
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
24
27
 
25
28
  ## Contributing
26
29
 
data/lib/va/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Va
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/va.rb CHANGED
@@ -4,7 +4,7 @@ module Va
4
4
  class Model
5
5
  attr_reader :attributes
6
6
 
7
- def initialize(**args)
7
+ def initialize(args={})
8
8
  @attributes = {}
9
9
  args.each do |k, v|
10
10
  key = k.to_sym
data/spec/va_spec.rb CHANGED
@@ -7,7 +7,7 @@ scope do
7
7
  end
8
8
 
9
9
  test "init" do
10
- va = Login.new(email: "fede@example.com", pass: "123456")
10
+ va = Login.new({"email" => "fede@example.com", pass: "123456"})
11
11
  assert_equal va.email, "fede@example.com"
12
12
  assert_equal va.pass, "123456"
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: va
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Iachetti