tdiary-contrib 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/js/preview.js +50 -0
  3. data/lib/tdiary/contrib/version.rb +1 -1
  4. data/plugin/category-lite.rb +235 -0
  5. data/plugin/code-prettify.rb +1 -8
  6. data/plugin/en/category-lite.rb +46 -0
  7. data/plugin/flickr.rb +1 -6
  8. data/plugin/google_analytics.rb +8 -9
  9. data/plugin/image_gps.rb +15 -5
  10. data/plugin/instagr.rb +8 -39
  11. data/plugin/instagram.rb +59 -2
  12. data/plugin/ja/category-lite.rb +48 -0
  13. data/plugin/ohmsha_estore.rb +9 -22
  14. data/plugin/playstore.rb +16 -24
  15. data/plugin/preview.rb +10 -0
  16. data/plugin/profile.rb +7 -19
  17. data/plugin/rubykaigi.rb +7 -1
  18. data/plugin/socialbutton.rb +1 -1
  19. data/spec/fixtures/github.json +1 -1
  20. data/spec/flicker_spec.rb +1 -1
  21. data/spec/google_analytics_spec.rb +8 -9
  22. data/spec/profile_spec.rb +2 -18
  23. metadata +78 -41
  24. data/.gitignore +0 -2
  25. data/.travis.yml +0 -18
  26. data/Gemfile +0 -13
  27. data/Gemfile.lock +0 -66
  28. data/js/prettify/lang-apollo.js +0 -2
  29. data/js/prettify/lang-clj.js +0 -18
  30. data/js/prettify/lang-css.js +0 -2
  31. data/js/prettify/lang-go.js +0 -1
  32. data/js/prettify/lang-hs.js +0 -2
  33. data/js/prettify/lang-lisp.js +0 -3
  34. data/js/prettify/lang-lua.js +0 -2
  35. data/js/prettify/lang-ml.js +0 -2
  36. data/js/prettify/lang-n.js +0 -4
  37. data/js/prettify/lang-proto.js +0 -1
  38. data/js/prettify/lang-scala.js +0 -2
  39. data/js/prettify/lang-sql.js +0 -2
  40. data/js/prettify/lang-tex.js +0 -1
  41. data/js/prettify/lang-vb.js +0 -2
  42. data/js/prettify/lang-vhdl.js +0 -3
  43. data/js/prettify/lang-wiki.js +0 -2
  44. data/js/prettify/lang-xq.js +0 -3
  45. data/js/prettify/lang-yaml.js +0 -2
  46. data/js/prettify/prettify.css +0 -1
  47. data/js/prettify/prettify.js +0 -28
  48. data/misc/tdiarygraph/tdiarygraph120x90e.swf +0 -0
  49. data/misc/tdiarygraph/tdiarygraph125x125e.swf +0 -0
  50. data/misc/tdiarygraph/tdiarygraph240x180e.swf +0 -0
  51. data/misc/tdiarygraph/tdiarygraph468x60e.swf +0 -0
  52. data/misc/tdiarygraph/tdiarygraph728x90e.swf +0 -0
  53. data/misc/tdiarytimes/tdiarytimes125x125r.swf +0 -0
  54. data/misc/tdiarytimes/tdiarytimes125x125r7.swf +0 -0
  55. data/misc/tdiarytimes/tdiarytimes125x125s.swf +0 -0
  56. data/misc/tdiarytimes/tdiarytimes125x30.swf +0 -0
  57. data/misc/tdiarytimes/tdiarytimes234x30.swf +0 -0
  58. data/misc/tdiarytimes/tdiarytimes468x30.swf +0 -0
  59. data/plugin/tdiarygraph_flashstyle.rb +0 -292
  60. data/plugin/tdiarytimes.rb +0 -166
  61. data/tdiary-contrib.gemspec +0 -25
data/plugin/playstore.rb CHANGED
@@ -78,7 +78,11 @@ def playstore_main(app_id)
78
78
 
79
79
  app = PlayStore.new(app_id)
80
80
  if playstore_load_cache(app).nil?
81
- app.update
81
+ begin
82
+ app.update
83
+ rescue
84
+ return :notfound
85
+ end
82
86
  save = true
83
87
  else
84
88
  save = false
@@ -100,19 +104,19 @@ def playstore(app_id)
100
104
  HTML
101
105
  when :notfound
102
106
  <<-HTML
103
- <div class="playstore-frame">#{app_id} was not found.</div>
107
+ <div class="playstore-frame"><a href="https://play.google.com/store/apps/details?id=#{app_id}">#{app_id}</a> was not found.</div>
104
108
  HTML
105
109
  else
106
110
  <<-HTML
107
111
  <div class="playstore-frame">
108
- <div class="playstore-leader"><a href="#{app.market_url}">#{app.title} #{app.current_version}</a>
109
- - <span class="playstore-devlop">#{app.developer}</span></div>
110
112
  <a href="#{app.market_url}">
111
113
  <img class="playstore-icon" src="#{app.banner_icon_url}" title="#{app.title}" >
112
114
  </a>
113
115
  <ul class="playstore-detail">
114
- <li>Rating:#{app.rating}</li>
115
- <li>Price:#{app.price}</li>
116
+ <li><a href="#{app.market_url}">#{app.title}</a></li>
117
+ <li>カテゴリ:#{app.category}</li>
118
+ <li>価格:#{app.price.eql?("0")?"無料":app.price}</li>
119
+ <li><a href="#{app.market_url}">GooglePlayで詳細をみる</a></li>
116
120
  </ul>
117
121
  </div>
118
122
  HTML
@@ -136,32 +140,20 @@ add_header_proc do
136
140
  <<-HTML
137
141
  <style type="text/css"><!--
138
142
  ul.playstore-detail {
143
+ display:inline-block;
144
+ vertical-align:top;
139
145
  list-style: none;
140
- padding: 3px;
146
+ padding: 0px;
147
+ margin:0px;
141
148
  }
142
149
  img.playstore-icon {
143
- float: left;
150
+ display:inline-block;
144
151
  width:100px;
145
152
  height:100px;
146
- padding:6px;
147
- }
148
- span.playstore-devlop {
149
- font-size: small;
150
- color: gray;
151
- }
152
- div.playstore-leader {
153
- background: #a4c639;
154
- border-top-left-radius: 6px;
155
- border-top-right-radius: 6px;
156
- padding: 3px;
157
153
  }
158
154
  div.playstore-frame {
159
- background: #f5f5f5;
160
- border-radius: 6px;
161
- margin: 5px;
162
155
  display: block;
163
- overflow: hidden;
164
- box-shadow: 3px 3px 3px 0px lightgray;
156
+ padding: 3px;
165
157
  }
166
158
  --></style>
167
159
  HTML
data/plugin/preview.rb ADDED
@@ -0,0 +1,10 @@
1
+ # -*- coding: utf-8; -*-
2
+ #
3
+ # preview.rb: view preview automatically
4
+ #
5
+ # Copyright (c) MATSUOKA Kohei <http://www.machu.jp/>
6
+ # Distributed under the GPL2 or any later version.
7
+ #
8
+ if /\A(form|edit|preview)\z/ === @mode then
9
+ enable_js('preview.js')
10
+ end
data/plugin/profile.rb CHANGED
@@ -2,10 +2,10 @@
2
2
  # profile.rb: profile plugin for tDiary
3
3
  #
4
4
  # usage:
5
- # profile(id[, service = :twitter])
5
+ # profile(id[, service = :gravatar])
6
6
  # - id: user ID for profile service
7
- # - service: profile service (default is :twitter)
8
- # Choose from :github, :twitter, :gravatar
7
+ # - service: profile service (default is :gravatar)
8
+ # Choose from :github, :gravatar, :hatena
9
9
  #
10
10
  # Copyright (C) 2009 by MATSUOKA Kohei < http://www.machu.jp/ >
11
11
  # Distributed under the GPL.
@@ -80,13 +80,9 @@ module ::Profile
80
80
  class GitHub < Base
81
81
  property :name, 'name'
82
82
  property :mail, 'email'
83
+ property :image, 'avatar_url'
83
84
  endpoint {|id| "https://api.github.com/users/#{id}" }
84
85
 
85
- def image
86
- # "http://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(@mail)}.jpg"
87
- Gravatar.new(@mail, @options).image
88
- end
89
-
90
86
  def link
91
87
  "http://github.com/#{@id}"
92
88
  end
@@ -107,14 +103,7 @@ module ::Profile
107
103
 
108
104
  # twitter.com
109
105
  class Twitter < Base
110
- property :name, '//user/name'
111
- property :image, '//user/profile_image_url'
112
- property :description, '//user/description'
113
- endpoint {|id| "http://twitter.com/users/show/#{id}.xml" }
114
-
115
- def link
116
- "http://twitter.com/#{@id}"
117
- end
106
+ # dummy class
118
107
  end
119
108
 
120
109
  # iddy.jp, for backward compatibility
@@ -174,15 +163,14 @@ end
174
163
 
175
164
  PROFILE_VERSION = '20090909'
176
165
 
177
- def profile(id, service = :twitter, options = {})
166
+ def profile(id, service = :gravatar, options = {})
178
167
  html = ''
179
168
 
180
169
  service_class = {
181
- :twitter => Profile::Service::Twitter,
182
170
  :github => Profile::Service::GitHub,
183
171
  :gravatar => Profile::Service::Gravatar,
184
172
  :hatena => Profile::Service::Hatena,
185
- }[service.to_s.downcase.to_sym] || Profile::Service::Twitter
173
+ }[service.to_s.downcase.to_sym] || Profile::Service::Gravatar
186
174
 
187
175
  # TODO: create cache manager class
188
176
 
data/plugin/rubykaigi.rb CHANGED
@@ -9,6 +9,12 @@
9
9
  # Distributed under GPL.
10
10
  #
11
11
 
12
+ def rubykaigi2015( role = 'attendee', size = nil )
13
+ r = role.split(/[ _]+/).join('-')
14
+ s = "-@#{h size}" unless size.nil? || size == "1x"
15
+ %Q|<a href="http://rubykaigi.org/2015/" style="display:block;margin:8px auto;text-align:center;"><img src="http://rubykaigi.org/2015/images/goodies/banner-160-#{h r}#{s}.png" alt="RubyKaigi 2015 #{h r}"></a>|
16
+ end
17
+
12
18
  def rubykaigi2014( role = 'attendee', size = nil )
13
19
  r = role.split(/[ _]+/).join('-')
14
20
  s = "@#{h size}" unless size.nil?
@@ -52,7 +58,7 @@ def rubykaigi2011( role = 'attendee', size = 'large' )
52
58
  %Q|<a href="http://rubykaigi.org/2011/" style="display:block;margin:8px auto;text-align:center;"><img src="http://rubykaigi.org/2011/goodies/badges/#{width}x#{height}#{badges[role]}.png" width="#{width}" height="#{height}" alt="RubyKaigi2010 #{h role.capitalize}" style="border-width: 0px;"></a>|
53
59
  end
54
60
 
55
- alias :rubykaigi :rubykaigi2011
61
+ alias :rubykaigi :rubykaigi2015
56
62
 
57
63
  #----- OLD EDITIONS -----#
58
64
 
@@ -26,7 +26,7 @@ def socialbutton_js_settings
26
26
  end
27
27
 
28
28
  socialbutton_footer = Proc.new { %Q|<div class="socialbuttons"></div>| }
29
- if blogkit?
29
+ if respond_to?(:blogkit?) && blogkit?
30
30
  add_body_leave_proc(socialbutton_footer)
31
31
  else
32
32
  add_section_leave_proc(socialbutton_footer)
@@ -1 +1 @@
1
- {"type":"User","login":"schacon","public_repos":150,"public_gists":80,"followers":5328,"html_url":"https://github.com/schacon","created_at":"2008-01-27T17:19:28Z","blog":"http://scottchacon.com","company":"GitHub","email":"schacon@gmail.com","avatar_url":"https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","hireable":false,"following":19,"name":"Scott Chacon","bio":null,"id":70,"location":"San Francisco, CA","url":"https://api.github.com/users/schacon","gravatar_id":"9375a9529679f1b42b567a640d775e7d"}
1
+ {"type":"User","login":"schacon","public_repos":150,"public_gists":80,"followers":5328,"html_url":"https://github.com/schacon","created_at":"2008-01-27T17:19:28Z","blog":"http://scottchacon.com","company":"GitHub","email":"schacon@gmail.com","avatar_url":"https://avatars.githubusercontent.com/u/70?v=3","hireable":false,"following":19,"name":"Scott Chacon","bio":null,"id":70,"location":"San Francisco, CA","url":"https://api.github.com/users/schacon","gravatar_id":"9375a9529679f1b42b567a640d775e7d"}
data/spec/flicker_spec.rb CHANGED
@@ -15,7 +15,7 @@ describe "flickr plugin" do
15
15
  subject { plugin.flickr('5950109223', size = nil) }
16
16
 
17
17
  it do
