lita-locale_ja 0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3ed6c0768ecc795e7a7227d3c149c270512dbd897a64f501209d63555e8cbb0c
4
+ data.tar.gz: 0d740c102112f69371f7e172896304cb9c83ac65fe1c9d1d971885e5548b6be7
5
+ SHA512:
6
+ metadata.gz: 6d24e4e79948ed788cb58373d857abf68a7f46fe6d5d7a17a7cefd6a01d584d62436780bfd715a200f895351b459caa1132e38ad4be2adcbdabef5ca48e6c28b
7
+ data.tar.gz: 15731916983de0616c429637fc5cd5fed3cf1cd039620b82ab6e463abde3c2df21bc6c6d3e436acd04680ed7e29434e9a40f5cdeb7ff25d331aa62991a0e53e4
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 risacan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # lita-locale_ja
2
+
3
+ TODO: Add a description of the plugin.
4
+
5
+ ## Installation
6
+
7
+ Add lita-locale_ja to your Lita plugin's gemspec:
8
+
9
+ ``` ruby
10
+ spec.add_runtime_dependency "lita-locale_ja"
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ TODO: Describe the plugin's features and how to use them.
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,11 @@
1
+ module Lita
2
+ module Extensions
3
+ class LocaleJa
4
+ # insert extension code here
5
+
6
+ # If your extension needs to register with a Lita hook, uncomment the
7
+ # following line and change the hook name to the appropriate value:
8
+ # Lita.register_hook(:hook_name, self)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ require "lita"
2
+
3
+ Lita.load_locales Dir[File.expand_path(
4
+ File.join("..", "..", "locales", "*.yml"), __FILE__
5
+ )]
6
+
7
+ require "lita/extensions/locale_ja"
@@ -0,0 +1,24 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "lita-locale_ja"
3
+ spec.version = "0.1.0"
4
+ spec.authors = ["Risa Harada"]
5
+ spec.email = ["supikateriburu@gmail.com"]
6
+ spec.description = "Litaの日本語localeファイルです。"
7
+ spec.summary = ""
8
+ spec.homepage = "https://github.com/risacan/lita-locale_ja"
9
+ spec.license = ""
10
+ spec.metadata = { "lita_plugin_type" => "extension" }
11
+
12
+ spec.files = `git ls-files`.split($/)
13
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
14
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
+ spec.require_paths = ["lib"]
16
+
17
+ spec.add_runtime_dependency "lita", ">= 4.7"
18
+
19
+ spec.add_development_dependency "bundler", "~> 1.3"
20
+ spec.add_development_dependency "pry-byebug"
21
+ spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "rack-test"
23
+ spec.add_development_dependency "rspec", ">= 3.0.0"
24
+ end
data/locales/en.yml ADDED
@@ -0,0 +1,4 @@
1
+ en:
2
+ lita:
3
+ extensions:
4
+ locale_ja:
data/locales/ja.yml ADDED
@@ -0,0 +1,100 @@
1
+ ja:
2
+ lita:
3
+ adapters:
4
+ shell:
5
+ startup_message: セッションを終了するためには "exit" または "quit" を入力してください。
6
+ core:
7
+ register_adapter:
8
+ block_or_class_required: Lita.register_adapter には引数が2つのクラスが必要です。
9
+ register_handler:
10
+ block_or_class_required: Lita.register_handler には引数が1つのクラスが必要です。
11
+ adapter:
12
+ method_not_implemented: "このアダプターには #%{method} が実装されていません。"
13
+ cli:
14
+ no_gemfile_warning: >-
15
+ デフォルトの "start" コマンドはLitaプロジェクト内で実行しなければなりません。 "lita new" を実行して
16
+ 新しくLitaプロジェクトを作成するか、 `lita help` でコマンドを確認してください。
17
+ travis_question: Travis CI でプラグインをテストしますか? ("yes" または "no" で入力してください。デフォルトは "no" です。)
18
+ coveralls_question: >-
19
+ SimpleCov と Coveralls.io を使ってコードカバレッジを生成しますか? ("yes" または "no" で入力してください。デフォルトは "no" です。)
20
+ license_notice: >-
21
+ このプラグインをオープンソースとして公開する場合、レポジトリのルートディレクトリにLICENSEファイルの追加を検討してください。
22
+
23
+ オープンソースのライセンスについてはこちらで確認できます。 http://choosealicense.com/.
24
+ badges_message: >-
25
+ プラグインのGitレポジトリをGitHubでホストする場合、ビルドステータスとコードカバレッジバッジをREADMEに自動的に追加できます。
26
+ badges_question: >-
27
+ バッジを追加しますか? ("yes" または "no" で入力してください。デフォルトは "no" です。)
28
+ github_user_question: GitHub usernameはなんですか。
29
+ badges_reminder: >-
30
+ プラグインのREADMEにバッジを追加するには、GitHubでホストする必要があります。更に、Travic CIとCoveralls.ioでプロジェクトの設定を行う必要があります。
31
+ minimum_ruby_version: >-
32
+ Lita 6.0 は Ruby %{required_version} か、それ以上の必要があります。現在 %{current_version} を利用しているため、できるだけアップグレードしてください。
33
+ no_default_handlers: |
34
+ Lita 5.0 では、デフォルトのハンドラーは別の lita-default-handlers というgemに切り出されています。
35
+ Lita 5 はこのgemに強く依存しているため、このgemをデフォルトでロードします。しかし、Lita 6.0 では、デフォルトのハンドラーはLitaプロジェクトのGemfileで指定されたときのみロードされます。
36
+ 次の行をLitaプロジェクトのGemfileに追加してください。
37
+
38
+ gem "lita-default-handlers"
39
+ config:
40
+ exception: |
41
+ Lita コンフィギュレーションファイルが処理できません。 例外は以下です:
42
+ %{message}
43
+ フルバックとレース:
44
+ %{backtrace}
45
+ missing_required_adapter_attribute: >-
46
+ "%{attribute}" を設定するには "%{adapter}" アダプターが必要です。
47
+ missing_required_handler_attribute: >-
48
+ "%{attribute}" を設定するには "%{adapter}" ハンドラーが必要です。
49
+ type_error: >-
50
+ 設定タイプエラー: "%{attribute}"は %{types} のどれかである必要があります。
51
+ validation_error: >-
52
+ "%{attribute}" はバリデーションエラーです。: %{message}
53
+ handler:
54
+ dispatch: "%{handler}#%{method}へのメッセージを処理しています。"
55
+ exception: |
56
+ %{handler} がクラッシュしました。例外:
57
+ %{message}
58
+ フルバックトレース:
59
+ %{backtrace}
60
+ http:
61
+ exception: |
62
+ Litaのビルトインサーバーがスタートできません。例外:
63
+ %{message}
64
+ フルバックトレース:
65
+ %{backtrace}
66
+ plugin:
67
+ name_required: 匿名クラスのプラグインにはネームスペースをセットするか、 self.name を定義してください。
68
+ redis:
69
+ exception: |
70
+ LitaがRedisに接続できません。例外:
71
+ %{message}
72
+ フルバックトレース:
73
+ %{backtrace}
74
+ test_mode_exception: |
75
+ LitaがRedisに接続できません。例外:
76
+ %{message}
77
+ robot:
78
+ unknown_adapter: "不明なアダプター: :%{adapter}."
79
+ rspec:
80
+ full_suite_required: Lita::RSpec には RSpec::Mocks と RSpec::Expectations の両方が必要です。
81
+ version_3_required: Lita::RSpecを利用するには、 RSpec::Core 3 かそれ以上が必要です。
82
+ rack_test_required: Lita::RSpec の `http` メソッドを利用するために Rack::Test が必要です。
83
+ lita_3_compatibility_mode: >-
84
+ WARNING: Lita 3の互換モードはLita 5で廃止され、Lita 6で削除されます。もはや影響はありません。Lita.version_3_compatibility_modeの利用を削除してください。
85
+ route_failure: |-
86
+ "%{message}"メッセージが:%{route}にルーティングされるはずですが、されませんでした。
87
+ negative_route_failure: |-
88
+ "%{message}"メッセージが:%{route}にルーティングされないはずでしたが、されました。
89
+ http_route_failure: |-
90
+ "%{method} %{path}"へのリクエストが:%{route}にルーティングされるはずでしたが、されませんでした。
91
+ negative_http_route_failure: |-
92
+ "%{method} %{path}"へのリクエストが:%{route}にルーティングされないはずでしたが、されました。
93
+ event_subscription_failure: |-
94
+ トリガーイベント"%{event}"により:%{route}が呼び出されるはずでしたが、されませんでした。
95
+ negative_event_subscription_failure: |-
96
+ トリガーイベント"%{event}"により:%{route}が呼び出されないはずでしたが、されました。
97
+ source:
98
+ user_or_room_required: ユーザーかルームのどちらかが必要です。
99
+ template:
100
+ missing_template: "%{path} にテンプレートファイルがありません。"
@@ -0,0 +1,4 @@
1
+ require "spec_helper"
2
+
3
+ describe Lita::Extensions::LocaleJa, lita: true do
4
+ end
@@ -0,0 +1,6 @@
1
+ require "lita-locale_ja"
2
+ require "lita/rspec"
3
+
4
+ # A compatibility mode is provided for older plugins upgrading from Lita 3. Since this plugin
5
+ # was generated with Lita 4, the compatibility mode should be left disabled.
6
+ Lita.version_3_compatibility_mode = false
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lita-locale_ja
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Risa Harada
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-10-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: lita
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry-byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rack-test
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 3.0.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 3.0.0
97
+ description: Litaの日本語localeファイルです。
98
+ email:
99
+ - supikateriburu@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - Gemfile
106
+ - LICENSE
107
+ - README.md
108
+ - Rakefile
109
+ - lib/lita-locale_ja.rb
110
+ - lib/lita/extensions/locale_ja.rb
111
+ - lita-locale_ja.gemspec
112
+ - locales/en.yml
113
+ - locales/ja.yml
114
+ - spec/lita/extensions/locale_ja_spec.rb
115
+ - spec/spec_helper.rb
116
+ homepage: https://github.com/risacan/lita-locale_ja
117
+ licenses:
118
+ - ''
119
+ metadata:
120
+ lita_plugin_type: extension
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.7.7
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: ''
141
+ test_files:
142
+ - spec/lita/extensions/locale_ja_spec.rb
143
+ - spec/spec_helper.rb