sakura-cli 0.3.0 → 0.3.1
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/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/sakura/cli/version.rb +1 -1
- data/lib/sakura/mail_address.rb +5 -5
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f7358990dba35c3c047f671e22d5bf889b75108be086326ad7c4536f309216a
|
4
|
+
data.tar.gz: 101f9ba9c359a1e465934476d0a3b67579cd2a2b303a089bac3b127690801e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9885961c6790969dfa6f44743175c215fa577d1be4f2b0bc952dcb9d0bd3f020ab07a601ecea346c4922ad2cef62e5c72edc5d4614cfd5888da6c29ce48a99e
|
7
|
+
data.tar.gz: 1fb759e6ed463842db9e70f14d61e422d1bc2349e7cfc747c2b3df74ab1c563d9aac5522b983761c8c23d8da74b30d8d1ab23463f9ee77c7ea0d76167e7335a7
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2015-
|
3
|
+
Copyright (c) 2015-2025 Shintaro Kojima
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
data/lib/sakura/cli/version.rb
CHANGED
data/lib/sakura/mail_address.rb
CHANGED
@@ -10,7 +10,7 @@ module Sakura
|
|
10
10
|
|
11
11
|
class << self
|
12
12
|
def create(local_part, password)
|
13
|
-
Client.current_session.process(MAIL_URL,
|
13
|
+
Client.current_session.process(MAIL_URL, /メールアドレス/) do |page|
|
14
14
|
page.first(:xpath, '//a[text() = "新規追加"]').click
|
15
15
|
|
16
16
|
page.find(:xpath, '//label[contains(text(), "ユーザ名")]/..//input')
|
@@ -26,7 +26,7 @@ module Sakura
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def all
|
29
|
-
page = Client.current_session.get(MAIL_URL,
|
29
|
+
page = Client.current_session.get(MAIL_URL, /メールアドレス/)
|
30
30
|
page.find('.input-text.page-limit-selector').select '300件'
|
31
31
|
wait_for_loading page
|
32
32
|
|
@@ -36,7 +36,7 @@ module Sakura
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def find(local_part)
|
39
|
-
page = Client.current_session.get(MAIL_URL,
|
39
|
+
page = Client.current_session.get(MAIL_URL, /メールアドレス/)
|
40
40
|
page.find('.input-text.page-limit-selector').select '300件'
|
41
41
|
wait_for_loading page
|
42
42
|
|
@@ -63,7 +63,7 @@ module Sakura
|
|
63
63
|
|
64
64
|
def tabularize(*args)
|
65
65
|
args[0].ljust(20) <<
|
66
|
-
"#{args[1]} /".
|
66
|
+
"#{args[1]} /".rjust(15) <<
|
67
67
|
args[2].to_s.rjust(10) <<
|
68
68
|
" (#{args[3].to_s.rjust(3)})"
|
69
69
|
end
|
@@ -229,7 +229,7 @@ module Sakura
|
|
229
229
|
action = 'メールを破棄'
|
230
230
|
when :mark
|
231
231
|
text = '簡易' # "迷惑メールフィルタ" doesn't work
|
232
|
-
action = '
|
232
|
+
action = 'フィルターのみ利用'
|
233
233
|
when :precise
|
234
234
|
'高精度迷惑メールフィルタ'
|
235
235
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sakura-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shintaro Kojima
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-05-17 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: capybara
|
@@ -82,7 +81,6 @@ licenses:
|
|
82
81
|
- MIT
|
83
82
|
metadata:
|
84
83
|
rubygems_mfa_required: 'true'
|
85
|
-
post_install_message:
|
86
84
|
rdoc_options: []
|
87
85
|
require_paths:
|
88
86
|
- lib
|
@@ -97,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
95
|
- !ruby/object:Gem::Version
|
98
96
|
version: '0'
|
99
97
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
101
|
-
signing_key:
|
98
|
+
rubygems_version: 3.6.2
|
102
99
|
specification_version: 4
|
103
100
|
summary: Command-line tool for Sakura's Rental Server.
|
104
101
|
test_files: []
|