lissio 0.1.0.beta3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ require 'browser/history'
13
13
  module Lissio
14
14
 
15
15
  class Router
16
- attr_reader :routes, :options
16
+ attr_reader :routes, :options, :history
17
17
 
18
18
  def initialize(options = {}, &block)
19
19
  @routes = []
@@ -95,6 +95,16 @@ class Router
95
95
  end
96
96
 
97
97
  def navigate(path)
98
+ @initial = nil
99
+
100
+ if path == :back
101
+ return @history.back
102
+ end
103
+
104
+ if path == :forward
105
+ return @history.forward
106
+ end
107
+
98
108
  if path == self.path
99
109
  return update
100
110
  end
@@ -148,7 +158,7 @@ private
148
158
  params = {}
149
159
 
150
160
  @names.each_with_index {|name, index|
151
- params[name] = match[index + 1]
161
+ params[name] = match[index + 1].decode_uri_component
152
162
  }
153
163
 
154
164
  @block.call params if @block
@@ -1,3 +1,3 @@
1
1
  module Lissio
2
- VERSION = '0.1.0.beta3'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lissio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - meh.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-28 00:00:00.000000000 Z
11
+ date: 2015-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.5
19
+ version: 0.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.5.5
26
+ version: 0.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opal-browser
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.2.0.beta1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.2.0.beta1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rack
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,27 +53,13 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: opal-spec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
56
+ name: thor
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
74
60
  - !ruby/object:Gem::Version
75
61
  version: '0'
76
- type: :development
62
+ type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
@@ -81,7 +67,7 @@ dependencies:
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: thor
70
+ name: uglifier
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - ">="
@@ -108,6 +94,7 @@ files:
108
94
  - Rakefile
109
95
  - bin/lissio
110
96
  - lib/lissio.rb
97
+ - lib/lissio/builder.rb
111
98
  - lib/lissio/server.rb
112
99
  - lissio.gemspec
113
100
  - opal/lissio.rb
@@ -118,6 +105,7 @@ files:
118
105
  - opal/lissio/collection.rb
119
106
  - opal/lissio/component.rb
120
107
  - opal/lissio/component/alert.rb
108
+ - opal/lissio/component/autocomplete.rb
121
109
  - opal/lissio/component/container.rb
122
110
  - opal/lissio/component/markdown.rb
123
111
  - opal/lissio/component/tooltip.rb
@@ -141,12 +129,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
129
  version: '0'
142
130
  required_rubygems_version: !ruby/object:Gem::Requirement
143
131
  requirements:
144
- - - ">"
132
+ - - ">="
145
133
  - !ruby/object:Gem::Version
146
- version: 1.3.1
134
+ version: '0'
147
135
  requirements: []
148
136
  rubyforge_project:
149
- rubygems_version: 2.1.5
137
+ rubygems_version: 2.4.5
150
138
  signing_key:
151
139
  specification_version: 4
152
140
  summary: "."