contentful_middleman 1.0.2 → 1.0.3

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: 13dfdb2f3f1dd3af43fe33209d7a6a302334b9f8
4
- data.tar.gz: 4d0687731a71a806d889cc1756f12cae6c7f4e56
3
+ metadata.gz: 8cfeacffa7586cbc65d3822d9b4b02484b7c8ca6
4
+ data.tar.gz: 03d6f48d7678eaa561ce7b1c68df617038e303f7
5
5
  SHA512:
6
- metadata.gz: 026373c9f97851c39ba68714156e4a5c8fba6951196d181e35ad3d5849ae464d0f5f8630384e92a06af585cc36fb61f4ee100192659c648878bc43ae96a2041b
7
- data.tar.gz: 0181002ccbe6f35ca76c0644eabf3963a03903dfb7bd9b04aeaa8d7ef63822993deed1fea5c230ba5167b19392aab7e84e43ee07116b6b79db78db7f2737792d
6
+ metadata.gz: d99a7a9e1f17201f4a0e6fb2e0e4c29c0e60a35700057161917695dc6228c71a7eb360051ec73b173a2c215736e2b7fc02037cdeacd0d8f9e96f85bd596bc158
7
+ data.tar.gz: 522fda1018a1713ccdfd20d7ce77b40c2cfe6b2fa0826da8658d48100c6faf90584d9c106e4f8c55d5c71fc4c6d64ef5a185a42c59ce682fa28bdb8575c2fa0d
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## Upcoming
4
+ ## Fixed
5
+ * The importing of entries including `Contentful::Location` fields now works
6
+
3
7
  ## 1.0.2
4
8
  ### Fixed
5
9
  * Include `middleman-blog` as dependency of the gem.
@@ -15,6 +15,8 @@ module ContentfulMiddleman
15
15
  case field_value
16
16
  when Contentful::Asset
17
17
  map_asset(context, field_name, field_value)
18
+ when Contentful::Location
19
+ map_location(context, field_name, field_value)
18
20
  when Array
19
21
  map_array(context, field_name, field_value)
20
22
  else
@@ -34,6 +36,10 @@ module ContentfulMiddleman
34
36
  map_entry(new_context, element)
35
37
  end
36
38
  end
39
+
40
+ def map_location(context, field_name, field_value)
41
+ context.set(field_name, field_value.properties)
42
+ end
37
43
  end
38
44
  end
39
45
  end
@@ -1,3 +1,3 @@
1
1
  module ContentfulMiddleman
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful_middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Konietzke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-04 00:00:00.000000000 Z
12
+ date: 2015-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core