victory 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 338b333cefdfe98444e20851393081ad3af713717bf00f346d99826732721280
4
+ data.tar.gz: cc5c8517bc3ba2ff7d8b662f72901d47673c32921d62fa4e65d19afd294c110f
5
+ SHA512:
6
+ metadata.gz: ff55c99e4e2b5974e6b373ed6dfecd1b7134623b9a13107d9a8f7871e63fac3350d407f2c07e7b6b6bbdd9f89f21af8e88799101d8fd874f03859460ad8c638c
7
+ data.tar.gz: 210bd6551491e26c9b4f41b217fea8cef55521edb11a99fa5703b3e392d778daf835085e2c1d0b17d26739ddd0c6aa87faecb6a62257fab2a633fea80c252fcf
data/.gitignore ADDED
@@ -0,0 +1,98 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.bundle
10
+ *.so
11
+ *.o
12
+ *.a
13
+ mkmf.log
14
+
15
+
16
+ # Created by https://www.gitignore.io/api/intellij
17
+ # Edit at https://www.gitignore.io/?templates=intellij
18
+
19
+ ### Intellij ###
20
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
21
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
22
+
23
+ # User-specific stuff
24
+ .idea/**/workspace.xml
25
+ .idea/**/tasks.xml
26
+ .idea/**/usage.statistics.xml
27
+ .idea/**/dictionaries
28
+ .idea/**/shelf
29
+
30
+ # Generated files
31
+ .idea/**/contentModel.xml
32
+
33
+ # Sensitive or high-churn files
34
+ .idea/**/dataSources/
35
+ .idea/**/dataSources.ids
36
+ .idea/**/dataSources.local.xml
37
+ .idea/**/sqlDataSources.xml
38
+ .idea/**/dynamic.xml
39
+ .idea/**/uiDesigner.xml
40
+ .idea/**/dbnavigator.xml
41
+
42
+ # Gradle
43
+ .idea/**/gradle.xml
44
+ .idea/**/libraries
45
+
46
+ # Gradle and Maven with auto-import
47
+ # When using Gradle or Maven with auto-import, you should exclude module files,
48
+ # since they will be recreated, and may cause churn. Uncomment if using
49
+ # auto-import.
50
+ # .idea/modules.xml
51
+ # .idea/*.iml
52
+ # .idea/modules
53
+
54
+ # CMake
55
+ cmake-build-*/
56
+
57
+ # Mongo Explorer plugin
58
+ .idea/**/mongoSettings.xml
59
+
60
+ # File-based project format
61
+ *.iws
62
+
63
+ # IntelliJ
64
+ out/
65
+
66
+ # mpeltonen/sbt-idea plugin
67
+ .idea_modules/
68
+
69
+ # JIRA plugin
70
+ atlassian-ide-plugin.xml
71
+
72
+ # Cursive Clojure plugin
73
+ .idea/replstate.xml
74
+
75
+ # Crashlytics plugin (for Android Studio and IntelliJ)
76
+ com_crashlytics_export_strings.xml
77
+ crashlytics.properties
78
+ crashlytics-build.properties
79
+ fabric.properties
80
+
81
+ # Editor-based Rest Client
82
+ .idea/httpRequests
83
+
84
+ # Android studio 3.1+ serialized cache file
85
+ .idea/caches/build_file_checksums.ser
86
+
87
+ ### Intellij Patch ###
88
+ # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
89
+
90
+ # *.iml
91
+ # modules.xml
92
+ # .idea/misc.xml
93
+ # *.ipr
94
+
95
+ # Sonarlint plugin
96
+ .idea/sonarlint
97
+
98
+ # End of https://www.gitignore.io/api/intellij
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+ </project>
data/.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.0" project-jdk-type="RUBY_SDK" />
7
+ </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/victory.iml" filepath="$PROJECT_DIR$/.idea/victory.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/victory.iml ADDED
@@ -0,0 +1,13 @@
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.17.2, RVM: ruby-2.6.0) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.11.3, RVM: ruby-2.6.0) [gem]" level="application" />
12
+ </component>
13
+ </module>
@@ -0,0 +1,233 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="ac5383b5-61c7-4f18-b42f-3245c2ba3b2d" name="Default Changelist" comment="">
5
+ <change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
6
+ <change afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
7
+ <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
8
+ <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
9
+ <change afterPath="$PROJECT_DIR$/.idea/victory.iml" afterDir="false" />
10
+ <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
11
+ <change afterPath="$PROJECT_DIR$/.rubocop.yml" afterDir="false" />
12
+ <change afterPath="$PROJECT_DIR$/.travis.yml" afterDir="false" />
13
+ <change afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" afterDir="false" />
14
+ <change afterPath="$PROJECT_DIR$/Gemfile" afterDir="false" />
15
+ <change afterPath="$PROJECT_DIR$/LICENSE.txt" afterDir="false" />
16
+ <change afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
17
+ <change afterPath="$PROJECT_DIR$/Rakefile" afterDir="false" />
18
+ <change afterPath="$PROJECT_DIR$/bin/console" afterDir="false" />
19
+ <change afterPath="$PROJECT_DIR$/bin/setup" afterDir="false" />
20
+ <change afterPath="$PROJECT_DIR$/ext/victory/extconf.rb" afterDir="false" />
21
+ <change afterPath="$PROJECT_DIR$/ext/victory/victory.c" afterDir="false" />
22
+ <change afterPath="$PROJECT_DIR$/ext/victory/victory.h" afterDir="false" />
23
+ <change afterPath="$PROJECT_DIR$/lib/victory.rb" afterDir="false" />
24
+ <change afterPath="$PROJECT_DIR$/lib/victory/version.rb" afterDir="false" />
25
+ <change afterPath="$PROJECT_DIR$/test/test_helper.rb" afterDir="false" />
26
+ <change afterPath="$PROJECT_DIR$/test/victory_test.rb" afterDir="false" />
27
+ <change afterPath="$PROJECT_DIR$/victory.gemspec" afterDir="false" />
28
+ </list>
29
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
30
+ <option name="SHOW_DIALOG" value="false" />
31
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
32
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
33
+ <option name="LAST_RESOLUTION" value="IGNORE" />
34
+ </component>
35
+ <component name="FileEditorManager">
36
+ <leaf>
37
+ <file pinned="false" current-in-tab="true">
38
+ <entry file="file://$PROJECT_DIR$/victory.gemspec">
39
+ <provider selected="true" editor-type-id="text-editor">
40
+ <state relative-caret-position="418">
41
+ <caret line="26" column="51" lean-forward="true" selection-start-line="26" selection-start-column="51" selection-end-line="26" selection-end-column="51" />
42
+ </state>
43
+ </provider>
44
+ </entry>
45
+ </file>
46
+ <file pinned="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/.rubocop.yml">
48
+ <provider selected="true" editor-type-id="text-editor" />
49
+ </entry>
50
+ </file>
51
+ <file pinned="false" current-in-tab="false">
52
+ <entry file="file://$PROJECT_DIR$/test/test_helper.rb">
53
+ <provider selected="true" editor-type-id="text-editor" />
54
+ </entry>
55
+ </file>
56
+ <file pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/lib/victory.rb">
58
+ <provider selected="true" editor-type-id="text-editor" />
59
+ </entry>
60
+ </file>
61
+ <file pinned="false" current-in-tab="false">
62
+ <entry file="file://$PROJECT_DIR$/.gitignore">
63
+ <provider selected="true" editor-type-id="text-editor">
64
+ <state relative-caret-position="564">
65
+ <caret line="97" column="46" selection-start-line="97" selection-start-column="46" selection-end-line="97" selection-end-column="46" />
66
+ </state>
67
+ </provider>
68
+ </entry>
69
+ </file>
70
+ <file pinned="false" current-in-tab="false">
71
+ <entry file="file://$PROJECT_DIR$/lib/victory/version.rb">
72
+ <provider selected="true" editor-type-id="text-editor">
73
+ <state relative-caret-position="23">
74
+ <caret line="1" column="17" selection-start-line="1" selection-start-column="17" selection-end-line="1" selection-end-column="17" />
75
+ </state>
76
+ </provider>
77
+ </entry>
78
+ </file>
79
+ </leaf>
80
+ </component>
81
+ <component name="Git.Settings">
82
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
83
+ </component>
84
+ <component name="IdeDocumentHistory">
85
+ <option name="CHANGED_PATHS">
86
+ <list>
87
+ <option value="$PROJECT_DIR$/lib/victory/version.rb" />
88
+ <option value="$PROJECT_DIR$/.gitignore" />
89
+ <option value="$PROJECT_DIR$/victory.gemspec" />
90
+ </list>
91
+ </option>
92
+ </component>
93
+ <component name="ProjectFrameBounds" fullScreen="true">
94
+ <option name="width" value="1920" />
95
+ <option name="height" value="1080" />
96
+ </component>
97
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
98
+ <component name="ProjectView">
99
+ <navigator proportions="" version="1">
100
+ <foldersAlwaysOnTop value="true" />
101
+ </navigator>
102
+ <panes>
103
+ <pane id="ProjectPane">
104
+ <subPane>
105
+ <expand>
106
+ <path>
107
+ <item name="victory" type="b2602c69:ProjectViewProjectNode" />
108
+ <item name="victory" type="462c0819:PsiDirectoryNode" />
109
+ </path>
110
+ <path>
111
+ <item name="victory" type="b2602c69:ProjectViewProjectNode" />
112
+ <item name="victory" type="462c0819:PsiDirectoryNode" />
113
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
114
+ </path>
115
+ <path>
116
+ <item name="victory" type="b2602c69:ProjectViewProjectNode" />
117
+ <item name="victory" type="462c0819:PsiDirectoryNode" />
118
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
119
+ <item name="victory" type="462c0819:PsiDirectoryNode" />
120
+ </path>
121
+ <path>
122
+ <item name="victory" type="b2602c69:ProjectViewProjectNode" />
123
+ <item name="victory" type="462c0819:PsiDirectoryNode" />
124
+ <item name="test" type="462c0819:PsiDirectoryNode" />
125
+ </path>
126
+ </expand>
127
+ <select />
128
+ </subPane>
129
+ </pane>
130
+ <pane id="Scope" />
131
+ </panes>
132
+ </component>
133
+ <component name="PropertiesComponent">
134
+ <property name="WebServerToolWindowFactoryState" value="false" />
135
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
136
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
137
+ </component>
138
+ <component name="RecentsManager">
139
+ <key name="CopyFile.RECENT_KEYS">
140
+ <recent name="$PROJECT_DIR$" />
141
+ </key>
142
+ </component>
143
+ <component name="RunDashboard">
144
+ <option name="ruleStates">
145
+ <list>
146
+ <RuleState>
147
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
148
+ </RuleState>
149
+ <RuleState>
150
+ <option name="name" value="StatusDashboardGroupingRule" />
151
+ </RuleState>
152
+ </list>
153
+ </option>
154
+ </component>
155
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
156
+ <component name="TaskManager">
157
+ <task active="true" id="Default" summary="Default task">
158
+ <changelist id="ac5383b5-61c7-4f18-b42f-3245c2ba3b2d" name="Default Changelist" comment="" />
159
+ <created>1552019861280</created>
160
+ <option name="number" value="Default" />
161
+ <option name="presentableId" value="Default" />
162
+ <updated>1552019861280</updated>
163
+ <workItem from="1552019862558" duration="366000" />
164
+ </task>
165
+ <servers />
166
+ </component>
167
+ <component name="TimeTrackingManager">
168
+ <option name="totallyTimeSpent" value="366000" />
169
+ </component>
170
+ <component name="ToolWindowManager">
171
+ <frame x="0" y="0" width="1920" height="1080" extended-state="0" />
172
+ <editor active="true" />
173
+ <layout>
174
+ <window_info id="Favorites" side_tool="true" />
175
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24973376" />
176
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
177
+ <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
178
+ <window_info anchor="bottom" id="Database Changes" />
179
+ <window_info anchor="bottom" id="Version Control" />
180
+ <window_info anchor="bottom" id="Terminal" />
181
+ <window_info anchor="bottom" id="Event Log" side_tool="true" />
182
+ <window_info anchor="bottom" id="Message" order="0" />
183
+ <window_info anchor="bottom" id="Find" order="1" />
184
+ <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32988626" />
185
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
186
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
187
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
188
+ <window_info anchor="bottom" id="TODO" order="6" />
189
+ <window_info anchor="right" id="Database" />
190
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
191
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
192
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
193
+ </layout>
194
+ </component>
195
+ <component name="TypeScriptGeneratedFilesManager">
196
+ <option name="version" value="1" />
197
+ </component>
198
+ <component name="editorHistoryManager">
199
+ <entry file="file://$PROJECT_DIR$/lib/victory/version.rb">
200
+ <provider selected="true" editor-type-id="text-editor">
201
+ <state relative-caret-position="23">
202
+ <caret line="1" column="17" selection-start-line="1" selection-start-column="17" selection-end-line="1" selection-end-column="17" />
203
+ </state>
204
+ </provider>
205
+ </entry>
206
+ <entry file="file://$PROJECT_DIR$/lib/victory.rb">
207
+ <provider selected="true" editor-type-id="text-editor" />
208
+ </entry>
209
+ <entry file="file://$PROJECT_DIR$/.gitignore">
210
+ <provider selected="true" editor-type-id="text-editor">
211
+ <state relative-caret-position="564">
212
+ <caret line="97" column="46" selection-start-line="97" selection-start-column="46" selection-end-line="97" selection-end-column="46" />
213
+ </state>
214
+ </provider>
215
+ </entry>
216
+ <entry file="file://$PROJECT_DIR$/test/victory_test.rb">
217
+ <provider selected="true" editor-type-id="text-editor" />
218
+ </entry>
219
+ <entry file="file://$PROJECT_DIR$/test/test_helper.rb">
220
+ <provider selected="true" editor-type-id="text-editor" />
221
+ </entry>
222
+ <entry file="file://$PROJECT_DIR$/.rubocop.yml">
223
+ <provider selected="true" editor-type-id="text-editor" />
224
+ </entry>
225
+ <entry file="file://$PROJECT_DIR$/victory.gemspec">
226
+ <provider selected="true" editor-type-id="text-editor">
227
+ <state relative-caret-position="418">
228
+ <caret line="26" column="51" lean-forward="true" selection-start-line="26" selection-start-column="51" selection-end-line="26" selection-end-column="51" />
229
+ </state>
230
+ </provider>
231
+ </entry>
232
+ </component>
233
+ </project>
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ Metrics/LineLength:
2
+ Max: 120
3
+ Style/GlobalVars:
4
+ Enabled: false
5
+ Style/BlockDelimiters:
6
+ Enabled: false
7
+ Style/MutableConstant:
8
+ Enabled: false
9
+ Lint/NestedMethodDefinition:
10
+ Enabled: false
11
+ Layout/SpaceAroundOperators:
12
+ Enabled: false
13
+ Style/TrailingCommaInArrayLiteral:
14
+ Enabled: false
15
+ AllCops:
16
+ TargetRubyVersion: 2.6
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.0
7
+ before_install: gem install bundler -v 1.17.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 szederjesiarnold@gmail.com. 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 victory.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Arnold Szederjesi
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,43 @@
1
+ # Victory
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/victory`. 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 'victory'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install victory
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/victory. 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.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Victory project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/victory/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ require "rake/extensiontask"
11
+
12
+ task :build => :compile
13
+
14
+ Rake::ExtensionTask.new("victory") do |ext|
15
+ ext.lib_dir = "lib/victory"
16
+ end
17
+
18
+ task :default => [:clobber, :compile, :test]
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "victory"
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,3 @@
1
+ require "mkmf"
2
+
3
+ create_makefile("victory/victory")
@@ -0,0 +1,9 @@
1
+ #include "victory.h"
2
+
3
+ VALUE rb_mVictory;
4
+
5
+ void
6
+ Init_victory(void)
7
+ {
8
+ rb_mVictory = rb_define_module("Victory");
9
+ }
@@ -0,0 +1,6 @@
1
+ #ifndef VICTORY_H
2
+ #define VICTORY_H 1
3
+
4
+ #include "ruby.h"
5
+
6
+ #endif /* VICTORY_H */
@@ -0,0 +1,3 @@
1
+ module Victory
2
+ VERSION = "0.0.0"
3
+ end
data/lib/victory.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "victory/version"
2
+ require "victory/victory"
3
+
4
+ module Victory
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ end
data/victory.gemspec ADDED
@@ -0,0 +1,29 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'victory/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'victory'
8
+ spec.version = Victory::VERSION
9
+ spec.authors = ['Arnold Szederjesi']
10
+ spec.email = ['szederjesiarnold@gmail.com']
11
+
12
+ spec.summary = 'A gem providing all useful algorithms and data structures for contests'
13
+ spec.license = 'MIT'
14
+
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ end
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+ spec.extensions = ['ext/victory/extconf.rb']
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.17'
26
+ spec.add_development_dependency 'minitest', '~> 5.0'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rake-compiler'
29
+ end
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: victory
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Arnold Szederjesi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-03-08 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.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-compiler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description:
70
+ email:
71
+ - szederjesiarnold@gmail.com
72
+ executables: []
73
+ extensions:
74
+ - ext/victory/extconf.rb
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".idea/encodings.xml"
79
+ - ".idea/misc.xml"
80
+ - ".idea/modules.xml"
81
+ - ".idea/victory.iml"
82
+ - ".idea/workspace.xml"
83
+ - ".rubocop.yml"
84
+ - ".travis.yml"
85
+ - CODE_OF_CONDUCT.md
86
+ - Gemfile
87
+ - LICENSE.txt
88
+ - README.md
89
+ - Rakefile
90
+ - bin/console
91
+ - bin/setup
92
+ - ext/victory/extconf.rb
93
+ - ext/victory/victory.c
94
+ - ext/victory/victory.h
95
+ - lib/victory.rb
96
+ - lib/victory/version.rb
97
+ - victory.gemspec
98
+ homepage:
99
+ licenses:
100
+ - MIT
101
+ metadata: {}
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubygems_version: 3.0.1
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: A gem providing all useful algorithms and data structures for contests
121
+ test_files: []