semantic_date_time_tags 0.1.19 → 0.2.0

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
- SHA1:
3
- metadata.gz: e4d40ba7c943dbe95a16f44f0ebc1d4bb8ca3fc6
4
- data.tar.gz: ab9b461a807586e6b691017341bedef720a45a63
2
+ SHA256:
3
+ metadata.gz: c3f76d5246ac9a6a66d06cc053902dda4c35e8f7d3b77537368a8f34232e13f2
4
+ data.tar.gz: '0822888b686b4917cc00ee6b35711f42fc6be6530b46086d4269b6c03d6e4a57'
5
5
  SHA512:
6
- metadata.gz: 69ec4bf645200146542a4868b918dbd21144cc4a8469e8b273c232a442a42ce4b8099dd7e1c081116ed5ed37b955a1caaf4fa67789b5fc5436071a9811d59cfc
7
- data.tar.gz: 2fdfa402ad731cd536738ba7169bd87d7b41368a58ffc31d8cd2064dcb9b74318ebaa0374ba0c179a3ea00875d790c59e5608e69f6d28a8a8ed7aa4276ad49c8
6
+ metadata.gz: 91fac8e502610b004c5bb51de9862d0888756866867cd0d1092a63296106074396caab266c1dcca07df8ad93fcdb61469104b751c95648a2805c7ef07831f3d0
7
+ data.tar.gz: 7038aecae63702f829c16dd119eb3f742132cbd882c94bcecb421a20d1bee0b0befbbc8da84b88c0f84c3265cb3d1d7d76c5adf07734a8ef10ee9469e26b8217
@@ -0,0 +1,30 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ '**' ]
13
+ pull_request:
14
+ branches: [ '**' ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Set up Ruby
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: 2.7.2
27
+ - name: Install dependencies
28
+ run: bundle install
29
+ - name: Run tests
30
+ run: bundle exec rake
@@ -0,0 +1,6 @@
1
+ inherit_gem:
2
+ rubocop-rails_config:
3
+ - config/rails.yml
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.7
@@ -0,0 +1 @@
1
+ 2.7.2
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.0
4
+
5
+ * added possibility to pass in data attributes to both `time` and `span` tags (date range)
6
+
3
7
  ## 0.1.19
4
8
 
5
9
  * removed `:format` from options passed to the `time` tag (in effect producing invalid HTML)
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
2
4
 
3
5
  # Specify your gem's dependencies in simple_form_epic_editor.gemspec
4
6
  gemspec
@@ -1,70 +1,81 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- semantic_date_time_tags (0.1.19)
4
+ semantic_date_time_tags (0.2.0)
5
5
  rails (>= 3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (5.1.4)
11
- actionpack (= 5.1.4)
10
+ actioncable (6.0.3.4)
11
+ actionpack (= 6.0.3.4)
12
12
  nio4r (~> 2.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.1.4)
15
- actionpack (= 5.1.4)
16
- actionview (= 5.1.4)
17
- activejob (= 5.1.4)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailbox (6.0.3.4)
15
+ actionpack (= 6.0.3.4)
16
+ activejob (= 6.0.3.4)
17
+ activerecord (= 6.0.3.4)
18
+ activestorage (= 6.0.3.4)
19
+ activesupport (= 6.0.3.4)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.0.3.4)
22
+ actionpack (= 6.0.3.4)
23
+ actionview (= 6.0.3.4)
24
+ activejob (= 6.0.3.4)
18
25
  mail (~> 2.5, >= 2.5.4)
19
26
  rails-dom-testing (~> 2.0)
20
- actionpack (5.1.4)
21
- actionview (= 5.1.4)
22
- activesupport (= 5.1.4)
23
- rack (~> 2.0)
27
+ actionpack (6.0.3.4)
28
+ actionview (= 6.0.3.4)
29
+ activesupport (= 6.0.3.4)
30
+ rack (~> 2.0, >= 2.0.8)
24
31
  rack-test (>= 0.6.3)
25
32
  rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.1.4)
28
- activesupport (= 5.1.4)
33
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
+ actiontext (6.0.3.4)
35
+ actionpack (= 6.0.3.4)
36
+ activerecord (= 6.0.3.4)
37
+ activestorage (= 6.0.3.4)
38
+ activesupport (= 6.0.3.4)
39
+ nokogiri (>= 1.8.5)
40
+ actionview (6.0.3.4)
41
+ activesupport (= 6.0.3.4)
29
42
  builder (~> 3.1)
30
43
  erubi (~> 1.4)
31
44
  rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.1.4)
34
- activesupport (= 5.1.4)
45
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
+ activejob (6.0.3.4)
47
+ activesupport (= 6.0.3.4)
35
48
  globalid (>= 0.3.6)
36
- activemodel (5.1.4)
37
- activesupport (= 5.1.4)
38
- activerecord (5.1.4)
39
- activemodel (= 5.1.4)
40
- activesupport (= 5.1.4)
41
- arel (~> 8.0)
42
- activesupport (5.1.4)
49
+ activemodel (6.0.3.4)
50
+ activesupport (= 6.0.3.4)
51
+ activerecord (6.0.3.4)
52
+ activemodel (= 6.0.3.4)
53
+ activesupport (= 6.0.3.4)
54
+ activestorage (6.0.3.4)
55
+ actionpack (= 6.0.3.4)
56
+ activejob (= 6.0.3.4)
57
+ activerecord (= 6.0.3.4)
58
+ marcel (~> 0.3.1)
59
+ activesupport (6.0.3.4)
43
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
44
- i18n (~> 0.7)
61
+ i18n (>= 0.7, < 2)
45
62
  minitest (~> 5.1)
46
63
  tzinfo (~> 1.1)
47
- arel (8.0.0)
48
- builder (3.2.3)
49
- coderay (1.1.1)
50
- concurrent-ruby (1.0.5)
51
- coveralls (0.8.19)
52
- json (>= 1.8, < 3)
53
- simplecov (~> 0.12.0)
54
- term-ansicolor (~> 1.3)
55
- thor (~> 0.19.1)
56
- tins (~> 1.6)
57
- crass (1.0.2)
58
- docile (1.1.5)
59
- erubi (1.7.0)
60
- ffi (1.9.18)
64
+ zeitwerk (~> 2.2, >= 2.2.2)
65
+ ast (2.4.1)
66
+ builder (3.2.4)
67
+ coderay (1.1.3)
68
+ concurrent-ruby (1.1.7)
69
+ crass (1.0.6)
70
+ erubi (1.10.0)
71
+ ffi (1.13.1)
61
72
  formatador (0.2.5)
62
- globalid (0.4.0)
73
+ globalid (0.4.2)
63
74
  activesupport (>= 4.2.0)
64
- guard (2.14.1)
75
+ guard (2.16.2)
65
76
  formatador (>= 0.2.4)
66
77
  listen (>= 2.7, < 4.0)
67
- lumberjack (~> 1.0)
78
+ lumberjack (>= 1.0.12, < 2.0)
68
79
  nenv (~> 0.1)
69
80
  notiffany (~> 0.0)
70
81
  pry (>= 0.9.12)
@@ -74,102 +85,130 @@ GEM
74
85
  guard-minitest (2.4.6)
75
86
  guard-compat (~> 1.2)
76
87
  minitest (>= 3.0)
77
- i18n (0.8.6)
78
- json (2.0.3)
79
- listen (3.1.5)
80
- rb-fsevent (~> 0.9, >= 0.9.4)
81
- rb-inotify (~> 0.9, >= 0.9.7)
82
- ruby_dep (~> 1.2)
83
- loofah (2.1.1)
88
+ i18n (1.8.5)
89
+ concurrent-ruby (~> 1.0)
90
+ listen (3.3.3)
91
+ rb-fsevent (~> 0.10, >= 0.10.3)
92
+ rb-inotify (~> 0.9, >= 0.9.10)
93
+ loofah (2.8.0)
84
94
  crass (~> 1.0.2)
85
95
  nokogiri (>= 1.5.9)
86
- lumberjack (1.0.11)
87
- mail (2.6.6)
88
- mime-types (>= 1.16, < 4)
89
- method_source (0.8.2)
90
- mime-types (3.1)
91
- mime-types-data (~> 3.2015)
92
- mime-types-data (3.2016.0521)
93
- mini_portile2 (2.3.0)
94
- minitest (5.10.1)
96
+ lumberjack (1.2.8)
97
+ mail (2.7.1)
98
+ mini_mime (>= 0.1.1)
99
+ marcel (0.3.3)
100
+ mimemagic (~> 0.3.2)
101
+ method_source (1.0.0)
102
+ mimemagic (0.3.5)
103
+ mini_mime (1.0.2)
104
+ mini_portile2 (2.4.0)
105
+ minitest (5.14.2)
95
106
  nenv (0.3.0)
96
- nio4r (2.1.0)
97
- nokogiri (1.8.1)
98
- mini_portile2 (~> 2.3.0)
99
- notiffany (0.1.1)
107
+ nio4r (2.5.4)
108
+ nokogiri (1.10.10)
109
+ mini_portile2 (~> 2.4.0)
110
+ notiffany (0.1.3)
100
111
  nenv (~> 0.1)
101
112
  shellany (~> 0.0)
102
- pry (0.10.4)
103
- coderay (~> 1.1.0)
104
- method_source (~> 0.8.1)
105
- slop (~> 3.4)
106
- rack (2.0.3)
107
- rack-test (0.7.0)
113
+ parallel (1.20.1)
114
+ parser (2.7.2.0)
115
+ ast (~> 2.4.1)
116
+ pry (0.13.1)
117
+ coderay (~> 1.1)
118
+ method_source (~> 1.0)
119
+ rack (2.2.3)
120
+ rack-test (1.1.0)
108
121
  rack (>= 1.0, < 3)
109
- rails (5.1.4)
110
- actioncable (= 5.1.4)
111
- actionmailer (= 5.1.4)
112
- actionpack (= 5.1.4)
113
- actionview (= 5.1.4)
114
- activejob (= 5.1.4)
115
- activemodel (= 5.1.4)
116
- activerecord (= 5.1.4)
117
- activesupport (= 5.1.4)
122
+ rails (6.0.3.4)
123
+ actioncable (= 6.0.3.4)
124
+ actionmailbox (= 6.0.3.4)
125
+ actionmailer (= 6.0.3.4)
126
+ actionpack (= 6.0.3.4)
127
+ actiontext (= 6.0.3.4)
128
+ actionview (= 6.0.3.4)
129
+ activejob (= 6.0.3.4)
130
+ activemodel (= 6.0.3.4)
131
+ activerecord (= 6.0.3.4)
132
+ activestorage (= 6.0.3.4)
133
+ activesupport (= 6.0.3.4)
118
134
  bundler (>= 1.3.0)
119
- railties (= 5.1.4)
135
+ railties (= 6.0.3.4)
120
136
  sprockets-rails (>= 2.0.0)
121
137
  rails-dom-testing (2.0.3)
122
138
  activesupport (>= 4.2.0)
123
139
  nokogiri (>= 1.6)
124
- rails-html-sanitizer (1.0.3)
125
- loofah (~> 2.0)
126
- railties (5.1.4)
127
- actionpack (= 5.1.4)
128
- activesupport (= 5.1.4)
140
+ rails-html-sanitizer (1.3.0)
141
+ loofah (~> 2.3)
142
+ railties (6.0.3.4)
143
+ actionpack (= 6.0.3.4)
144
+ activesupport (= 6.0.3.4)
129
145
  method_source
130
146
  rake (>= 0.8.7)
131
- thor (>= 0.18.1, < 2.0)
132
- rake (12.0.0)
133
- rb-fsevent (0.9.8)
134
- rb-inotify (0.9.8)
135
- ffi (>= 0.5.0)
136
- ruby_dep (1.5.0)
147
+ thor (>= 0.20.3, < 2.0)
148
+ rainbow (3.0.0)
149
+ rake (13.0.1)
150
+ rb-fsevent (0.10.4)
151
+ rb-inotify (0.10.1)
152
+ ffi (~> 1.0)
153
+ regexp_parser (2.0.0)
154
+ rexml (3.2.4)
155
+ rubocop (1.5.2)
156
+ parallel (~> 1.10)
157
+ parser (>= 2.7.1.5)
158
+ rainbow (>= 2.2.2, < 4.0)
159
+ regexp_parser (>= 1.8, < 3.0)
160
+ rexml
161
+ rubocop-ast (>= 1.2.0, < 2.0)
162
+ ruby-progressbar (~> 1.7)
163
+ unicode-display_width (>= 1.4.0, < 2.0)
164
+ rubocop-ast (1.3.0)
165
+ parser (>= 2.7.1.5)
166
+ rubocop-packaging (0.5.1)
167
+ rubocop (>= 0.89, < 2.0)
168
+ rubocop-performance (1.9.1)
169
+ rubocop (>= 0.90.0, < 2.0)
170
+ rubocop-ast (>= 0.4.0)
171
+ rubocop-rails (2.8.1)
172
+ activesupport (>= 4.2.0)
173
+ rack (>= 1.1)
174
+ rubocop (>= 0.87.0)
175
+ rubocop-rails_config (1.0.3)
176
+ railties (>= 5.0)
177
+ rubocop (>= 1.0)
178
+ rubocop-ast (>= 1.0.1)
179
+ rubocop-packaging (~> 0.4)
180
+ rubocop-performance (~> 1.3)
181
+ rubocop-rails (~> 2.0)
182
+ ruby-progressbar (1.10.1)
137
183
  shellany (0.0.1)
138
- simplecov (0.12.0)
139
- docile (~> 1.1.0)
140
- json (>= 1.8, < 3)
141
- simplecov-html (~> 0.10.0)
142
- simplecov-html (0.10.0)
143
- slop (3.6.0)
144
- sprockets (3.7.1)
184
+ sprockets (4.0.2)
145
185
  concurrent-ruby (~> 1.0)
146
186
  rack (> 1, < 3)
147
- sprockets-rails (3.2.1)
187
+ sprockets-rails (3.2.2)
148
188
  actionpack (>= 4.0)
149
189
  activesupport (>= 4.0)
150
190
  sprockets (>= 3.0.0)
151
- term-ansicolor (1.4.0)
152
- tins (~> 1.0)
153
- thor (0.19.4)
191
+ thor (1.0.1)
154
192
  thread_safe (0.3.6)
155
- tins (1.13.2)
156
- tzinfo (1.2.3)
193
+ tzinfo (1.2.8)
157
194
  thread_safe (~> 0.1)
158
- websocket-driver (0.6.5)
195
+ unicode-display_width (1.7.0)
196
+ websocket-driver (0.7.3)
159
197
  websocket-extensions (>= 0.1.0)
160
- websocket-extensions (0.1.2)
198
+ websocket-extensions (0.1.5)
199
+ zeitwerk (2.4.2)
161
200
 
162
201
  PLATFORMS
163
202
  ruby
164
203
 
165
204
  DEPENDENCIES
166
- bundler (~> 1.6)
167
- coveralls
205
+ bundler
168
206
  guard
169
207
  guard-minitest
170
208
  minitest
171
209
  rake
210
+ rubocop-rails_config
172
211
  semantic_date_time_tags!
173
212
 
174
213
  BUNDLED WITH
175
- 1.14.6
214
+ 2.1.4
data/Guardfile CHANGED
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # A sample Guardfile
2
4
  # More info at https://github.com/guard/guard#readme
3
5
 
4
6
  guard :minitest do
5
7
  watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
6
8
  watch(%r{^test/.+_test\.rb$})
7
- watch(%r{^test/test_helper\.rb$}) { 'test' }
8
- end
9
+ watch(%r{^test/test_helper\.rb$}) { "test" }
10
+ end
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Semantic DateTime Tags
2
2
 
3
- [![Build Status](https://travis-ci.org/tomasc/semantic_date_time_tags.svg)](https://travis-ci.org/tomasc/semantic_date_time_tags) [![Gem Version](https://badge.fury.io/rb/semantic_date_time_tags.svg)](http://badge.fury.io/rb/semantic_date_time_tags) [![Coverage Status](https://img.shields.io/coveralls/tomasc/semantic_date_time_tags.svg)](https://coveralls.io/r/tomasc/semantic_date_time_tags)
3
+ [![Gem Version](https://badge.fury.io/rb/semantic_date_time_tags.svg)](http://badge.fury.io/rb/semantic_date_time_tags)
4
4
 
5
5
  Set of Rails helpers that mark up Date, DateTime instances and their ranges with sensible combination of (html5) tags, data attributes and CSS classes so that their display can be easily controlled via CSS.
6
6
 
data/Rakefile CHANGED
@@ -1,9 +1,11 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
3
5
 
4
6
  Rake::TestTask.new do |t|
5
- t.libs << 'test'
6
- t.pattern = 'test/*/*_test.rb'
7
+ t.libs << "test"
8
+ t.pattern = "test/*/*_test.rb"
7
9
  end
8
10
 
9
- task :default => :test
11
+ task default: :test
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "i18n"
2
4
  require "semantic_date_time_tags/railtie" if defined?(Rails)
3
5
  require "semantic_date_time_tags/engine"
4
6
  require "semantic_date_time_tags/version"
5
7
 
6
- I18n.load_path += Dir.glob(File.join( File.dirname(__FILE__), 'config', 'locales', '*.yml' ))
8
+ I18n.load_path += Dir.glob(File.join(File.dirname(__FILE__), "config", "locales", "*.yml"))
@@ -1,8 +1,10 @@
1
- require 'rails/engine'
1
+ # frozen_string_literal: true
2
+
3
+ require "rails/engine"
2
4
 
3
5
  module SemanticDateTimeTags
4
6
  module Rails
5
7
  class Engine < ::Rails::Engine
6
8
  end
7
9
  end
8
- end
10
+ end