MC-Accountr 0.0.1r1
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 +15 -0
- data/.gitignore +17 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/Accountr.iml +20 -0
- data/.idea/dictionaries/lambdasix.xml +3 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +20 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +326 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +33 -0
- data/Rakefile +1 -0
- data/lib/Accountr/version.rb +3 -0
- data/lib/mc-accountr.rb +36 -0
- data/mc-accountr.gemspec +24 -0
- data/test/accountr_tests.rb +16 -0
- metadata +112 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YWIxMDllMDZiZGY2Mzk5MTNhYzNiMWM3ODI3NDE2N2UyNmM3ZjRmMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OWQwNTgwYTRlZTc4MjkyOTEwYTA3MWM2NjBkYWU3Yzg1YTk0MmExYQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzNmNGRhNzNlMDEzYTk0YmNjMGUyM2U2MmNkMWM5YTllMjViYjcyOGUyOWI2
|
10
|
+
YjM2MjhkNGQxODY3MjhkMmQwNDcxZjY4NTY1MzBiOGVhMzk5N2ZkODg5YmY2
|
11
|
+
ODI3MWQwYTMyZDI2YTg2ZWY0ODgwYmFjN2RjNmJiMzkyY2IzZGM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
N2FjNDRmOWI5ZjIxN2QwMGI4MGM4Y2RhNjE2Yzc1M2ZhYTE4N2IxY2ZjZGNk
|
14
|
+
YmY2NzUxODE3OGU1MTI2ZGMwM2JjMDhiNzVjNWFkZjYxNjYyYzA3NzY2YmI0
|
15
|
+
MDk2NzA3M2UwODkyOTE3Y2VhYWI0YzdiY2Q3YmU0ZjdmZjUzYjM=
|
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Accountr
|
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"><RakeTask description="Build Accountr-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install Accountr-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push Accountr-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/.idea/Accountr.iml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="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="" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="NewModuleRootManager">
|
13
|
+
<content url="file://$MODULE_DIR$" />
|
14
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p545 [accountr]" jdkType="RUBY_SDK" />
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.5.3, RVM: ruby-1.9.3-p545 [accountr]) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, RVM: ruby-1.9.3-p545 [accountr]) [gem]" level="application" />
|
18
|
+
</component>
|
19
|
+
</module>
|
20
|
+
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.1-p431" project-jdk-type="RUBY_SDK" />
|
4
|
+
<component name="masterDetails">
|
5
|
+
<states>
|
6
|
+
<state key="ScopeChooserConfigurable.UI">
|
7
|
+
<settings>
|
8
|
+
<splitter-proportions>
|
9
|
+
<option name="proportions">
|
10
|
+
<list>
|
11
|
+
<option value="0.2" />
|
12
|
+
</list>
|
13
|
+
</option>
|
14
|
+
</splitter-proportions>
|
15
|
+
</settings>
|
16
|
+
</state>
|
17
|
+
</states>
|
18
|
+
</component>
|
19
|
+
</project>
|
20
|
+
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,9 @@
|
|
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/Accountr.iml" filepath="$PROJECT_DIR$/.idea/Accountr.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,326 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="91e6c694-4daa-4b7f-9273-d841106f35e0" name="Default" comment="" />
|
5
|
+
<ignored path="Accountr.iws" />
|
6
|
+
<ignored path=".idea/workspace.xml" />
|
7
|
+
<option name="TRACKING_ENABLED" value="true" />
|
8
|
+
<option name="SHOW_DIALOG" value="false" />
|
9
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
10
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
11
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
12
|
+
</component>
|
13
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
14
|
+
<component name="CreatePatchCommitExecutor">
|
15
|
+
<option name="PATCH_PATH" value="" />
|
16
|
+
</component>
|
17
|
+
<component name="DaemonCodeAnalyzer">
|
18
|
+
<disable_hints />
|
19
|
+
</component>
|
20
|
+
<component name="FavoritesManager">
|
21
|
+
<favorites_list name="Accountr" />
|
22
|
+
</component>
|
23
|
+
<component name="FileEditorManager">
|
24
|
+
<leaf>
|
25
|
+
<file leaf-file-name="mc-accountr.rb" pinned="false" current="false" current-in-tab="false">
|
26
|
+
<entry file="file://$PROJECT_DIR$/lib/mc-accountr.rb">
|
27
|
+
<provider selected="true" editor-type-id="text-editor">
|
28
|
+
<state line="26" column="0" selection-start="572" selection-end="572" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="756">
|
29
|
+
<folding />
|
30
|
+
</state>
|
31
|
+
</provider>
|
32
|
+
</entry>
|
33
|
+
</file>
|
34
|
+
<file leaf-file-name="accountr_tests.rb" pinned="false" current="false" current-in-tab="false">
|
35
|
+
<entry file="file://$PROJECT_DIR$/test/accountr_tests.rb">
|
36
|
+
<provider selected="true" editor-type-id="text-editor">
|
37
|
+
<state line="11" column="0" selection-start="352" selection-end="352" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="378">
|
38
|
+
<folding />
|
39
|
+
</state>
|
40
|
+
</provider>
|
41
|
+
</entry>
|
42
|
+
</file>
|
43
|
+
<file leaf-file-name="README.md" pinned="false" current="true" current-in-tab="true">
|
44
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
45
|
+
<provider selected="true" editor-type-id="text-editor">
|
46
|
+
<state line="26" column="15" selection-start="419" selection-end="419" vertical-scroll-proportion="0.6080402" vertical-offset="105" max-vertical-offset="702">
|
47
|
+
<folding />
|
48
|
+
</state>
|
49
|
+
</provider>
|
50
|
+
</entry>
|
51
|
+
</file>
|
52
|
+
</leaf>
|
53
|
+
</component>
|
54
|
+
<component name="FindManager">
|
55
|
+
<FindUsagesManager>
|
56
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
57
|
+
</FindUsagesManager>
|
58
|
+
</component>
|
59
|
+
<component name="IdeDocumentHistory">
|
60
|
+
<option name="changedFiles">
|
61
|
+
<list>
|
62
|
+
<option value="$PROJECT_DIR$/Accountr.gemspec" />
|
63
|
+
<option value="$PROJECT_DIR$/lib/Accountr/version.rb" />
|
64
|
+
<option value="$PROJECT_DIR$/lib/Accountr.rb" />
|
65
|
+
<option value="$PROJECT_DIR$/mc-accountr.gemspec" />
|
66
|
+
<option value="$PROJECT_DIR$/test/accountr_tests.rb" />
|
67
|
+
<option value="$PROJECT_DIR$/lib/mc-accountr.rb" />
|
68
|
+
<option value="$PROJECT_DIR$/README.md" />
|
69
|
+
</list>
|
70
|
+
</option>
|
71
|
+
</component>
|
72
|
+
<component name="ProjectFrameBounds">
|
73
|
+
<option name="x" value="-1" />
|
74
|
+
<option name="y" value="31" />
|
75
|
+
<option name="width" value="1682" />
|
76
|
+
<option name="height" value="1023" />
|
77
|
+
</component>
|
78
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
79
|
+
<OptionsSetting value="true" id="Add" />
|
80
|
+
<OptionsSetting value="true" id="Remove" />
|
81
|
+
<OptionsSetting value="true" id="Checkout" />
|
82
|
+
<OptionsSetting value="true" id="Update" />
|
83
|
+
<OptionsSetting value="true" id="Status" />
|
84
|
+
<OptionsSetting value="true" id="Edit" />
|
85
|
+
<ConfirmationsSetting value="0" id="Add" />
|
86
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
87
|
+
</component>
|
88
|
+
<component name="ProjectReloadState">
|
89
|
+
<option name="STATE" value="0" />
|
90
|
+
</component>
|
91
|
+
<component name="ProjectView">
|
92
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
93
|
+
<flattenPackages />
|
94
|
+
<showMembers />
|
95
|
+
<showModules />
|
96
|
+
<showLibraryContents />
|
97
|
+
<hideEmptyPackages />
|
98
|
+
<abbreviatePackageNames />
|
99
|
+
<autoscrollToSource />
|
100
|
+
<autoscrollFromSource />
|
101
|
+
<sortByType />
|
102
|
+
</navigator>
|
103
|
+
<panes>
|
104
|
+
<pane id="Scope" />
|
105
|
+
<pane id="ProjectPane">
|
106
|
+
<subPane>
|
107
|
+
<PATH>
|
108
|
+
<PATH_ELEMENT>
|
109
|
+
<option name="myItemId" value="Accountr" />
|
110
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
111
|
+
</PATH_ELEMENT>
|
112
|
+
</PATH>
|
113
|
+
<PATH>
|
114
|
+
<PATH_ELEMENT>
|
115
|
+
<option name="myItemId" value="Accountr" />
|
116
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
117
|
+
</PATH_ELEMENT>
|
118
|
+
<PATH_ELEMENT>
|
119
|
+
<option name="myItemId" value="Accountr" />
|
120
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
121
|
+
</PATH_ELEMENT>
|
122
|
+
</PATH>
|
123
|
+
<PATH>
|
124
|
+
<PATH_ELEMENT>
|
125
|
+
<option name="myItemId" value="Accountr" />
|
126
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
127
|
+
</PATH_ELEMENT>
|
128
|
+
<PATH_ELEMENT>
|
129
|
+
<option name="myItemId" value="Accountr" />
|
130
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
131
|
+
</PATH_ELEMENT>
|
132
|
+
<PATH_ELEMENT>
|
133
|
+
<option name="myItemId" value="test" />
|
134
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
135
|
+
</PATH_ELEMENT>
|
136
|
+
</PATH>
|
137
|
+
</subPane>
|
138
|
+
</pane>
|
139
|
+
</panes>
|
140
|
+
</component>
|
141
|
+
<component name="PropertiesComponent">
|
142
|
+
<property name="options.lastSelected" value="preferences.sourceCode.Yaml" />
|
143
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
144
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
145
|
+
<property name="options.searchVisible" value="true" />
|
146
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
147
|
+
</component>
|
148
|
+
<component name="RunManager">
|
149
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
150
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
151
|
+
<module name="" />
|
152
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
153
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
154
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
155
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
156
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
157
|
+
<envs />
|
158
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
159
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
160
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
161
|
+
<COVERAGE_PATTERN ENABLED="true">
|
162
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
163
|
+
</COVERAGE_PATTERN>
|
164
|
+
</EXTENSION>
|
165
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
166
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
167
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
168
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
169
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
170
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
171
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
172
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
173
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
174
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
175
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
176
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
177
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
178
|
+
<method />
|
179
|
+
</configuration>
|
180
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
181
|
+
<module name="" />
|
182
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
183
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
184
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
185
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
186
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
187
|
+
<envs />
|
188
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
189
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
190
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
191
|
+
<COVERAGE_PATTERN ENABLED="true">
|
192
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
193
|
+
</COVERAGE_PATTERN>
|
194
|
+
</EXTENSION>
|
195
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
196
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
197
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
198
|
+
<method />
|
199
|
+
</configuration>
|
200
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug" singleton="true">
|
201
|
+
<method />
|
202
|
+
</configuration>
|
203
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
204
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
205
|
+
<module name="" />
|
206
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
207
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
208
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
209
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
210
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
211
|
+
<envs />
|
212
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
213
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
214
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
215
|
+
<COVERAGE_PATTERN ENABLED="true">
|
216
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
217
|
+
</COVERAGE_PATTERN>
|
218
|
+
</EXTENSION>
|
219
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
220
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
221
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
222
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
223
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
224
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
225
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
226
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
227
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
228
|
+
<method />
|
229
|
+
</configuration>
|
230
|
+
<list size="0" />
|
231
|
+
</component>
|
232
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
233
|
+
<component name="TaskManager">
|
234
|
+
<task active="true" id="Default" summary="Default task">
|
235
|
+
<changelist id="91e6c694-4daa-4b7f-9273-d841106f35e0" name="Default" comment="" />
|
236
|
+
<created>1397481333336</created>
|
237
|
+
<updated>1397481333336</updated>
|
238
|
+
</task>
|
239
|
+
<servers />
|
240
|
+
</component>
|
241
|
+
<component name="ToolWindowManager">
|
242
|
+
<frame x="-1" y="31" width="1682" height="1023" extended-state="6" />
|
243
|
+
<editor active="true" />
|
244
|
+
<layout>
|
245
|
+
<window_info id="Changes" 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" />
|
246
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3304721" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
247
|
+
<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" />
|
248
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32939914" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
249
|
+
<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" />
|
250
|
+
<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" />
|
251
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24969475" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
252
|
+
<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" />
|
253
|
+
<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" />
|
254
|
+
<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" />
|
255
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32976446" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
256
|
+
<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" />
|
257
|
+
<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" />
|
258
|
+
<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" />
|
259
|
+
<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" />
|
260
|
+
<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" />
|
261
|
+
<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" />
|
262
|
+
<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" />
|
263
|
+
</layout>
|
264
|
+
</component>
|
265
|
+
<component name="Vcs.Log.UiProperties">
|
266
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
267
|
+
<collection />
|
268
|
+
</option>
|
269
|
+
</component>
|
270
|
+
<component name="VcsContentAnnotationSettings">
|
271
|
+
<option name="myLimit" value="2678400000" />
|
272
|
+
</component>
|
273
|
+
<component name="VcsManagerConfiguration">
|
274
|
+
<option name="myTodoPanelSettings">
|
275
|
+
<TodoPanelSettings />
|
276
|
+
</option>
|
277
|
+
</component>
|
278
|
+
<component name="XDebuggerManager">
|
279
|
+
<breakpoint-manager />
|
280
|
+
</component>
|
281
|
+
<component name="editorHistoryManager">
|
282
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
283
|
+
<provider selected="true" editor-type-id="text-editor">
|
284
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="905">
|
285
|
+
<folding />
|
286
|
+
</state>
|
287
|
+
</provider>
|
288
|
+
</entry>
|
289
|
+
<entry file="file://$PROJECT_DIR$/lib/Accountr/version.rb">
|
290
|
+
<provider selected="true" editor-type-id="text-editor">
|
291
|
+
<state line="3" column="0" selection-start="39" selection-end="39" vertical-scroll-proportion="0.059668507" vertical-offset="0" max-vertical-offset="905">
|
292
|
+
<folding />
|
293
|
+
</state>
|
294
|
+
</provider>
|
295
|
+
</entry>
|
296
|
+
<entry file="file://$PROJECT_DIR$/mc-accountr.gemspec">
|
297
|
+
<provider selected="true" editor-type-id="text-editor">
|
298
|
+
<state line="6" column="27" selection-start="203" selection-end="203" vertical-scroll-proportion="0.18090452" vertical-offset="0" max-vertical-offset="597">
|
299
|
+
<folding />
|
300
|
+
</state>
|
301
|
+
</provider>
|
302
|
+
</entry>
|
303
|
+
<entry file="file://$PROJECT_DIR$/lib/mc-accountr.rb">
|
304
|
+
<provider selected="true" editor-type-id="text-editor">
|
305
|
+
<state line="26" column="0" selection-start="572" selection-end="572" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="756">
|
306
|
+
<folding />
|
307
|
+
</state>
|
308
|
+
</provider>
|
309
|
+
</entry>
|
310
|
+
<entry file="file://$PROJECT_DIR$/test/accountr_tests.rb">
|
311
|
+
<provider selected="true" editor-type-id="text-editor">
|
312
|
+
<state line="11" column="0" selection-start="352" selection-end="352" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="378">
|
313
|
+
<folding />
|
314
|
+
</state>
|
315
|
+
</provider>
|
316
|
+
</entry>
|
317
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
318
|
+
<provider selected="true" editor-type-id="text-editor">
|
319
|
+
<state line="26" column="15" selection-start="419" selection-end="419" vertical-scroll-proportion="0.6080402" vertical-offset="105" max-vertical-offset="702">
|
320
|
+
<folding />
|
321
|
+
</state>
|
322
|
+
</provider>
|
323
|
+
</entry>
|
324
|
+
</component>
|
325
|
+
</project>
|
326
|
+
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 LambdaSix
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Accountr
|
2
|
+
|
3
|
+
Quick utility library to grab information about an account
|
4
|
+
from minecraft's profile API.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
gem 'Accountr'
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle
|
15
|
+
|
16
|
+
Or install it yourself as:
|
17
|
+
|
18
|
+
$ gem install Accountr
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
require 'mc-accountr'
|
23
|
+
|
24
|
+
accountr = Accountr.new
|
25
|
+
result = accountr.find_profiles ['Accounts','Names','Here']
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
1. Fork it ( http://github.com/LambdaSix/Accountr/fork )
|
30
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
31
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
32
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
33
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/mc-accountr.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require_relative 'Accountr/version'
|
2
|
+
require 'rest_client'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
class MinecraftResponse
|
6
|
+
attr_accessor :id
|
7
|
+
attr_accessor :name
|
8
|
+
attr_accessor :legacy
|
9
|
+
|
10
|
+
def initialize(id, name, legacy)
|
11
|
+
self.id = id
|
12
|
+
self.name = name
|
13
|
+
self.legacy = legacy
|
14
|
+
end
|
15
|
+
|
16
|
+
def legacy?
|
17
|
+
self.legacy
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class Accountr
|
22
|
+
def find_profiles(names)
|
23
|
+
res = RestClient.post 'https://api.mojang.com/profiles/minecraft',
|
24
|
+
names.to_a.to_json,
|
25
|
+
:content_type => :json,
|
26
|
+
:accept => :json
|
27
|
+
|
28
|
+
result = JSON.parse res
|
29
|
+
|
30
|
+
accs = Array.new
|
31
|
+
result.each do |e|
|
32
|
+
accs << MinecraftResponse.new(e['id'], e['name'], e['legacy'] || false)
|
33
|
+
end
|
34
|
+
accs
|
35
|
+
end
|
36
|
+
end
|
data/mc-accountr.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'Accountr/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'MC-Accountr'
|
8
|
+
spec.version = Accountr::VERSION
|
9
|
+
spec.authors = ['LambdaSix']
|
10
|
+
spec.email = ['alexander.somerville.cox@gmail.com']
|
11
|
+
spec.summary = 'Client to use Minecraft Profile API'
|
12
|
+
spec.description = 'Provides access for the minecraft profile API.'
|
13
|
+
spec.homepage = "https://github.com/LambdaSix/Accountr"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
|
+
spec.add_development_dependency 'rest_client', '~> 1.7', '>= 1.7.3'
|
24
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative '../lib/mc-accountr'
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
class AccountrTests < Test::Unit::TestCase
|
5
|
+
|
6
|
+
def test_find_profiles
|
7
|
+
acc = Accountr.new
|
8
|
+
res = acc.find_profiles %w(Dinnerbone Alanbriolat Mustek)
|
9
|
+
|
10
|
+
dinnerbone = res.select { |val| val.name =~ /Dinnerbone/}.first
|
11
|
+
alanbriolat = res.select { |val| val.name =~ /alanbriolat/}.first
|
12
|
+
|
13
|
+
assert_equal '61699b2ed3274a019f1e0ea8c3f06bc6', dinnerbone.id
|
14
|
+
assert_equal 'e11c07ec7b1f4db0a3f477fee7741136', alanbriolat.id
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: MC-Accountr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1r1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- LambdaSix
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rest_client
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
- - ! '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 1.7.3
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '1.7'
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.7.3
|
61
|
+
description: Provides access for the minecraft profile API.
|
62
|
+
email:
|
63
|
+
- alexander.somerville.cox@gmail.com
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files: []
|
67
|
+
files:
|
68
|
+
- .gitignore
|
69
|
+
- .idea/.name
|
70
|
+
- .idea/.rakeTasks
|
71
|
+
- .idea/Accountr.iml
|
72
|
+
- .idea/dictionaries/lambdasix.xml
|
73
|
+
- .idea/encodings.xml
|
74
|
+
- .idea/misc.xml
|
75
|
+
- .idea/modules.xml
|
76
|
+
- .idea/scopes/scope_settings.xml
|
77
|
+
- .idea/vcs.xml
|
78
|
+
- .idea/workspace.xml
|
79
|
+
- Gemfile
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- lib/Accountr/version.rb
|
84
|
+
- lib/mc-accountr.rb
|
85
|
+
- mc-accountr.gemspec
|
86
|
+
- test/accountr_tests.rb
|
87
|
+
homepage: https://github.com/LambdaSix/Accountr
|
88
|
+
licenses:
|
89
|
+
- MIT
|
90
|
+
metadata: {}
|
91
|
+
post_install_message:
|
92
|
+
rdoc_options: []
|
93
|
+
require_paths:
|
94
|
+
- lib
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ! '>'
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 1.3.1
|
105
|
+
requirements: []
|
106
|
+
rubyforge_project:
|
107
|
+
rubygems_version: 2.2.2
|
108
|
+
signing_key:
|
109
|
+
specification_version: 4
|
110
|
+
summary: Client to use Minecraft Profile API
|
111
|
+
test_files:
|
112
|
+
- test/accountr_tests.rb
|