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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac03d20a6767f08291cca46ef03c77f8989fd22eb391050e64c6bd2b5cc57412
4
- data.tar.gz: 06a3b0a39ec785fd73725260d5934a0520e22284e56948b03a1bfc24ac35d3d9
3
+ metadata.gz: 9f7358990dba35c3c047f671e22d5bf889b75108be086326ad7c4536f309216a
4
+ data.tar.gz: 101f9ba9c359a1e465934476d0a3b67579cd2a2b303a089bac3b127690801e01
5
5
  SHA512:
6
- metadata.gz: 2dfc7bfe8d8ded10cd65b4f37b1dd38e6b6e4fc4590a9ef77e94150390c51a40b75e35d13db0254af64f3d62442daa405bf471643187ee2350c6058398c5c82f
7
- data.tar.gz: 3ed3c972a146fe265c66ed941c674252da339f7e243a9f75b608e893a277662cab57aefd307247084ce78e8e338e2c97aff86f4753e861f5fe41de3d497fa5dc
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-2024 Shintaro Kojima
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
@@ -181,4 +181,4 @@ dotenv -f ~/.sakura.env sakura
181
181
 
182
182
  ## Copyright and License
183
183
 
184
- Copyright (c) 2015-2024 Shintaro Kojima. Code released under the [MIT license](LICENSE).
184
+ Copyright (c) 2015-2025 Shintaro Kojima. Code released under the [MIT license](LICENSE).
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sakura
4
4
  module Cli
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
@@ -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, /メールアドレス一覧/) do |page|
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]} /".to_s.rjust(15) <<
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.0
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: 2024-04-07 00:00:00.000000000 Z
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.4.1
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: []