18
- expect(subject).to eq %Q|<a href=\"https://www.flickr.com/photos/machu/5950109223/\" class=\"flickr\"><img title=\"RubyKaigi 2011\" alt=\"RubyKaigi 2011\" src=\"https://farm7.staticflickr.com/6006/5950109223_040097db92.jpg\" class=\"flickr\" width=\"500\" height=\"375\"></a>|
18
+ expect(subject).to eq %Q|<a href=\"https://www.flickr.com/photos/machu/5950109223/\" class=\"flickr\"><img title=\"RubyKaigi 2011\" alt=\"RubyKaigi 2011\" src=\"https://farm7.staticflickr.com/6006/5950109223_040097db92.jpg\" class=\"flickr photo\"></a>|
19
19
  end
20
20
  end
21
21
  end
@@ -44,15 +44,14 @@ describe "google_analytics plugin" do
44
44
 
45
45
  def expected_html_footer_snippet
46
46
  expected = <<-SCRIPT
47
- <script type="text/javascript"><!--
48
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
49
- document.write(unescape('%3Cscript src="' + gaJsHost + 'google-analytics.com/ga.js" type="text/javascript"%3E%3C/script%3E'));
50
- // --></script>
51
- <script type="text/javascript"><!--
52
- try {
53
- var pageTracker = _gat._getTracker("UA-53836-1");
54
- pageTracker._trackPageview();
55
- } catch (err) {}
47
+ <script>
48
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
49
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
50
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
51
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
52
+
53
+ ga('create', 'UA-53836-1', 'auto');
54
+ ga('send', 'pageview');
56
55
  // --></script>
57
56
  SCRIPT
58
57
  expected.gsub( /^\t/, '' ).chomp
data/spec/profile_spec.rb CHANGED
@@ -8,35 +8,19 @@ describe "Profile::Service" do
8
8
  before do
9
9
  require 'json'
10
10
  allow_any_instance_of(Profile::Service::GitHub).to receive(:fetch).and_return(JSON.parse(File.read("spec/fixtures/github.json")))
11
- allow_any_instance_of(Profile::Service::Gravatar).to receive(:fetch).and_return(JSON.parse(File.read("spec/fixtures/gravatar.json")))
12
11
 
13
12
  # workaround for run spec on various environment.
14
13
  require 'openssl'
15
14
  OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
16
15
 
17
16
  # http://develop.github.com/p/general.html
18
- @profile = Profile::Service::GitHub.new("schacon", :size => 40)
17
+ @profile = Profile::Service::GitHub.new("schacon")
19
18
  end
20
19
 
21
20
  it "should include name, mail, image properties" do
22
21
  expect(@profile.name).to eq("Scott Chacon")
23
22
  expect(@profile.mail).to eq("schacon@gmail.com")
