odeon_uk 2.0.1 → 2.0.2

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: ea3aeae6a45f951ac69b5399562663c2f264d59e
4
- data.tar.gz: 066fbf41e0a2d9fa3099ff085501ce708f198642
3
+ metadata.gz: d3d16f7f642faa963c3829500de332dbeab66295
4
+ data.tar.gz: c6a6786d1e5806e404368dec1f00c3968be66351
5
5
  SHA512:
6
- metadata.gz: 4372f457aa8132a9b0238abad6997a4f5b980729e6e504fe21c74ebddb71e022ec2670fb1534bbe6b0648d3e0132cbf679b26ee6e4c92a6d87371a197fed44c9
7
- data.tar.gz: 5df2508b065b95de1f3997edb09fc906e6fe2da993c8cb6fafdca6a70593576631775c1c398a05e62f988dae68963b6439e0bb3eee05136eeabccb1efe4723e9
6
+ metadata.gz: 00acae1ade12b3914743175fab852f66ebc5e6f5ab0a258c343a3b476c63ca8c9b042f18d145b249428a339683d9500af8f8411841aadce51c16ef98db0dc1ef
7
+ data.tar.gz: 716533b7ac7ce4f7c74a49a2b433f38bfd4c73c356b82f0ade7666694bd18e85f5f4d938dc1014ca3280b49ed2501ef1f8401d503694f61d5570b6e8a4f7e297
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.0.2, _28th September 2014_
2
+
3
+ - Default to 2d for IMAX film tech
4
+
1
5
  ## 2.0.1, _28th September 2014_
2
6
 
3
7
  - you can pass strings to screening#variant
@@ -75,7 +75,11 @@ module OdeonUk
75
75
  end
76
76
 
77
77
  def dimension
78
- tech.match(/[23]d/)[0]
78
+ dimension_from_tech || '2d'
79
+ end
80
+
81
+ def dimension_from_tech
82
+ tech.match(/[23]d/i) { |data| data[0] }
79
83
  end
80
84
 
81
85
  def imax?
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.odeon.co.uk
2
- # @version 2.0.1
2
+ # @version 2.0.2
3
3
  module OdeonUk
4
4
  # Gem version
5
- VERSION = '2.0.1'
5
+ VERSION = '2.0.2'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odeon_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll