arbre 1.2.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +4 -4
  4. data/docs/Gemfile +1 -0
  5. data/lib/arbre/component.rb +1 -0
  6. data/lib/arbre/context.rb +3 -1
  7. data/lib/arbre/element/builder_methods.rb +1 -0
  8. data/lib/arbre/element/proxy.rb +1 -0
  9. data/lib/arbre/element.rb +4 -11
  10. data/lib/arbre/element_collection.rb +1 -0
  11. data/lib/arbre/html/attributes.rb +1 -0
  12. data/lib/arbre/html/class_list.rb +1 -0
  13. data/lib/arbre/html/document.rb +1 -0
  14. data/lib/arbre/html/html5_elements.rb +1 -0
  15. data/lib/arbre/html/tag.rb +7 -6
  16. data/lib/arbre/html/text_node.rb +1 -0
  17. data/lib/arbre/rails/forms.rb +2 -1
  18. data/lib/arbre/rails/rendering.rb +1 -0
  19. data/lib/arbre/rails/template_handler.rb +0 -17
  20. data/lib/arbre/rails.rb +1 -0
  21. data/lib/arbre/version.rb +2 -1
  22. data/lib/arbre.rb +1 -0
  23. metadata +38 -50
  24. data/.gitignore +0 -10
  25. data/.rubocop.yml +0 -15
  26. data/.travis.yml +0 -16
  27. data/Gemfile +0 -25
  28. data/Gemfile.lock +0 -224
  29. data/Rakefile +0 -21
  30. data/arbre.gemspec +0 -24
  31. data/spec/arbre/integration/html_spec.rb +0 -249
  32. data/spec/arbre/unit/component_spec.rb +0 -44
  33. data/spec/arbre/unit/context_spec.rb +0 -35
  34. data/spec/arbre/unit/element_finder_methods_spec.rb +0 -116
  35. data/spec/arbre/unit/element_spec.rb +0 -271
  36. data/spec/arbre/unit/html/class_list_spec.rb +0 -16
  37. data/spec/arbre/unit/html/tag_attributes_spec.rb +0 -62
  38. data/spec/arbre/unit/html/tag_spec.rb +0 -115
  39. data/spec/arbre/unit/html/text_node_spec.rb +0 -5
  40. data/spec/changelog_spec.rb +0 -27
  41. data/spec/rails/integration/forms_spec.rb +0 -105
  42. data/spec/rails/integration/rendering_spec.rb +0 -114
  43. data/spec/rails/rails_spec_helper.rb +0 -42
  44. data/spec/rails/stub_app/config/database.yml +0 -3
  45. data/spec/rails/stub_app/config/routes.rb +0 -3
  46. data/spec/rails/stub_app/db/schema.rb +0 -3
  47. data/spec/rails/stub_app/log/.gitignore +0 -1
  48. data/spec/rails/stub_app/public/favicon.ico +0 -0
  49. data/spec/rails/support/mock_person.rb +0 -15
  50. data/spec/rails/templates/arbre/_partial.arb +0 -1
  51. data/spec/rails/templates/arbre/_partial_with_assignment.arb +0 -1
  52. data/spec/rails/templates/arbre/empty.arb +0 -0
  53. data/spec/rails/templates/arbre/page_with_arb_partial_and_assignment.arb +0 -3
  54. data/spec/rails/templates/arbre/page_with_assignment.arb +0 -1
  55. data/spec/rails/templates/arbre/page_with_erb_partial.arb +0 -3
  56. data/spec/rails/templates/arbre/page_with_helpers.arb +0 -7
  57. data/spec/rails/templates/arbre/page_with_partial.arb +0 -3
  58. data/spec/rails/templates/arbre/simple_page.arb +0 -8
  59. data/spec/rails/templates/erb/_partial.erb +0 -1
  60. data/spec/spec_helper.rb +0 -7
  61. data/spec/support/bundle.rb +0 -4
  62. data/tasks/lint.rake +0 -69
  63. data/tasks/release.rake +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9702ea598ff503038115048f407b05a69f1cf441cb061b33ca2586197b6fa6a9
4
- data.tar.gz: 3c5ce4c57dd03b32fe470aad04075d1daa9e7f195fa2bae26e562bc85bd1767b
3
+ metadata.gz: 167ce642a1b64eb122a2d02ce8a1d738a0c480303769ad7a896df8afbfa2f197
4
+ data.tar.gz: 0a4a5d4b7e788155b66eeca1dfdae4ed138403449cda43d915e76fd52bdbdb84
5
5
  SHA512:
6
- metadata.gz: fed97f8796827e8d807b8878cee2a55d32c05c1d8d730b49b77ced63fd94ad8aae8812dd8f79f2ee7981ea7a732b60de5bc70b5711d3c3b25ccfc0575eb8ee5f
7
- data.tar.gz: fdc92e7b702113922416fe6b3ac0c4d669d34e8068e176aa87a47d65025bb379c462fad30b17b6a8e1d36e5b76d9434916056b34139611ccdf31ba457651b27f
6
+ metadata.gz: 31df82dc237aeb220e55fa3ae4bc1fb6d39cb7189cffe36ad2f4839a01ead4336cd1f556a7005ebfb608d258988407db479d9cef855c68016f0b646279e8a2a6
7
+ data.tar.gz: 53b572e7001fccc30d284865292613b3f33a35e73f7c4f95a56db7c6c4e96b42721c73d87130b7fc1c402b04acdd2562106efec0c8d7b60ef1ee8bd7bd5034c5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  ## Master (unreleased)
4
4
 
5
+ ## 1.5.0 [☰](https://github.com/activeadmin/arbre/compare/v1.4.0...v1.5.0)
6
+
7
+ * Avoid mutating string literals. [#292][] by [@tomgilligan][]
8
+ * Allow activesupport 7.0. [#314][] by [@tagliala][]
9
+ * Drop ruby 2.5 support. [#315][] by [@alejandroperea][]
10
+ * Fix keyword delegation in form component. [#318][] by [@deivid-rodriguez][]
11
+
12
+ ## 1.4.0 [☰](https://github.com/activeadmin/arbre/compare/v1.3.0...v1.4.0)
13
+
14
+ * Allow activesupport 6.1 prereleases. [#242][] by [@deivid-rodriguez][]
15
+
16
+ ## 1.3.0 [☰](https://github.com/activeadmin/arbre/compare/v1.2.1...v1.3.0)
17
+
18
+ * Drop ruby 2.3 support. [#152][] by [@deivid-rodriguez][]
19
+ * Drop ruby 2.4 support. [#177][] by [@deivid-rodriguez][]
20
+ * Fix ruby 2.7 kwargs warnings. [#202][] and [#205][] by [@deivid-rodriguez][]
21
+
22
+ ## 1.2.1 [☰](https://github.com/activeadmin/arbre/compare/v1.2.0...v1.2.1)
23
+
24
+ * Revert [#64][] to fix several regressions, at the cost of reintroducing [#46][]. [#121][] by [@deivid-rodriguez][]
25
+
5
26
  ## 1.2.0 [☰](https://github.com/activeadmin/arbre/compare/v1.2.0.rc1...v1.2.0)
6
27
 
7
28
  _No changes_.
@@ -72,15 +93,27 @@ Initial release and extraction from Active Admin
72
93
  [#36]: https://github.com/activeadmin/arbre/issues/36
73
94
  [#39]: https://github.com/activeadmin/arbre/issues/39
74
95
  [#40]: https://github.com/activeadmin/arbre/issues/40
96
+ [#46]: https://github.com/activeadmin/arbre/issues/46
75
97
  [#49]: https://github.com/activeadmin/arbre/issues/49
76
98
  [#59]: https://github.com/activeadmin/arbre/issues/59
77
99
  [#64]: https://github.com/activeadmin/arbre/pull/64
78
100
  [#78]: https://github.com/activeadmin/arbre/pull/78
79
101
  [#110]: https://github.com/activeadmin/arbre/pull/110
102
+ [#121]: https://github.com/activeadmin/arbre/pull/121
103
+ [#152]: https://github.com/activeadmin/arbre/pull/152
104
+ [#177]: https://github.com/activeadmin/arbre/pull/177
105
+ [#202]: https://github.com/activeadmin/arbre/pull/202
106
+ [#205]: https://github.com/activeadmin/arbre/pull/205
107
+ [#242]: https://github.com/activeadmin/arbre/pull/242
108
+ [#292]: https://github.com/activeadmin/arbre/pull/292
109
+ [#314]: https://github.com/activeadmin/arbre/pull/314
110
+ [#315]: https://github.com/activeadmin/arbre/pull/315
111
+ [#318]: https://github.com/activeadmin/arbre/pull/318
80
112
 
81
113
  [@aramvisser]: https://github.com/aramvisser
82
114
  [@LTe]: https://github.com/LTe
83
115
  [@OscarBarrett]: https://github.com/OscarBarrett
116
+ [@alejandroperea]: https://github.com/alejandroperea
84
117
  [@alexesDev]: https://github.com/alexesDev
85
118
  [@deivid-rodriguez]: https://github.com/deivid-rodriguez
86
119
  [@dlackty]: https://github.com/dlackty
@@ -92,3 +125,5 @@ Initial release and extraction from Active Admin
92
125
  [@seanlinsley]: https://github.com/seanlinsley
93
126
  [@timoschilling]: https://github.com/timoschilling
94
127
  [@varyonic]: https://github.com/varyonic
128
+ [@tagliala]: https://github.com/tagliala
129
+ [@tomgilligan]: https://github.com/tomgilligan
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [Arbre][docs] makes it easy to generate HTML directly in Ruby. This gem was extracted from [Active Admin](https://github.com/activeadmin/active_admin).
4
4
 
5
5
  [![Version ][rubygems_badge]][rubygems]
6
- [![Travis CI ][travis_badge]][travis]
6
+ [![Github Actions ][actions_badge]][actions]
7
7
  [![Tidelift ][tidelift_badge]][tidelift]
8
8
 
9
9
  ## Goals
@@ -33,10 +33,10 @@ Tidelift will coordinate the fix and disclosure.
33
33
 
34
34
  [rubygems_badge]: http://img.shields.io/gem/v/arbre.svg
35
35
  [rubygems]: https://rubygems.org/gems/arbre
36
- [travis_badge]: http://img.shields.io/travis/activeadmin/arbre/master.svg
37
- [travis]: https://travis-ci.org/activeadmin/arbre
36
+ [actions_badge]: https://github.com/activeadmin/arbre/workflows/ci/badge.svg
37
+ [actions]: https://github.com/activeadmin/arbre/actions
38
38
  [tidelift_badge]: https://tidelift.com/badges/github/activeadmin/arbre
39
- [tidelift]: https://tidelift.com/subscription/pkg/rubygems-arbre?utm_source=rubygems-arbre&utm_medium=readme
39
+ [tidelift]: https://tidelift.com/subscription/pkg/rubygems-arbre?utm_source=rubygems-arbre&utm_medium=referral&utm_campaign=readme
40
40
 
41
41
  [docs]: https://activeadmin.github.io/arbre/
42
42
  [stackoverflow]: http://stackoverflow.com/questions/tagged/arbre
data/docs/Gemfile CHANGED
@@ -1,2 +1,3 @@
1
+ # frozen_string_literal: true
1
2
  gem 'github-pages'
2
3
  gem 'jekyll-redirect-from'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  class Component < Arbre::HTML::Div
3
4
 
data/lib/arbre/context.rb CHANGED
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  require 'arbre/element'
3
+ require 'ruby2_keywords'
2
4
 
3
5
  module Arbre
4
6
 
@@ -74,7 +76,7 @@ module Arbre
74
76
  # Webservers treat Arbre::Context as a string. We override
75
77
  # method_missing to delegate to the string representation
76
78
  # of the html.
77
- def method_missing(method, *args, &block)
79
+ ruby2_keywords def method_missing(method, *args, &block)
78
80
  if cached_html.respond_to? method
79
81
  cached_html.send method, *args, &block
80
82
  else
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  class Element
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  class Element
3
4
  class Proxy < BasicObject
data/lib/arbre/element.rb CHANGED
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
1
2
  require 'arbre/element/builder_methods'
2
3
  require 'arbre/element/proxy'
3
4
  require 'arbre/element_collection'
5
+ require 'ruby2_keywords'
4
6
 
5
7
  module Arbre
6
8
 
@@ -172,26 +174,17 @@ module Arbre
172
174
  # 3. Call the method on the helper object
173
175
  # 4. Call super
174
176
  #
175
- def method_missing(name, *args, &block)
177
+ ruby2_keywords def method_missing(name, *args, &block)
176
178
  if current_arbre_element.respond_to?(name)
177
179
  current_arbre_element.send name, *args, &block
178
180
  elsif assigns && assigns.has_key?(name)
179
181
  assigns[name]
180
182
  elsif helpers.respond_to?(name)
181
- helper_capture(name, *args, &block)
183
+ helpers.send(name, *args, &block)
182
184
  else
183
185
  super
184
186
  end
185
187
  end
186
188
 
187
- # The helper might have a block that builds Arbre elements
188
- # which will be rendered (#to_s) inside ActionView::Base#capture.
189
- # We do not want such elements added to self, so we push a dummy
190
- # current_arbre_element.
191
- def helper_capture(name, *args, &block)
192
- s = ""
193
- within(Element.new) { s = helpers.send(name, *args, &block) }
194
- s.is_a?(Element) ? s.to_s : s
195
- end
196
189
  end
197
190
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
 
3
4
  # Stores a collection of Element objects
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module HTML
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'set'
2
3
 
3
4
  module Arbre
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module HTML
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module HTML
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'erb'
2
3
 
3
4
  module Arbre
@@ -119,19 +120,19 @@ module Arbre
119
120
 
120
121
  if no_child? || child_is_text?
121
122
  if self_closing_tag?
122
- html << spaces << open_tag.sub( />$/, '/>' )
123
+ html += spaces + open_tag.sub( />$/, '/>' )
123
124
  else
124
125
  # one line
125
- html << spaces << open_tag << child_content << close_tag
126
+ html += spaces + open_tag + child_content + close_tag
126
127
  end
127
128
  else
128
129
  # multiple lines
129
- html << spaces << open_tag << "\n"
130
- html << child_content # the child takes care of its own spaces
131
- html << spaces << close_tag
130
+ html += spaces + open_tag + "\n"
131
+ html += child_content # the child takes care of its own spaces
132
+ html += spaces + close_tag
132
133
  end
133
134
 
134
- html << "\n"
135
+ html += "\n"
135
136
 
136
137
  html
137
138
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'erb'
2
3
 
3
4
  module Arbre
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module Rails
3
4
  module Forms
@@ -30,7 +31,7 @@ module Arbre
30
31
  text_node form_builder.send(method, *args, &block)
31
32
  end
32
33
 
33
- def method_missing(method, *args, &block)
34
+ ruby2_keywords def method_missing(method, *args, &block)
34
35
  if form_builder && form_builder.respond_to?(method)
35
36
  proxy_call_to_form(method, *args, &block)
36
37
  else
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module Rails
3
4
  module Rendering
@@ -1,21 +1,4 @@
1
1
  # frozen_string_literal: true
2
-
3
- ActionView::Base.class_eval do
4
- def capture(*args)
5
- value = nil
6
- buffer = with_output_buffer { value = yield(*args) }
7
-
8
- # Override to handle Arbre elements inside helper blocks.
9
- # See https://github.com/rails/rails/issues/17661
10
- # and https://github.com/rails/rails/pull/18024#commitcomment-8975180
11
- value = value.to_s if value.is_a?(Arbre::Element)
12
-
13
- if (string = buffer.presence || value) && string.is_a?(String)
14
- ERB::Util.html_escape string
15
- end
16
- end
17
- end
18
-
19
2
  module Arbre
20
3
  module Rails
21
4
  class TemplateHandler
data/lib/arbre/rails.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'arbre/rails/template_handler'
2
3
  require 'arbre/rails/forms'
3
4
  require 'arbre/rails/rendering'
data/lib/arbre/version.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
- VERSION = "1.2.0"
3
+ VERSION = "1.5.0"
3
4
  end
data/lib/arbre.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'active_support/core_ext/string/output_safety'
2
3
  require 'active_support/hash_with_indifferent_access'
3
4
  require 'active_support/inflector'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbre
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-03 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7.1'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,23 +27,41 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 3.0.0
27
- description: An Object Oriented DOM Tree in Ruby
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7.1'
33
+ - !ruby/object:Gem::Dependency
34
+ name: ruby2_keywords
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 0.0.2
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '1.0'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 0.0.2
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '1.0'
53
+ description: Arbre makes it easy to generate HTML directly in Ruby
28
54
  email:
29
55
  - gregdbell@gmail.com
30
56
  executables: []
31
57
  extensions: []
32
- extra_rdoc_files: []
58
+ extra_rdoc_files:
59
+ - CHANGELOG.md
60
+ - README.md
33
61
  files:
34
- - ".gitignore"
35
- - ".rubocop.yml"
36
- - ".travis.yml"
37
62
  - CHANGELOG.md
38
- - Gemfile
39
- - Gemfile.lock
40
63
  - LICENSE
41
64
  - README.md
42
- - Rakefile
43
- - arbre.gemspec
44
65
  - docs/Gemfile
45
66
  - docs/_config.yml
46
67
  - docs/_includes/footer.html
@@ -69,44 +90,11 @@ files:
69
90
  - lib/arbre/rails/rendering.rb
70
91
  - lib/arbre/rails/template_handler.rb
71
92
  - lib/arbre/version.rb
72
- - spec/arbre/integration/html_spec.rb
73
- - spec/arbre/unit/component_spec.rb
74
- - spec/arbre/unit/context_spec.rb
75
- - spec/arbre/unit/element_finder_methods_spec.rb
76
- - spec/arbre/unit/element_spec.rb
77
- - spec/arbre/unit/html/class_list_spec.rb
78
- - spec/arbre/unit/html/tag_attributes_spec.rb
79
- - spec/arbre/unit/html/tag_spec.rb
80
- - spec/arbre/unit/html/text_node_spec.rb
81
- - spec/changelog_spec.rb
82
- - spec/rails/integration/forms_spec.rb
83
- - spec/rails/integration/rendering_spec.rb
84
- - spec/rails/rails_spec_helper.rb
85
- - spec/rails/stub_app/config/database.yml
86
- - spec/rails/stub_app/config/routes.rb
87
- - spec/rails/stub_app/db/schema.rb
88
- - spec/rails/stub_app/log/.gitignore
89
- - spec/rails/stub_app/public/favicon.ico
90
- - spec/rails/support/mock_person.rb
91
- - spec/rails/templates/arbre/_partial.arb
92
- - spec/rails/templates/arbre/_partial_with_assignment.arb
93
- - spec/rails/templates/arbre/empty.arb
94
- - spec/rails/templates/arbre/page_with_arb_partial_and_assignment.arb
95
- - spec/rails/templates/arbre/page_with_assignment.arb
96
- - spec/rails/templates/arbre/page_with_erb_partial.arb
97
- - spec/rails/templates/arbre/page_with_helpers.arb
98
- - spec/rails/templates/arbre/page_with_partial.arb
99
- - spec/rails/templates/arbre/simple_page.arb
100
- - spec/rails/templates/erb/_partial.erb
101
- - spec/spec_helper.rb
102
- - spec/support/bundle.rb
103
- - tasks/lint.rake
104
- - tasks/release.rake
105
- homepage: ''
93
+ homepage: https://github.com/activeadmin/arbre
106
94
  licenses:
107
95
  - MIT
108
96
  metadata: {}
109
- post_install_message:
97
+ post_install_message:
110
98
  rdoc_options: []
111
99
  require_paths:
112
100
  - lib
@@ -114,15 +102,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
102
  requirements:
115
103
  - - ">="
116
104
  - !ruby/object:Gem::Version
117
- version: '2.3'
105
+ version: '2.6'
118
106
  required_rubygems_version: !ruby/object:Gem::Requirement
119
107
  requirements:
120
108
  - - ">="
121
109
  - !ruby/object:Gem::Version
122
110
  version: '0'
123
111
  requirements: []
124
- rubygems_version: 3.0.3
125
- signing_key:
112
+ rubygems_version: 3.3.6
113
+ signing_key:
126
114
  specification_version: 4
127
115
  summary: An Object Oriented DOM Tree in Ruby
128
116
  test_files: []
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *.gem
2
- .bundle
3
- pkg/*
4
- benchmarks
5
- .rvmrc
6
- .ruby-version
7
- .ruby-gemset
8
- tags
9
- .DS_Store
10
- docs/_site
data/.rubocop.yml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
-
3
- AllCops:
4
- DisabledByDefault: true
5
-
6
- DisplayCopNames: true
7
- DisplayStyleGuide: true
8
-
9
- TargetRubyVersion: 2.3
10
-
11
- Metrics:
12
- Enabled: false
13
-
14
- Layout/IndentHeredoc:
15
- Enabled: true
data/.travis.yml DELETED
@@ -1,16 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- before_install:
4
- - gem update --system 3.0.3
5
- - gem install bundler:2.0.1
6
- rvm:
7
- - 2.3.8
8
- - 2.4.5
9
- - 2.5.5
10
- - 2.6.2
11
- - jruby-9.1.17.0
12
- - jruby-9.2.6.0
13
- branches:
14
- only:
15
- - master
16
- cache: bundler
data/Gemfile DELETED
@@ -1,25 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'rake'
6
-
7
- group :test do
8
- gem 'rspec'
9
- gem 'pry'
10
- end
11
-
12
- group :tools do
13
- gem 'rubocop'
14
- end
15
-
16
- group :release do
17
- gem 'chandler'
18
- end
19
-
20
- group :rails do
21
- gem 'rails', '>= 5.0.0.1' # fixes CVE-2016-6316
22
- gem 'rspec-rails'
23
- gem 'combustion'
24
- gem 'capybara'
25
- end