lita-address-me 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 +7 -0
- data/.gitignore +19 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/lita-address-me.iml +34 -0
- data/.idea/misc.xml +14 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +227 -0
- data/Gemfile +3 -0
- data/README.md +19 -0
- data/Rakefile +6 -0
- data/lib/lita/handlers/address_me.rb +17 -0
- data/lib/lita-address-me.rb +12 -0
- data/lita-address-me.gemspec +24 -0
- data/locales/en.yml +4 -0
- data/spec/lita/handlers/address_me_spec.rb +14 -0
- data/spec/spec_helper.rb +6 -0
- data/templates/.gitkeep +0 -0
- metadata +149 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ae1a62ab40a0167ebcb0fc7bbebb189f31a3439b
|
4
|
+
data.tar.gz: 6452e4cb911461da02b2394c77f5e61471a239ec
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d6a7cd6e3c370922b82552968fb15b4ce1c0261cacf3bd1955d8fdf079c27df5504798dc34a596b390822bf362bc3620464ab510ae6439cfcda6168e3b7a1e14
|
7
|
+
data.tar.gz: a76677a1ee6ddd883f401be24e85b69a0b57b6a979336d07dbab13d89c5b2748475665c18582fd44fe5a64db1b5efb7dac321f84055108379a62edf99cfbd094
|
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
lita-address-me
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Ruby Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="NewModuleRootManager">
|
13
|
+
<content url="file://$MODULE_DIR$" />
|
14
|
+
<orderEntry type="inheritedJdk" />
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.6, ruby-2.0.0-p645) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.0, ruby-2.0.0-p645) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="faraday (v0.9.2, ruby-2.0.0-p645) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.7.0, ruby-2.0.0-p645) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="method_source (v0.8.2, ruby-2.0.0-p645) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.11.2, ruby-2.0.0-p645) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="multipart-post (v2.0.0, ruby-2.0.0-p645) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="pry (v0.10.3, ruby-2.0.0-p645) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v1.6.4, ruby-2.0.0-p645) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.3, ruby-2.0.0-p645) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v0.9.6, ruby-2.0.0-p645) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="slop (v3.6.0, ruby-2.0.0-p645) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v0.19.1, ruby-2.0.0-p645) [gem]" level="application" />
|
29
|
+
</component>
|
30
|
+
<component name="RModuleSettingsStorage">
|
31
|
+
<LOAD_PATH number="0" />
|
32
|
+
<I18N_FOLDERS number="1" string0="$MODULE_DIR$/locales" />
|
33
|
+
</component>
|
34
|
+
</module>
|
data/.idea/misc.xml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
4
|
+
<OptionsSetting value="true" id="Add" />
|
5
|
+
<OptionsSetting value="true" id="Remove" />
|
6
|
+
<OptionsSetting value="true" id="Checkout" />
|
7
|
+
<OptionsSetting value="true" id="Update" />
|
8
|
+
<OptionsSetting value="true" id="Status" />
|
9
|
+
<OptionsSetting value="true" id="Edit" />
|
10
|
+
<ConfirmationsSetting value="0" id="Add" />
|
11
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
12
|
+
</component>
|
13
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.0.0-p645" project-jdk-type="RUBY_SDK" />
|
14
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/lita-address-me.iml" filepath="$PROJECT_DIR$/.idea/lita-address-me.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="56e42e64-4b5c-4e51-8d4f-43e8fd328332" name="Default" comment="" />
|
5
|
+
<ignored path="lita-address-me.iws" />
|
6
|
+
<ignored path=".idea/workspace.xml" />
|
7
|
+
<ignored path=".idea/dataSources.local.xml" />
|
8
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
9
|
+
<option name="TRACKING_ENABLED" value="true" />
|
10
|
+
<option name="SHOW_DIALOG" value="false" />
|
11
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
12
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
13
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
14
|
+
</component>
|
15
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
16
|
+
<component name="CreatePatchCommitExecutor">
|
17
|
+
<option name="PATCH_PATH" value="" />
|
18
|
+
</component>
|
19
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
20
|
+
<component name="FavoritesManager">
|
21
|
+
<favorites_list name="lita-address-me" />
|
22
|
+
</component>
|
23
|
+
<component name="FileEditorManager">
|
24
|
+
<leaf>
|
25
|
+
<file leaf-file-name="address_me.rb" pinned="false" current-in-tab="false">
|
26
|
+
<entry file="file://$PROJECT_DIR$/lib/lita/handlers/address_me.rb">
|
27
|
+
<provider selected="true" editor-type-id="text-editor">
|
28
|
+
<state vertical-scroll-proportion="0.0">
|
29
|
+
<caret line="10" column="43" selection-start-line="10" selection-start-column="43" selection-end-line="10" selection-end-column="43" />
|
30
|
+
<folding />
|
31
|
+
</state>
|
32
|
+
</provider>
|
33
|
+
</entry>
|
34
|
+
</file>
|
35
|
+
<file leaf-file-name="address_me_spec.rb" pinned="false" current-in-tab="true">
|
36
|
+
<entry file="file://$PROJECT_DIR$/spec/lita/handlers/address_me_spec.rb">
|
37
|
+
<provider selected="true" editor-type-id="text-editor">
|
38
|
+
<state vertical-scroll-proportion="0.047581285">
|
39
|
+
<caret line="4" column="2" selection-start-line="4" selection-start-column="2" selection-end-line="4" selection-end-column="2" />
|
40
|
+
<folding />
|
41
|
+
</state>
|
42
|
+
</provider>
|
43
|
+
</entry>
|
44
|
+
</file>
|
45
|
+
</leaf>
|
46
|
+
</component>
|
47
|
+
<component name="Git.Settings">
|
48
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
49
|
+
</component>
|
50
|
+
<component name="IdeDocumentHistory">
|
51
|
+
<option name="CHANGED_PATHS">
|
52
|
+
<list>
|
53
|
+
<option value="$PROJECT_DIR$/lib/lita/handlers/address_me.rb" />
|
54
|
+
<option value="$PROJECT_DIR$/spec/lita/handlers/address_me_spec.rb" />
|
55
|
+
</list>
|
56
|
+
</option>
|
57
|
+
</component>
|
58
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" />
|
59
|
+
<component name="JsGulpfileManager">
|
60
|
+
<detection-done>true</detection-done>
|
61
|
+
</component>
|
62
|
+
<component name="NamedScopeManager">
|
63
|
+
<order />
|
64
|
+
</component>
|
65
|
+
<component name="ProjectFrameBounds">
|
66
|
+
<option name="x" value="611" />
|
67
|
+
<option name="y" value="23" />
|
68
|
+
<option name="width" value="1364" />
|
69
|
+
<option name="height" value="1332" />
|
70
|
+
</component>
|
71
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
72
|
+
<OptionsSetting value="true" id="Add" />
|
73
|
+
<OptionsSetting value="true" id="Remove" />
|
74
|
+
<OptionsSetting value="true" id="Checkout" />
|
75
|
+
<OptionsSetting value="true" id="Update" />
|
76
|
+
<OptionsSetting value="true" id="Status" />
|
77
|
+
<OptionsSetting value="true" id="Edit" />
|
78
|
+
<ConfirmationsSetting value="0" id="Add" />
|
79
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
80
|
+
</component>
|
81
|
+
<component name="ProjectView">
|
82
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
83
|
+
<flattenPackages />
|
84
|
+
<showMembers />
|
85
|
+
<showModules />
|
86
|
+
<showLibraryContents />
|
87
|
+
<hideEmptyPackages />
|
88
|
+
<abbreviatePackageNames />
|
89
|
+
<autoscrollToSource />
|
90
|
+
<autoscrollFromSource />
|
91
|
+
<sortByType />
|
92
|
+
</navigator>
|
93
|
+
<panes>
|
94
|
+
<pane id="Scope" />
|
95
|
+
<pane id="ProjectPane">
|
96
|
+
<subPane>
|
97
|
+
<PATH>
|
98
|
+
<PATH_ELEMENT>
|
99
|
+
<option name="myItemId" value="lita-address-me" />
|
100
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
101
|
+
</PATH_ELEMENT>
|
102
|
+
</PATH>
|
103
|
+
<PATH>
|
104
|
+
<PATH_ELEMENT>
|
105
|
+
<option name="myItemId" value="lita-address-me" />
|
106
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
107
|
+
</PATH_ELEMENT>
|
108
|
+
<PATH_ELEMENT>
|
109
|
+
<option name="myItemId" value="lita-address-me" />
|
110
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
111
|
+
</PATH_ELEMENT>
|
112
|
+
</PATH>
|
113
|
+
<PATH>
|
114
|
+
<PATH_ELEMENT>
|
115
|
+
<option name="myItemId" value="lita-address-me" />
|
116
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
117
|
+
</PATH_ELEMENT>
|
118
|
+
<PATH_ELEMENT>
|
119
|
+
<option name="myItemId" value="lita-address-me" />
|
120
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
121
|
+
</PATH_ELEMENT>
|
122
|
+
<PATH_ELEMENT>
|
123
|
+
<option name="myItemId" value="lib" />
|
124
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
125
|
+
</PATH_ELEMENT>
|
126
|
+
</PATH>
|
127
|
+
<PATH>
|
128
|
+
<PATH_ELEMENT>
|
129
|
+
<option name="myItemId" value="lita-address-me" />
|
130
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
131
|
+
</PATH_ELEMENT>
|
132
|
+
<PATH_ELEMENT>
|
133
|
+
<option name="myItemId" value="lita-address-me" />
|
134
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
135
|
+
</PATH_ELEMENT>
|
136
|
+
<PATH_ELEMENT>
|
137
|
+
<option name="myItemId" value="lib" />
|
138
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
139
|
+
</PATH_ELEMENT>
|
140
|
+
<PATH_ELEMENT>
|
141
|
+
<option name="myItemId" value="lita" />
|
142
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
143
|
+
</PATH_ELEMENT>
|
144
|
+
<PATH_ELEMENT>
|
145
|
+
<option name="myItemId" value="handlers" />
|
146
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
147
|
+
</PATH_ELEMENT>
|
148
|
+
</PATH>
|
149
|
+
</subPane>
|
150
|
+
</pane>
|
151
|
+
<pane id="Scratches" />
|
152
|
+
</panes>
|
153
|
+
</component>
|
154
|
+
<component name="PropertiesComponent">
|
155
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
156
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
157
|
+
<property name="ToolWindowMessages.ShowToolbar" value="false" />
|
158
|
+
</component>
|
159
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
160
|
+
<component name="TaskManager">
|
161
|
+
<task active="true" id="Default" summary="Default task">
|
162
|
+
<changelist id="56e42e64-4b5c-4e51-8d4f-43e8fd328332" name="Default" comment="" />
|
163
|
+
<created>1448072169476</created>
|
164
|
+
<option name="number" value="Default" />
|
165
|
+
<updated>1448072169476</updated>
|
166
|
+
</task>
|
167
|
+
<servers />
|
168
|
+
</component>
|
169
|
+
<component name="ToolWindowManager">
|
170
|
+
<frame x="611" y="23" width="1364" height="1332" extended-state="0" />
|
171
|
+
<editor active="true" />
|
172
|
+
<layout>
|
173
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32971296" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
174
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
175
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
176
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
177
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
178
|
+
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
179
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
180
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
181
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
182
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
183
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
184
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
185
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
186
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
187
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
188
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
189
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
190
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
191
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
192
|
+
</layout>
|
193
|
+
</component>
|
194
|
+
<component name="VcsContentAnnotationSettings">
|
195
|
+
<option name="myLimit" value="2678400000" />
|
196
|
+
</component>
|
197
|
+
<component name="XDebuggerManager">
|
198
|
+
<breakpoint-manager />
|
199
|
+
<watches-manager />
|
200
|
+
</component>
|
201
|
+
<component name="editorHistoryManager">
|
202
|
+
<entry file="file://$PROJECT_DIR$/lib/lita/handlers/address_me.rb">
|
203
|
+
<provider selected="true" editor-type-id="text-editor">
|
204
|
+
<state vertical-scroll-proportion="0.0">
|
205
|
+
<caret line="10" column="43" selection-start-line="10" selection-start-column="43" selection-end-line="10" selection-end-column="43" />
|
206
|
+
<folding />
|
207
|
+
</state>
|
208
|
+
</provider>
|
209
|
+
</entry>
|
210
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
211
|
+
<provider selected="true" editor-type-id="text-editor">
|
212
|
+
<state vertical-scroll-proportion="0.0">
|
213
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
214
|
+
<folding />
|
215
|
+
</state>
|
216
|
+
</provider>
|
217
|
+
</entry>
|
218
|
+
<entry file="file://$PROJECT_DIR$/spec/lita/handlers/address_me_spec.rb">
|
219
|
+
<provider selected="true" editor-type-id="text-editor">
|
220
|
+
<state vertical-scroll-proportion="0.047581285">
|
221
|
+
<caret line="4" column="2" selection-start-line="4" selection-start-column="2" selection-end-line="4" selection-end-column="2" />
|
222
|
+
<folding />
|
223
|
+
</state>
|
224
|
+
</provider>
|
225
|
+
</entry>
|
226
|
+
</component>
|
227
|
+
</project>
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# lita-address-me
|
2
|
+
|
3
|
+
TODO: Add a description of the plugin.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add lita-address-me to your Lita instance's Gemfile:
|
8
|
+
|
9
|
+
``` ruby
|
10
|
+
gem "lita-address-me"
|
11
|
+
```
|
12
|
+
|
13
|
+
## Configuration
|
14
|
+
|
15
|
+
TODO: Describe any configuration attributes the plugin exposes.
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
TODO: Describe the plugin's features and how to use them.
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
module Lita
|
2
|
+
module Handlers
|
3
|
+
class AddressMe < Handler
|
4
|
+
config(:office_address, type: String, required: true)
|
5
|
+
|
6
|
+
route(/address me/, :show_address, command: true, help: {
|
7
|
+
'address me' => 'Responds with the address of the office.'
|
8
|
+
})
|
9
|
+
|
10
|
+
def show_address(message)
|
11
|
+
message.reply(config.office_address)
|
12
|
+
end
|
13
|
+
|
14
|
+
Lita.register_handler(self)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require "lita"
|
2
|
+
|
3
|
+
Lita.load_locales Dir[File.expand_path(
|
4
|
+
File.join("..", "..", "locales", "*.yml"), __FILE__
|
5
|
+
)]
|
6
|
+
|
7
|
+
require "lita/handlers/address_me"
|
8
|
+
|
9
|
+
Lita::Handlers::AddressMe.template_root File.expand_path(
|
10
|
+
File.join("..", "..", "templates"),
|
11
|
+
__FILE__
|
12
|
+
)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Gem::Specification.new do |spec|
|
2
|
+
spec.name = "lita-address-me"
|
3
|
+
spec.version = "0.1.0"
|
4
|
+
spec.authors = ["Danny Greg"]
|
5
|
+
spec.email = ["danny@dannygreg.com"]
|
6
|
+
spec.description = "Return an address for your chosen place of work."
|
7
|
+
spec.summary = "Return an address for your chosen place of work."
|
8
|
+
spec.homepage = "http://www.github.com/dannygreg/lita-address-me"
|
9
|
+
spec.license = "MIT"
|
10
|
+
spec.metadata = { "lita_plugin_type" => "handler" }
|
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.6"
|
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,14 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Lita::Handlers::AddressMe, lita_handler: true do
|
4
|
+
expected_string = 'The configured office address'
|
5
|
+
|
6
|
+
before do
|
7
|
+
registry.config.handlers.address_me.office_address = expected_string
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should respond with the address' do
|
11
|
+
send_command('address me')
|
12
|
+
expect(replies.last).to eq expected_string
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
data/templates/.gitkeep
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lita-address-me
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Danny Greg
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-21 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.6'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.6'
|
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: Return an address for your chosen place of work.
|
98
|
+
email:
|
99
|
+
- danny@dannygreg.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".idea/.name"
|
106
|
+
- ".idea/.rakeTasks"
|
107
|
+
- ".idea/lita-address-me.iml"
|
108
|
+
- ".idea/misc.xml"
|
109
|
+
- ".idea/modules.xml"
|
110
|
+
- ".idea/vcs.xml"
|
111
|
+
- ".idea/workspace.xml"
|
112
|
+
- Gemfile
|
113
|
+
- README.md
|
114
|
+
- Rakefile
|
115
|
+
- lib/lita-address-me.rb
|
116
|
+
- lib/lita/handlers/address_me.rb
|
117
|
+
- lita-address-me.gemspec
|
118
|
+
- locales/en.yml
|
119
|
+
- spec/lita/handlers/address_me_spec.rb
|
120
|
+
- spec/spec_helper.rb
|
121
|
+
- templates/.gitkeep
|
122
|
+
homepage: http://www.github.com/dannygreg/lita-address-me
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
|
+
metadata:
|
126
|
+
lita_plugin_type: handler
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.4.5.1
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: Return an address for your chosen place of work.
|
147
|
+
test_files:
|
148
|
+
- spec/lita/handlers/address_me_spec.rb
|
149
|
+
- spec/spec_helper.rb
|