inesita-router 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: a9a7ab0a43fe44b2a6419d56389a60cb709abd754d6800ae80f655912b9cc69f
4
- data.tar.gz: f2c570daafe5c66c24fd9c2c2fad075cc00abe4c1b9dc75a091623c3945bedfc
3
+ metadata.gz: d95fc2e0f7ae9266d6053e18af11e23b76233c4f668221c0d4dd264ce56f2727
4
+ data.tar.gz: 92e8898363a1e8351b9ec50663749721ff4c16aceb8bda50f1cee349766b9200
5
5
  SHA512:
6
- metadata.gz: 3097f3ae489196281c83ad97c06a2f57ac6a4a09318d926b7aacb92329e399f94375b716539ea12b76c55b348754d9dec5142971979b15ef5dbe3fcc3358279d
7
- data.tar.gz: 88f95be18ff3d84a74130b0586ac2ecd8a80e775af5712d928d7a0d767b7feb474ea0c7f7928de15b055d8c78a1b8409bbfe10140ee802026feb50e61e03be11
6
+ metadata.gz: 92f3a0121ba7bced19f30d3a5ba474533963899485457f2ebc4efded6d4d5a557f913a3aa15ea0b205f6faf0aa42f44be90b2ccd6a0a94fce666655789e5c869
7
+ data.tar.gz: fc0a5cddcabf4188f029833b0b6ac0ee929d0496b0293f284862d57f331ec8f6c5ced7cdc78de901b26dc7b65b3210873650fc82bac0a9818f7d5ae7077d89cc
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'inesita-router'
3
- s.version = '0.2.0'
3
+ s.version = '0.2.1'
4
4
  s.authors = ['Michał Kalbarczyk']
5
5
  s.email = 'fazibear@gmail.com'
6
6
  s.homepage = 'http://github.com/inesita-rb/inesia-router'
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
14
  s.require_paths = ['lib']
15
15
 
16
- s.add_dependency 'inesita', '~> 0.7.0'
16
+ s.add_dependency 'inesita', '~> 0.8.0'
17
17
 
18
18
  s.add_development_dependency 'bundler', '~> 1.0'
19
19
  s.add_development_dependency 'rspec', '~> 3.0'
@@ -20,7 +20,7 @@ module Inesita
20
20
  unless respond_to?(:__a)
21
21
  alias_method :__a, :a
22
22
  define_method(:a) do |params = {}, &block|
23
- params = { onclick: ->(e) { router.go_to(e.target.pathname) } }.merge(params)
23
+ params = { onclick: ->(e) { router.go_to(e.target.pathname) unless params[:target] == "_blank" } }.merge(params)
24
24
  __a(params, &block)
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inesita-router
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
  - Michał Kalbarczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-22 00:00:00.000000000 Z
11
+ date: 2018-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inesita
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
19
+ version: 0.8.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.7.0
26
+ version: 0.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement