jpmobile 5.0.1 → 5.1.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.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/.ruby-version +1 -0
- data/Gemfile.lock +61 -61
- data/jpmobile.gemspec +1 -1
- data/lib/jpmobile.rb +0 -1
- data/lib/jpmobile/mail.rb +3 -25
- data/lib/jpmobile/resolver.rb +5 -21
- data/lib/jpmobile/version.rb +1 -1
- data/lib/tasks/jpmobile_tasks.rake +1 -1
- data/spec/unit/mail_spec.rb +2 -2
- data/spec/unit/receive_mail_spec.rb +2 -2
- data/test/rails/overrides/Gemfile.jpmobile +1 -2
- data/test/rails/overrides/spec/features/filter_spec.rb +2 -2
- metadata +6 -7
- data/test/rails/overrides/Gemfile +0 -54
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b84db317e22ca18e365aa0902ffc9aabe50ea0c
|
|
4
|
+
data.tar.gz: 5e126ef0948bde5be5bed2fce66c88ed51b06b55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a5e414cd3fb607ba5f9bf7280f425f19a4709161126371627d0521dad2cee55205828206d17522213a07fdbc936742d7f7eaf6558d43b5dac6780b5f024ae71
|
|
7
|
+
data.tar.gz: 84250d25c5b909b8343aea70f3240fa4698314103ae381c0a48bb85b7c79a37e8c5997582c95540b4caa119c6fe35a3432e551a29a475e8e23368b6324119a32
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.4.1
|
data/Gemfile.lock
CHANGED
|
@@ -6,46 +6,46 @@ PATH
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
actioncable (5.0
|
|
10
|
-
actionpack (= 5.0
|
|
11
|
-
nio4r (
|
|
9
|
+
actioncable (5.1.0)
|
|
10
|
+
actionpack (= 5.1.0)
|
|
11
|
+
nio4r (~> 2.0)
|
|
12
12
|
websocket-driver (~> 0.6.1)
|
|
13
|
-
actionmailer (5.0
|
|
14
|
-
actionpack (= 5.0
|
|
15
|
-
actionview (= 5.0
|
|
16
|
-
activejob (= 5.0
|
|
13
|
+
actionmailer (5.1.0)
|
|
14
|
+
actionpack (= 5.1.0)
|
|
15
|
+
actionview (= 5.1.0)
|
|
16
|
+
activejob (= 5.1.0)
|
|
17
17
|
mail (~> 2.5, >= 2.5.4)
|
|
18
18
|
rails-dom-testing (~> 2.0)
|
|
19
|
-
actionpack (5.0
|
|
20
|
-
actionview (= 5.0
|
|
21
|
-
activesupport (= 5.0
|
|
19
|
+
actionpack (5.1.0)
|
|
20
|
+
actionview (= 5.1.0)
|
|
21
|
+
activesupport (= 5.1.0)
|
|
22
22
|
rack (~> 2.0)
|
|
23
23
|
rack-test (~> 0.6.3)
|
|
24
24
|
rails-dom-testing (~> 2.0)
|
|
25
25
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
26
|
-
actionview (5.0
|
|
27
|
-
activesupport (= 5.0
|
|
26
|
+
actionview (5.1.0)
|
|
27
|
+
activesupport (= 5.1.0)
|
|
28
28
|
builder (~> 3.1)
|
|
29
|
-
|
|
29
|
+
erubi (~> 1.4)
|
|
30
30
|
rails-dom-testing (~> 2.0)
|
|
31
31
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
32
|
-
activejob (5.0
|
|
33
|
-
activesupport (= 5.0
|
|
32
|
+
activejob (5.1.0)
|
|
33
|
+
activesupport (= 5.1.0)
|
|
34
34
|
globalid (>= 0.3.6)
|
|
35
|
-
activemodel (5.0
|
|
36
|
-
activesupport (= 5.0
|
|
37
|
-
activerecord (5.0
|
|
38
|
-
activemodel (= 5.0
|
|
39
|
-
activesupport (= 5.0
|
|
40
|
-
arel (~>
|
|
41
|
-
activesupport (5.0
|
|
35
|
+
activemodel (5.1.0)
|
|
36
|
+
activesupport (= 5.1.0)
|
|
37
|
+
activerecord (5.1.0)
|
|
38
|
+
activemodel (= 5.1.0)
|
|
39
|
+
activesupport (= 5.1.0)
|
|
40
|
+
arel (~> 8.0)
|
|
41
|
+
activesupport (5.1.0)
|
|
42
42
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
43
43
|
i18n (~> 0.7)
|
|
44
44
|
minitest (~> 5.1)
|
|
45
45
|
tzinfo (~> 1.1)
|
|
46
46
|
addressable (2.5.1)
|
|
47
47
|
public_suffix (~> 2.0, >= 2.0.2)
|
|
48
|
-
arel (
|
|
48
|
+
arel (8.0.0)
|
|
49
49
|
ast (2.3.0)
|
|
50
50
|
builder (3.2.3)
|
|
51
51
|
capybara (2.13.0)
|
|
@@ -61,7 +61,7 @@ GEM
|
|
|
61
61
|
coderay (1.1.1)
|
|
62
62
|
concurrent-ruby (1.0.5)
|
|
63
63
|
diff-lcs (1.3)
|
|
64
|
-
|
|
64
|
+
erubi (1.6.0)
|
|
65
65
|
geokit (1.11.0)
|
|
66
66
|
git (1.3.0)
|
|
67
67
|
globalid (0.4.0)
|
|
@@ -78,9 +78,9 @@ GEM
|
|
|
78
78
|
mime-types-data (~> 3.2015)
|
|
79
79
|
mime-types-data (3.2016.0521)
|
|
80
80
|
mini_portile2 (2.1.0)
|
|
81
|
-
minitest (5.10.
|
|
81
|
+
minitest (5.10.1)
|
|
82
82
|
nio4r (2.0.0)
|
|
83
|
-
nokogiri (1.7.
|
|
83
|
+
nokogiri (1.7.1)
|
|
84
84
|
mini_portile2 (~> 2.1.0)
|
|
85
85
|
onkcop (0.48.1.1)
|
|
86
86
|
rubocop (~> 0.48.1)
|
|
@@ -93,66 +93,66 @@ GEM
|
|
|
93
93
|
method_source (~> 0.8.1)
|
|
94
94
|
slop (~> 3.4)
|
|
95
95
|
public_suffix (2.0.5)
|
|
96
|
-
rack (2.0.
|
|
96
|
+
rack (2.0.1)
|
|
97
97
|
rack-test (0.6.3)
|
|
98
98
|
rack (>= 1.0)
|
|
99
|
-
rails (5.0
|
|
100
|
-
actioncable (= 5.0
|
|
101
|
-
actionmailer (= 5.0
|
|
102
|
-
actionpack (= 5.0
|
|
103
|
-
actionview (= 5.0
|
|
104
|
-
activejob (= 5.0
|
|
105
|
-
activemodel (= 5.0
|
|
106
|
-
activerecord (= 5.0
|
|
107
|
-
activesupport (= 5.0
|
|
99
|
+
rails (5.1.0)
|
|
100
|
+
actioncable (= 5.1.0)
|
|
101
|
+
actionmailer (= 5.1.0)
|
|
102
|
+
actionpack (= 5.1.0)
|
|
103
|
+
actionview (= 5.1.0)
|
|
104
|
+
activejob (= 5.1.0)
|
|
105
|
+
activemodel (= 5.1.0)
|
|
106
|
+
activerecord (= 5.1.0)
|
|
107
|
+
activesupport (= 5.1.0)
|
|
108
108
|
bundler (>= 1.3.0, < 2.0)
|
|
109
|
-
railties (= 5.0
|
|
109
|
+
railties (= 5.1.0)
|
|
110
110
|
sprockets-rails (>= 2.0.0)
|
|
111
|
-
rails-dom-testing (2.0.
|
|
112
|
-
activesupport (>= 4.2.0)
|
|
113
|
-
nokogiri (
|
|
111
|
+
rails-dom-testing (2.0.2)
|
|
112
|
+
activesupport (>= 4.2.0, < 6.0)
|
|
113
|
+
nokogiri (~> 1.6)
|
|
114
114
|
rails-html-sanitizer (1.0.3)
|
|
115
115
|
loofah (~> 2.0)
|
|
116
|
-
railties (5.0
|
|
117
|
-
actionpack (= 5.0
|
|
118
|
-
activesupport (= 5.0
|
|
116
|
+
railties (5.1.0)
|
|
117
|
+
actionpack (= 5.1.0)
|
|
118
|
+
activesupport (= 5.1.0)
|
|
119
119
|
method_source
|
|
120
120
|
rake (>= 0.8.7)
|
|
121
121
|
thor (>= 0.18.1, < 2.0)
|
|
122
122
|
rainbow (2.2.2)
|
|
123
123
|
rake
|
|
124
124
|
rake (12.0.0)
|
|
125
|
-
rspec (3.
|
|
126
|
-
rspec-core (~> 3.
|
|
127
|
-
rspec-expectations (~> 3.
|
|
128
|
-
rspec-mocks (~> 3.
|
|
129
|
-
rspec-core (3.
|
|
130
|
-
rspec-support (~> 3.
|
|
131
|
-
rspec-expectations (3.
|
|
125
|
+
rspec (3.5.0)
|
|
126
|
+
rspec-core (~> 3.5.0)
|
|
127
|
+
rspec-expectations (~> 3.5.0)
|
|
128
|
+
rspec-mocks (~> 3.5.0)
|
|
129
|
+
rspec-core (3.5.4)
|
|
130
|
+
rspec-support (~> 3.5.0)
|
|
131
|
+
rspec-expectations (3.5.0)
|
|
132
132
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
133
|
-
rspec-support (~> 3.
|
|
133
|
+
rspec-support (~> 3.5.0)
|
|
134
134
|
rspec-its (1.2.0)
|
|
135
135
|
rspec-core (>= 3.0.0)
|
|
136
136
|
rspec-expectations (>= 3.0.0)
|
|
137
|
-
rspec-mocks (3.
|
|
137
|
+
rspec-mocks (3.5.0)
|
|
138
138
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
139
|
-
rspec-support (~> 3.
|
|
140
|
-
rspec-rails (3.
|
|
139
|
+
rspec-support (~> 3.5.0)
|
|
140
|
+
rspec-rails (3.5.2)
|
|
141
141
|
actionpack (>= 3.0)
|
|
142
142
|
activesupport (>= 3.0)
|
|
143
143
|
railties (>= 3.0)
|
|
144
|
-
rspec-core (~> 3.
|
|
145
|
-
rspec-expectations (~> 3.
|
|
146
|
-
rspec-mocks (~> 3.
|
|
147
|
-
rspec-support (~> 3.
|
|
148
|
-
rspec-support (3.
|
|
144
|
+
rspec-core (~> 3.5.0)
|
|
145
|
+
rspec-expectations (~> 3.5.0)
|
|
146
|
+
rspec-mocks (~> 3.5.0)
|
|
147
|
+
rspec-support (~> 3.5.0)
|
|
148
|
+
rspec-support (3.5.0)
|
|
149
149
|
rubocop (0.48.1)
|
|
150
150
|
parser (>= 2.3.3.1, < 3.0)
|
|
151
151
|
powerpack (~> 0.1)
|
|
152
152
|
rainbow (>= 1.99.1, < 3.0)
|
|
153
153
|
ruby-progressbar (~> 1.7)
|
|
154
154
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
155
|
-
rubocop-rspec (1.15.
|
|
155
|
+
rubocop-rspec (1.15.0)
|
|
156
156
|
rubocop (>= 0.42.0)
|
|
157
157
|
ruby-progressbar (1.8.1)
|
|
158
158
|
slop (3.6.0)
|
|
@@ -188,7 +188,7 @@ DEPENDENCIES
|
|
|
188
188
|
jpmobile!
|
|
189
189
|
onkcop
|
|
190
190
|
pry
|
|
191
|
-
rails (~> 5.
|
|
191
|
+
rails (~> 5.1.0)
|
|
192
192
|
rspec
|
|
193
193
|
rspec-its
|
|
194
194
|
rspec-rails
|
data/jpmobile.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
|
15
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
16
16
|
gem.require_paths = ['lib']
|
|
17
17
|
|
|
18
|
-
gem.add_development_dependency 'rails', '~> 5.
|
|
18
|
+
gem.add_development_dependency 'rails', '~> 5.1.0'
|
|
19
19
|
gem.add_development_dependency 'rspec'
|
|
20
20
|
gem.add_development_dependency 'rspec-rails'
|
|
21
21
|
gem.add_development_dependency 'rspec-its'
|
data/lib/jpmobile.rb
CHANGED
data/lib/jpmobile/mail.rb
CHANGED
|
@@ -54,8 +54,7 @@ module Mail
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def parse_message_with_jpmobile
|
|
57
|
-
|
|
58
|
-
header_part, body_part = _crlf_raw_source.lstrip.split(/#{CRLF}#{CRLF}|#{CRLF}#{WSP}*#{CRLF}(?!#{WSP})/m, 2)
|
|
57
|
+
header_part, body_part = raw_source.lstrip.split(/#{CRLF}#{CRLF}|#{CRLF}#{WSP}*#{CRLF}(?!#{WSP})/m, 2)
|
|
59
58
|
# header_part, body_part = raw_source.lstrip.split(HEADER_SEPARATOR, 2)
|
|
60
59
|
|
|
61
60
|
self.header = header_part
|
|
@@ -82,9 +81,6 @@ module Mail
|
|
|
82
81
|
def init_with_string(string)
|
|
83
82
|
# convert to ASCII-8BIT for ascii incompatible encodings
|
|
84
83
|
s = Jpmobile::Util.ascii_8bit(string)
|
|
85
|
-
unless s.ascii_only?
|
|
86
|
-
s = s.kind_of?(String) ? s.to_str.encode(s.encoding, :universal_newline => true).encode!(s.encoding, :crlf_newline => true) : ''
|
|
87
|
-
end
|
|
88
84
|
self.raw_source = s
|
|
89
85
|
set_envelope_header
|
|
90
86
|
parse_message
|
|
@@ -316,7 +312,7 @@ module Mail
|
|
|
316
312
|
_raw_source = if transfer_encoding == encoding
|
|
317
313
|
@raw_source.dup
|
|
318
314
|
else
|
|
319
|
-
|
|
315
|
+
get_best_encoding(transfer_encoding).encode(@raw_source)
|
|
320
316
|
end
|
|
321
317
|
Jpmobile::Util.set_encoding(_raw_source, @mobile.mail_charset(@charset))
|
|
322
318
|
when /quoted-printable/
|
|
@@ -335,7 +331,7 @@ module Mail
|
|
|
335
331
|
|
|
336
332
|
# fix charset
|
|
337
333
|
def set_charset_with_jpmobile
|
|
338
|
-
@charset ||=
|
|
334
|
+
@charset ||= only_us_ascii? ? 'US-ASCII' : nil
|
|
339
335
|
end
|
|
340
336
|
|
|
341
337
|
def mobile=(m)
|
|
@@ -513,15 +509,6 @@ module Mail
|
|
|
513
509
|
def encoded_with_jpmobile
|
|
514
510
|
if @mobile
|
|
515
511
|
self.charset = @mobile.mail_charset
|
|
516
|
-
|
|
517
|
-
_value = address_list.addresses.map { |_a|
|
|
518
|
-
if Utilities.blank?(_a.display_name) || _a.display_name.ascii_only?
|
|
519
|
-
_a.to_s
|
|
520
|
-
else
|
|
521
|
-
"#{@mobile.to_mail_subject(_a.display_name)} <#{_a.address}>"
|
|
522
|
-
end
|
|
523
|
-
}.join(", ")
|
|
524
|
-
@address_list = AddressList.new(_value)
|
|
525
512
|
end
|
|
526
513
|
|
|
527
514
|
encoded_without_jpmobile
|
|
@@ -552,15 +539,6 @@ module Mail
|
|
|
552
539
|
def encoded_with_jpmobile
|
|
553
540
|
if @mobile
|
|
554
541
|
self.charset = @mobile.mail_charset
|
|
555
|
-
|
|
556
|
-
_value = address_list.addresses.map { |_a|
|
|
557
|
-
if Utilities.blank?(_a.display_name) || _a.display_name.ascii_only?
|
|
558
|
-
_a.to_s
|
|
559
|
-
else
|
|
560
|
-
"#{@mobile.to_mail_subject(_a.display_name)} <#{_a.address}>"
|
|
561
|
-
end
|
|
562
|
-
}.join(", ")
|
|
563
|
-
@address_list = AddressList.new(_value)
|
|
564
542
|
end
|
|
565
543
|
|
|
566
544
|
encoded_without_jpmobile
|
data/lib/jpmobile/resolver.rb
CHANGED
|
@@ -14,27 +14,11 @@ module Jpmobile
|
|
|
14
14
|
def query(path, details, formats, outside_app_allowed)
|
|
15
15
|
query = build_query(path, details)
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
template_paths = reject_files_external_to_app(template_paths) unless outside_app_allowed
|
|
20
|
-
rescue NoMethodError
|
|
21
|
-
self.class_eval do
|
|
22
|
-
def find_template_paths(query)
|
|
23
|
-
# deals with case-insensitive file systems.
|
|
24
|
-
sanitizer = Hash.new { |h, dir| h[dir] = Dir["#{dir}/*"] }
|
|
17
|
+
template_paths = find_template_paths(query)
|
|
18
|
+
template_paths = reject_files_external_to_app(template_paths) unless outside_app_allowed
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
!sanitizer[File.dirname(filename)].include?(filename)
|
|
29
|
-
}
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
retry
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
template_paths.map { |template|
|
|
37
|
-
handler, format, variant = extract_handler_and_format_and_variant(template, formats)
|
|
20
|
+
template_paths.map do |template|
|
|
21
|
+
handler, format, variant = extract_handler_and_format_and_variant(template)
|
|
38
22
|
contents = File.binread(template)
|
|
39
23
|
|
|
40
24
|
virtual_path = if format
|
|
@@ -56,7 +40,7 @@ module Jpmobile
|
|
|
56
40
|
variant: variant,
|
|
57
41
|
updated_at: mtime(template)
|
|
58
42
|
)
|
|
59
|
-
|
|
43
|
+
end
|
|
60
44
|
end
|
|
61
45
|
end
|
|
62
46
|
end
|
data/lib/jpmobile/version.rb
CHANGED
data/spec/unit/mail_spec.rb
CHANGED
|
@@ -347,8 +347,8 @@ describe 'Jpmobile::Mail' do
|
|
|
347
347
|
enable_starttls_auto: false,
|
|
348
348
|
user_name: ENV['MAILTRAP_USERNAME'],
|
|
349
349
|
password: ENV['MAILTRAP_PASSWORD'],
|
|
350
|
-
address: '
|
|
351
|
-
domain: '
|
|
350
|
+
address: 'mailtrap.io',
|
|
351
|
+
domain: 'mailtrap.io',
|
|
352
352
|
port: '2525',
|
|
353
353
|
authentication: :cram_md5,
|
|
354
354
|
}
|
|
@@ -207,7 +207,7 @@ describe 'Jpmobile::Mail#receive' do
|
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
it 'body should be parsed correctly' do
|
|
210
|
-
expect(@mail.body.to_s).to eq("本文\
|
|
210
|
+
expect(@mail.body.to_s).to eq("本文\nFor docomo\n\n")
|
|
211
211
|
end
|
|
212
212
|
|
|
213
213
|
context 'to_s' do
|
|
@@ -352,7 +352,7 @@ describe 'Jpmobile::Mail#receive' do
|
|
|
352
352
|
end
|
|
353
353
|
|
|
354
354
|
it 'body should be parsed correctly' do
|
|
355
|
-
expect(@mail.body.to_s).to eq("本文\
|
|
355
|
+
expect(@mail.body.to_s).to eq("本文\nFor softbank\n\n")
|
|
356
356
|
end
|
|
357
357
|
|
|
358
358
|
context 'to_s' do
|
|
@@ -4,7 +4,7 @@ gem 'jpmobile', path: './vendor/jpmobile'
|
|
|
4
4
|
gem 'jpmobile-terminfo', path: './vendor/jpmobile-terminfo'
|
|
5
5
|
gem 'jpmobile-ipaddresses', path: './vendor/jpmobile-ipaddresses'
|
|
6
6
|
|
|
7
|
-
gem 'activerecord-session_store', git: 'https://github.com/
|
|
7
|
+
gem 'activerecord-session_store', git: 'https://github.com/rust/activerecord-session_store', branch: 'rails-5.1-only'
|
|
8
8
|
|
|
9
9
|
gem 'pry'
|
|
10
10
|
gem 'pry-byebug'
|
|
@@ -12,6 +12,5 @@ gem 'pry-byebug'
|
|
|
12
12
|
# Bundle gems for certain environments:
|
|
13
13
|
group :development, :test do
|
|
14
14
|
gem "rspec-rails"
|
|
15
|
-
gem 'capybara-webkit'
|
|
16
15
|
gem 'rails-controller-testing'
|
|
17
16
|
end
|
|
@@ -18,7 +18,7 @@ describe 'jpmobile integration spec', type: :feature do
|
|
|
18
18
|
end
|
|
19
19
|
it 'は 変換されない' do
|
|
20
20
|
visit "/#{controller}/nbsp_char"
|
|
21
|
-
expect(page.body.encode('UTF-8')).to have_content(
|
|
21
|
+
expect(page.body.encode('UTF-8')).to have_content('アブラ カダブラ')
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -33,7 +33,7 @@ describe 'jpmobile integration spec', type: :feature do
|
|
|
33
33
|
end
|
|
34
34
|
it 'は 変換されない' do
|
|
35
35
|
visit "/#{controller}/nbsp_char"
|
|
36
|
-
expect(page.body.encode('UTF-8')).to have_content(
|
|
36
|
+
expect(page.body.encode('UTF-8')).to have_content('アブラ カダブラ')
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jpmobile
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.0
|
|
4
|
+
version: 5.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shin-ichiro OGAWA
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: 5.
|
|
20
|
+
version: 5.1.0
|
|
21
21
|
type: :development
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: 5.
|
|
27
|
+
version: 5.1.0
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: rspec
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -161,6 +161,7 @@ files:
|
|
|
161
161
|
- ".gitignore"
|
|
162
162
|
- ".rspec"
|
|
163
163
|
- ".rubocop.yml"
|
|
164
|
+
- ".ruby-version"
|
|
164
165
|
- CONTRIBUTING.md
|
|
165
166
|
- Gemfile
|
|
166
167
|
- Gemfile.lock
|
|
@@ -281,7 +282,6 @@ files:
|
|
|
281
282
|
- spec/unit/variants_spec.rb
|
|
282
283
|
- test/rails/.gitignore
|
|
283
284
|
- test/rails/overrides/.rspec
|
|
284
|
-
- test/rails/overrides/Gemfile
|
|
285
285
|
- test/rails/overrides/Gemfile.jpmobile
|
|
286
286
|
- test/rails/overrides/app/controllers/admin/top_controller.rb
|
|
287
287
|
- test/rails/overrides/app/controllers/application_controller.rb
|
|
@@ -436,7 +436,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
436
436
|
version: '0'
|
|
437
437
|
requirements: []
|
|
438
438
|
rubyforge_project:
|
|
439
|
-
rubygems_version: 2.6.
|
|
439
|
+
rubygems_version: 2.6.11
|
|
440
440
|
signing_key:
|
|
441
441
|
specification_version: 4
|
|
442
442
|
summary: Rails plugin for mobile devices in Japan
|
|
@@ -497,7 +497,6 @@ test_files:
|
|
|
497
497
|
- spec/unit/variants_spec.rb
|
|
498
498
|
- test/rails/.gitignore
|
|
499
499
|
- test/rails/overrides/.rspec
|
|
500
|
-
- test/rails/overrides/Gemfile
|
|
501
500
|
- test/rails/overrides/Gemfile.jpmobile
|
|
502
501
|
- test/rails/overrides/app/controllers/admin/top_controller.rb
|
|
503
502
|
- test/rails/overrides/app/controllers/application_controller.rb
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
git_source(:github) do |repo_name|
|
|
4
|
-
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
|
5
|
-
"https://github.com/#{repo_name}.git"
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
|
10
|
-
gem 'rails', '~> 5.0.3'
|
|
11
|
-
# Use sqlite3 as the database for Active Record
|
|
12
|
-
gem 'sqlite3', '~> 1.3.6'
|
|
13
|
-
# Use Puma as the app server
|
|
14
|
-
gem 'puma', '~> 3.0'
|
|
15
|
-
# Use SCSS for stylesheets
|
|
16
|
-
gem 'sass-rails', '~> 5.0'
|
|
17
|
-
# Use Uglifier as compressor for JavaScript assets
|
|
18
|
-
gem 'uglifier', '>= 1.3.0'
|
|
19
|
-
# Use CoffeeScript for .coffee assets and views
|
|
20
|
-
gem 'coffee-rails', '~> 4.2'
|
|
21
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
|
22
|
-
# gem 'therubyracer', platforms: :ruby
|
|
23
|
-
|
|
24
|
-
# Use jquery as the JavaScript library
|
|
25
|
-
gem 'jquery-rails'
|
|
26
|
-
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
|
27
|
-
gem 'turbolinks', '~> 5'
|
|
28
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
|
29
|
-
gem 'jbuilder', '~> 2.5'
|
|
30
|
-
# Use Redis adapter to run Action Cable in production
|
|
31
|
-
# gem 'redis', '~> 3.0'
|
|
32
|
-
# Use ActiveModel has_secure_password
|
|
33
|
-
# gem 'bcrypt', '~> 3.1.7'
|
|
34
|
-
|
|
35
|
-
# Use Capistrano for deployment
|
|
36
|
-
# gem 'capistrano-rails', group: :development
|
|
37
|
-
|
|
38
|
-
group :development, :test do
|
|
39
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
|
40
|
-
gem 'byebug', platform: :mri
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
group :development do
|
|
44
|
-
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
|
45
|
-
gem 'web-console', '>= 3.3.0'
|
|
46
|
-
gem 'listen', '~> 3.0.5'
|
|
47
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
|
48
|
-
gem 'spring'
|
|
49
|
-
gem 'spring-watcher-listen', '~> 2.0.0'
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
53
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
|
54
|
-
instance_eval File.read(File.expand_path(__FILE__) + '.jpmobile')
|