poms 2.0.0.a → 2.0.0.b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/poms/fields.rb +1 -0
- data/lib/poms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c845d0f274777564c0dafda90bdc6173cf5be74b
|
4
|
+
data.tar.gz: 4081b178f8fd7f3b765380da44885c1d4aecec25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d8eda593ec8897947e7dc77a16b8ba16da0fb1b8ad82983993741e974c9444fb8838d17aa677ec918f2a16fd2305007fa07cc6e0d6832b538beb9bd891a6efa
|
7
|
+
data.tar.gz: 0d702531bba391b8b1a81026fb751989d8f63c4e4048c72450df0cdc42288d90bc1b85dd773c839b960ea196560c848aad70ee8eccf702eab274df566f0559de
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Poms Release notes
|
2
2
|
|
3
|
+
## 2.0.0
|
4
|
+
|
5
|
+
Complete rewrite of the Poms gem, which now interfaces with the Frontend API instead of CouchDB. Check the new documentation in the Readme and examples for ways in which the new API works. A short overview:
|
6
|
+
|
7
|
+
* The `Poms` module has a much smaller set of ways to get data from Poms, but these should be enough to get what you need now.
|
8
|
+
* These functions generally return a Hash or a LazyEnumerator for multiple results.
|
9
|
+
* Credentials for the Poms service are set in a config function.
|
10
|
+
* More fields can be accessed from the `Fields` module.
|
11
|
+
|
3
12
|
## 1.2.2
|
4
13
|
|
5
14
|
* Fix issue with description type that did not exist.
|
data/lib/poms/fields.rb
CHANGED
@@ -93,6 +93,7 @@ module Poms
|
|
93
93
|
# @param key The key of the array we want to look in
|
94
94
|
# @param type The type to select
|
95
95
|
def value_of_type(item, key, type)
|
96
|
+
return unless item[key]
|
96
97
|
res = item[key].find { |value| value['type'] == type }
|
97
98
|
return unless res
|
98
99
|
res['value']
|
data/lib/poms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.b
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Kruijsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|