easy_table 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/README.md +2 -0
- data/easy_table.gemspec +4 -4
- data/lib/easy_table/table_builder.rb +2 -2
- data/lib/easy_table/version.rb +1 -1
- data/test/test_helper.rb +3 -4
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8c7d95f0d36759053371997f58fb6f57ab1821d
|
4
|
+
data.tar.gz: e5b900f71a1ff6cdba4b61984a49ce9756b2e5b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ee6d457f358809662d58dd911735a4ad517f36753f58eb617ba3d8ed79b0afe748ed74659aa8742c13c5af6f75e74856ca2c16013b3a9ad07466cca191c6cb0
|
7
|
+
data.tar.gz: 71a715c3a204e3e4f95b605b969090c02ac9e2c486aaa47fb2f429a7cf3e740c8696a1f5672de3a05490c9f803a9d2dc17b9b28279f60bf26a4f47a4d2a78232
|
data/Gemfile
CHANGED
@@ -3,9 +3,9 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in easy_table.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem 'railties', '~>
|
7
|
-
gem 'activemodel', '~>
|
8
|
-
gem 'actionpack', '~>
|
6
|
+
gem 'railties', '~> 4.0'
|
7
|
+
gem 'activemodel', '~> 4.0'
|
8
|
+
gem 'actionpack', '~> 4.0'
|
9
9
|
|
10
10
|
gem 'mocha'
|
11
11
|
gem 'shoulda'
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# EasyTable
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/cthulhu666/easy_table.png?branch=master)](https://travis-ci.org/cthulhu666/easy_table)
|
4
|
+
|
3
5
|
EasyTable provides a helper for building HTML tables in Rails applications.
|
4
6
|
|
5
7
|
It is inspired by simple_form gem: https://github.com/plataformatec/simple_form
|
data/easy_table.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/easy_table/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Jakub Głuszecki"]
|
6
6
|
gem.email = ["jakub.gluszecki@gmail.com"]
|
7
|
-
gem.description = "HTML tables made easy (in Rails
|
8
|
-
gem.summary = "HTML tables made easy (in Rails
|
7
|
+
gem.description = "HTML tables made easy (in Rails 4)"
|
8
|
+
gem.summary = "HTML tables made easy (in Rails 4)"
|
9
9
|
gem.homepage = ""
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = EasyTable::VERSION
|
17
17
|
|
18
|
-
gem.add_dependency 'activemodel', '~>
|
19
|
-
gem.add_dependency 'actionpack', '~>
|
18
|
+
gem.add_dependency 'activemodel', '~> 4.0'
|
19
|
+
gem.add_dependency 'actionpack', '~> 4.0'
|
20
20
|
gem.add_dependency 'rubytree', '~> 0.8.3'
|
21
21
|
end
|
@@ -70,8 +70,8 @@ module EasyTable
|
|
70
70
|
h
|
71
71
|
end
|
72
72
|
|
73
|
-
id = "#{record.class.model_name.parameterize}-#{record.to_param}" if record.class.respond_to?(:model_name)
|
74
|
-
id ||= "#{record.class.name.parameterize}-#{record.id}" if record.respond_to?(:id)
|
73
|
+
id = "#{record.class.model_name.to_s.parameterize}-#{record.to_param}" if record.class.respond_to?(:model_name)
|
74
|
+
id ||= "#{record.class.name.to_s.parameterize}-#{record.id}" if record.respond_to?(:id)
|
75
75
|
|
76
76
|
id.present? ?
|
77
77
|
tr_opts.merge({id: id}) : tr_opts
|
data/lib/easy_table/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -2,18 +2,17 @@ require 'rubygems'
|
|
2
2
|
require 'bundler/setup'
|
3
3
|
|
4
4
|
require 'test/unit'
|
5
|
-
require 'mocha'
|
6
|
-
require 'shoulda-context'
|
5
|
+
require 'mocha/setup'
|
7
6
|
|
8
7
|
require 'active_model'
|
9
8
|
require 'action_controller'
|
10
9
|
require 'action_view'
|
11
10
|
require 'action_view/template'
|
12
11
|
|
13
|
-
# Rails 3.0.4 is missing this "deprecation" require.
|
14
|
-
require 'active_support/core_ext/module/deprecation'
|
15
12
|
require 'action_view/test_case'
|
16
13
|
|
14
|
+
require 'shoulda-context'
|
15
|
+
|
17
16
|
module Rails
|
18
17
|
def self.env
|
19
18
|
ActiveSupport::StringInquirer.new("test")
|
metadata
CHANGED
@@ -1,65 +1,65 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Głuszecki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.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: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.0'
|
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: '
|
40
|
+
version: '4.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubytree
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.8.3
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.8.3
|
55
|
-
description: HTML tables made easy (in Rails
|
55
|
+
description: HTML tables made easy (in Rails 4)
|
56
56
|
email:
|
57
57
|
- jakub.gluszecki@gmail.com
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
63
63
|
- Gemfile
|
64
64
|
- LICENSE
|
65
65
|
- README.md
|
@@ -87,20 +87,20 @@ require_paths:
|
|
87
87
|
- lib
|
88
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.2.1
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
|
-
summary: HTML tables made easy (in Rails
|
103
|
+
summary: HTML tables made easy (in Rails 4)
|
104
104
|
test_files:
|
105
105
|
- test/action_view_extensions/table_helper_test.rb
|
106
106
|
- test/components/spans_test.rb
|