glfw 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4fb03cda4f9922491ba4d802c9154d6350af253b
4
+ data.tar.gz: 96577930eb54ca7b519705e51878c652393cb7f4
5
+ SHA512:
6
+ metadata.gz: 7bd6abb2bd93cffd121e03c9d3a55b1d55506c6a8b3f82d60cee9ca79614443ae99d1219856395a1c8bf6171786e9daa9adf92d1a8a407a490d399db0129ca88
7
+ data.tar.gz: a57320cfc1968e7805ab9987b82d7705221bcb8746e25163e577dfb4906ebed68a4f150abf9aa1192f5e78f25890233d42e7b379144516bc722efd470658b06c
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
@@ -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.16.2, ruby-2.4.4-p296) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, ruby-2.4.4-p296) [gem]" level="application" />
12
+ </component>
13
+ </module>
@@ -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="ruby-2.4.4-p296" project-jdk-type="RUBY_SDK" />
7
+ </project>
@@ -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/glfw.iml" filepath="$PROJECT_DIR$/.idea/glfw.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,249 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="30ebf488-7b2e-4e8f-b513-19cd69b024ea" name="Default" comment="">
5
+ <change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
6
+ <change afterPath="$PROJECT_DIR$/.idea/glfw.iml" 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/workspace.xml" afterDir="false" />
10
+ <change afterPath="$PROJECT_DIR$/.rspec" afterDir="false" />
11
+ <change afterPath="$PROJECT_DIR$/.travis.yml" afterDir="false" />
12
+ <change afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" afterDir="false" />
13
+ <change afterPath="$PROJECT_DIR$/Gemfile" afterDir="false" />
14
+ <change afterPath="$PROJECT_DIR$/LICENSE.txt" afterDir="false" />
15
+ <change afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
16
+ <change afterPath="$PROJECT_DIR$/Rakefile" afterDir="false" />
17
+ <change afterPath="$PROJECT_DIR$/bin/console" afterDir="false" />
18
+ <change afterPath="$PROJECT_DIR$/bin/setup" afterDir="false" />
19
+ <change afterPath="$PROJECT_DIR$/glfw.gemspec" afterDir="false" />
20
+ <change afterPath="$PROJECT_DIR$/lib/glfw.rb" afterDir="false" />
21
+ <change afterPath="$PROJECT_DIR$/lib/glfw/version.rb" afterDir="false" />
22
+ <change afterPath="$PROJECT_DIR$/lib/glfw/window.rb" afterDir="false" />
23
+ <change afterPath="$PROJECT_DIR$/spec/glfw_spec.rb" afterDir="false" />
24
+ <change afterPath="$PROJECT_DIR$/spec/spec_helper.rb" afterDir="false" />
25
+ </list>
26
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
27
+ <option name="TRACKING_ENABLED" value="true" />
28
+ <option name="SHOW_DIALOG" value="false" />
29
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
30
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
31
+ <option name="LAST_RESOLUTION" value="IGNORE" />
32
+ </component>
33
+ <component name="CoverageDataManager">
34
+ <SUITE FILE_PATH="coverage/glfw@glfw.rcov" NAME="glfw Coverage Results" MODIFIED="1531629579669" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="glfw" />
35
+ </component>
36
+ <component name="FileEditorManager">
37
+ <leaf>
38
+ <file leaf-file-name="glfw.rb" pinned="false" current-in-tab="false">
39
+ <entry file="file://$PROJECT_DIR$/lib/glfw.rb">
40
+ <provider selected="true" editor-type-id="text-editor">
41
+ <state relative-caret-position="16">
42
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="window.rb" pinned="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/lib/glfw/window.rb">
49
+ <provider selected="true" editor-type-id="text-editor">
50
+ <state relative-caret-position="140">
51
+ <caret line="10" column="5" selection-start-line="10" selection-start-column="5" selection-end-line="10" selection-end-column="5" />
52
+ </state>
53
+ </provider>
54
+ </entry>
55
+ </file>
56
+ <file leaf-file-name="glfw.gemspec" pinned="false" current-in-tab="true">
57
+ <entry file="file://$PROJECT_DIR$/glfw.gemspec">
58
+ <provider selected="true" editor-type-id="text-editor">
59
+ <state relative-caret-position="294">
60
+ <caret line="21" column="30" lean-forward="true" selection-start-line="21" selection-start-column="30" selection-end-line="21" selection-end-column="30" />
61
+ </state>
62
+ </provider>
63
+ </entry>
64
+ </file>
65
+ </leaf>
66
+ </component>
67
+ <component name="FileTemplateManagerImpl">
68
+ <option name="RECENT_TEMPLATES">
69
+ <list>
70
+ <option value="Ruby Class Template" />
71
+ </list>
72
+ </option>
73
+ </component>
74
+ <component name="Git.Settings">
75
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
76
+ </component>
77
+ <component name="IdeDocumentHistory">
78
+ <option name="CHANGED_PATHS">
79
+ <list>
80
+ <option value="$PROJECT_DIR$/lib/glfw.rb" />
81
+ <option value="$PROJECT_DIR$/lib/glfw/window.rb" />
82
+ <option value="$PROJECT_DIR$/glfw.gemspec" />
83
+ </list>
84
+ </option>
85
+ </component>
86
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
87
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
88
+ <component name="JsGulpfileManager">
89
+ <detection-done>true</detection-done>
90
+ <sorting>DEFINITION_ORDER</sorting>
91
+ </component>
92
+ <component name="NodePackageJsonFileManager">
93
+ <packageJsonPaths />
94
+ </component>
95
+ <component name="ProjectFrameBounds" extendedState="6">
96
+ <option name="x" value="467" />
97
+ <option name="y" value="150" />
98
+ <option name="width" value="975" />
99
+ <option name="height" value="792" />
100
+ </component>
101
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
102
+ <component name="ProjectView">
103
+ <navigator proportions="" version="1">
104
+ <foldersAlwaysOnTop value="true" />
105
+ </navigator>
106
+ <panes>
107
+ <pane id="ProjectPane">
108
+ <subPane>
109
+ <expand>
110
+ <path>
111
+ <item name="glfw" type="b2602c69:ProjectViewProjectNode" />
112
+ <item name="glfw" type="462c0819:PsiDirectoryNode" />
113
+ </path>
114
+ </expand>
115
+ <select />
116
+ </subPane>
117
+ </pane>
118
+ <pane id="Scope" />
119
+ </panes>
120
+ </component>
121
+ <component name="PropertiesComponent">
122
+ <property name="WebServerToolWindowFactoryState" value="false" />
123
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
124
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
125
+ <property name="settings.editor.selected.configurable" value="editor.preferences.fonts.default" />
126
+ </component>
127
+ <component name="RecentsManager">
128
+ <key name="CopyFile.RECENT_KEYS">
129
+ <recent name="C:\Users\Eric\OneDrive\Documents\RubymineProjects\glfw" />
130
+ </key>
131
+ <key name="MoveFile.RECENT_KEYS">
132
+ <recent name="C:\Users\Eric\OneDrive\Documents\RubymineProjects\glfw\lib" />
133
+ <recent name="C:\Users\Eric\OneDrive\Documents\RubymineProjects\glfw\lib\glfw" />
134
+ <recent name="C:\Users\Eric\OneDrive\Documents\RubymineProjects\glfw" />
135
+ </key>
136
+ </component>
137
+ <component name="RunDashboard">
138
+ <option name="ruleStates">
139
+ <list>
140
+ <RuleState>
141
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
142
+ </RuleState>
143
+ <RuleState>
144
+ <option name="name" value="StatusDashboardGroupingRule" />
145
+ </RuleState>
146
+ </list>
147
+ </option>
148
+ </component>
149
+ <component name="RunManager">
150
+ <configuration name="glfw" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
151
+ <module name="glfw" />
152
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
153
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
154
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
155
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
156
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
157
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
158
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
159
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
160
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/glfw.rb" />
161
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
162
+ </configuration>
163
+ <recent_temporary>
164
+ <list>
165
+ <item itemvalue="Ruby.glfw" />
166
+ </list>
167
+ </recent_temporary>
168
+ </component>
169
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
170
+ <component name="TaskManager">
171
+ <task active="true" id="Default" summary="Default task">
172
+ <changelist id="30ebf488-7b2e-4e8f-b513-19cd69b024ea" name="Default" comment="" />
173
+ <created>1531624775765</created>
174
+ <option name="number" value="Default" />
175
+ <option name="presentableId" value="Default" />
176
+ <updated>1531624775765</updated>
177
+ <workItem from="1531624776991" duration="4924000" />
178
+ </task>
179
+ <servers />
180
+ </component>
181
+ <component name="TimeTrackingManager">
182
+ <option name="totallyTimeSpent" value="4924000" />
183
+ </component>
184
+ <component name="ToolWindowManager">
185
+ <frame x="-7" y="-7" width="1753" height="954" extended-state="6" />
186
+ <editor active="true" />
187
+ <layout>
188
+ <window_info anchor="bottom" id="TODO" order="6" />
189
+ <window_info anchor="bottom" id="Event Log" side_tool="true" />
190
+ <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
191
+ <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32936978" />
192
+ <window_info anchor="bottom" id="Version Control" />
193
+ <window_info anchor="bottom" id="Terminal" />
194
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24956872" />
195
+ <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
196
+ <window_info anchor="right" id="Database" />
197
+ <window_info anchor="bottom" id="Find" order="1" weight="0.23543401" />
198
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
199
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.39952436" />
200
+ <window_info id="Favorites" side_tool="true" />
201
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
202
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
203
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
204
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
205
+ <window_info anchor="bottom" id="Message" order="0" />
206
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
207
+ </layout>
208
+ </component>
209
+ <component name="TypeScriptGeneratedFilesManager">
210
+ <option name="version" value="1" />
211
+ </component>
212
+ <component name="VcsContentAnnotationSettings">
213
+ <option name="myLimit" value="2678400000" />
214
+ </component>
215
+ <component name="XDebuggerManager">
216
+ <breakpoint-manager>
217
+ <breakpoints>
218
+ <line-breakpoint enabled="true" type="ruby-line">
219
+ <url>file://$PROJECT_DIR$/lib/glfw.rb</url>
220
+ <line>36</line>
221
+ </line-breakpoint>
222
+ </breakpoints>
223
+ <option name="time" value="1" />
224
+ </breakpoint-manager>
225
+ </component>
226
+ <component name="editorHistoryManager">
227
+ <entry file="file://$PROJECT_DIR$/lib/glfw.rb">
228
+ <provider selected="true" editor-type-id="text-editor">
229
+ <state relative-caret-position="16">
230
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
231
+ </state>
232
+ </provider>
233
+ </entry>
234
+ <entry file="file://$PROJECT_DIR$/lib/glfw/window.rb">
235
+ <provider selected="true" editor-type-id="text-editor">
236
+ <state relative-caret-position="140">
237
+ <caret line="10" column="5" selection-start-line="10" selection-start-column="5" selection-end-line="10" selection-end-column="5" />
238
+ </state>
239
+ </provider>
240
+ </entry>
241
+ <entry file="file://$PROJECT_DIR$/glfw.gemspec">
242
+ <provider selected="true" editor-type-id="text-editor">
243
+ <state relative-caret-position="294">
244
+ <caret line="21" column="30" lean-forward="true" selection-start-line="21" selection-start-column="30" selection-end-line="21" selection-end-column="30" />
245
+ </state>
246
+ </provider>
247
+ </entry>
248
+ </component>
249
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.4
5
+ before_install: gem install bundler -v 1.16.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 efreed09@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 glfw.gemspec
6
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Eric Freed
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.
@@ -0,0 +1,43 @@
1
+ # Glfw
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/glfw`. 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 'glfw'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install glfw
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 spec` 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]/glfw. 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 Glfw project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/glfw/blob/master/CODE_OF_CONDUCT.md).
@@ -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
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "glfw"
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__)
@@ -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,30 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "glfw/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "glfw"
8
+ spec.version = GLFW::VERSION
9
+ spec.authors = ['Eric "ForeverZer0" Freed']
10
+ spec.email = ['efreed09@gmail.com']
11
+ spec.summary = %q{Ruby wrapper for the latest GLFW library, allowing for creating cross-platform windows with an OpenGL/Vulkan context.}
12
+ spec.description = %q{Ruby wrapper for the latest GLFW library, allowing for creating cross-platform windows with an OpenGL/Vulkan context.}
13
+ spec.homepage = 'https://github.com/ForeverZer0/glfw'
14
+ spec.license = "MIT"
15
+
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.requirements << 'Native GLFW3 binaries.'
23
+
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.16"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ end
@@ -0,0 +1,138 @@
1
+ require_relative 'glfw/version'
2
+
3
+ require 'fiddle'
4
+ require 'fiddle/import'
5
+
6
+ module GLFW
7
+
8
+ extend Fiddle::Importer
9
+
10
+ dlload File.expand_path('./glfw3.dll')
11
+
12
+ typealias 'window', 'void*'
13
+ typealias 'monitor', 'void*'
14
+ typealias 'string', 'const char*'
15
+ typealias 'bool', 'int'
16
+
17
+ extern 'bool glfwInit(void)'
18
+ extern 'window glfwCreateWindow(int, int, string, monitor, window)'
19
+ extern 'void glfwShowWindow(window)'
20
+ extern 'bool glfwWindowShouldClose(window)'
21
+ extern 'void glfwWaitEvents(window)'
22
+
23
+ puts glfwInit != 0
24
+
25
+ window = self.glfwCreateWindow(640, 480, "HOWDY".encode('utf-8'), nil, nil)
26
+
27
+
28
+
29
+ glfwShowWindow(window)
30
+
31
+ while glfwWindowShouldClose(window) == 0
32
+
33
+ glfwWaitEvents(window)
34
+
35
+ end
36
+
37
+ p window
38
+
39
+
40
+ # glfwCreateCursor
41
+ # glfwCreateStandardCursor
42
+ # glfwCreateWindowSurface
43
+ # glfwDefaultWindowHints
44
+ # glfwDestroyCursor
45
+ # glfwDestroyWindow
46
+ # glfwExtensionSupported
47
+ # glfwFocusWindow
48
+ # glfwGetClipboardString
49
+ # glfwGetCurrentContext
50
+ # glfwGetCursorPos
51
+ # glfwGetEGLContext
52
+ # glfwGetEGLDisplay
53
+ # glfwGetEGLSurface
54
+ # glfwGetFramebufferSize
55
+ # glfwGetGammaRamp
56
+ # glfwGetInputMode
57
+ # glfwGetInstanceProcAddress
58
+ # glfwGetJoystickAxes
59
+ # glfwGetJoystickButtons
60
+ # glfwGetJoystickName
61
+ # glfwGetKey
62
+ # glfwGetKeyName
63
+ # glfwGetMonitorName
64
+ # glfwGetMonitorPhysicalSize
65
+ # glfwGetMonitorPos
66
+ # glfwGetMonitors
67
+ # glfwGetMouseButton
68
+ # glfwGetPhysicalDevicePresentationSupport
69
+ # glfwGetPrimaryMonitor
70
+ # glfwGetProcAddress
71
+ # glfwGetRequiredInstanceExtensions
72
+ # glfwGetTime
73
+ # glfwGetTimerFrequency
74
+ # glfwGetTimerValue
75
+ # glfwGetVersion
76
+ # glfwGetVersionString
77
+ # glfwGetVideoMode
78
+ # glfwGetVideoModes
79
+ # glfwGetWGLContext
80
+ # glfwGetWin32Adapter
81
+ # glfwGetWin32Monitor
82
+ # glfwGetWin32Window
83
+ # glfwGetWindowAttrib
84
+ # glfwGetWindowFrameSize
85
+ # glfwGetWindowMonitor
86
+ # glfwGetWindowPos
87
+ # glfwGetWindowSize
88
+ # glfwGetWindowUserPointer
89
+ # glfwHideWindow
90
+ # glfwIconifyWindow
91
+ # glfwJoystickPresent
92
+ # glfwMakeContextCurrent
93
+ # glfwMaximizeWindow
94
+ # glfwPollEvents
95
+ # glfwPostEmptyEvent
96
+ # glfwRestoreWindow
97
+ # glfwSetCharCallback
98
+ # glfwSetCharModsCallback
99
+ # glfwSetClipboardString
100
+ # glfwSetCursor
101
+ # glfwSetCursorEnterCallback
102
+ # glfwSetCursorPos
103
+ # glfwSetCursorPosCallback
104
+ # glfwSetDropCallback
105
+ # glfwSetErrorCallback
106
+ # glfwSetFramebufferSizeCallback
107
+ # glfwSetGamma
108
+ # glfwSetGammaRamp
109
+ # glfwSetInputMode
110
+ # glfwSetJoystickCallback
111
+ # glfwSetKeyCallback
112
+ # glfwSetMonitorCallback
113
+ # glfwSetMouseButtonCallback
114
+ # glfwSetScrollCallback
115
+ # glfwSetTime
116
+ # glfwSetWindowAspectRatio
117
+ # glfwSetWindowCloseCallback
118
+ # glfwSetWindowFocusCallback
119
+ # glfwSetWindowIcon
120
+ # glfwSetWindowIconifyCallback
121
+ # glfwSetWindowMonitor
122
+ # glfwSetWindowPos
123
+ # glfwSetWindowPosCallback
124
+ # glfwSetWindowRefreshCallback
125
+ # glfwSetWindowShouldClose
126
+ # glfwSetWindowSize
127
+ # glfwSetWindowSizeCallback
128
+ # glfwSetWindowSizeLimits
129
+ # glfwSetWindowTitle
130
+ # glfwSetWindowUserPointer
131
+ # glfwSwapBuffers
132
+ # glfwSwapInterval
133
+ # glfwTerminate
134
+ # glfwVulkanSupported
135
+ # glfwWaitEventsTimeout
136
+ # glfwWindowHint
137
+
138
+ end
@@ -0,0 +1,3 @@
1
+ module GLFW
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,12 @@
1
+ module GLFW
2
+ class Window < Fiddle::Pointer
3
+
4
+ include Fiddle
5
+
6
+ def initialize(width, hight, title, **options)
7
+
8
+
9
+
10
+ end
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: glfw
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Eric "ForeverZer0" Freed
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-07-15 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'
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'
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
+ description: Ruby wrapper for the latest GLFW library, allowing for creating cross-platform
42
+ windows with an OpenGL/Vulkan context.
43
+ email:
44
+ - efreed09@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - ".idea/glfw.iml"
51
+ - ".idea/misc.xml"
52
+ - ".idea/modules.xml"
53
+ - ".idea/workspace.xml"
54
+ - ".rspec"
55
+ - ".travis.yml"
56
+ - CODE_OF_CONDUCT.md
57
+ - Gemfile
58
+ - LICENSE.txt
59
+ - README.md
60
+ - Rakefile
61
+ - bin/console
62
+ - bin/setup
63
+ - glfw.gemspec
64
+ - lib/glfw.rb
65
+ - lib/glfw/version.rb
66
+ - lib/glfw/window.rb
67
+ homepage: https://github.com/ForeverZer0/glfw
68
+ licenses:
69
+ - MIT
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements:
86
+ - Native GLFW3 binaries.
87
+ rubyforge_project:
88
+ rubygems_version: 2.6.14.1
89
+ signing_key:
90
+ specification_version: 4
91
+ summary: Ruby wrapper for the latest GLFW library, allowing for creating cross-platform
92
+ windows with an OpenGL/Vulkan context.
93
+ test_files: []