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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7ebd9df85593c5327fcc07f65eb00d38a8639a0
4
- data.tar.gz: 652743af2c085d204cbf078138e1a20e2e5ffbb9
3
+ metadata.gz: c845d0f274777564c0dafda90bdc6173cf5be74b
4
+ data.tar.gz: 4081b178f8fd7f3b765380da44885c1d4aecec25
5
5
  SHA512:
6
- metadata.gz: abadd1025995b03d9aefba6dd42e773de7dfc53b4afd16992cfec2bdb9eb438de2c201436cffee1f76d10d0b732c86990a6686c6b7ca45f8ec611bdb8e1dd1d3
7
- data.tar.gz: 6c5b371f5e6f9d2ff52b97f13bd0b75a8cbfe19aa936f6f36539ca228853bbfb508028afcb65f5df9b08e11cf7edea3e6f3e49299536227eba00f0c86620b976
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
@@ -1,4 +1,4 @@
1
1
  # The version
2
2
  module Poms
3
- VERSION = '2.0.0.a'.freeze
3
+ VERSION = '2.0.0.b'.freeze
4
4
  end
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.a
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 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport