{"action":"created","issue":{"url":"https://api.github.com/repos/hhashimoto/m-playmat/issues/20","labels_url":"https://api.github.com/repos/hhashimoto/m-playmat/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/hhashimoto/m-playmat/issues/20/comments","events_url":"https://api.github.com/repos/hhashimoto/m-playmat/issues/20/events","html_url":"https://github.com/hhashimoto/m-playmat/issues/20","id":87213090,"number":20,"title":"カードデータの正規化","user":{"login":"hhashimoto","id":1752906,"avatar_url":"https://avatars.githubusercontent.com/u/1752906?v=3","gravatar_id":"","url":"https://api.github.com/users/hhashimoto","html_url":"https://github.com/hhashimoto","followers_url":"https://api.github.com/users/hhashimoto/followers","following_url":"https://api.github.com/users/hhashimoto/following{/other_user}","gists_url":"https://api.github.com/users/hhashimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hhashimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhashimoto/subscriptions","organizations_url":"https://api.github.com/users/hhashimoto/orgs","repos_url":"https://api.github.com/users/hhashimoto/repos","events_url":"https://api.github.com/users/hhashimoto/events{/privacy}","received_events_url":"https://api.github.com/users/hhashimoto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hhashimoto/m-playmat/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"hhashimoto","id":1752906,"avatar_url":"https://avatars.githubusercontent.com/u/1752906?v=3","gravatar_id":"","url":"https://api.github.com/users/hhashimoto","html_url":"https://github.com/hhashimoto","followers_url":"https://api.github.com/users/hhashimoto/followers","following_url":"https://api.github.com/users/hhashimoto/following{/other_user}","gists_url":"https://api.github.com/users/hhashimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hhashimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhashimoto/subscriptions","organizations_url":"https://api.github.com/users/hhashimoto/orgs","repos_url":"https://api.github.com/users/hhashimoto/repos","events_url":"https://api.github.com/users/hhashimoto/events{/privacy}","received_events_url":"https://api.github.com/users/hhashimoto/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hhashimoto/m-playmat/milestones/1","html_url":"https://github.com/hhashimoto/m-playmat/milestones/CUI%E7%89%88%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9","labels_url":"https://api.github.com/repos/hhashimoto/m-playmat/milestones/1/labels","id":1162859,"number":1,"title":"CUI版リリース","description":"CUIで統率者戦のデッキ構築ができる\r\nCUIでネットワーク対戦ができる","creator":{"login":"hhashimoto","id":1752906,"avatar_url":"https://avatars.githubusercontent.com/u/1752906?v=3","gravatar_id":"","url":"https://api.github.com/users/hhashimoto","html_url":"https://github.com/hhashimoto","followers_url":"https://api.github.com/users/hhashimoto/followers","following_url":"https://api.github.com/users/hhashimoto/following{/other_user}","gists_url":"https://api.github.com/users/hhashimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hhashimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhashimoto/subscriptions","organizations_url":"https://api.github.com/users/hhashimoto/orgs","repos_url":"https://api.github.com/users/hhashimoto/repos","events_url":"https://api.github.com/users/hhashimoto/events{/privacy}","received_events_url":"https://api.github.com/users/hhashimoto/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":2,"state":"open","created_at":"2015-06-13T00:01:01Z","updated_at":"2015-06-13T15:32:29Z","due_on":"2015-06-27T15:00:00Z","closed_at":null},"comments":3,"created_at":"2015-06-11T05:03:16Z","updated_at":"2015-06-13T15:56:34Z","closed_at":null,"body":"RDBと同じようにidとサブタイプなどの関連付けを行うデータファイルとカード本体のデータファイルを分割する。\r\nカード本体の方ではsubtypes:[1,3,4]などとし、このidと言語の種類からサブタイプ文字列を取り出す。\r\n\r\n今あるカードデータはそのままとし、このデータから正規化カードデータとサブタイプデータなどをスクリプトで取り出す。こうすることで、形式が変わったりカードが追加されたりしてもスクリプトで生成しなおせば良くなる。\r\n\r\nファイルシステムDBの実装についてはシェルスクリプト実践入門に掲載されていたので参照のこと。"},"comment":{"url":"https://api.github.com/repos/hhashimoto/m-playmat/issues/comments/111724015","html_url":"https://github.com/hhashimoto/m-playmat/issues/20#issuecomment-111724015","issue_url":"https://api.github.com/repos/hhashimoto/m-playmat/issues/20","id":111724015,"user":{"login":"hhashimoto","id":1752906,"avatar_url":"https://avatars.githubusercontent.com/u/1752906?v=3","gravatar_id":"","url":"https://api.github.com/users/hhashimoto","html_url":"https://github.com/hhashimoto","followers_url":"https://api.github.com/users/hhashimoto/followers","following_url":"https://api.github.com/users/hhashimoto/following{/other_user}","gists_url":"https://api.github.com/users/hhashimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hhashimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhashimoto/subscriptions","organizations_url":"https://api.github.com/users/hhashimoto/orgs","repos_url":"https://api.github.com/users/hhashimoto/repos","events_url":"https://api.github.com/users/hhashimoto/events{/privacy}","received_events_url":"https://api.github.com/users/hhashimoto/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T15:56:34Z","updated_at":"2015-06-13T15:56:34Z","body":"```\r\ndb - name - a - ar - Armed Response\r\n                   - ...\r\n                   - Arid Mesa\r\n```"}}