cards_lib 0.0.4 → 0.0.5
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/.gitignore +1 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/CardsLib.iml +32 -0
- data/.idea/misc.xml +14 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +267 -0
- data/lib/cards_lib/card.rb +23 -1
- data/lib/cards_lib/version.rb +1 -1
- metadata +10 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bef1331c91765ebce1912ce1dfdbe73e9c62a6cb
|
|
4
|
+
data.tar.gz: 132cf01584120907d69cdb9e147263be5cea9b71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a00b6cae9343f6ac93687f230f3d78a9505f6ff3de4b58bb864090eec4f98dd3822e7ce5150bfc7026cd20978f58cbe78cce06c4616df30a76705924e7d30e8e
|
|
7
|
+
data.tar.gz: 4f5e55b7bbaa706a463011c14abb8975f60d8545b5f1f7002b174bd8513d8a39a22d81c6640d6c06c0d83d6d7d49bb4c1e55d91897de6c316e868ae73dd818f1
|
data/.gitignore
CHANGED
data/.idea/.name
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CardsLib
|
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 cards_lib-0.0.4.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove RDoc HTML files" fullCmd="clobber_rdoc" taksId="clobber_rdoc" /><RakeTask description="Build and install cards_lib-0.0.4.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install cards_lib-0.0.4.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Build RDoc HTML files" fullCmd="rdoc" taksId="rdoc" /><RakeTask description="Create tag v0.0.4 and build and push cards_lib-0.0.4.gem to Rubygems" fullCmd="release" taksId="release" /><RakeTask description="Rebuild RDoc HTML files" fullCmd="rerdoc" taksId="rerdoc" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="" fullCmd="clobber" taksId="clobber" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="rdoc/created.rid" taksId="rdoc/created.rid" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/CardsLib.iml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
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="$MODULE_DIR$/test" />
|
|
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
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
15
|
+
</content>
|
|
16
|
+
<orderEntry type="inheritedJdk" />
|
|
17
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.3, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="codeclimate-test-reporter (v0.4.7, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="color_pound_spec_reporter (v0.0.5, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="docile (v1.1.5, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="json (v1.8.3, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.5.1, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest-reporters (v1.0.18, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.7.5, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.10.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.10.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
|
31
|
+
</component>
|
|
32
|
+
</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="RVM: ruby-2.2.2" project-jdk-type="RUBY_SDK" />
|
|
14
|
+
</project>
|
data/.idea/modules.xml
ADDED
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="8e729df1-4f81-4614-900c-5868119b304d" name="Default" comment="">
|
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
7
|
+
</list>
|
|
8
|
+
<ignored path="CardsLib.iws" />
|
|
9
|
+
<ignored path=".idea/workspace.xml" />
|
|
10
|
+
<ignored path=".idea/dataSources.local.xml" />
|
|
11
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
|
12
|
+
<option name="TRACKING_ENABLED" value="true" />
|
|
13
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
14
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
15
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
16
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
17
|
+
</component>
|
|
18
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
19
|
+
<component name="CreatePatchCommitExecutor">
|
|
20
|
+
<option name="PATCH_PATH" value="" />
|
|
21
|
+
</component>
|
|
22
|
+
<component name="FavoritesManager">
|
|
23
|
+
<favorites_list name="CardsLib" />
|
|
24
|
+
</component>
|
|
25
|
+
<component name="FileEditorManager">
|
|
26
|
+
<leaf>
|
|
27
|
+
<file leaf-file-name="card_test.rb" pinned="false" current-in-tab="false">
|
|
28
|
+
<entry file="file://$PROJECT_DIR$/test/card_test.rb">
|
|
29
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
30
|
+
<state vertical-scroll-proportion="0.0">
|
|
31
|
+
<caret line="30" column="27" selection-start-line="30" selection-start-column="27" selection-end-line="30" selection-end-column="27" />
|
|
32
|
+
<folding />
|
|
33
|
+
</state>
|
|
34
|
+
</provider>
|
|
35
|
+
</entry>
|
|
36
|
+
</file>
|
|
37
|
+
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="true">
|
|
38
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
39
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
40
|
+
<state vertical-scroll-proportion="0.0">
|
|
41
|
+
<caret line="0" column="7" selection-start-line="0" selection-start-column="7" selection-end-line="0" selection-end-column="7" />
|
|
42
|
+
<folding />
|
|
43
|
+
</state>
|
|
44
|
+
</provider>
|
|
45
|
+
</entry>
|
|
46
|
+
</file>
|
|
47
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
|
48
|
+
<entry file="file://$PROJECT_DIR$/lib/cards_lib/version.rb">
|
|
49
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
50
|
+
<state vertical-scroll-proportion="0.0">
|
|
51
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
|
52
|
+
<folding />
|
|
53
|
+
</state>
|
|
54
|
+
</provider>
|
|
55
|
+
</entry>
|
|
56
|
+
</file>
|
|
57
|
+
<file leaf-file-name="card.rb" pinned="false" current-in-tab="false">
|
|
58
|
+
<entry file="file://$PROJECT_DIR$/lib/cards_lib/card.rb">
|
|
59
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
60
|
+
<state vertical-scroll-proportion="0.0">
|
|
61
|
+
<caret line="13" column="10" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" />
|
|
62
|
+
<folding />
|
|
63
|
+
</state>
|
|
64
|
+
</provider>
|
|
65
|
+
</entry>
|
|
66
|
+
</file>
|
|
67
|
+
</leaf>
|
|
68
|
+
</component>
|
|
69
|
+
<component name="Git.Settings">
|
|
70
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
71
|
+
</component>
|
|
72
|
+
<component name="IdeDocumentHistory">
|
|
73
|
+
<option name="CHANGED_PATHS">
|
|
74
|
+
<list>
|
|
75
|
+
<option value="$PROJECT_DIR$/lib/cards_lib/version.rb" />
|
|
76
|
+
<option value="$PROJECT_DIR$/lib/cards_lib/card.rb" />
|
|
77
|
+
<option value="$PROJECT_DIR$/test/card_test.rb" />
|
|
78
|
+
<option value="$PROJECT_DIR$/.gitignore" />
|
|
79
|
+
</list>
|
|
80
|
+
</option>
|
|
81
|
+
</component>
|
|
82
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" />
|
|
83
|
+
<component name="JsGulpfileManager">
|
|
84
|
+
<detection-done>true</detection-done>
|
|
85
|
+
</component>
|
|
86
|
+
<component name="NamedScopeManager">
|
|
87
|
+
<order />
|
|
88
|
+
</component>
|
|
89
|
+
<component name="ProjectFrameBounds">
|
|
90
|
+
<option name="x" value="50" />
|
|
91
|
+
<option name="y" value="-4" />
|
|
92
|
+
<option name="width" value="1230" />
|
|
93
|
+
<option name="height" value="1028" />
|
|
94
|
+
</component>
|
|
95
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
|
96
|
+
<OptionsSetting value="true" id="Add" />
|
|
97
|
+
<OptionsSetting value="true" id="Remove" />
|
|
98
|
+
<OptionsSetting value="true" id="Checkout" />
|
|
99
|
+
<OptionsSetting value="true" id="Update" />
|
|
100
|
+
<OptionsSetting value="true" id="Status" />
|
|
101
|
+
<OptionsSetting value="true" id="Edit" />
|
|
102
|
+
<ConfirmationsSetting value="0" id="Add" />
|
|
103
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
|
104
|
+
</component>
|
|
105
|
+
<component name="ProjectView">
|
|
106
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
|
107
|
+
<flattenPackages />
|
|
108
|
+
<showMembers />
|
|
109
|
+
<showModules />
|
|
110
|
+
<showLibraryContents />
|
|
111
|
+
<hideEmptyPackages />
|
|
112
|
+
<abbreviatePackageNames />
|
|
113
|
+
<autoscrollToSource />
|
|
114
|
+
<autoscrollFromSource />
|
|
115
|
+
<sortByType />
|
|
116
|
+
</navigator>
|
|
117
|
+
<panes>
|
|
118
|
+
<pane id="Scratches" />
|
|
119
|
+
<pane id="Scope" />
|
|
120
|
+
<pane id="ProjectPane">
|
|
121
|
+
<subPane>
|
|
122
|
+
<PATH>
|
|
123
|
+
<PATH_ELEMENT>
|
|
124
|
+
<option name="myItemId" value="CardsLib" />
|
|
125
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
126
|
+
</PATH_ELEMENT>
|
|
127
|
+
</PATH>
|
|
128
|
+
<PATH>
|
|
129
|
+
<PATH_ELEMENT>
|
|
130
|
+
<option name="myItemId" value="CardsLib" />
|
|
131
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
132
|
+
</PATH_ELEMENT>
|
|
133
|
+
<PATH_ELEMENT>
|
|
134
|
+
<option name="myItemId" value="CardsLib" />
|
|
135
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
136
|
+
</PATH_ELEMENT>
|
|
137
|
+
</PATH>
|
|
138
|
+
<PATH>
|
|
139
|
+
<PATH_ELEMENT>
|
|
140
|
+
<option name="myItemId" value="CardsLib" />
|
|
141
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
142
|
+
</PATH_ELEMENT>
|
|
143
|
+
<PATH_ELEMENT>
|
|
144
|
+
<option name="myItemId" value="CardsLib" />
|
|
145
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
146
|
+
</PATH_ELEMENT>
|
|
147
|
+
<PATH_ELEMENT>
|
|
148
|
+
<option name="myItemId" value="test" />
|
|
149
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
150
|
+
</PATH_ELEMENT>
|
|
151
|
+
</PATH>
|
|
152
|
+
<PATH>
|
|
153
|
+
<PATH_ELEMENT>
|
|
154
|
+
<option name="myItemId" value="CardsLib" />
|
|
155
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
156
|
+
</PATH_ELEMENT>
|
|
157
|
+
<PATH_ELEMENT>
|
|
158
|
+
<option name="myItemId" value="CardsLib" />
|
|
159
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
160
|
+
</PATH_ELEMENT>
|
|
161
|
+
<PATH_ELEMENT>
|
|
162
|
+
<option name="myItemId" value="lib" />
|
|
163
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
164
|
+
</PATH_ELEMENT>
|
|
165
|
+
</PATH>
|
|
166
|
+
<PATH>
|
|
167
|
+
<PATH_ELEMENT>
|
|
168
|
+
<option name="myItemId" value="CardsLib" />
|
|
169
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
170
|
+
</PATH_ELEMENT>
|
|
171
|
+
<PATH_ELEMENT>
|
|
172
|
+
<option name="myItemId" value="CardsLib" />
|
|
173
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
174
|
+
</PATH_ELEMENT>
|
|
175
|
+
<PATH_ELEMENT>
|
|
176
|
+
<option name="myItemId" value="lib" />
|
|
177
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
178
|
+
</PATH_ELEMENT>
|
|
179
|
+
<PATH_ELEMENT>
|
|
180
|
+
<option name="myItemId" value="cards_lib" />
|
|
181
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
182
|
+
</PATH_ELEMENT>
|
|
183
|
+
</PATH>
|
|
184
|
+
</subPane>
|
|
185
|
+
</pane>
|
|
186
|
+
</panes>
|
|
187
|
+
</component>
|
|
188
|
+
<component name="PropertiesComponent">
|
|
189
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/../TAGFER" />
|
|
190
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
191
|
+
</component>
|
|
192
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
|
193
|
+
<component name="TaskManager">
|
|
194
|
+
<task active="true" id="Default" summary="Default task">
|
|
195
|
+
<changelist id="8e729df1-4f81-4614-900c-5868119b304d" name="Default" comment="" />
|
|
196
|
+
<created>1443965800217</created>
|
|
197
|
+
<option name="number" value="Default" />
|
|
198
|
+
<updated>1443965800217</updated>
|
|
199
|
+
</task>
|
|
200
|
+
<servers />
|
|
201
|
+
</component>
|
|
202
|
+
<component name="ToolWindowManager">
|
|
203
|
+
<frame x="50" y="-4" width="1230" height="1028" extended-state="6" />
|
|
204
|
+
<editor active="true" />
|
|
205
|
+
<layout>
|
|
206
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32978722" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
207
|
+
<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" />
|
|
208
|
+
<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" />
|
|
209
|
+
<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" />
|
|
210
|
+
<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" />
|
|
211
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
212
|
+
<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" />
|
|
213
|
+
<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" />
|
|
214
|
+
<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" />
|
|
215
|
+
<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" />
|
|
216
|
+
<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" />
|
|
217
|
+
<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" />
|
|
218
|
+
<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" />
|
|
219
|
+
<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" />
|
|
220
|
+
<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" />
|
|
221
|
+
<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" />
|
|
222
|
+
<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" />
|
|
223
|
+
<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" />
|
|
224
|
+
</layout>
|
|
225
|
+
</component>
|
|
226
|
+
<component name="VcsContentAnnotationSettings">
|
|
227
|
+
<option name="myLimit" value="2678400000" />
|
|
228
|
+
</component>
|
|
229
|
+
<component name="XDebuggerManager">
|
|
230
|
+
<breakpoint-manager />
|
|
231
|
+
<watches-manager />
|
|
232
|
+
</component>
|
|
233
|
+
<component name="editorHistoryManager">
|
|
234
|
+
<entry file="file://$PROJECT_DIR$/lib/cards_lib/version.rb">
|
|
235
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
236
|
+
<state vertical-scroll-proportion="0.0">
|
|
237
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
|
238
|
+
<folding />
|
|
239
|
+
</state>
|
|
240
|
+
</provider>
|
|
241
|
+
</entry>
|
|
242
|
+
<entry file="file://$PROJECT_DIR$/lib/cards_lib/card.rb">
|
|
243
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
244
|
+
<state vertical-scroll-proportion="0.0">
|
|
245
|
+
<caret line="13" column="10" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" />
|
|
246
|
+
<folding />
|
|
247
|
+
</state>
|
|
248
|
+
</provider>
|
|
249
|
+
</entry>
|
|
250
|
+
<entry file="file://$PROJECT_DIR$/test/card_test.rb">
|
|
251
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
252
|
+
<state vertical-scroll-proportion="0.0">
|
|
253
|
+
<caret line="30" column="27" selection-start-line="30" selection-start-column="27" selection-end-line="30" selection-end-column="27" />
|
|
254
|
+
<folding />
|
|
255
|
+
</state>
|
|
256
|
+
</provider>
|
|
257
|
+
</entry>
|
|
258
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
259
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
260
|
+
<state vertical-scroll-proportion="0.0">
|
|
261
|
+
<caret line="0" column="7" selection-start-line="0" selection-start-column="7" selection-end-line="0" selection-end-column="7" />
|
|
262
|
+
<folding />
|
|
263
|
+
</state>
|
|
264
|
+
</provider>
|
|
265
|
+
</entry>
|
|
266
|
+
</component>
|
|
267
|
+
</project>
|
data/lib/cards_lib/card.rb
CHANGED
|
@@ -2,12 +2,34 @@ module CardsLib
|
|
|
2
2
|
class Card
|
|
3
3
|
def initialize(face)
|
|
4
4
|
raise InvalidCardFace, "face cannot be blank" if face.to_s.empty?
|
|
5
|
-
@
|
|
5
|
+
@suit = nil
|
|
6
|
+
@rank = nil
|
|
7
|
+
if face.is_a? Hash
|
|
8
|
+
@suit = face.fetch(:suit) { nil }
|
|
9
|
+
@rank = face.fetch(:rank) { nil }
|
|
10
|
+
if @rank && @suit
|
|
11
|
+
str = ""
|
|
12
|
+
if @rank.length.>(1) && @suit.length.>(1)
|
|
13
|
+
str = " of "
|
|
14
|
+
end
|
|
15
|
+
@face = [@rank, str, @suit].join
|
|
16
|
+
end
|
|
17
|
+
else
|
|
18
|
+
@face = face
|
|
19
|
+
end
|
|
6
20
|
end
|
|
7
21
|
|
|
8
22
|
def face
|
|
9
23
|
@face
|
|
10
24
|
end
|
|
25
|
+
|
|
26
|
+
def suit
|
|
27
|
+
@suit || @face[1..-1]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def rank
|
|
31
|
+
@rank || @face[0]
|
|
32
|
+
end
|
|
11
33
|
end
|
|
12
34
|
|
|
13
35
|
class InvalidCardFace < Exception
|
data/lib/cards_lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cards_lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel P. Clark
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -88,6 +88,13 @@ extensions: []
|
|
|
88
88
|
extra_rdoc_files: []
|
|
89
89
|
files:
|
|
90
90
|
- ".gitignore"
|
|
91
|
+
- ".idea/.name"
|
|
92
|
+
- ".idea/.rakeTasks"
|
|
93
|
+
- ".idea/CardsLib.iml"
|
|
94
|
+
- ".idea/misc.xml"
|
|
95
|
+
- ".idea/modules.xml"
|
|
96
|
+
- ".idea/vcs.xml"
|
|
97
|
+
- ".idea/workspace.xml"
|
|
91
98
|
- ".travis.yml"
|
|
92
99
|
- CODE_OF_CONDUCT.md
|
|
93
100
|
- Gemfile
|
|
@@ -123,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
130
|
version: '0'
|
|
124
131
|
requirements: []
|
|
125
132
|
rubyforge_project:
|
|
126
|
-
rubygems_version: 2.4.
|
|
133
|
+
rubygems_version: 2.4.8
|
|
127
134
|
signing_key:
|
|
128
135
|
specification_version: 4
|
|
129
136
|
summary: OO Card Game Library
|