{"id":18562768,"url":"https://github.com/ruby-processing/pconstants","last_synced_at":"2025-10-07T04:11:14.564Z","repository":{"id":78032763,"uuid":"96108940","full_name":"ruby-processing/PConstants","owner":"ruby-processing","description":"Explore using processing PConstants with JRuby","archived":false,"fork":false,"pushed_at":"2017-07-10T13:27:40.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-17T12:45:41.685Z","etag":null,"topics":["constants","java","jruby","jrubyart","propane"],"latest_commit_sha":null,"homepage":"https://ruby-processing.github.io/PConstants","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby-processing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-03T12:34:39.000Z","updated_at":"2017-07-10T13:31:47.000Z","dependencies_parsed_at":"2023-03-13T20:14:09.652Z","dependency_job_id":null,"html_url":"https://github.com/ruby-processing/PConstants","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPConstants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPConstants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPConstants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPConstants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby-processing","download_url":"https://codeload.github.com/ruby-processing/PConstants/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388622,"owners_count":22063084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["constants","java","jruby","jrubyart","propane"],"created_at":"2024-11-06T22:10:48.977Z","updated_at":"2025-10-07T04:11:09.531Z","avatar_url":"https://github.com/ruby-processing.png","language":"Java","readme":"# PConstants\n\nExploring using processing [PConstants][pconstants] with JRuby, here is simple project that could help you to understand [propane][propane] and [JRubyArt][jruby_art].\n\nHere only compile the PConstants.java (it has no external dependencies)\n\n### Use simplicity of a custom Rakefile\n```\nrake\n```\n\n### Or Use polyglot maven directly to create a java library\nRead more about [polyglot maven here][polyglot]\n\n```bash\nmvn package\n```\n\n### The use ruby minitest to test and explore PConstants\n```bash\ncd test\njruby has_constants_test.rb\n```\n\nWhat we confirm in the test that under JRuby `PConstants` is seen as a ruby module, and we only need to include the module to implement the interface. But it could have possible namespace issues.\n\n### To experiment with different type of java constants\n\n```bash\ngit checkout final_class # for PConstants as a final class (better practice than using an interface, but still frowned on)\n# or\ngit checkout enum # Where there are enum version of seleceted PConstants (the use of global enum is also considered non-ideal)\n# or for alternative means of accessing enums using :constant_missing, makes no sens to me\ngit checkout constant_missing # does not seem to me to have any advantages over include module method\n\n[pconstants]:https://github.com/processing/processing/blob/master/core/src/processing/core/PConstants.java\n[propane]:https://ruby-processing.github.io/propane/\n[jruby_art]:https://ruby-processing.github.io/JRubyArt/\n[polyglot]:https://github.com/takari/polyglot-maven\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Fpconstants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby-processing%2Fpconstants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Fpconstants/lists"}