metrojobb 0.2.0 → 0.2.1

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: c3ec903bf021543b65c2b4d2a2a33635b4eae560
4
- data.tar.gz: 6332f657e804cdc8e9736a64ca06de69f5c3c203
3
+ metadata.gz: fb38b04314f15720f9ac5ae263403311ca43f8cf
4
+ data.tar.gz: 22b3414e1c0c4d498562bcc2ea9fe56220a88978
5
5
  SHA512:
6
- metadata.gz: 209157405a83d5e339da0726d7b3f14ed34dc725ff0186fa8af87a9c61757ec072799623e140838c17f1296f572664ceedcee1f6fa6502662cd45fa930f467e0
7
- data.tar.gz: b5b76909b836b504988c9493ab929a66c404e6f1ae22f8062f46d8cd26b59ee01dbb1428112a4a632d910e5036b6638dbb3a893aa5a1d09fe76b82b89c005286
6
+ metadata.gz: 182b6c8928fd70f33c84f4a1887a7711c443606e1d7911e1c19706ebb3feba5c13e43d6f08a6f0cc75c63fbf6b0559515ab432cd83f008d9fa9740612cc01efd
7
+ data.tar.gz: 955db535c24173463da6542b184a6f8ffde23472b460dd89913f15ecd3a32583cb4fbfcc7ef6b92d6cee41133f7cbb957c46fd237e64fa58352775a416d022c4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metrojobb (0.1.0)
4
+ metrojobb (0.2.0)
5
5
  activemodel (~> 5.0)
6
6
  builder (~> 3.2)
7
7
 
@@ -14,20 +14,20 @@ module Metrojobb
14
14
 
15
15
  def to_xml(builder: Builder::XmlMarkup.new(indent: 2))
16
16
  builder.employmentType do |node|
17
- node.id(metrojobb_id)
17
+ node.id(employment_type_id)
18
18
  end
19
19
  end
20
20
 
21
- def metrojobb_id
21
+ def employment_type_id
22
22
  NAME_ID_MAP[name.presence || id.presence] ||
23
23
  id.presence ||
24
24
  name.presence
25
25
  end
26
26
 
27
27
  def validate_known_employment_type
28
- return if ID_NAME_MAP[metrojobb_id]
28
+ return if ID_NAME_MAP[employment_type_id]
29
29
 
30
- errors.add(:metrojobb_id, :inclusion)
30
+ errors.add(:employment_type_id, :inclusion)
31
31
  end
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module Metrojobb
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metrojobb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Burenstam