24
- expect(@profile.image).to eq("http://2.gravatar.com/avatar/3b3be63a4c2a439b013787725dfce802?s=40")
25
- end
26
- end
27
-
28
- describe "Twitter" do
29
- before do
30
- allow_any_instance_of(Profile::Service::Twitter).to receive(:fetch).and_return(REXML::Document.new(File.read("spec/fixtures/twitter.xml")))
31
-
32
- # http://twitter.com/tdiary
33
- @profile = Profile::Service::Twitter.new("tdiary")
34
- end
35
-
36
- it "should include name, description, image properties" do
37
- expect(@profile.name).to eq("tDiary.org")
38
- expect(@profile.description).to eq("tDiaryオフィシャルアカウント")
39
- expect(@profile.image).to match(%r{^http://.*\.(png|jpg)$})
23
+ expect(@profile.image).to eq("https://avatars.githubusercontent.com/u/70?v=3")
40
24
  end
41
25
  end
42
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdiary-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tDiary contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tdiary
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby-pushbullet
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +66,62 @@ dependencies:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: webmock
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
55
125
  description: tDiary contributions package that includes plugins, styles, utilities,
56
126
  libraries, filters, and extended io.
57
127
  email:
@@ -60,10 +130,6 @@ executables: []
60
130
  extensions: []
61
131
  extra_rdoc_files: []
62
132
  files:
63
- - ".gitignore"
64
- - ".travis.yml"
65
- - Gemfile
66
- - Gemfile.lock
67
133
  - README.en.md
68
134
  - README.md
69
135
  - Rakefile
@@ -127,26 +193,7 @@ files:
127
193
  - js/nicovideo.js
128
194
  - js/picasa.js
129
195
  - js/plugin_checker.js
130
- - js/prettify/lang-apollo.js
131
- - js/prettify/lang-clj.js
132
- - js/prettify/lang-css.js
133
- - js/prettify/lang-go.js
134
- - js/prettify/lang-hs.js
135
- - js/prettify/lang-lisp.js
136
- - js/prettify/lang-lua.js
137
- - js/prettify/lang-ml.js
138
- - js/prettify/lang-n.js
139
- - js/prettify/lang-proto.js
140
- - js/prettify/lang-scala.js
141
- - js/prettify/lang-sql.js
142
- - js/prettify/lang-tex.js
143
- - js/prettify/lang-vb.js
144
- - js/prettify/lang-vhdl.js
145
- - js/prettify/lang-wiki.js
146
- - js/prettify/lang-xq.js
147
- - js/prettify/lang-yaml.js
148
- - js/prettify/prettify.css
149
- - js/prettify/prettify.js
196
+ - js/preview.js
150
197
  - js/referer.js
151
198
  - js/show_and_hide.js
152
199
  - js/socialbutton.js
@@ -165,17 +212,6 @@ files:
165
212
  - misc/section_footer2/retweet.yaml
166
213
  - misc/section_footer2/twitter.yaml
167
214
  - misc/section_footer2/yahoo.yaml
168
- - misc/tdiarygraph/tdiarygraph120x90e.swf
169
- - misc/tdiarygraph/tdiarygraph125x125e.swf
170
- - misc/tdiarygraph/tdiarygraph240x180e.swf
171
- - misc/tdiarygraph/tdiarygraph468x60e.swf
172
- - misc/tdiarygraph/tdiarygraph728x90e.swf
173
- - misc/tdiarytimes/tdiarytimes125x125r.swf
174
- - misc/tdiarytimes/tdiarytimes125x125r7.swf
175
- - misc/tdiarytimes/tdiarytimes125x125s.swf
176
- - misc/tdiarytimes/tdiarytimes125x30.swf
177
- - misc/tdiarytimes/tdiarytimes234x30.swf
178
- - misc/tdiarytimes/tdiarytimes468x30.swf
179
215
  - plugin/add_bookmark.rb
180
216
  - plugin/apple_webclip.rb
181
217
  - plugin/appstore.rb
@@ -184,6 +220,7 @@ files:
184
220
  - plugin/bootstrap-navi.rb
185
221
  - plugin/brow_si.rb
186
222
  - plugin/canonical.rb
223
+ - plugin/category-lite.rb
187
224
  - plugin/category_similar.rb
188
225
  - plugin/category_to_tag.rb
189
226
  - plugin/category_to_tagcloud.rb
@@ -199,6 +236,7 @@ files:
199
236
  - plugin/development.rb
200
237
  - plugin/editor.rb
201
238
  - plugin/en/add_bookmark.rb
239
+ - plugin/en/category-lite.rb
202
240
  - plugin/en/del_footer.rb
203
241
  - plugin/en/git-register.rb
204
242
  - plugin/en/livedoor_weather.rb
@@ -236,6 +274,7 @@ files:
236
274
  - plugin/instagr.rb
237
275
  - plugin/instagram.rb
238
276
  - plugin/ja/add_bookmark.rb
277
+ - plugin/ja/category-lite.rb
239
278
  - plugin/ja/del_footer.rb
240
279
  - plugin/ja/flickr.rb
241
280
  - plugin/ja/git-register.rb
@@ -279,6 +318,7 @@ files:
279
318
  - plugin/plugin_checker.rb
280
319
  - plugin/popit.rb
281
320
  - plugin/prettify.rb
321
+ - plugin/preview.rb
282
322
  - plugin/prezi.rb
283
323
  - plugin/profile.rb
284
324
  - plugin/puboo.rb
@@ -303,8 +343,6 @@ files:
303
343
  - plugin/slideshare.rb
304
344
  - plugin/socialbutton.rb
305
345
  - plugin/tatsu_zine.rb
306
- - plugin/tdiarygraph_flashstyle.rb
307
- - plugin/tdiarytimes.rb
308
346
  - plugin/tdiarytimes2.rb
309
347
  - plugin/tdiarytimes_flashstyle.rb
310
348
  - plugin/tdiarytimes_textstyle.rb
@@ -356,7 +394,6 @@ files:
356
394
  - style/hatena_style.rb
357
395
  - style/markdown_style.rb
358
396
  - style/wikiext_style.rb
359
- - tdiary-contrib.gemspec
360
397
  - util/clean-spam/README.ja
361
398
  - util/clean-spam/tdiary-comment-clean
362
399
  - util/clean-spam/tdiary-comment-clean2
@@ -465,7 +502,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
465
502
  version: '0'
466
503
  requirements: []
467
504
  rubyforge_project:
468
- rubygems_version: 2.5.0
505
+ rubygems_version: 2.5.1
469
506
  signing_key:
470
507
  specification_version: 4
471
508
  summary: tDiary contributions package
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- coverage
2
- pkg
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- rvm:
5
- - 1.9.3
6
- - 2.0.0
7
- - 2.1
8
- - ruby-head
9
-
10
-
11
- script: bundle exec rake spec
12
-
13
- notifications:
14
- irc: "irc.freenode.org#tdiary"
15
-
16
- matrix:
17
- allow_failures:
18
- - rvm: ruby-head
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'tdiary', '~> 4.1.0'
4
-
5
- gem 'rake'
6
- gem 'ruby-pushbullet'
7
-
8
- group :test do
9
- gem 'rspec'
10
- gem 'simplecov'
11
- gem 'webmock'
12
- gem 'pry'
13
- end
data/Gemfile.lock DELETED
@@ -1,66 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.3.8)
5
- coderay (1.1.0)
6
- crack (0.4.2)
7
- safe_yaml (~> 1.0.0)
8
- diff-lcs (1.2.5)
9
- docile (1.1.5)
10
- json (1.8.3)
11
- method_source (0.8.2)
12
- mime-types (2.6.2)
13
- netrc (0.10.3)
14
- pry (0.10.2)
15
- coderay (~> 1.1.0)
16
- method_source (~> 0.8.1)
17
- slop (~> 3.4)
18
- rake (10.4.2)
19
- rest-client (1.7.3)
20
- mime-types (>= 1.16, < 3.0)
21
- netrc (~> 0.7)
22
- rspec (3.3.0)
23
- rspec-core (~> 3.3.0)
24
- rspec-expectations (~> 3.3.0)
25
- rspec-mocks (~> 3.3.0)
26
- rspec-core (3.3.2)
27
- rspec-support (~> 3.3.0)
28
- rspec-expectations (3.3.1)
29
- diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.3.0)
31
- rspec-mocks (3.3.2)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.3.0)
34
- rspec-support (3.3.0)
35
- ruby-pushbullet (0.1.3)
36
- json
37
- rest-client (~> 1.7.2)
38
- safe_yaml (1.0.4)
39
- simplecov (0.10.0)
40
- docile (~> 1.1.0)
41
- json (~> 1.8)
42
- simplecov-html (~> 0.10.0)
43
- simplecov-html (0.10.0)
44
- slop (3.6.0)
45
- tdiary (4.1.3)
46
- bundler (~> 1.3)
47
- thor (~> 0.18)
48
- thor (0.19.1)
49
- webmock (1.21.0)
50
- addressable (>= 2.3.6)
51
- crack (>= 0.3.2)
52
-
53
- PLATFORMS
54
- ruby
55
-
56
- DEPENDENCIES
57
- pry
58
- rake
59
- rspec
60
- ruby-pushbullet
61
- simplecov
62
- tdiary (~> 4.1.0)
63
- webmock
64
-
65
- BUNDLED WITH
66
- 1.10.6
@@ -1,2 +0,0 @@
1
- PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r �\xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
2
- null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]);
@@ -1,18 +0,0 @@
1
- /*
2
- Copyright (C) 2011 Google Inc.
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */
16
- var a=null;
17
- PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a],
18
- ["typ",/^:[\dA-Za-z-]+/]]),["clj"]);
@@ -1,2 +0,0 @@
1
- PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com",
2
- /^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);
@@ -1 +0,0 @@
1
- PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r �\xa0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]);
@@ -1,2 +0,0 @@
1
- PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n \r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/,
2
- null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]);
@@ -1,3 +0,0 @@
1
- var a=null;
2
- PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a],
3
- ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","scm"]);
@@ -1,2 +0,0 @@
1
- PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r �\xa0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],
2
- ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]);
@@ -1,2 +0,0 @@
1
- PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r �\xa0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
2
- ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]);
@@ -1,4 +0,0 @@
1
- var a=null;
2
- PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\xa0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/,
3
- a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/,
4
- a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]);
@@ -1 +0,0 @@
1
- PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]);
@@ -1,2 +0,0 @@
1
- PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r �\xa0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/],
2
- ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]);