From 1c558f7eff1b872ea7ae0d71ae347b96e35dab01 Mon Sep 17 00:00:00 2001 From: Chikako OHNO Date: Sun, 5 Jan 2020 14:29:30 +0900 Subject: [PATCH 1/2] =?UTF-8?q?rake=20=E3=82=BF=E3=82=B9=E3=82=AF=20dojos:?= =?UTF-8?q?generate=5Fyaml=20=E3=82=92=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=A2=E3=82=A6=E3=83=88(=E7=84=A1=E5=8A=B9=E5=8C=96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/parse_backup.json | 833 ------------------------------------------- lib/tasks/dojos.rake | 30 +- 2 files changed, 15 insertions(+), 848 deletions(-) delete mode 100644 db/parse_backup.json diff --git a/db/parse_backup.json b/db/parse_backup.json deleted file mode 100644 index 3ce3d9f3d..000000000 --- a/db/parse_backup.json +++ /dev/null @@ -1,833 +0,0 @@ -{ "results": [ - { - "createdAt": "2015-07-25T08:42:36.457Z", - "description": "奈良県奈良市で毎月開催", - "image_url": "https://raw.githubusercontent.com/coderdojo-nara-ikoma/document/master/icon/NARA_black.png", - "name": "奈良 (近畿)", - "objectId": "1MczfGYBuN", - "order": 50, - "source": "753930831309387", - "tags": [ - "Scratch", - "Webサイト", - "C#" - ], - "updatedAt": "2016-09-27T02:16:01.953Z", - "url": "http://coderdojo-nara-ikoma.github.io/" - }, - { - "createdAt": "2015-07-25T06:47:34.898Z", - "description": "北海道旭川市で不定期開催", - "image_url": "http://graph.facebook.com/416298905086341/picture?type=large", - "name": "旭川 (北海道)", - "objectId": "1bJXHZtjbL", - "order": 1, - "source": "416298905086341", - "tags": [ - "Scratch", - "ラズベリーパイ" - ], - "updatedAt": "2015-07-26T06:22:02.532Z", - "url": "http://coderdojo-asahikawa.github.io/" - }, - { - "createdAt": "2016-11-09T02:11:59.815Z", - "description": "千葉県野田市で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "野田 (関東)", - "objectId": "1v3Xv5H9fB", - "order": 28, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-11-09T02:12:31.636Z", - "url": "https://www.facebook.com/coderdojonoda/" - }, - { - "createdAt": "2016-05-19T12:28:38.231Z", - "description": "広島県広島市で毎月開催\t", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-hiroshima.png", - "name": "広島 (中国)", - "objectId": "2Q5NDqufUU", - "order": 80, - "tags": [ - "Scratch", - "Webサイト", - "PHP" - ], - "updatedAt": "2016-10-07T03:19:37.469Z", - "url": "https://www.facebook.com/coderdojo.hiroshima/" - }, - { - "createdAt": "2016-09-30T01:53:15.520Z", - "description": "茨城県守谷市で毎月開催\t\n", - "image_url": "https://dl.dropboxusercontent.com/u/3276838/CoderDojoMoriya-LOGO.jpg", - "name": "守谷 (関東)", - "objectId": "2TC4dZK4kk", - "order": 9, - "tags": [ - "Scratch", - "IoT", - "電子工作" - ], - "updatedAt": "2016-09-30T02:12:10.040Z", - "url": "http://coderdojo-moriya.com/" - }, - { - "createdAt": "2016-07-03T07:56:15.677Z", - "description": "大阪府堺市で毎月開催\t", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "堺 (近畿)", - "objectId": "3sO9zVQV5T", - "order": 65, - "tags": [ - "Scratch", - "PHP", - "Java" - ], - "updatedAt": "2016-10-07T03:19:53.234Z", - "url": "https://coderdojo-sakai.doorkeeper.jp/" - }, - { - "createdAt": "2016-09-01T05:05:24.672Z", - "description": "千葉県千葉市で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "若葉 (関東)", - "objectId": "3z4EfKUVY6", - "order": 33, - "tags": [ - "Scratch", - "Java" - ], - "updatedAt": "2016-09-01T05:09:58.355Z", - "url": "http://coderdojo-wakaba.github.io" - }, - { - "createdAt": "2016-03-22T14:19:05.064Z", - "description": "兵庫県姫路市で第3土曜日に毎月開催", - "image_url": "https://dzpp79ucibp5a.cloudfront.net/groups_logos/5887_normal_1435743920_CoderDojo5.png", - "name": "姫路 (近畿)", - "objectId": "4smWvmKmIc", - "order": 75, - "tags": [ - "Scratch", - "ラズベリーパイ", - "Webサイト" - ], - "updatedAt": "2016-10-07T03:19:46.433Z", - "url": "https://himejicoderdojo.doorkeeper.jp/" - }, - { - "createdAt": "2016-09-20T08:09:08.581Z", - "description": "東京都中野区にて毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-nakano.png", - "name": "中野 (関東)", - "objectId": "507PFJPLkg", - "order": 18, - "tags": [ - "Scratch", - "HTML/CSS", - "JavaScript", - "Arduino" - ], - "updatedAt": "2016-09-29T01:10:50.442Z", - "url": "https://www.facebook.com/coderdojonakano/" - }, - { - "createdAt": "2015-07-25T12:09:02.952Z", - "description": "埼玉県飯能市で毎月開催", - "image_url": "http://graph.facebook.com/1570008999931017/picture?type=large", - "name": "飯能 (関東)", - "objectId": "6734ZLZXvq", - "order": 12, - "source": "1570008999931017", - "tags": [ - "Scratch" - ], - "updatedAt": "2015-07-26T06:27:20.267Z", - "url": "https://www.facebook.com/CoderDojoHanno" - }, - { - "createdAt": "2015-07-25T07:06:03.717Z", - "description": "東京都小平市で隔週開催", - "image_url": "http://graph.facebook.com/616010815134433/picture?type=large", - "name": "小平 (関東)", - "objectId": "6rJS6qji2o", - "order": 14, - "source": "616010815134433", - "tags": [ - "Scratch", - "Webサイト" - ], - "updatedAt": "2016-09-11T01:59:31.116Z", - "url": "http://coderdojo-kodaira.github.io/" - }, - { - "createdAt": "2015-07-25T08:37:50.582Z", - "description": "和歌山県新宮市で不定期開催", - "image_url": "http://graph.facebook.com/254235038032617/picture?type=large", - "name": "熊野 (近畿)", - "objectId": "7aiCu3vjtp", - "order": 55, - "source": "254235038032617", - "tags": [ - "Scratch", - "Webサイト", - "アプリ" - ], - "updatedAt": "2016-10-07T03:20:20.463Z", - "url": "https://www.facebook.com/coderdojo.kumano" - }, - { - "createdAt": "2015-07-25T07:32:22.532Z", - "description": "埼玉県新座市で月2回開催", - "image_url": "http://graph.facebook.com/497400593610071/picture?type=large", - "name": "ひばりヶ丘 (関東)", - "objectId": "8DMAKwIDFR", - "order": 11, - "source": "497400593610071", - "tags": [ - "Scratch", - "ラズベリーパイ" - ], - "updatedAt": "2015-07-26T06:26:46.810Z", - "url": "https://www.facebook.com/coderdojo.hibarigaoka" - }, - { - "createdAt": "2015-07-25T08:23:02.342Z", - "description": "東京都八王子市で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_hachioji.jpg", - "name": "八王子 (関東)", - "objectId": "8KhHjOh7aa", - "order": 15, - "source": "333796043464105", - "tags": [ - "Scratch", - "Webサイト", - "PHP" - ], - "updatedAt": "2016-09-11T01:59:36.076Z", - "url": "http://coderdojo.code4hachioji.org/" - }, - { - "createdAt": "2015-11-15T03:37:52.152Z", - "description": "千葉県流山市で毎月開催\t", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "流山 (関東)", - "objectId": "ANUWMQpw6B", - "order": 32, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-09-02T01:27:11.400Z", - "url": "http://www.code-for-nagareyama.org/?cat=11" - }, - { - "createdAt": "2016-06-01T12:10:13.894Z", - "description": "奈良県生駒市で毎月開催", - "image_url": "https://raw.githubusercontent.com/coderdojo-nara-ikoma/document/master/icon/IKOMA_green.png", - "name": "生駒 (近畿)", - "objectId": "AQbMnDTLRG", - "order": 51, - "tags": [ - "Scratch", - "Webサイト", - "C#" - ], - "updatedAt": "2016-09-27T02:16:00.686Z", - "url": "http://coderdojo-nara-ikoma.github.io/" - }, - { - "createdAt": "2016-08-16T03:11:21.792Z", - "description": "大阪府大阪市で不定期開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_hommachi.png", - "name": "本町 (近畿)", - "objectId": "BcuRHWQU9b", - "order": 62, - "tags": [ - "Scratch", - "Ruby" - ], - "updatedAt": "2016-10-07T03:20:07.461Z", - "url": "https://coderdojo-hommachi.doorkeeper.jp/" - }, - { - "createdAt": "2016-11-09T01:26:22.194Z", - "description": "千葉県浦安市で毎月開催\t", - "image_url": "http://urayasu.coderdojo.chiba.jp/images/cdlogo.png", - "name": "浦安 (関東)", - "objectId": "FQUWlt39Vv", - "order": 29, - "tags": [ - "Scratch", - "Webサイト", - "PHP", - "Ruby" - ], - "updatedAt": "2016-11-09T01:26:23.500Z", - "url": "http://urayasu.coderdojo.chiba.jp/" - }, - { - "createdAt": "2015-07-22T07:46:10.280Z", - "description": "西宮/梅田でそれぞれ毎月開催", - "image_url": "http://graph.facebook.com/1393015987582276/picture?type=large", - "name": "西宮・梅田 (近畿)", - "objectId": "FyhZ0SI1Ia", - "order": 60, - "source": "1393015987582276", - "tags": [ - "Scratch", - "Webサイト", - "電子工作" - ], - "updatedAt": "2016-10-07T03:20:10.900Z", - "url": "http://coderdojo-nishinomiya.info/" - }, - { - "createdAt": "2016-10-27T09:32:23.626Z", - "description": "大阪市なんばで毎月開催\t", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "なんば (近畿)", - "objectId": "GLzrRXChrM", - "order": 61, - "tags": [ - "Scratch", - "Webサイト", - "PHP", - "Ruby", - "Java" - ], - "updatedAt": "2016-10-27T09:32:25.078Z", - "url": "https://zen.coderdojo.com/dojo/jp/osaka-osaka-prefecture/namba-osaka" - }, - { - "createdAt": "2015-07-22T07:47:09.117Z", - "description": "東京都世田谷区で毎週開催", - "image_url": "http://graph.facebook.com/346407898743580/picture?type=large", - "name": "下北沢 (関東)", - "objectId": "GhlXRgXOyR", - "order": 20, - "source": "346407898743580", - "tags": [ - "Scratch", - "Webサイト", - "ゲーム" - ], - "updatedAt": "2015-07-26T06:27:36.544Z", - "url": "http://tokyo.coderdojo.jp/" - }, - { - "createdAt": "2015-07-25T06:53:42.838Z", - "description": "仙台市青葉区で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_sendai.jpg", - "name": "仙台 (東北)", - "objectId": "GwIK3KGsUv", - "order": 3, - "source": "546571472044333", - "tags": [ - "Scratch", - "ゲーム", - "アプリ" - ], - "updatedAt": "2016-09-30T01:52:50.069Z", - "url": "https://www.facebook.com/CoderdojoSendai" - }, - { - "createdAt": "2015-07-25T07:01:38.958Z", - "description": "仙台市泉区で不定期開催", - "image_url": "http://graph.facebook.com/542546935853207/picture?type=large", - "name": "泉 (東北)", - "objectId": "J2PtBZp2Li", - "order": 4, - "source": "542546935853207", - "tags": [ - "Scratch" - ], - "updatedAt": "2016-09-30T01:52:51.306Z", - "url": "https://www.facebook.com/CoderdojoIzumi" - }, - { - "createdAt": "2015-10-29T06:43:44.831Z", - "description": "滋賀県大津市で不定期開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "大津 (近畿)", - "objectId": "M34SRhvq6D", - "order": 53, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-10-07T03:20:22.408Z", - "url": "https://coderdojo-otsu.doorkeeper.jp/" - }, - { - "createdAt": "2015-07-25T07:26:52.435Z", - "description": "千葉県柏市で毎月3回開催", - "image_url": "http://graph.facebook.com/472842399443384/picture?type=large", - "name": "柏 (関東)", - "objectId": "MtqOOiJE6W", - "order": 31, - "source": "472842399443384", - "tags": [ - "Scratch" - ], - "updatedAt": "2015-07-26T06:28:15.902Z", - "url": "http://www.coderdojo-kashiwa.com/" - }, - { - "createdAt": "2016-10-06T02:08:57.157Z", - "description": "広島県広島市で毎月開催\t\n", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-itsukaichi.png", - "name": "五日市 (中国)", - "objectId": "MzRaeeaOKr", - "order": 81, - "tags": [ - "Scratch", - "enchant.js", - "Unity" - ], - "updatedAt": "2016-10-07T03:19:34.456Z", - "url": "https://www.facebook.com/coderdojo.itsukaichi" - }, - { - "createdAt": "2016-10-18T02:55:54.547Z", - "description": "群馬県前橋市で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-maebashi.png", - "name": "前橋 (関東)", - "objectId": "NL3hOOXM4R", - "order": 8, - "tags": [ - "Scratch", - "マインクラフト", - "ラズベリーパイ", - "ゲーム" - ], - "updatedAt": "2016-10-18T03:00:41.725Z", - "url": "https://sites.google.com/a/coderdojo.com/maebashi-jp/" - }, - { - "createdAt": "2016-09-16T02:59:08.982Z", - "description": "東京都杉並区で月1回程度開催\t", - "image_url": "https://coderdojo-suginami.github.io/images/logo-namisuke-circle-200.png", - "name": "すぎなみ (関東)", - "objectId": "SXX1kWASOz", - "order": 19, - "tags": [ - "Scratch", - "Ruby", - "HTML", - "JavaScript", - "Processing" - ], - "updatedAt": "2016-09-27T05:21:27.591Z", - "url": "https://coderdojo-suginami.github.io/" - }, - { - "createdAt": "2016-08-20T07:48:03.411Z", - "description": "愛知県海部郡で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "大治 (中部)", - "objectId": "SjjC96F1u7", - "order": 47, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-08-20T07:50:43.206Z", - "url": "http://coderdojo-oharu.connpass.com/" - }, - { - "createdAt": "2016-10-07T03:22:12.602Z", - "description": "宮崎県西臼杵郡で毎月開催", - "image_url": "http://lmlab.net/logos/coderdojo.png", - "name": "宮崎 (九州)", - "objectId": "TU0l3qxWQn", - "order": 95, - "tags": [ - "Scratch", - "Ruby", - "Python", - "ラズベリーパイ" - ], - "updatedAt": "2016-10-27T03:46:33.526Z", - "url": "https://lmlab.net/coderdojo/" - }, - { - "createdAt": "2016-09-02T01:23:55.092Z", - "description": "大阪府東大阪荒本で隔月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-higasi-osaka.jpg", - "name": "東大阪 (近畿)", - "objectId": "ThxeZ9YejH", - "order": 59, - "tags": [ - "Scratch", - "Webサイト", - "Android" - ], - "updatedAt": "2016-10-07T03:20:14.566Z", - "url": "https://www.facebook.com/CoderDojoHigashiosaka/" - }, - { - "createdAt": "2016-05-30T10:22:11.709Z", - "description": "大阪府枚方市で隔月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "枚方 (近畿)", - "objectId": "Vyaprlsf05", - "order": 57, - "tags": [ - "Scratch", - "Webサイト", - "アプリ開発" - ], - "updatedAt": "2016-10-07T03:20:18.837Z", - "url": "http://coderdojo-hirakata.github.io" - }, - { - "createdAt": "2016-10-27T03:47:11.396Z", - "description": "福岡県久留米市で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "久留米 (九州)", - "objectId": "XFN3vSHb6n", - "order": 90, - "tags": [ - "Scratch", - "Webサイト", - "PHP" - ], - "updatedAt": "2016-10-27T03:50:30.620Z", - "url": "https://www.facebook.com/CoderDojoKurume/" - }, - { - "createdAt": "2016-03-11T11:20:13.926Z", - "description": "静岡県浜松市で毎月開催", - "image_url": "https://pbs.twimg.com/profile_images/679526979456991234/3ycBOGYG.png", - "name": "浜松 (東海)", - "objectId": "Xv3u8zDP2n", - "order": 43, - "tags": [ - "Scratch", - "Webサイト", - "Ruby" - ], - "updatedAt": "2016-06-07T04:01:13.166Z", - "url": "http://www.coderdojo-hamamatsu.org/" - }, - { - "createdAt": "2015-07-25T07:14:34.009Z", - "description": "千葉県千葉市で毎月開催", - "image_url": "http://coderdojo-chiba.github.io/images/CoderDojoChiba.png", - "name": "千葉 (関東)", - "objectId": "Y2Xrzsl1Lp", - "order": 30, - "tags": [ - "Scratch", - "Webサイト", - "PHP" - ], - "updatedAt": "2015-07-26T06:28:14.037Z", - "url": "http://coderdojo-chiba.github.io/" - }, - { - "createdAt": "2016-09-11T02:00:28.808Z", - "description": "東京都調布市で毎月開催\t\n", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-chofu.jpg", - "name": "調布 (関東)", - "objectId": "YyeVM77mvi", - "order": 21, - "tags": [ - "Scratch", - "JavaScript", - "HTML", - "Ruby", - "ラズベリーパイ" - ], - "updatedAt": "2016-09-11T04:32:44.179Z", - "url": "http://coderdojochofu.hatenablog.jp/" - }, - { - "createdAt": "2015-07-25T07:36:49.622Z", - "description": "埼玉県さいたま市で毎月開催", - "image_url": "http://graph.facebook.com/513118842140860/picture?type=large", - "name": "さいたま (関東)", - "objectId": "d3r21KKZsl", - "order": 10, - "source": "513118842140860", - "tags": [ - "Scratch", - "Webサイト", - "アプリ" - ], - "updatedAt": "2015-07-26T06:26:44.883Z", - "url": "http://coderdojo-saitama.com/" - }, - { - "createdAt": "2016-09-29T01:12:05.778Z", - "description": "東京都渋谷区で不定期開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "渋谷 (関東)", - "objectId": "epbQGhRMjn", - "order": 22, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-09-29T01:12:28.387Z", - "url": "https://www.facebook.com/groups/coderdojo.shibuya/" - }, - { - "createdAt": "2016-10-27T09:19:38.974Z", - "description": "京都市伏見区墨染で隔月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "京都伏見 (近畿)", - "objectId": "fK4bbEw0yE", - "order": 56, - "tags": [ - "Scratch", - "WEBサイト", - "Java", - "JavaScript" - ], - "updatedAt": "2016-10-27T09:20:10.044Z", - "url": "http://coderdojo-kyoto-fushimi.peatix.com/view" - }, - { - "createdAt": "2016-12-07T15:05:39.262Z", - "description": "石川県金沢市で毎週開催\t", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "金沢 (中部)", - "objectId": "fY2b8U5mhK", - "order": 7, - "tags": [ - "JavaScript", - "HackforPlay" - ], - "updatedAt": "2016-12-07T15:05:40.464Z", - "url": "https://www.facebook.com/coderdojo.kanazawa/" - }, - { - "createdAt": "2015-07-25T08:36:27.932Z", - "description": "名古屋市天白区で月2回開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-tempaku.png", - "name": "天白 (中部)", - "objectId": "gFO4Wnn10i", - "order": 46, - "tags": [ - "Scratch", - "Webサイト", - "電子工作" - ], - "updatedAt": "2016-06-07T04:01:01.340Z", - "url": "http://coderdojo-tempaku.hatenablog.com/" - }, - { - "createdAt": "2016-12-15T10:25:40.591Z", - "description": "神奈川県藤沢市で不定期開催\t\n", - "image_url": "https://dl.dropboxusercontent.com/u/76068877/coderdojofujisawa-logo.png", - "name": "藤沢 (関東)", - "objectId": "isdTWGNGWK", - "order": 35, - "tags": [ - "Scratch", - "Viscuit", - "Webサイト" - ], - "updatedAt": "2016-12-15T10:25:42.200Z", - "url": "https://e9190f805e8f6cb2d391ddd702.doorkeeper.jp/events/55358" - }, - { - "createdAt": "2016-06-07T03:58:15.854Z", - "description": "愛知県豊橋市で不定期開催\t", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-toyohashi.png", - "name": "豊橋 (中部)", - "objectId": "j3mk7FmO4T", - "order": 44, - "tags": [ - "Scratch", - "アプリ開発", - "ラズベリーパイ" - ], - "updatedAt": "2016-07-03T07:53:29.836Z", - "url": "https://coderdojo-toyohashi.doorkeeper.jp/" - }, - { - "createdAt": "2016-11-06T23:45:35.568Z", - "description": "和歌山県和歌山市で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-wakayama.png", - "name": "和歌山 (近畿)", - "objectId": "jHXDVjAj7P", - "order": 68, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-11-06T23:46:17.693Z", - "url": "https://www.facebook.com/coderdojo.wakayama/" - }, - { - "createdAt": "2016-03-21T13:04:57.377Z", - "description": "埼玉県所沢市で不定期に開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo-tokorozawa.png", - "name": "所沢 (関東)", - "objectId": "jaSoLbPJE9", - "order": 13, - "source": "617011185103868", - "tags": [ - "Scratch" - ], - "updatedAt": "2016-06-07T04:04:54.567Z", - "url": "https://www.facebook.com/CoderDojoTokorozawa/" - }, - { - "createdAt": "2016-09-28T06:52:29.571Z", - "description": "神戸市中央区で月1回\t", - "image_url": "https://static.wixstatic.com/media/3b0a7d_f95cda9cea5a459aa5eca813de611f0a~mv2.png/v1/fill/w_68,h_70,al_c,usm_0.66_1.00_0.01/3b0a7d_f95cda9cea5a459aa5eca813de611f0a~mv2.png", - "name": "神戸 (近畿)", - "objectId": "jyTVi3Wxiv", - "order": 70, - "tags": [ - "Scratch", - "JavaScript" - ], - "updatedAt": "2016-10-07T03:19:50.230Z", - "url": "http://coderdojokobe.wixsite.com/home/" - }, - { - "createdAt": "2015-07-25T08:34:22.226Z", - "description": "名古屋市中区で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "名古屋 (中部)", - "objectId": "kPibamjkyP", - "order": 45, - "tags": [ - "Scratch", - "Webサイト", - "Python" - ], - "updatedAt": "2016-06-07T04:00:59.406Z", - "url": "http://coderdojo-nagoya.github.io/" - }, - { - "createdAt": "2015-07-25T08:23:49.912Z", - "description": "長野県塩尻市で毎月開催", - "image_url": "http://graph.facebook.com/128374717310867/picture?type=large", - "name": "塩尻 (中部)", - "objectId": "o659k6MtZH", - "order": 40, - "source": "128374717310867", - "tags": [ - "Scratch", - "Ruby" - ], - "updatedAt": "2015-07-26T06:28:54.477Z", - "url": "http://coderdojo.shiojiri-osslabo.com/" - }, - { - "createdAt": "2016-04-27T12:52:15.637Z", - "description": "宮城県登米市で毎月開催\t", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "登米 (東北)", - "objectId": "o7KY5Zf1aU", - "order": 5, - "tags": [ - "Scratch", - "3Dプリンタ", - "3DCAD" - ], - "updatedAt": "2016-09-30T01:52:52.303Z", - "url": "https://www.facebook.com/coderdojo.tome" - }, - { - "createdAt": "2015-10-29T07:06:30.944Z", - "description": "新潟県新潟市で開催予定", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_japan.png", - "name": "新潟 (中部)", - "objectId": "t2wtZg9fiS", - "order": 6, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-12-07T07:04:41.560Z", - "url": "http://zen.coderdojo.com/dojo/jp/niigata-niigata-prefecture/niigata" - }, - { - "createdAt": "2016-07-27T04:49:24.010Z", - "description": "大阪市西成区で毎月開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo_nishinari.jpg", - "name": "西成 (近畿)", - "objectId": "txzD3jfzR7", - "order": 63, - "tags": [ - "Scratch", - "ラズベリーパイ" - ], - "updatedAt": "2016-10-07T03:20:03.688Z", - "url": "https://www.facebook.com/coderdojo.nishinari.osaka/" - }, - { - "createdAt": "2016-10-27T03:50:28.830Z", - "description": "兵庫県明石市で毎月開催\t", - "image_url": "https://connpass-tokyo.s3.amazonaws.com/thumbs/ea/cd/eacd7eaeeef8c18d2def173281cb704d.png", - "name": "明石 (近畿)", - "objectId": "uLiYFC0SE1", - "order": 73, - "tags": [ - "Scratch", - "Webサイト", - "Arduino" - ], - "updatedAt": "2016-10-27T03:50:31.998Z", - "url": "https://www.facebook.com/CoderDojo-%E6%98%8E%E7%9F%B3-139582193048936/" - }, - { - "createdAt": "2015-07-25T15:01:37.811Z", - "description": "京都府長岡京市で毎月開催", - "image_url": "https://dzpp79ucibp5a.cloudfront.net/groups_logos/4052_normal_1421068102_coderdojo-nagaokakyo_logo.png", - "name": "長岡京 (近畿)", - "objectId": "z0mU8cMHyi", - "order": 49, - "source": "1559696050934193", - "tags": [ - "Scratch" - ], - "updatedAt": "2016-08-17T02:14:09.106Z", - "url": "https://coderdojo-nagaokakyo.doorkeeper.jp/" - }, - { - "createdAt": "2016-11-02T23:24:24.356Z", - "description": "沖縄県宮古島市で不定期開催", - "image_url": "https://pbs.twimg.com/profile_images/793750335462309888/tFO80-u_.jpg", - "name": "宮古島 (沖縄)", - "objectId": "zC9EfTRJL0", - "order": 200, - "tags": [ - "Scratch", - "Webサイト" - ], - "updatedAt": "2016-11-02T23:26:35.053Z", - "url": "https://www.facebook.com/coderdojo.miyakojima/" - }, - { - "createdAt": "2015-07-25T08:26:53.090Z", - "description": "福井県福井市で不定期開催", - "image_url": "https://dl.dropboxusercontent.com/u/2819285/coderdojo.png", - "name": "福井 (中部)", - "objectId": "zD43nRrj5E", - "order": 41, - "source": "389420301140591", - "tags": [ - "Scratch", - "Webサイト" - ], - "updatedAt": "2015-07-26T06:29:04.898Z", - "url": "http://coderdojo.cowbell.jp/" - }, - { - "createdAt": "2016-06-09T00:40:31.560Z", - "description": "広島県福山市で不定期開催", - "image_url": "http://fukuyama100.com/coderdojo/images/logo_fukuyama.png", - "name": "福山 (中国)", - "objectId": "zFHl0s8YEg", - "order": 79, - "tags": [ - "Scratch" - ], - "updatedAt": "2016-10-07T03:19:42.062Z", - "url": "http://fukuyama100.com/coderdojo/" - } -] } \ No newline at end of file diff --git a/lib/tasks/dojos.rake b/lib/tasks/dojos.rake index 07f068274..7fd332a77 100644 --- a/lib/tasks/dojos.rake +++ b/lib/tasks/dojos.rake @@ -6,21 +6,21 @@ require 'yaml' require 'csv' namespace :dojos do - desc 'Parseから出力したjsonファイルをベースに、yamlファイルを生成します' - task generate_yaml: :environment do - dojos = JSON.parse(File.read(Rails.root.join('db', 'parse_backup.json')))['results'] - dojos.sort_by! { |hash| hash['order'] } - - # Tweak dojo info if needed - dojos.each do |dojo| - dojo['description'].strip! - dojo.delete 'objectId' # Delete Parse-specific key - dojo.delete 'createdAt' # This is managed by database - dojo.delete 'updatedAt' # This is managed by database - end - - Dojo.dump_attributes_to_yaml(dojos) - end + # desc 'Parseから出力したjsonファイルをベースに、yamlファイルを生成します' + # task generate_yaml: :environment do + # dojos = JSON.parse(File.read(Rails.root.join('db', 'parse_backup.json')))['results'] + # dojos.sort_by! { |hash| hash['order'] } + # + # # Tweak dojo info if needed + # dojos.each do |dojo| + # dojo['description'].strip! + # dojo.delete 'objectId' # Delete Parse-specific key + # dojo.delete 'createdAt' # This is managed by database + # dojo.delete 'updatedAt' # This is managed by database + # end + # + # Dojo.dump_attributes_to_yaml(dojos) + # end desc '現在のyamlファイルを元にデータベースを更新します' task update_db_by_yaml: :environment do From 6bfdd54af42b90ea20317ff54478aed2b783ac04 Mon Sep 17 00:00:00 2001 From: Chikako OHNO Date: Tue, 7 Jan 2020 23:10:26 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/dojos.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/dojos.rake b/lib/tasks/dojos.rake index 7fd332a77..8ee496348 100644 --- a/lib/tasks/dojos.rake +++ b/lib/tasks/dojos.rake @@ -6,6 +6,7 @@ require 'yaml' require 'csv' namespace :dojos do + # NOTE: 2020年1月中はコメントアウトで残し、もし必要になる場面が無ければ翌月以降に削除する # desc 'Parseから出力したjsonファイルをベースに、yamlファイルを生成します' # task generate_yaml: :environment do # dojos = JSON.parse(File.read(Rails.root.join('db', 'parse_backup.json')))['results']