galadriel 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +90 -0
- data/galadriel.gemspec +1 -1
- data/lib/galadriel/version.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ca31852f12e6e60bdc07091f7450fd214889005bab17c001f1adce2e4b1f9fb9
|
4
|
+
data.tar.gz: 276f28a852244c060a63dac4e137ea2525f9004b3973e2a6470a9eadc5913dc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcae688a440edec66de0c9537561da691dec1bca29d1f1c1df643ced94b889a05cf01135123e4eec0c4878e99562358a3d9b129e6554b6c9fa1ce23aaf616fdb
|
7
|
+
data.tar.gz: 71d80a21c6a3a6849dc2263057fc95b7ba32eea9a5f7515c5b73ac5fe81aa35abafe7039b7b38f22efb4f22722d19c13cff364c43a8e1bbad74c696cd1578624
|
data/README.md
CHANGED
@@ -4,3 +4,93 @@ Gem for handling parameter arrays.
|
|
4
4
|
```ruby
|
5
5
|
hash_array = Galadriel.parse(params[:my_params])
|
6
6
|
```
|
7
|
+
|
8
|
+
## From
|
9
|
+
|
10
|
+
```
|
11
|
+
{
|
12
|
+
"id": [
|
13
|
+
"231",
|
14
|
+
"609"
|
15
|
+
],
|
16
|
+
"item_short_name": [
|
17
|
+
"Glifosato",
|
18
|
+
"Diesel"
|
19
|
+
],
|
20
|
+
"profit_center_code": [
|
21
|
+
"",
|
22
|
+
""
|
23
|
+
],
|
24
|
+
"name": [
|
25
|
+
"Glifosan 10L",
|
26
|
+
"Disel 1L"
|
27
|
+
],
|
28
|
+
"container": [
|
29
|
+
"10.0 L",
|
30
|
+
"1.0 L"
|
31
|
+
],
|
32
|
+
"onhand_quantity": [
|
33
|
+
"124.1000 und",
|
34
|
+
"489.5000 und"
|
35
|
+
],
|
36
|
+
"reserved_quantity": [
|
37
|
+
"0.0000 und",
|
38
|
+
"0.0000 und"
|
39
|
+
],
|
40
|
+
"diff_quantity": [
|
41
|
+
"114.1000 und",
|
42
|
+
"479.5000 und"
|
43
|
+
],
|
44
|
+
"new_quantity": [
|
45
|
+
"10.0000 und",
|
46
|
+
"10.0000 und"
|
47
|
+
],
|
48
|
+
"new_unit_cost": [
|
49
|
+
"350.0000",
|
50
|
+
"23.0000"
|
51
|
+
],
|
52
|
+
"reason": [
|
53
|
+
"4",
|
54
|
+
"2"
|
55
|
+
],
|
56
|
+
"reason_type": [
|
57
|
+
"Reducción",
|
58
|
+
"Reducción"
|
59
|
+
]
|
60
|
+
}
|
61
|
+
```
|
62
|
+
|
63
|
+
## To
|
64
|
+
|
65
|
+
```
|
66
|
+
[
|
67
|
+
{
|
68
|
+
"id": "231",
|
69
|
+
"item_short_name": "Glifosato",
|
70
|
+
"profit_center_code": "",
|
71
|
+
"name": "Glifosan 10L",
|
72
|
+
"container": "10.0 L",
|
73
|
+
"onhand_quantity": "124.1000 und",
|
74
|
+
"reserved_quantity": "0.0000 und",
|
75
|
+
"diff_quantity": "114.1000 und",
|
76
|
+
"new_quantity": "10.0000 und",
|
77
|
+
"new_unit_cost": "350.0000",
|
78
|
+
"reason": "4",
|
79
|
+
"reason_type": "Reducción"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"id": "609",
|
83
|
+
"item_short_name": "Diesel",
|
84
|
+
"profit_center_code": "",
|
85
|
+
"name": "Disel 1L",
|
86
|
+
"container": "1.0 L",
|
87
|
+
"onhand_quantity": "489.5000 und",
|
88
|
+
"reserved_quantity": "0.0000 und",
|
89
|
+
"diff_quantity": "479.5000 und",
|
90
|
+
"new_quantity": "10.0000 und",
|
91
|
+
"new_unit_cost": "23.0000",
|
92
|
+
"reason": "2",
|
93
|
+
"reason_type": "Reducción"
|
94
|
+
}
|
95
|
+
]
|
96
|
+
```
|
data/galadriel.gemspec
CHANGED
data/lib/galadriel/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: galadriel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo McNally
|
@@ -14,22 +14,22 @@ dependencies:
|
|
14
14
|
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
- - "
|
19
|
+
version: '6.0'
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 6.0.2.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- - "
|
29
|
+
version: '6.0'
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 6.0.2.2
|
33
33
|
description: Gem for handling parameter arrays.
|
34
34
|
email: paulomcnallyz@moi-solutions.com
|
35
35
|
executables: []
|
@@ -61,8 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
|
-
|
65
|
-
rubygems_version: 2.6.8
|
64
|
+
rubygems_version: 3.1.2
|
66
65
|
signing_key:
|
67
66
|
specification_version: 4
|
68
67
|
summary: Convert parameter array to a hash array
|