actionview-link_to_blank 1.0.1 → 1.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: 9bf7288da5cbb9428858a0bd6edde7903fbc0154
4
- data.tar.gz: e8af89b397540ac364febb69b0fa733b328f8f20
3
+ metadata.gz: d94df4b22bc97e22f3f7bf4481a8a6da7f46b74e
4
+ data.tar.gz: db5845fcd712e90a911633b6aed88698a80b89c3
5
5
  SHA512:
6
- metadata.gz: 4cafd2698daceae50f342853a21197e119fff68e6ea7fd0363e6692dd2ba9b9a2d710bcabc1e2f1c0b28f90b8abf7dcc90474c8d787155930e2a3bd9ffe5f3f0
7
- data.tar.gz: 4d37cabe7896216ef8dda6a66dab24d1a213f0d0a93b1708871a2b352db2676452fce2d8948b20277bed18dcedd486535318c5768888dc7f9567c033bf6cf6ea
6
+ metadata.gz: d98dcb095120c4a4425b6a390143cb8f2273673105f708bb1a676623a68cd156485a32b6c8dd9f79e9f960b42e27236f20d8815a195508cba2c682be1f244412
7
+ data.tar.gz: 16d233161d4c60b986303c855253be0f92458eb9da6afce71043572d1a94c7dcb5023bb38f64a1dcc361b185b92558d2c32f8cdc95ff7bd1ca166aa864113a9e
data/.travis.yml CHANGED
@@ -3,12 +3,11 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  gemfile:
6
- - gemfiles/rails3_2.gemfile
7
- - gemfiles/rails4_0.gemfile
6
+ - gemfiles/rails_3_2.gemfile
7
+ - gemfiles/rails_3_2_stable.gemfile
8
+ - gemfiles/rails_4_0.gemfile
9
+ - gemfiles/rails_4_0_stable.gemfile
8
10
  - gemfiles/rails_master.gemfile
9
11
  branches:
10
12
  only:
11
13
  - master
12
- matrix:
13
- allow_failures:
14
- - gemfile: gemfiles/rails_master.gemfile
data/Appraisals CHANGED
@@ -1,17 +1,26 @@
1
- appraise "rails3_2" do
1
+ appraise "rails_3_2" do
2
2
  version = '~> 3.2'
3
3
  gem 'actionpack', version
4
4
  gem 'activesupport', version
5
5
  end
6
6
 
7
- appraise "rails4_0" do
7
+ appraise "rails_4_0" do
8
8
  version = '~> 4.0.0.beta'
9
9
  gem 'actionpack', version
10
10
  gem 'activesupport', version
11
11
  end
12
12
 
13
13
  appraise "rails_master" do
14
- gem 'rails', github: 'rails'
15
- #gem 'actionpack'
16
- #gem 'activesupport'
14
+ gem 'actionpack', github: 'rails/rails', branch: 'master'
15
+ gem 'activesupport', github: 'rails/rails', branch: 'master'
16
+ end
17
+
18
+ appraise "rails_3_2_stable" do
19
+ gem 'actionpack', github: 'rails/rails', branch: '3-2-stable'
20
+ gem 'activesupport', github: 'rails/rails', branch: '3-2-stable'
21
+ end
22
+
23
+ appraise "rails_4_0_stable" do
24
+ gem 'actionpack', github: 'rails/rails', branch: '4-0-stable'
25
+ gem 'activesupport', github: 'rails/rails', branch: '4-0-stable'
17
26
  end
data/Gemfile CHANGED
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in actionview-link_to_blank.gemspec
4
4
  gemspec
