{"id":15662033,"url":"https://github.com/cmckni3/ruby-jasperserver","last_synced_at":"2025-07-26T11:18:32.765Z","repository":{"id":6350411,"uuid":"7587024","full_name":"cmckni3/ruby-jasperserver","owner":"cmckni3","description":"Rails integration for JasperSoft Reports","archived":false,"fork":false,"pushed_at":"2024-11-25T16:38:27.000Z","size":94,"stargazers_count":19,"open_issues_count":5,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-17T13:57:08.934Z","etag":null,"topics":["jasperserver","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmckni3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/docker/Dockerfile","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-01-13T10:58:07.000Z","updated_at":"2024-11-14T21:24:48.000Z","dependencies_parsed_at":"2024-11-25T17:34:55.686Z","dependency_job_id":null,"html_url":"https://github.com/cmckni3/ruby-jasperserver","commit_stats":{"total_commits":62,"total_committers":4,"mean_commits":15.5,"dds":0.06451612903225812,"last_synced_commit":"eee9f4443e808380f9bfe37e86a2b943b9e9f63f"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/cmckni3/ruby-jasperserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2Fruby-jasperserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2Fruby-jasperserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2Fruby-jasperserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2Fruby-jasperserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmckni3","download_url":"https://codeload.github.com/cmckni3/ruby-jasperserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2Fruby-jasperserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267156150,"owners_count":24044415,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jasperserver","rails","ruby"],"created_at":"2024-10-03T13:29:53.055Z","updated_at":"2025-07-26T11:18:32.701Z","avatar_url":"https://github.com/cmckni3.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JasperserverRails\n[![Gem Version](https://img.shields.io/gem/v/jasperserver-rails.svg)](https://rubygems.org/gems/jasperserver-rails)\n[![Travis](https://img.shields.io/travis/cmckni3/ruby-jasperserver.svg)](https://travis-ci.org/cmckni3/rails-jasperserver)\n[![Code Climate](https://api.codeclimate.com/v1/badges/9dfe8fd29537fc32faeb/maintainability)](https://codeclimate.com/github/cmckni3/ruby-jasperserver/maintainability)\n[![License](https://img.shields.io/github/license/cmckni3/ruby-jasperserver.svg)](https://github.com/cmckni3/ruby-jasperserver/blob/master/MIT-LICENSE)\n\nDownload reports in various formats from jasperserver\n\nFormats supported:\n\n  * HTML\n  * PDF\n  * XLS\n  * RTF\n  * CSV\n  * XML\n  * jrprint\n\n## Installation\n\n### Install the gem\n\nAdd this line to your application's Gemfile:\n\n    gem 'jasperserver-rails'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install jasperserver-rails\n\n### Install the generator\n\n  * Install the initializer and config file\n\n        $ rails g jasperserver_rails:install\n\n* Edit `config/jasperserver.yml`\n\n## Usage\n\n1. Add jasperserver configuration to config/jasperserver.yml\n\n```yaml\ndevelopment:\n  url: 'http://server:port/jasperserver/'\n  username: 'username'\n  password: 'password'\n\ntest:\n  url: 'http://server:port/jasperserver/'\n  username: 'username'\n  password: 'password'\n\nproduction:\n  url: 'http://server:port/jasperserver/'\n  username: 'username'\n  password: 'password'\n```\n\n2. Run a report\n\n```ruby\npdf = JasperserverRails::Jasperserver.new.generate_report do\n        format 'pdf'\n        report '/reports/TestReport'\n        params(Value1: 'Value1')\n      end\nsend_data pdf, filename: 'Test.pdf', type: :pdf\n```\n\n3. Download a report using the DSL\n\n```ruby\nfile_path = Rails.root.join('tmp', 'reports', 'test.pdf')\nJasperserverRails::Jasperserver.new.run_report file_path do\n  format 'pdf'\n  report '/reports/TestReport'\n  params(Value1: 'Value1')\nend\n```\n\n## TODO\n\n1. Documentation\n2. Background processing\n3. Add more tests\n\n## Copyright and License\n\nJasperserverRails \u0026copy; 2013 by [Chris McKnight](http://github.com/cmckni3).\n\nJasperserverRails is licensed under the MIT license. Please see the MIT-LICENSE document for more information.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmckni3%2Fruby-jasperserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmckni3%2Fruby-jasperserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmckni3%2Fruby-jasperserver/lists"}