rabbit-slide-kunitoo-tqrk08 2014.11.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rabbit +1 -0
- data/README.md +33 -0
- data/Rakefile +17 -0
- data/config.yaml +22 -0
- data/hypermicrodata-client.md +138 -0
- data/pdf/tqrk08-hypermicrodata-client.pdf +0 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9a17ec339758863b73668242c2fd6fe930267b3d
|
4
|
+
data.tar.gz: ad2c83026716699522331844eb1fce7f8e0e2f2a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a764ebec528a6a5f018c4f8807f922227ae1b12e00ba11e531e3f3c0ea3add668129ab06107461358d6b5018109dd233b5479ca821b1070f73b98f7e4c127b75
|
7
|
+
data.tar.gz: 77bc26ce4114409b0c658649c1711d2084aed4abe96935bd22e92381ae28d61b224cd539ceaceb56455f75de5c50a2e1945b6128f08750dde2400f33c810fab6
|
data/.rabbit
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
hypermicrodata-client.md
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Hypermicrodata client
|
2
|
+
|
3
|
+
hypermicrodata のクライアントを作成しようとしたお話です
|
4
|
+
|
5
|
+
## license
|
6
|
+
|
7
|
+
CC BY-SA 4.0
|
8
|
+
|
9
|
+
原著作者名には以下のどちらかを使ってください。
|
10
|
+
|
11
|
+
* 伊藤邦彦
|
12
|
+
* Kunihiko Ito
|
13
|
+
|
14
|
+
## For author
|
15
|
+
|
16
|
+
### Show
|
17
|
+
|
18
|
+
rake
|
19
|
+
|
20
|
+
### Publish
|
21
|
+
|
22
|
+
rake publish
|
23
|
+
|
24
|
+
## For viewers
|
25
|
+
|
26
|
+
### Install
|
27
|
+
|
28
|
+
gem install rabbit-slide-kunitoo-tqrk08
|
29
|
+
|
30
|
+
### Show
|
31
|
+
|
32
|
+
rabbit rabbit-slide-kunitoo-tqrk08.gem
|
33
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rabbit/task/slide"
|
2
|
+
|
3
|
+
# Edit ./config.yaml to customize meta data
|
4
|
+
|
5
|
+
spec = nil
|
6
|
+
Rabbit::Task::Slide.new do |task|
|
7
|
+
spec = task.spec
|
8
|
+
# task.spec.files += Dir.glob("doc/**/*.*")
|
9
|
+
# task.spec.files -= Dir.glob("private/**/*.*")
|
10
|
+
# task.spec.add_runtime_dependency("YOUR THEME")
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Tag #{spec.version}"
|
14
|
+
task :tag do
|
15
|
+
sh("git", "tag", "-a", spec.version.to_s, "-m", "Publish #{spec.version}")
|
16
|
+
sh("git", "push", "--tags")
|
17
|
+
end
|
data/config.yaml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
id: tqrk08
|
3
|
+
base_name: hypermicrodata-client
|
4
|
+
tags:
|
5
|
+
- ruby
|
6
|
+
- tqrk08
|
7
|
+
presentation_date: 2014-11-29
|
8
|
+
version: 2014.11.29.1
|
9
|
+
licenses:
|
10
|
+
- CC BY-SA 4.0
|
11
|
+
slideshare_id: tqrk08-hypermicrodataclient
|
12
|
+
speaker_deck_id: hypermicrodata-client
|
13
|
+
ustream_id:
|
14
|
+
vimeo_id:
|
15
|
+
youtube_id:
|
16
|
+
author:
|
17
|
+
markup_language: :markdown
|
18
|
+
name: Kunihiko Ito
|
19
|
+
email: kuni.110.92@gmail.com
|
20
|
+
rubygems_user: kunitoo
|
21
|
+
slideshare_user: kunitoo
|
22
|
+
speaker_deck_user: kunitoo
|
@@ -0,0 +1,138 @@
|
|
1
|
+
# Hypermicrodata client
|
2
|
+
|
3
|
+
author
|
4
|
+
: Kunihiko Ito
|
5
|
+
|
6
|
+
institution
|
7
|
+
: 永和システムマネジメント
|
8
|
+
|
9
|
+
presentation-date
|
10
|
+
: 2014/11/29
|
11
|
+
|
12
|
+
allotted-time
|
13
|
+
: 5m
|
14
|
+
|
15
|
+
# はじめに
|
16
|
+
|
17
|
+
Ruby Kaigi 2014 参加しました?
|
18
|
+
|
19
|
+
# 今日話すこと
|
20
|
+
|
21
|
+
* Ruby Kaigi 2014 で感じたこと
|
22
|
+
* 試してみたこと
|
23
|
+
|
24
|
+
# 参加しました?
|
25
|
+
|
26
|
+
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails
|
27
|
+
|
28
|
+
# 聞いていない方
|
29
|
+
|
30
|
+
* Video: http://rubykaigi.org/2014/presentation/S-ToruKawamura
|
31
|
+
|
32
|
+
# はじめまして
|
33
|
+
|
34
|
+
* 初参加
|
35
|
+
* Kunihiko Ito
|
36
|
+
* @kunitoo
|
37
|
+
|
38
|
+
# 概要
|
39
|
+
|
40
|
+
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails
|
41
|
+
|
42
|
+
* 疎結合なAPI
|
43
|
+
* 状態遷移をレスポンスに含める
|
44
|
+
* 設計
|
45
|
+
* WEB API
|
46
|
+
* HTML WEB アプリ
|
47
|
+
|
48
|
+
# hypermicrodata
|
49
|
+
|
50
|
+
* HTMLをJSONに変換
|
51
|
+
* HTMLから抽出
|
52
|
+
* mirodata
|
53
|
+
* リンク
|
54
|
+
* フォーム
|
55
|
+
|
56
|
+
# あらためて
|
57
|
+
|
58
|
+
* Video: http://rubykaigi.org/2014/presentation/S-ToruKawamura
|
59
|
+
|
60
|
+
# 感じたこと
|
61
|
+
|
62
|
+
* サーバは簡単に作成できそう
|
63
|
+
* クライアント難しくなりそう
|
64
|
+
|
65
|
+
# 実際に作ってみよう!
|
66
|
+
|
67
|
+
* rails g scaffold User
|
68
|
+
* name
|
69
|
+
* email
|
70
|
+
* view に microdata を付加
|
71
|
+
|
72
|
+
# show.html.haml
|
73
|
+
|
74
|
+
.person{itemscope: true, itemtype: 'http://schema.org/Person',
|
75
|
+
itemid: users_url(@user), data: {main_item: true}}
|
76
|
+
.media
|
77
|
+
.media-body
|
78
|
+
%p#notice= notice
|
79
|
+
%p
|
80
|
+
%strong Name:
|
81
|
+
%span{itemprop: 'name'}= @user.name
|
82
|
+
%p
|
83
|
+
%strong Email:
|
84
|
+
%span{itemprop: 'email'}= @user.email
|
85
|
+
= link_to 'Edit', edit_user_path(@user), rel: 'edit'
|
86
|
+
|
|
87
|
+
\#{link_to 'Back', users_path, rel: 'collection', itemprop: 'isPartOf'}
|
88
|
+
{: lang="haml"}
|
89
|
+
|
90
|
+
# uber+json
|
91
|
+
|
92
|
+
{
|
93
|
+
"uber":{
|
94
|
+
"version":"1.0",
|
95
|
+
"data":[
|
96
|
+
{
|
97
|
+
"url":"http://localhost:3000/users.1",
|
98
|
+
"name":"Person",
|
99
|
+
"data":[
|
100
|
+
{
|
101
|
+
"name":"name",
|
102
|
+
"value":"Kunihiko Ito"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"name":"email",
|
106
|
+
"value":"kuni.110.92@gmail.com"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"name":"isPartOf",
|
110
|
+
"rel":"collection",
|
111
|
+
"url":"/users"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"rel":"edit",
|
115
|
+
"url":"/users/1/edit"
|
116
|
+
}
|
117
|
+
]
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
# アイディア
|
124
|
+
|
125
|
+
クライアントが hypermicrodata と
|
126
|
+
同じルールで読みとれれば
|
127
|
+
簡単に作れるようになるのでは?
|
128
|
+
|
129
|
+
# やってみて
|
130
|
+
|
131
|
+
* microdata の付加が難しい
|
132
|
+
* http://schema.org/
|
133
|
+
* メタ的に考える必要がある
|
134
|
+
* もっとデフォルトでできるとうれしい
|
135
|
+
|
136
|
+
# hypermicrodata client
|
137
|
+
|
138
|
+
みなさんも挑戦してみて下さい
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rabbit-slide-kunitoo-tqrk08
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2014.11.29.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kunihiko Ito
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rabbit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.2
|
27
|
+
description: hypermicrodata のクライアントを作成しようとしたお話です
|
28
|
+
email:
|
29
|
+
- kuni.110.92@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".rabbit"
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- config.yaml
|
38
|
+
- hypermicrodata-client.md
|
39
|
+
- pdf/tqrk08-hypermicrodata-client.pdf
|
40
|
+
homepage: http://slide.rabbit-shocker.org/authors/kunitoo/tqrk08/
|
41
|
+
licenses:
|
42
|
+
- CC BY-SA 4.0
|
43
|
+
metadata: {}
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 2.2.2
|
61
|
+
signing_key:
|
62
|
+
specification_version: 4
|
63
|
+
summary: Hypermicrodata client
|
64
|
+
test_files: []
|