5
+ gem 'coveralls', require: false
6
+ gem 'pry'
7
+ gem 'appraisal', github: 'thoughtbot/appraisal'
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # ActionView::LinkToBlank
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/actionview-link_to_blank.png)](http://badge.fury.io/rb/actionview-link_to_blank)
3
4
  [![Build Status](https://api.travis-ci.org/sanemat/actionview-link_to_blank.png?branch=master)](https://travis-ci.org/sanemat/actionview-link_to_blank)
5
+ [![Code Climate](https://codeclimate.com/github/sanemat/actionview-link_to_blank.png)](https://codeclimate.com/github/sanemat/actionview-link_to_blank)
6
+ [![Coverage Status](https://coveralls.io/repos/sanemat/actionview-link_to_blank/badge.png?branch=master)](https://coveralls.io/r/sanemat/actionview-link_to_blank)
7
+ [![Dependency Status](https://gemnasium.com/sanemat/actionview-link_to_blank.png)](https://gemnasium.com/sanemat/actionview-link_to_blank)
4
8
 
5
9
  Add helper method, link_to_blank, equal to link_to with target _blank
6
10
  Add helper method, link_to_blank_if, link_to_blank_unless, link_to_blank_unless_current.
@@ -21,8 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency 'minitest'
24
- spec.add_development_dependency 'pry'
25
- spec.add_development_dependency 'appraisal'
26
24
 
27
25
  spec.add_dependency 'actionpack'
28
26
  spec.add_dependency 'activesupport'
@@ -2,7 +2,10 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "coveralls", :require=>false
6
+ gem "pry"
7
+ gem "appraisal", :github=>"thoughtbot/appraisal"
5
8
  gem "actionpack", "~> 3.2"
6
9
  gem "activesupport", "~> 3.2"
7
10
 
8
- gemspec :path=>"../"
11
+ gemspec :path=>".././"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", :require=>false
6
+ gem "pry"
7
+ gem "appraisal", :github=>"thoughtbot/appraisal"
8
+ gem "actionpack", :github=>"rails/rails", :branch=>"3-2-stable"
9
+ gem "activesupport", :github=>"rails/rails", :branch=>"3-2-stable"
10
+
11
+ gemspec :path=>".././"
@@ -2,7 +2,10 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "coveralls", :require=>false
6
+ gem "pry"
7
+ gem "appraisal", :github=>"thoughtbot/appraisal"
5
8
  gem "actionpack", "~> 4.0.0.beta"
6
9
  gem "activesupport", "~> 4.0.0.beta"
7
10
 
8
- gemspec :path=>"../"
11
+ gemspec :path=>".././"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", :require=>false
6
+ gem "pry"
7
+ gem "appraisal", :github=>"thoughtbot/appraisal"
8
+ gem "actionpack", :github=>"rails/rails", :branch=>"4-0-stable"
9
+ gem "activesupport", :github=>"rails/rails", :branch=>"4-0-stable"
10
+
11
+ gemspec :path=>".././"
@@ -2,6 +2,10 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", :github=>"rails"
5
+ gem "coveralls", :require=>false
6
+ gem "pry"
7
+ gem "appraisal", :github=>"thoughtbot/appraisal"
8
+ gem "actionpack", :github=>"rails/rails", :branch=>"master"
9
+ gem "activesupport", :github=>"rails/rails", :branch=>"master"
6
10
 
7
- gemspec :path=>"../"
11
+ gemspec :path=>".././"
@@ -1,5 +1,5 @@
1
1
  module ActionView
2
2
  module LinkToBlank
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -1,4 +1,7 @@
1
1
  #coding: utf-8
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+
2
5
  require 'minitest/autorun'
3
6
  require 'active_support/concern'
4
7
  require 'active_support/core_ext'
@@ -128,6 +131,7 @@ class TestActionViewLinkToBlank < MiniTest::Unit::TestCase
128
131
 
129
132
  def test_link_tag_with_deprecated_confirm
130
133
  skip('Not deprecate in Rails3.2') if ActionPack::VERSION::MAJOR == 3
134
+ skip('Remove in Rails4.1') if ActionPack::VERSION::MAJOR == 4 && ActionPack::VERSION::MINOR >= 1
131
135
  assert_deprecated ":confirm option is deprecated and will be removed from Rails 4.1. Use 'data: { confirm: \'Text\' }' instead" do
132
136
  assert_dom_equal(
133
137
  %{<a href="http://www.example.com" data-confirm="Are you sure?" target="_blank">Hello</a>},
@@ -213,6 +217,7 @@ class TestActionViewLinkToBlank < MiniTest::Unit::TestCase
213
217
 
214
218
  def test_link_tag_using_post_javascript_and_with_deprecated_confirm
215
219
  skip('Not deprecate in Rails3.2') if ActionPack::VERSION::MAJOR == 3
220
+ skip('Remove in Rails4.1') if ActionPack::VERSION::MAJOR == 4 && ActionPack::VERSION::MINOR >= 1
216
221
  assert_deprecated ":confirm option is deprecated and will be removed from Rails 4.1. Use 'data: { confirm: \'Text\' }' instead" do
217
222
  assert_dom_equal(
218
223
  %{<a href="http://www.example.com" data-method="post" rel="nofollow" data-confirm="Are you serious?" target="_blank">Hello</a>},
@@ -230,6 +235,7 @@ class TestActionViewLinkToBlank < MiniTest::Unit::TestCase
230
235
 
231
236
  def test_link_tag_using_delete_javascript_and_href_and_with_deprecated_confirm
232
237
  skip('Not deprecate in Rails3.2') if ActionPack::VERSION::MAJOR == 3
238
+ skip('Remove in Rails4.1') if ActionPack::VERSION::MAJOR == 4 && ActionPack::VERSION::MINOR >= 1
233
239
  assert_deprecated ":confirm option is deprecated and will be removed from Rails 4.1. Use 'data: { confirm: \'Text\' }' instead" do
234
240
  assert_dom_equal(
235
241
  %{<a href="\#" rel="nofollow" data-confirm="Are you serious?" data-method="delete" target="_blank">Destroy</a>},
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview-link_to_blank
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanemat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-19 00:00:00.000000000 Z
11
+ date: 2013-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,34 +52,6 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
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: appraisal
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: actionpack
85
57
  requirement: !ruby/object:Gem::Requirement
@@ -123,8 +95,10 @@ files:
123
95
  - README.md
124
96
  - Rakefile
125
97
  - actionview-link_to_blank.gemspec
126
- - gemfiles/rails3_2.gemfile
127
- - gemfiles/rails4_0.gemfile
98
+ - gemfiles/rails_3_2.gemfile
99
+ - gemfiles/rails_3_2_stable.gemfile
100
+ - gemfiles/rails_4_0.gemfile
101
+ - gemfiles/rails_4_0_stable.gemfile
128
102
  - gemfiles/rails_master.gemfile
129
103
  - lib/action_view/link_to_blank/link_to_blank.rb
130
104
  - lib/action_view/link_to_blank/railtie.rb
@@ -151,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
125
  version: '0'
152
126
  requirements: []
153
127
  rubyforge_project:
154
- rubygems_version: 2.0.0
128
+ rubygems_version: 2.0.2
155
129
  signing_key:
156
130
  specification_version: 4
157
131
  summary: Alias link_to with target _blank