actionview-link_to_block 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: fe7c17d491790087ddd9dd7457f7b956ea5dcddd
4
- data.tar.gz: b1a78114e4336ff166a8ca8e41c8d48e7acedb70
3
+ metadata.gz: 78513d3b247df49b25a51365953d46b6976d554f
4
+ data.tar.gz: 7ccc189debb210808b8fe0cffef4ee69acec2389
5
5
  SHA512:
6
- metadata.gz: d740274133668ae46ffd1ee7c6f87a4b1a4f940bb8b066f8d848659250a0ce25efabf2ed431fd3fa74876a8628b13f39ebd0eddc8416fe3c137d96eacecc033f
7
- data.tar.gz: 3c1128d801bd4f02ee64b7ee81c08c66d82f66aecc6c890c5ce9140d17fc11ce46329f0a5172d7d87b3018667eccd1f6398c61bb2d6b1b03858e13b7a77b5f15
6
+ metadata.gz: 35b48cac53b2fc2c5f81947b9db468c34a240c4fefbbe367390865449c28c36e14df12f906852b1f188cc77172c6de0a848b6716f6027a115cd084f8028a7199
7
+ data.tar.gz: 0467a62c5db856a0865dc9bd24db1c8142cee1cb78ce9351efd69095684e7582f2309720e8e9f4ab250bea15a5914d131020c0fae2a89f82fa4fd42aaa5e4efb
@@ -1,15 +1,26 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
- - 1.9.3
4
4
  - 2.0.0
5
- - 2.1.1
5
+ - 2.1.8
6
+ - 2.2.4
7
+ - 2.3.0
6
8
  before_install:
7
9
  - gem update bundler
8
10
  gemfile:
9
11
  - gemfiles/actionpack_3_2.gemfile
10
12
  - gemfiles/actionpack_4_0.gemfile
11
13
  - gemfiles/actionview_4_1.gemfile
14
+ - gemfiles/actionview_4_2.gemfile
15
+ - gemfiles/actionview_5_0.gemfile
12
16
  - gemfiles/actionview_master.gemfile
13
- branches:
14
- only:
15
- - master
17
+ matrix:
18
+ exclude:
19
+ - rvm: 2.0.0
20
+ gemfile: gemfiles/actionview_5_0.gemfile
21
+ - rvm: 2.0.0
22
+ gemfile: gemfiles/actionview_master.gemfile
23
+ - rvm: 2.1.8
24
+ gemfile: gemfiles/actionview_5_0.gemfile
25
+ - rvm: 2.1.8
26
+ gemfile: gemfiles/actionview_master.gemfile
data/Appraisals CHANGED
@@ -1,6 +1,21 @@
1
1
  appraise 'actionview_master' do
2
2
  gem 'actionview', github: 'rails', branch: 'master'
3
3
  gem 'actionpack', github: 'rails', branch: 'master'
4
+ gem 'rails-dom-testing'
5
+ end
6
+
7
+ appraise 'actionview_5_0' do
8
+ version = '~> 5.0.0.beta'
9
+ gem 'actionview', version
10
+ gem 'actionpack', version
11
+ gem 'rails-dom-testing'
12
+ end
13
+
14
+ appraise 'actionview_4_2' do
15
+ version = '~> 4.2.0'
16
+ gem 'actionview', version
17
+ gem 'actionpack', version
18
+ gem 'rails-dom-testing'
4
19
  end
5
20
 
6
21
  appraise 'actionview_4_1' do
@@ -14,5 +29,7 @@ appraise 'actionpack_4_0' do
14
29
  end
15
30
 
16
31
  appraise 'actionpack_3_2' do
17
- gem 'actionpack', '>= 3.0', '< 4.0'
32
+ gem 'actionpack', '>= 3.2', '< 4.0'
33
+ gem 'minitest', '~> 4.7.5'
34
+ gem 'test-unit', '~> 3.0'
18
35
  end
data/README.md CHANGED
@@ -53,11 +53,21 @@ Or install it yourself as:
53
53
  `actionview` extracts from `actionpack` on rails4.1.
54
54
  You can see `Appraisals` file and `/gemfiles` directory.
55
55
 
56
- actionview v4.2(rails v4.2)
56
+ actionview master(rails master)
57
57
 
58
58
  gem 'actionview', github: 'rails', branch: 'master'
59
59
  gem 'actionpack', github: 'rails', branch: 'master'
60
60
 
61
+ actionview v5.0(rails v5.0)
62
+
63
+ gem 'actionview', '~> 5.0.0.beta'
64
+ gem 'actionpack', '~> 5.0.0.beta'
65
+
66
+ actionview v4.2(rails v4.2)
67
+
68
+ gem 'actionview', '~> 4.2.0'
69
+ gem 'actionpack', '~> 4.2.0'
70
+
61
71
  actionview v4.1(rails v4.1)
62
72
 
63
73
  gem 'actionpack', '~> 4.1.0'
@@ -68,11 +78,11 @@ actionpack v4.0(rails v4.0)
68
78
 
69
79
  actionpack v3.2(rails v3.2)
70
80
 
71
- gem 'actionpack', '~> 3.0'
81
+ gem 'actionpack', '~> 3.2.0'
72
82
 
