{"id":15980342,"url":"https://github.com/appcypher/observable","last_synced_at":"2025-04-04T18:44:19.052Z","repository":{"id":97524880,"uuid":"281526916","full_name":"appcypher/observable","owner":"appcypher","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-23T13:01:36.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T15:03:24.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appcypher.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":"2020-07-21T23:35:50.000Z","updated_at":"2020-07-23T13:01:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0ac15d1-5af6-4138-ae4b-f423cb4b3327","html_url":"https://github.com/appcypher/observable","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"70a1022420824db2e41126f859437ee3198f0201"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appcypher%2Fobservable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appcypher%2Fobservable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appcypher%2Fobservable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appcypher%2Fobservable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appcypher","download_url":"https://codeload.github.com/appcypher/observable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234850,"owners_count":20905852,"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":[],"created_at":"2024-10-08T00:04:33.107Z","updated_at":"2025-04-04T18:44:19.036Z","avatar_url":"https://github.com/appcypher.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"## OBSERVABLE\nA simple observable library for personal use really.\n\n### USAGE\n- Import into your project\n\n    - Add the following in your `shard.yml` file\n\n    ```yml\n    dependencies:\n        agent:\n            github: appcypher/observable\n    ```\n\n    - Import classes into your project\n\n    ```crystal\n    require \"observable\"\n\n    class NewsMedia \u003c Observable\n        getter subscription : Subscription\n\n        private def notify()\n            subscription.notify(self)\n        end\n\n        private def add_subscription(sub : Subscription)\n            @subscription = subscription\n        end\n\n        def initialize(sub : Subscription)\n            # ...\n            add_subscription(sub)\n            some_source() do |news|\n                notify()\n            end\n        end\n\n        # ...\n    end\n\n    class Reader \u003c Observer\n        def react(obs : Observable)\n            puts \"Wow! That is crazy.\"\n        end\n    end\n\n    cnn = NewsMedia.new(Subscription.new)\n    reader = Reader.new\n    cnn.subscription.enlist(reader)\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappcypher%2Fobservable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappcypher%2Fobservable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappcypher%2Fobservable/lists"}