journeyviz 0.2.0 → 0.2.1

This diff has not been reviewed by any users.
Log in in order to be able to vote.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cc78b54636f54ed65dda8e5b7d3d347df817db747321117d6b608f0aa4bc27a
4
- data.tar.gz: 9d4821cb6646c5824b512242e42b960d5b829154efd6ca7ec7d496e9704c70d2
3
+ metadata.gz: 1a654ff0b723fa86e59380413b120801a23a31f8dd073619f5d805aec62da3ba
4
+ data.tar.gz: e148f9cca5ac56a8f0b5f99363a106ce9bfc6a17436cbff2051b9b37510f5b32
5
5
  SHA512:
6
- metadata.gz: 535ad3ecf65c23614dfcc40e4e79aec9ce0025ec71c0fc12135d9540bd3ba904b945d68a41428ba3d657873d0c89fe137a38c8e6de2495c16b0c610585a682e2
7
- data.tar.gz: c80f32ca92511ae0ca8c89072fb9019f61a3f665e0b0249b840180b83d4ad17c89f634c11c04b48d974940eb43016dad1531199cb87b0afa4e8b01230217b091
6
+ metadata.gz: 6e1c1fdefff5edd464d8f9e85f9e34a222800baf4506b97eaa83f823ca364c9805b1fe26db4feca05cc725de70a2d6bba95ab88db5b89f6d3758e97f336cb309
7
+ data.tar.gz: 53e3cd013476eceb2cd385418024868adaaa92ae889dd0fe580019fabf79bf9b466815fc167f6f0fbf21556324d43b3a547e3fe28c5e2303285ab5cddb192e93
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- journeyviz (0.2.0)
4
+ journeyviz (0.2.1)
5
5
  rack-app
6
6
 
7
7
  GEM
@@ -11,6 +11,8 @@ module Journeyviz
11
11
  raise InvalidNameError, "Invalid name given: #{name.inspect}"
12
12
  end
13
13
 
14
+ raise(InvalidNameError, "Invalid character `!` on `#{name.inspect}`") if name.to_s.include?('!')
15
+
14
16
  @name = name.to_sym
15
17
  end
16
18
  end
@@ -6,7 +6,7 @@ module Journeyviz
6
6
  class Server < Rack::App
7
7
  get '/' do
8
8
  block_path = params['block'] || ''
9
- @block = block_path.split('_').reduce(Journeyviz.journey) do |current, step|
9
+ @block = block_path.split('!').reduce(Journeyviz.journey) do |current, step|
10
10
  current.blocks.find { |block| block.name == step.to_sym }
11
11
  end
12
12
 
@@ -78,7 +78,7 @@
78
78
  </a>
79
79
  <hr/>
80
80
  <% @block.blocks.each do |block| %>
81
- <a class="mdl-navigation__link" href="?block=<%= block.full_qualifier.join('_') %>">
81
+ <a class="mdl-navigation__link" href="?block=<%= block.full_qualifier.join('!') %>">
82
82
  <i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">layers</i>
83
83
  <span><%= block.name.to_s.split('_').collect(&:capitalize).join(' ') %></span>
84
84
  </a>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Journeyviz
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: journeyviz
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
  - Gabriel Teles