jakub_my_new_gem 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
+ SHA1:
3
+ metadata.gz: 28e7767e60af44ffa7851352e42ceafbf5898eea
4
+ data.tar.gz: 117d6202f0e8f48245c8cb8da46231a434bd6590
5
+ SHA512:
6
+ metadata.gz: a52c8cb3f260cb95a33c7669662b3c1fb100dce211b0e5d70e2db314015eaccc9670c7b597ae52be564692134c8814e94697329e3eac27cde4ad2128d73c27a7
7
+ data.tar.gz: 818782b035e75e0fb77f81198d4ad22e7f65b31fc1bc8660453187a844ee3e1c19fd6d1daea1b8625cf959f9e8d9d993bf0af2de6d15ac32ed5bdb7b462aed29
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.gem
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
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 jakub_my_new_gem-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install jakub_my_new_gem-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install jakub_my_new_gem-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push jakub_my_new_gem-0.1.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><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>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="inheritedJdk" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.0.pre.2, RVM: ruby-2.3.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.3.1) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.3.1) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.6.0, RVM: ruby-2.3.1) [gem]" level="application" />
18
+ </component>
19
+ </module>
@@ -0,0 +1,3 @@
1
+ <component name="MarkdownNavigator.ProfileManager">
2
+ <settings default="" pdf-export="" />
3
+ </component>
@@ -0,0 +1,72 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MarkdownProjectSettings">
4
+ <PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.25" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true">
5
+ <PanelProvider>
6
+ <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
7
+ </PanelProvider>
8
+ </PreviewSettings>
9
+ <ParserSettings gitHubSyntaxChange="false">
10
+ <PegdownExtensions>
11
+ <option name="ABBREVIATIONS" value="false" />
12
+ <option name="ANCHORLINKS" value="true" />
13
+ <option name="ASIDE" value="false" />
14
+ <option name="ATXHEADERSPACE" value="true" />
15
+ <option name="AUTOLINKS" value="true" />
16
+ <option name="DEFINITIONS" value="false" />
17
+ <option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
18
+ <option name="FENCED_CODE_BLOCKS" value="true" />
19
+ <option name="FOOTNOTES" value="false" />
20
+ <option name="HARDWRAPS" value="false" />
21
+ <option name="HTML_DEEP_PARSER" value="false" />
22
+ <option name="INSERTED" value="false" />
23
+ <option name="QUOTES" value="false" />
24
+ <option name="RELAXEDHRULES" value="true" />
25
+ <option name="SMARTS" value="false" />
26
+ <option name="STRIKETHROUGH" value="true" />
27
+ <option name="SUBSCRIPT" value="false" />
28
+ <option name="SUPERSCRIPT" value="false" />
29
+ <option name="SUPPRESS_HTML_BLOCKS" value="false" />
30
+ <option name="SUPPRESS_INLINE_HTML" value="false" />
31
+ <option name="TABLES" value="true" />
32
+ <option name="TASKLISTITEMS" value="true" />
33
+ <option name="TOC" value="false" />
34
+ <option name="WIKILINKS" value="true" />
35
+ </PegdownExtensions>
36
+ <ParserOptions>
37
+ <option name="COMMONMARK_LISTS" value="true" />
38
+ <option name="DUMMY" value="false" />
39
+ <option name="EMOJI_SHORTCUTS" value="true" />
40
+ <option name="FLEXMARK_FRONT_MATTER" value="false" />
41
+ <option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
42
+ <option name="GFM_TABLE_RENDERING" value="true" />
43
+ <option name="GITBOOK_URL_ENCODING" value="false" />
44
+ <option name="GITHUB_EMOJI_URL" value="false" />
45
+ <option name="GITHUB_LISTS" value="false" />
46
+ <option name="GITHUB_WIKI_LINKS" value="true" />
47
+ <option name="JEKYLL_FRONT_MATTER" value="false" />
48
+ <option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
49
+ </ParserOptions>
50
+ </ParserSettings>
51
+ <HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true">
52
+ <GeneratorProvider>
53
+ <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
54
+ </GeneratorProvider>
55
+ <headerTop />
56
+ <headerBottom />
57
+ <bodyTop />
58
+ <bodyBottom />
59
+ </HtmlSettings>
60
+ <CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssTextEnabled="false" isDynamicPageWidth="true">
61
+ <StylesheetProvider>
62
+ <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
63
+ </StylesheetProvider>
64
+ <ScriptProviders />
65
+ <cssText />
66
+ </CssSettings>
67
+ <HtmlExportSettings updateOnSave="false" parentDir="$ProjectFileDir$" targetDir="$ProjectFileDir$" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" />
68
+ <LinkMapSettings>
69
+ <textMaps />
70
+ </LinkMapSettings>
71
+ </component>
72
+ </project>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.3.1" project-jdk-type="RUBY_SDK" />
4
+ </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/jakub_my_new_gem.iml" filepath="$PROJECT_DIR$/.idea/jakub_my_new_gem.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,258 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="4c248b74-0bfe-4b0b-8349-5e65c8b356b6" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/jakub_my_new_gem/build.rb" afterPath="$PROJECT_DIR$/lib/jakub_my_new_gem/build.rb" />
7
+ </list>
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="FileEditorManager">
16
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
17
+ <file leaf-file-name="jakub_my_new_gem.rb" pinned="false" current-in-tab="false">
18
+ <entry file="file://$PROJECT_DIR$/lib/jakub_my_new_gem.rb">
19
+ <provider selected="true" editor-type-id="text-editor">
20
+ <state relative-caret-position="19">
21
+ <caret line="1" column="31" lean-forward="false" selection-start-line="1" selection-start-column="31" selection-end-line="1" selection-end-column="31" />
22
+ <folding />
23
+ </state>
24
+ </provider>
25
+ </entry>
26
+ </file>
27
+ <file leaf-file-name="build.rb" pinned="false" current-in-tab="true">
28
+ <entry file="file://$PROJECT_DIR$/lib/jakub_my_new_gem/build.rb">
29
+ <provider selected="true" editor-type-id="text-editor">
30
+ <state relative-caret-position="570">
31
+ <caret line="30" column="3" lean-forward="true" selection-start-line="30" selection-start-column="3" selection-end-line="30" selection-end-column="3" />
32
+ <folding />
33
+ </state>
34
+ </provider>
35
+ </entry>
36
+ </file>
37
+ </leaf>
38
+ </component>
39
+ <component name="FileTemplateManagerImpl">
40
+ <option name="RECENT_TEMPLATES">
41
+ <list>
42
+ <option value="Ruby Empty" />
43
+ </list>
44
+ </option>
45
+ </component>
46
+ <component name="Git.Settings">
47
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
48
+ </component>
49
+ <component name="IdeDocumentHistory">
50
+ <option name="CHANGED_PATHS">
51
+ <list>
52
+ <option value="$PROJECT_DIR$/README.md" />
53
+ <option value="$PROJECT_DIR$/.gitignore" />
54
+ <option value="$PROJECT_DIR$/jakub_my_new_gem.gemspec" />
55
+ <option value="$PROJECT_DIR$/lib/jakub_my_new_gem.rb" />
56
+ <option value="$PROJECT_DIR$/lib/jakub_my_new_gem/build.rb" />
57
+ </list>
58
+ </option>
59
+ </component>
60
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
61
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
62
+ <component name="JsGulpfileManager">
63
+ <detection-done>true</detection-done>
64
+ <sorting>DEFINITION_ORDER</sorting>
65
+ </component>
66
+ <component name="ProjectFrameBounds">
67
+ <option name="x" value="850" />
68
+ <option name="y" value="22" />
69
+ <option name="width" value="830" />
70
+ <option name="height" value="1023" />
71
+ </component>
72
+ <component name="ProjectView">
73
+ <navigator currentView="ProjectPane" proportions="" version="1">
74
+ <flattenPackages />
75
+ <showMembers />
76
+ <showModules />
77
+ <showLibraryContents />
78
+ <hideEmptyPackages />
79
+ <abbreviatePackageNames />
80
+ <autoscrollToSource />
81
+ <autoscrollFromSource />
82
+ <sortByType />
83
+ <manualOrder />
84
+ <foldersAlwaysOnTop value="true" />
85
+ </navigator>
86
+ <panes>
87
+ <pane id="Scope" />
88
+ <pane id="Scratches" />
89
+ <pane id="ProjectPane">
90
+ <subPane>
91
+ <expand>
92
+ <path>
93
+ <item name="jakub_my_new_gem" type="b2602c69:ProjectViewProjectNode" />
94
+ <item name="jakub_my_new_gem" type="462c0819:PsiDirectoryNode" />
95
+ </path>
96
+ <path>
97
+ <item name="jakub_my_new_gem" type="b2602c69:ProjectViewProjectNode" />
98
+ <item name="jakub_my_new_gem" type="462c0819:PsiDirectoryNode" />
99
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
100
+ </path>
101
+ <path>
102
+ <item name="jakub_my_new_gem" type="b2602c69:ProjectViewProjectNode" />
103
+ <item name="jakub_my_new_gem" type="462c0819:PsiDirectoryNode" />
104
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
105
+ <item name="jakub_my_new_gem" type="462c0819:PsiDirectoryNode" />
106
+ </path>
107
+ </expand>
108
+ <select />
109
+ </subPane>
110
+ </pane>
111
+ </panes>
112
+ </component>
113
+ <component name="PropertiesComponent">
114
+ <property name="WebServerToolWindowFactoryState" value="false" />
115
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
116
+ <property name="add_unversioned_files" value="true" />
117
+ </component>
118
+ <component name="RunDashboard">
119
+ <option name="ruleStates">
120
+ <list>
121
+ <RuleState>
122
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
123
+ </RuleState>
124
+ <RuleState>
125
+ <option name="name" value="StatusDashboardGroupingRule" />
126
+ </RuleState>
127
+ </list>
128
+ </option>
129
+ </component>
130
+ <component name="ShelveChangesManager" show_recycled="false">
131
+ <option name="remove_strategy" value="false" />
132
+ </component>
133
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
134
+ <component name="TaskManager">
135
+ <task active="true" id="Default" summary="Default task">
136
+ <changelist id="4c248b74-0bfe-4b0b-8349-5e65c8b356b6" name="Default" comment="" />
137
+ <created>1506328909851</created>
138
+ <option name="number" value="Default" />
139
+ <option name="presentableId" value="Default" />
140
+ <updated>1506328909851</updated>
141
+ <workItem from="1506328911101" duration="779000" />
142
+ <workItem from="1506329739255" duration="1439000" />
143
+ </task>
144
+ <task id="LOCAL-00001" summary="Implemented the Gem code">
145
+ <created>1506332725363</created>
146
+ <option name="number" value="00001" />
147
+ <option name="presentableId" value="LOCAL-00001" />
148
+ <option name="project" value="LOCAL" />
149
+ <updated>1506332725363</updated>
150
+ </task>
151
+ <option name="localTasksCounter" value="2" />
152
+ <servers />
153
+ </component>
154
+ <component name="TimeTrackingManager">
155
+ <option name="totallyTimeSpent" value="2218000" />
156
+ </component>
157
+ <component name="ToolWindowManager">
158
+ <frame x="850" y="22" width="830" height="1023" extended-state="0" />
159
+ <editor active="true" />
160
+ <layout>
161
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25679013" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
162
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
163
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
164
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
165
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32982087" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
166
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32876712" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
167
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
168
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
169
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
170
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
171
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
172
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32947367" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
173
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
174
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
175
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
176
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
177
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
178
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
179
+ </layout>
180
+ </component>
181
+ <component name="TypeScriptGeneratedFilesManager">
182
+ <option name="version" value="1" />
183
+ </component>
184
+ <component name="VcsContentAnnotationSettings">
185
+ <option name="myLimit" value="2678400000" />
186
+ </component>
187
+ <component name="VcsManagerConfiguration">
188
+ <MESSAGE value="Implemented the Gem code" />
189
+ <option name="LAST_COMMIT_MESSAGE" value="Implemented the Gem code" />
190
+ </component>
191
+ <component name="XDebuggerManager">
192
+ <breakpoint-manager />
193
+ <watches-manager />
194
+ </component>
195
+ <component name="editorHistoryManager">
196
+ <entry file="file://$PROJECT_DIR$/jakub_my_new_gem.gemspec">
197
+ <provider selected="true" editor-type-id="text-editor">
198
+ <state relative-caret-position="266">
199
+ <caret line="14" column="0" lean-forward="false" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
200
+ <folding />
201
+ </state>
202
+ </provider>
203
+ </entry>
204
+ <entry file="file://$PROJECT_DIR$/.gitignore">
205
+ <provider selected="true" editor-type-id="text-editor">
206
+ <state relative-caret-position="152">
207
+ <caret line="8" column="5" lean-forward="false" selection-start-line="8" selection-start-column="5" selection-end-line="8" selection-end-column="5" />
208
+ <folding />
209
+ </state>
210
+ </provider>
211
+ </entry>
212
+ <entry file="file://$PROJECT_DIR$/README.md">
213
+ <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
214
+ <state split_layout="SPLIT">
215
+ <first_editor relative-caret-position="157">
216
+ <caret line="29" column="3" lean-forward="true" selection-start-line="29" selection-start-column="3" selection-end-line="29" selection-end-column="3" />
217
+ <folding />
218
+ </first_editor>
219
+ <second_editor>
220
+ <js_state />
221
+ </second_editor>
222
+ </state>
223
+ </provider>
224
+ </entry>
225
+ <entry file="file://$PROJECT_DIR$/.gitignore">
226
+ <provider selected="true" editor-type-id="text-editor">
227
+ <state relative-caret-position="152">
228
+ <caret line="8" column="5" lean-forward="false" selection-start-line="8" selection-start-column="5" selection-end-line="8" selection-end-column="5" />
229
+ <folding />
230
+ </state>
231
+ </provider>
232
+ </entry>
233
+ <entry file="file://$PROJECT_DIR$/jakub_my_new_gem.gemspec">
234
+ <provider selected="true" editor-type-id="text-editor">
235
+ <state relative-caret-position="228">
236
+ <caret line="12" column="67" lean-forward="false" selection-start-line="12" selection-start-column="67" selection-end-line="12" selection-end-column="67" />
237
+ <folding />
238
+ </state>
239
+ </provider>
240
+ </entry>
241
+ <entry file="file://$PROJECT_DIR$/lib/jakub_my_new_gem.rb">
242
+ <provider selected="true" editor-type-id="text-editor">
243
+ <state relative-caret-position="19">
244
+ <caret line="1" column="31" lean-forward="false" selection-start-line="1" selection-start-column="31" selection-end-line="1" selection-end-column="31" />
245
+ <folding />
246
+ </state>
247
+ </provider>
248
+ </entry>
249
+ <entry file="file://$PROJECT_DIR$/lib/jakub_my_new_gem/build.rb">
250
+ <provider selected="true" editor-type-id="text-editor">
251
+ <state relative-caret-position="570">
252
+ <caret line="30" column="3" lean-forward="true" selection-start-line="30" selection-start-column="3" selection-end-line="30" selection-end-column="3" />
253
+ <folding />
254
+ </state>
255
+ </provider>
256
+ </entry>
257
+ </component>
258
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.16.0.pre.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at TODO: Write your email address. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in jakub_my_new_gem.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jakub_my_new_gem (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.3)
10
+ rake (10.5.0)
11
+ rspec (3.6.0)
12
+ rspec-core (~> 3.6.0)
13
+ rspec-expectations (~> 3.6.0)
14
+ rspec-mocks (~> 3.6.0)
15
+ rspec-core (3.6.0)
16
+ rspec-support (~> 3.6.0)
17
+ rspec-expectations (3.6.0)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.6.0)
20
+ rspec-mocks (3.6.0)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.6.0)
23
+ rspec-support (3.6.0)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ bundler (~> 1.16.a)
30
+ jakub_my_new_gem!
31
+ rake (~> 10.0)
32
+ rspec (~> 3.0)
33
+
34
+ BUNDLED WITH
35
+ 1.16.0.pre.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 TODO: Write your name
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # JakubMyNewGem
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jakub_my_new_gem`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'jakub_my_new_gem'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install jakub_my_new_gem
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ JakubMyNewGem::Builder.new(total: '100' gratuity: '23.5').generate #123.5
27
+ JakubMyNewGem::Builder.new(total: '100' gratuity: 'high').generate #123.0
28
+ JakubMyNewGem::Builder.new(total: '100' gratuity: 'low').generate #115.0
29
+ JakubMyNewGem::Builder.new(total: '100' gratuity: '20').generate #120.0
30
+ ```
31
+
32
+ ## Development
33
+
34
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
35
+
36
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+
38
+ ## Contributing
39
+
40
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jakub_my_new_gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
41
+
42
+ ## License
43
+
44
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
45
+
46
+ ## Code of Conduct
47
+
48
+ Everyone interacting in the JakubMyNewGem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jakub_my_new_gem/blob/master/CODE_OF_CONDUCT.md).
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
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "jakub_my_new_gem"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "jakub_my_new_gem/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jakub_my_new_gem"
8
+ spec.version = JakubMyNewGem::VERSION
9
+ spec.authors = ["Jakub"]
10
+ spec.email = ["jl@a3informatics.com"]
11
+
12
+ spec.summary = %q{Just my first Gem trying.}
13
+ spec.homepage = "https://github.com/Jakub41/jakub_my_new_gem"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.16.a"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
26
+ end
@@ -0,0 +1,31 @@
1
+ module JakubMyNewGem
2
+
3
+ class Build
4
+ def initialize total:, gratuity:
5
+ @total = total
6
+ @gratutity = gratuity
7
+ end
8
+
9
+ def generate
10
+ return calculation if number_based?
11
+ string_based
12
+ end
13
+
14
+ def number_based?
15
+ (@gratutity.is_a? Numeric) || (@gratutity.integer?)
16
+ end
17
+
18
+ def string_based
19
+ case @gratutity.downcase
20
+ when 'high' then calculation 25
21
+ when 'standard' then calculation 18
22
+ when 'low' then calculation 15
23
+ end
24
+ end
25
+
26
+ def calculation gratuity = @gratutity
27
+ @total += @total * (gratuity.to_f / 100)
28
+ end
29
+ end
30
+
31
+ end
@@ -0,0 +1,3 @@
1
+ module JakubMyNewGem
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,6 @@
1
+ require 'jakub_my_new_gem/version'
2
+ require 'jakub_my_new_gem/build'
3
+
4
+ module JakubMyNewGem
5
+ # Your code goes here...
6
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jakub_my_new_gem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jakub
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-09-25 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.16.a
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.16.a
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - jl@a3informatics.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".idea/.rakeTasks"
64
+ - ".idea/jakub_my_new_gem.iml"
65
+ - ".idea/markdown-navigator.xml"
66
+ - ".idea/markdown-navigator/profiles_settings.xml"
67
+ - ".idea/misc.xml"
68
+ - ".idea/modules.xml"
69
+ - ".idea/vcs.xml"
70
+ - ".idea/workspace.xml"
71
+ - ".rspec"
72
+ - ".travis.yml"
73
+ - CODE_OF_CONDUCT.md
74
+ - Gemfile
75
+ - Gemfile.lock
76
+ - LICENSE.txt
77
+ - README.md
78
+ - Rakefile
79
+ - bin/console
80
+ - bin/setup
81
+ - jakub_my_new_gem.gemspec
82
+ - lib/jakub_my_new_gem.rb
83
+ - lib/jakub_my_new_gem/build.rb
84
+ - lib/jakub_my_new_gem/version.rb
85
+ homepage: https://github.com/Jakub41/jakub_my_new_gem
86
+ licenses:
87
+ - MIT
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.6.13
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: Just my first Gem trying.
109
+ test_files: []