{"id":15881267,"url":"https://github.com/willrax/pin-it-button","last_synced_at":"2025-04-02T05:26:04.385Z","repository":{"id":2647081,"uuid":"3637116","full_name":"willrax/pin-it-button","owner":"willrax","description":"Adds a pin it button to a rails view","archived":false,"fork":false,"pushed_at":"2013-07-17T03:24:40.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T06:46:35.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"waffles.willrax.com","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/willrax.png","metadata":{"files":{"readme":"README.rdoc","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}},"created_at":"2012-03-06T11:12:20.000Z","updated_at":"2013-12-25T03:59:50.000Z","dependencies_parsed_at":"2022-08-21T00:50:44.762Z","dependency_job_id":null,"html_url":"https://github.com/willrax/pin-it-button","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/willrax%2Fpin-it-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willrax%2Fpin-it-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willrax%2Fpin-it-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willrax%2Fpin-it-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willrax","download_url":"https://codeload.github.com/willrax/pin-it-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246760842,"owners_count":20829372,"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-06T03:40:54.359Z","updated_at":"2025-04-02T05:26:04.361Z","avatar_url":"https://github.com/willrax.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"== Pin Button\n\nA gem to add the Pinterest 'Pin it' button to a rails project view. It borrows heavily \nfrom the tweet-button gem by intridea for it's structure.\n\nThis makes it much easier to tag images using controller variables in your views.\n\n== Installation\n\n**On Rails 3.x,** add the gem to your Gemfile (if you're using Bundler).\n\n\tgem \"pin-it-button\"\n\n== Usage\n\nFirst you'll want to include PinItButton in your application helper\n\n\tinclude PinItButton\n\t\nYou then have access to the pin it button helper in your views. The button needs a few arguments to get going.\n\n* +:description+ - the description you would like to display to the user by default\n* +:media+ - the url of the image you would like the user to pin\n* +:count-layout+ - the layout of the counter. (vertical, horizontal, none).\n\nAn example would be:\n\n\t\u003c%= pin-it-button :description =\u003e \"this is my amazing image\", :media =\u003e \"my_image.png\", :'count-layout' =\u003e \"none\" %\u003e\n\n== Universal defaults\n\nAfter you've included the module in your helper view, you can set any defaults by using:\n\n\tPinItButton.default_pin_button_options = {:url =\u003e \"example.com\"}\n\nAny other defaults will stay the same.\n\n== Note on Patches/Pull Requests\n \n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a future version unintentionally.\n* Commit, do not mess with rakefile, version, or history.\n  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\n== To do\n\n* Add some tests :/\n\n== Copyright\n\nCopyright (c) 2012 Will R. See LICENSE for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillrax%2Fpin-it-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillrax%2Fpin-it-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillrax%2Fpin-it-button/lists"}