excursion 0.0.8 → 0.0.9

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: 1042bd169a84f99c9089aa2cb50a054782d67dae
4
- data.tar.gz: 43c0289b4e1f967628bf935b8a32eea3773ee256
3
+ metadata.gz: 10e27967761eabfa3c0ab9171d110843e12ef43b
4
+ data.tar.gz: ee24fcd73c5c7e82a5a167c1f5e671470a71c4b1
5
5
  SHA512:
6
- metadata.gz: 88f8afacacb410f03d345b24ad6b0e2a7174063b34dcea9d495e06519722afcf3c33ac7f4670c4b9124bc56a04184695f74a4f56a288b64cdbc2389fdd3eaab8
7
- data.tar.gz: b09841a93f180881c4475d8fd9d6d61faa5afd9d078db969ead85383d83b4142f6a375c5eb82131db1d8b87a3eb58113e68f76f044b0c4a250a2fcaa37786ac2
6
+ metadata.gz: b63db66a73f60c23f1e682e3ff9c0cf0b16ae8a39b34922400386678a8b51ca35c87e2f6b5078abdf8df176ef0ce4a5707a47df68851c078fdc4c58a1f1a9968
7
+ data.tar.gz: 3b34cdf6ddd60b0dcb2724c80b3bf106e9b43689aa8e6e3b58e7eb895743040cc4f6f81cd0c6d77280bac3ccd62cac34b1413313c16020d6a16ff314c01027bc
@@ -7,6 +7,14 @@ module Excursion
7
7
  @routes.add(key.to_s, journey_route(key.to_s, Rails.application, journey_path("/#{name}/#{key.to_s}"), {required_defaults: []})) if @routes[key.to_sym].nil?
8
8
  @routes[key.to_sym]
9
9
  end
10
+
11
+ def [](key)
12
+ instance_variable_get("@#{key}".to_sym) || nil
13
+ end
14
+
15
+ def has_key?(key)
16
+ instance_variable_get("@#{key}".to_sym).nil?
17
+ end
10
18
 
11
19
  end
12
20
  end
@@ -1,3 +1,3 @@
1
1
  module Excursion
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excursion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-16 00:00:00.000000000 Z
11
+ date: 2013-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails