rails-rfc6570 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +3 -1
  4. data/lib/rails/rfc6570/formatter.rb +9 -12
  5. data/lib/rails/rfc6570/patches.rb +1 -1
  6. data/lib/rails/rfc6570/version.rb +1 -1
  7. data/lib/rails/rfc6570.rb +10 -29
  8. data/spec/dummy/config/application.rb +5 -1
  9. data/spec/dummy/config/environments/test.rb +1 -1
  10. data/spec/rails/rfc6570/extensions/route_set_spec.rb +29 -0
  11. data/spec/rails/rfc6570/helper_spec.rb +44 -0
  12. data/spec/rails/rfc6570/visitor_spec.rb +12 -0
  13. data/spec/rails/rfc6570_spec.rb +49 -1
  14. data/spec/spec_helper.rb +6 -0
  15. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-3bcd2110ca87/LICENSE +21 -0
  16. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-3bcd2110ca87/README.md +23 -0
  17. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-3bcd2110ca87/rubocop-config.gemspec +31 -0
  18. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.3/CHANGELOG.md +285 -0
  19. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.3/MIT-LICENSE +21 -0
  20. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.3/README.rdoc +57 -0
  21. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.3/CHANGELOG.md +129 -0
  22. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.3/MIT-LICENSE +21 -0
  23. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.3/README.rdoc +40 -0
  24. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/CHANGELOG.md +309 -0
  25. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/MIT-LICENSE +20 -0
  26. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/README.rdoc +40 -0
  27. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md +301 -0
  28. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt +202 -0
  29. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md +121 -0
  30. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/addressable.gemspec +28 -0
  31. data/vendor/bundle/ruby/3.4.0/gems/base64-0.3.0/README.md +48 -0
  32. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.1/README.md +138 -0
  33. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.1/benchmark.gemspec +32 -0
  34. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.2.3/LICENSE +56 -0
  35. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.2.3/bigdecimal.gemspec +57 -0
  36. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/MIT-LICENSE +20 -0
  37. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/README.md +258 -0
  38. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/builder.gemspec +49 -0
  39. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md +603 -0
  40. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt +21 -0
  41. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md +407 -0
  42. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.4/LICENSE +20 -0
  43. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.4/README.md +188 -0
  44. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.4/connection_pool.gemspec +24 -0
  45. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/LICENSE +18 -0
  46. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/README.md +192 -0
  47. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/crass.gemspec +31 -0
  48. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.6.2/CHANGELOG.md +518 -0
  49. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.6.2/README.md +92 -0
  50. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.3/LICENSE.txt +22 -0
  51. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.3/drb.gemspec +42 -0
  52. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/CHANGELOG +111 -0
  53. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/MIT-LICENSE +21 -0
  54. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/README.rdoc +151 -0
  55. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/MIT-LICENSE +20 -0
  56. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/README.md +127 -0
  57. data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/README.md +104 -0
  58. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.1/CHANGELOG.md +598 -0
  59. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.1/MIT-LICENSE.txt +23 -0
  60. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.1/README.md +410 -0
  61. data/vendor/bundle/ruby/3.4.0/gems/minitest-5.25.5/README.rdoc +842 -0
  62. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.10-x86_64-linux-gnu/LICENSE-DEPENDENCIES.md +2224 -0
  63. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.10-x86_64-linux-gnu/LICENSE.md +9 -0
  64. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.10-x86_64-linux-gnu/README.md +293 -0
  65. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/CHANGELOG.md +498 -0
  66. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/LICENSE.txt +22 -0
  67. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/README.md +222 -0
  68. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
  69. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
  70. data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.1/CHANGELOG.md +1236 -0
  71. data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.1/MIT-LICENSE +20 -0
  72. data/vendor/bundle/ruby/3.4.0/gems/rack-3.2.1/README.md +376 -0
  73. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/MIT-LICENSE.txt +20 -0
  74. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/README.md +139 -0
  75. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.3.0/MIT-LICENSE +23 -0
  76. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.3.0/README.md +94 -0
  77. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/CHANGELOG.md +255 -0
  78. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/MIT-LICENSE +23 -0
  79. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/README.md +267 -0
  80. data/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/MIT-LICENSE +21 -0
  81. data/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/README.rdoc +155 -0
  82. data/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/rake.gemspec +101 -0
  83. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE +21 -0
  84. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md +107 -0
  85. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/rake-release.gemspec +23 -0
  86. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.1/LICENSE.md +27 -0
  87. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.1/README.md +47 -0
  88. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.5/LICENSE.md +26 -0
  89. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.5/README.md +389 -0
  90. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.5/LICENSE.md +25 -0
  91. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.5/README.md +326 -0
  92. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.5/LICENSE.md +25 -0
  93. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.5/README.md +465 -0
  94. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.6/LICENSE.md +23 -0
  95. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.6/README.md +40 -0
  96. data/vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md +72 -0
  97. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE +19 -0
  98. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md +406 -0
  99. data/vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/README.md +55 -0
  100. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/LICENSE +20 -0
  101. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/README.md +42 -0
  102. data/vendor/bundle/ruby/3.4.0/specifications/actionpack-8.0.3.gemspec +36 -0
  103. data/vendor/bundle/ruby/3.4.0/specifications/actionview-8.0.3.gemspec +33 -0
  104. data/vendor/bundle/ruby/3.4.0/specifications/activesupport-8.0.3.gemspec +38 -0
  105. data/vendor/bundle/ruby/3.4.0/specifications/addressable-2.8.7.gemspec +30 -0
  106. data/vendor/bundle/ruby/3.4.0/specifications/base64-0.3.0.gemspec +23 -0
  107. data/vendor/bundle/ruby/3.4.0/specifications/benchmark-0.4.1.gemspec +23 -0
  108. data/vendor/bundle/ruby/3.4.0/specifications/bigdecimal-3.2.3.gemspec +25 -0
  109. data/vendor/bundle/ruby/3.4.0/specifications/builder-3.3.0.gemspec +22 -0
  110. data/vendor/bundle/ruby/3.4.0/specifications/concurrent-ruby-1.3.5.gemspec +24 -0
  111. data/vendor/bundle/ruby/3.4.0/specifications/connection_pool-2.5.4.gemspec +28 -0
  112. data/vendor/bundle/ruby/3.4.0/specifications/crass-1.0.6.gemspec +27 -0
  113. data/vendor/bundle/ruby/3.4.0/specifications/diff-lcs-1.6.2.gemspec +35 -0
  114. data/vendor/bundle/ruby/3.4.0/specifications/drb-2.2.3.gemspec +22 -0
  115. data/vendor/bundle/ruby/3.4.0/specifications/erubi-1.13.1.gemspec +29 -0
  116. data/vendor/bundle/ruby/3.4.0/specifications/i18n-1.14.7.gemspec +26 -0
  117. data/vendor/bundle/ruby/3.4.0/specifications/logger-1.7.0.gemspec +22 -0
  118. data/vendor/bundle/ruby/3.4.0/specifications/loofah-2.24.1.gemspec +27 -0
  119. data/vendor/bundle/ruby/3.4.0/specifications/minitest-5.25.5.gemspec +31 -0
  120. data/vendor/bundle/ruby/3.4.0/specifications/nokogiri-1.18.10-x86_64-linux-gnu.gemspec +31 -0
  121. data/vendor/bundle/ruby/3.4.0/specifications/public_suffix-6.0.2.gemspec +24 -0
  122. data/vendor/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
  123. data/vendor/bundle/ruby/3.4.0/specifications/rack-3.2.1.gemspec +31 -0
  124. data/vendor/bundle/ruby/3.4.0/specifications/rack-session-2.1.1.gemspec +30 -0
  125. data/vendor/bundle/ruby/3.4.0/specifications/rack-test-2.2.0.gemspec +29 -0
  126. data/vendor/bundle/ruby/3.4.0/specifications/rails-dom-testing-2.3.0.gemspec +28 -0
  127. data/vendor/bundle/ruby/3.4.0/specifications/rails-html-sanitizer-1.6.2.gemspec +27 -0
  128. data/vendor/bundle/ruby/3.4.0/specifications/rake-13.3.0.gemspec +26 -0
  129. data/vendor/bundle/ruby/3.4.0/specifications/rake-release-1.3.0.gemspec +26 -0
  130. data/vendor/bundle/ruby/3.4.0/specifications/rspec-3.13.1.gemspec +31 -0
  131. data/vendor/bundle/ruby/3.4.0/specifications/rspec-core-3.13.5.gemspec +31 -0
  132. data/vendor/bundle/ruby/3.4.0/specifications/rspec-expectations-3.13.5.gemspec +29 -0
  133. data/vendor/bundle/ruby/3.4.0/specifications/rspec-mocks-3.13.5.gemspec +29 -0
  134. data/vendor/bundle/ruby/3.4.0/specifications/rspec-support-3.13.6.gemspec +29 -0
  135. data/vendor/bundle/ruby/3.4.0/specifications/securerandom-0.4.1.gemspec +23 -0
  136. data/vendor/bundle/ruby/3.4.0/specifications/tzinfo-2.0.6.gemspec +30 -0
  137. data/vendor/bundle/ruby/3.4.0/specifications/uri-1.0.3.gemspec +23 -0
  138. data/vendor/bundle/ruby/3.4.0/specifications/useragent-0.16.11.gemspec +25 -0
  139. metadata +129 -8
  140. data/spec/dummy/log/test.log +0 -432
@@ -0,0 +1,192 @@
1
+ Crass
2
+ =====
3
+
4
+ Crass is a Ruby CSS parser that's fully compliant with the
5
+ [CSS Syntax Level 3][css] specification.
6
+
7
+ * [Home](https://github.com/rgrove/crass/)
8
+ * [API Docs](http://rubydoc.info/github/rgrove/crass/master)
9
+
10
+ [![Build Status](https://travis-ci.org/rgrove/crass.svg?branch=master)](https://travis-ci.org/rgrove/crass)
11
+ [![Gem Version](https://badge.fury.io/rb/crass.svg)](http://badge.fury.io/rb/crass)
12
+
13
+ Features
14
+ --------
15
+
16
+ * Pure Ruby, with no runtime dependencies other than Ruby 1.9.x or higher.
17
+
18
+ * Tokenizes and parses CSS according to the rules defined in the 14 November
19
+ 2014 editor's draft of the [CSS Syntax Level 3][css] specification.
20
+
21
+ * Extremely tolerant of broken or invalid CSS. If a browser can handle it, Crass
22
+ should be able to handle it too.
23
+
24
+ * Optionally includes comments in the token stream.
25
+
26
+ * Optionally preserves certain CSS hacks, such as the IE "*" hack, which would
27
+ otherwise be discarded according to CSS3 tokenizing rules.
28
+
29
+ * Capable of serializing the parse tree back to CSS while maintaining all
30
+ original whitespace, comments, and indentation.
31
+
32
+ [css]: http://dev.w3.org/csswg/css-syntax/
33
+
34
+ Problems
35
+ --------
36
+
37
+ * Crass isn't terribly fast. I mean, it's Ruby, and it's not really slow by Ruby
38
+ standards. But compared to the CSS parser in your average browser? Yeah, it's
39
+ slow.
40
+
41
+ * Crass only parses the CSS syntax; it doesn't understand what any of it means,
42
+ doesn't coalesce selectors, etc. You can do this yourself by consuming the
43
+ parse tree, though.
44
+
45
+ * While any node in the parse tree (or the parse tree as a whole) can be
46
+ serialized back to CSS with perfect fidelity, changes made to those nodes
47
+ (except for wholesale removal of nodes) are not reflected in the serialized
48
+ output.
49
+
50
+ * Crass only supports UTF-8 input and doesn't respect `@charset` rules. Input in
51
+ any other encoding will be converted to UTF-8.
52
+
53
+ Installing
54
+ ----------
55
+
56
+ ```
57
+ gem install crass
58
+ ```
59
+
60
+ Examples
61
+ --------
62
+
63
+ Say you have a string containing some CSS:
64
+
65
+ ```css
66
+ /* Comment! */
67
+ a:hover {
68
+ color: #0d8bfa;
69
+ text-decoration: underline;
70
+ }
71
+ ```
72
+
73
+ Parsing it is simple:
74
+
75
+ ```ruby
76
+ tree = Crass.parse(css, :preserve_comments => true)
77
+ ```
78
+
79
+ This returns a big fat beautiful parse tree, which looks like this:
80
+
81
+ ```ruby
82
+ [{:node=>:comment, :pos=>0, :raw=>"/* Comment! */", :value=>" Comment! "},
83
+ {:node=>:whitespace, :pos=>14, :raw=>"\n"},
84
+ {:node=>:style_rule,
85
+ :selector=>
86
+ {:node=>:selector,
87
+ :value=>"a:hover",
88
+ :tokens=>
89
+ [{:node=>:ident, :pos=>15, :raw=>"a", :value=>"a"},
90
+ {:node=>:colon, :pos=>16, :raw=>":"},
91
+ {:node=>:ident, :pos=>17, :raw=>"hover", :value=>"hover"},
92
+ {:node=>:whitespace, :pos=>22, :raw=>" "}]},
93
+ :children=>
94
+ [{:node=>:whitespace, :pos=>24, :raw=>"\n "},
95
+ {:node=>:property,
96
+ :name=>"color",
97
+ :value=>"#0d8bfa",
98
+ :children=>
99
+ [{:node=>:whitespace, :pos=>33, :raw=>" "},
100
+ {:node=>:hash,
101
+ :pos=>34,
102
+ :raw=>"#0d8bfa",
103
+ :type=>:unrestricted,
104
+ :value=>"0d8bfa"}],
105
+ :important=>false,
106
+ :tokens=>
107
+ [{:node=>:ident, :pos=>27, :raw=>"color", :value=>"color"},
108
+ {:node=>:colon, :pos=>32, :raw=>":"},
109
+ {:node=>:whitespace, :pos=>33, :raw=>" "},
110
+ {:node=>:hash,
111
+ :pos=>34,
112
+ :raw=>"#0d8bfa",
113
+ :type=>:unrestricted,
114
+ :value=>"0d8bfa"}]},
115
+ {:node=>:semicolon, :pos=>41, :raw=>";"},
116
+ {:node=>:whitespace, :pos=>42, :raw=>"\n "},
117
+ {:node=>:property,
118
+ :name=>"text-decoration",
119
+ :value=>"underline",
120
+ :children=>
121
+ [{:node=>:whitespace, :pos=>61, :raw=>" "},
122
+ {:node=>:ident, :pos=>62, :raw=>"underline", :value=>"underline"}],
123
+ :important=>false,
124
+ :tokens=>
125
+ [{:node=>:ident,
126
+ :pos=>45,
127
+ :raw=>"text-decoration",
128
+ :value=>"text-decoration"},
129
+ {:node=>:colon, :pos=>60, :raw=>":"},
130
+ {:node=>:whitespace, :pos=>61, :raw=>" "},
131
+ {:node=>:ident, :pos=>62, :raw=>"underline", :value=>"underline"}]},
132
+ {:node=>:semicolon, :pos=>71, :raw=>";"},
133
+ {:node=>:whitespace, :pos=>72, :raw=>"\n"}]}]
134
+ ```
135
+
136
+ If you want, you can stringify the parse tree:
137
+
138
+ ```ruby
139
+ css = Crass::Parser.stringify(tree)
140
+ ```
141
+
142
+ ...which gives you back exactly what you put in!
143
+
144
+ ```css
145
+ /* Comment! */
146
+ a:hover {
147
+ color: #0d8bfa;
148
+ text-decoration: underline;
149
+ }
150
+ ```
151
+
152
+ Wasn't that exciting?
153
+
154
+ A Note on Versioning
155
+ --------------------
156
+
157
+ As of version 1.0.0, Crass adheres strictly to [SemVer 2.0][semver].
158
+
159
+ [semver]:http://semver.org/spec/v2.0.0.html
160
+
161
+ Contributing
162
+ ------------
163
+
164
+ The best way to contribute is to use Crass and [create issues][issue] when you
165
+ run into problems.
166
+
167
+ Pull requests that fix bugs are more than welcome as long as they include tests.
168
+ Please adhere to the style and format of the surrounding code, or I might ask
169
+ you to change things.
170
+
171
+ If you want to add a feature or refactor something, please get in touch first to
172
+ make sure I'm on board with your idea and approach; I'm pretty picky, and I'd
173
+ hate to have to turn down a pull request you spent a lot of time on.
174
+
175
+ [issue]: https://github.com/rgrove/crass/issues/new
176
+
177
+ Acknowledgments
178
+ ---------------
179
+
180
+ I'm deeply, deeply grateful to [Simon Sapin][simon] for his wonderfully
181
+ comprehensive [CSS parsing tests][css-tests], which I adapted to create many of
182
+ Crass's tests. They've been invaluable in helping me fix bugs and handle weird
183
+ edge cases, and Crass would be much crappier without them.
184
+
185
+ I'm also grateful to [Tab Atkins Jr.][tab] and Simon Sapin (again!) for their
186
+ work on the [CSS Syntax Level 3][spec] specification, which defines the
187
+ tokenizing and parsing rules that Crass implements.
188
+
189
+ [css-tests]:https://github.com/SimonSapin/css-parsing-tests/
190
+ [simon]:http://exyr.org/about/
191
+ [spec]:http://www.w3.org/TR/css-syntax-3/
192
+ [tab]:http://www.xanthir.com/contact/
@@ -0,0 +1,31 @@
1
+ # encoding: utf-8
2
+ require './lib/crass/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'crass'
6
+ s.summary = 'CSS parser based on the CSS Syntax Level 3 spec.'
7
+ s.description = 'Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.'
8
+ s.version = Crass::VERSION
9
+ s.authors = ['Ryan Grove']
10
+ s.email = ['ryan@wonko.com']
11
+ s.homepage = 'https://github.com/rgrove/crass/'
12
+ s.license = 'MIT'
13
+
14
+ s.metadata = {
15
+ 'bug_tracker_uri' => 'https://github.com/rgrove/crass/issues',
16
+ 'changelog_uri' => "https://github.com/rgrove/crass/blob/v#{s.version}/HISTORY.md",
17
+ 'documentation_uri' => "https://www.rubydoc.info/gems/crass/#{s.version}",
18
+ 'source_code_uri' => "https://github.com/rgrove/crass/tree/v#{s.version}",
19
+ }
20
+
21
+ s.platform = Gem::Platform::RUBY
22
+ s.required_ruby_version = Gem::Requirement.new('>= 1.9.2')
23
+
24
+ s.require_paths = ['lib']
25
+
26
+ s.files = `git ls-files -z`.split("\x0").grep_v(%r{^test/})
27
+
28
+ # Development dependencies.
29
+ s.add_development_dependency 'minitest', '~> 5.0.8'
30
+ s.add_development_dependency 'rake', '~> 10.1.0'
31
+ end