73
83
  ## Testing
74
84
 
75
- Test against actionpack v3.2, v4.0, v4.1 and v4.2, run below:
85
+ Test against actionpack v3.2, v4.0, v4.1, v4.2, v5.0, master run below:
76
86
 
77
87
  $ bundle
78
88
  $ bundle exec appraisal install
@@ -83,7 +93,7 @@ Test for specific version:
83
93
  $ bundle exec appraisal install
84
94
  $ bundle exec appraisal actionpack_4_0 rake
85
95
 
86
- Prepare actionpack_3_2(gem), actionpack_4_0(gem), actionview_4_1(gem), actionview_master(github)
96
+ Prepare actionpack_3_2(gem), actionpack_4_0(gem), actionview_4_1(gem), actionview_4_2(gem), actionview_5_0(gem), actionview_master(github)
87
97
 
88
98
  ## Contributing
89
99
 
@@ -0,0 +1,5 @@
1
+ # ChangeLog
2
+
3
+ ## 1.0.2
4
+
5
+ * Support rails 5
@@ -5,6 +5,8 @@ source "https://rubygems.org"
5
5
  gem "coveralls", :require=>false
6
6
  gem "pry"
7
7
  gem "appraisal", :github=>"thoughtbot/appraisal"
8
- gem "actionpack", ">= 3.0", "< 4.0"
8
+ gem "actionpack", ">= 3.2", "< 4.0"
9
+ gem "minitest", "~> 4.7.5"
10
+ gem "test-unit", "~> 3.0"
9
11
 
10
12
  gemspec :path=>".././"
@@ -0,0 +1,12 @@
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 "actionview", "~> 4.2.0"
9
+ gem "actionpack", "~> 4.2.0"
10
+ gem "rails-dom-testing"
11
+
12
+ gemspec :path=>".././"
@@ -0,0 +1,12 @@
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 "actionview", "~> 5.0.0.beta"
9
+ gem "actionpack", "~> 5.0.0.beta"
10
+ gem "rails-dom-testing"
11
+
12
+ gemspec :path=>".././"
@@ -7,5 +7,6 @@ gem "pry"
7
7
  gem "appraisal", :github=>"thoughtbot/appraisal"
8
8
  gem "actionview", :github=>"rails", :branch=>"master"
9
9
  gem "actionpack", :github=>"rails", :branch=>"master"
10
+ gem "rails-dom-testing"
10
11
 
11
12
  gemspec :path=>".././"
@@ -1,5 +1,5 @@
1
1
  module ActionView
2
2
  module LinkToBlock
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -3,13 +3,15 @@ require 'coveralls'
3
3
  Coveralls.wear!
4
4
 
5
5
  require 'active_support/version'
6
- autorun_path = ActiveSupport::VERSION::STRING.start_with?('3')\
6
+ autorun_path = Gem::Version.new(ActiveSupport::VERSION::STRING) < Gem::Version.new("4.0")\
7
7
  ? 'minitest/autorun'
8
8
  : 'active_support/testing/autorun'
9
9
  require autorun_path
10
+ require 'action_controller'
10
11
  require 'action_view'
11
12
  require 'action_view/link_to_block/link_to_block'
12
13
  require 'action_dispatch'
14
+ require 'rails-dom-testing' if Gem::Version.new(ActionPack::VERSION::STRING) >= Gem::Version.new("4.2")
13
15
 
14
16
  # copy from action_view/test/abstract_unit.rb
15
17
  module RenderERBUtils
@@ -47,7 +49,11 @@ class LinkToBlockTest < ActiveSupport::TestCase
47
49
  include ActionView::Helpers::UrlHelper
48
50
  include routes.url_helpers
49
51
 
50
- include ActionDispatch::Assertions::DomAssertions
52
+ dom_assertion = Gem::Version.new(ActionPack::VERSION::STRING) < Gem::Version.new("4.2")\
53
+ ? ActionDispatch::Assertions::DomAssertions
54
+ : Rails::Dom::Testing::Assertions::DomAssertions
55
+
56
+ include dom_assertion
51
57
  include ActionView::Context
52
58
  include RenderERBUtils
53
59
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview-link_to_block
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: 2014-04-10 00:00:00.000000000 Z
11
+ date: 2016-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,9 +53,12 @@ files:
53
53
  - README.md
54
54
  - Rakefile
55
55
  - actionview-link_to_block.gemspec
56
+ - changelog.md
56
57
  - gemfiles/actionpack_3_2.gemfile
57
58
  - gemfiles/actionpack_4_0.gemfile
58
59
  - gemfiles/actionview_4_1.gemfile
60
+ - gemfiles/actionview_4_2.gemfile
61
+ - gemfiles/actionview_5_0.gemfile
59
62
  - gemfiles/actionview_master.gemfile
60
63
  - lib/action_view/link_to_block/link_to_block.rb
61
64
  - lib/action_view/link_to_block/railtie.rb
@@ -82,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
85
  version: '0'
83
86
  requirements: []
84
87
  rubyforge_project:
85
- rubygems_version: 2.2.2
88
+ rubygems_version: 2.5.1
86
89
  signing_key:
87
90
  specification_version: 4
88
91
  summary: Link to with block