syoboemon 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e18662b29218bc2815d4a341ccd60ab0ef944fe7
4
- data.tar.gz: 809f81dbfebfa68a76a23a862228d8ac3f55b5be
3
+ metadata.gz: cb6c68081e871aa509c7315e73c8eacc9b9d6cfa
4
+ data.tar.gz: a257248f98d6ea60e6370e713079149c3183dfe2
5
5
  SHA512:
6
- metadata.gz: ae413851604eb6ac1b201e6204b75738e4075fe1a39906a0df00b8919c79111fcd74ff4cf7396462dd5e7d1fa18ec9c4321ab5932cdde94b56225d27d84eca97
7
- data.tar.gz: ea6b7c7d59a66f393ca52e9a3ef5cab76422e79a1604e48ea0100fd97614bf18b940e61ffbc7399e0ed9deb419f5f9ec096c55d2eb71f3b286efa0a9d1aac8ee
6
+ metadata.gz: b1662039dbb4df3b0ff9476315fb75afb78f47628be3b525fcda9d12bf40acaf7d54743ec55c3a600575b98540eb1a9857e62be8fc05e21607e790fcc7d04a42
7
+ data.tar.gz: 41367d7e866077abe169e0530a23f77315f27feadb4a21307e84abf59f045a109b51a96b54dbccb85091a41353befab61e64e123f8bd7d3bf57504c8779258d5
data/bin/search_title ADDED
@@ -0,0 +1,20 @@
1
+ require "./../lib/syoboemon"
2
+
3
+ title = ARGV[0].to_s
4
+
5
+ client = Syoboemon::Client.new
6
+ search_res = client.search_program(title)
7
+ puts "Title : #{search_res.title}(#{search_res.title_id})"
8
+ puts
9
+
10
+ puts "Opening and ending themes"
11
+ search_res.opening.each.with_index {|op, i| puts "OP#{i + 1} : #{op}" unless op.empty?}
12
+ search_res.ending.each.with_index {|ed, i| puts "ED#{i + 1} : #{ed}" unless ed.empty?}
13
+ puts
14
+
15
+ print "Staffs"
16
+ search_res.staffs.first(10).each {|staff| puts "#{staff.to_s}"}
17
+ puts
18
+
19
+ print "Casts"
20
+ search_res.casts.first(10).each {|cast| puts "#{cast.to_s}"}
@@ -1,3 +1,3 @@
1
1
  module Syoboemon
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syoboemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshiemon18
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: happymapper
@@ -84,6 +84,7 @@ description: しょぼいカレンダーのAPIラッパッパ. 他の人
84
84
  email:
85
85
  - st12318@gmail.com
86
86
  executables:
87
+ - search_title
87
88
  - today_anime
88
89
  - today_radio
89
90
  extensions: []
@@ -97,6 +98,7 @@ files:
97
98
  - LICENSE.txt
98
99
  - README.md
99
100
  - Rakefile
101
+ - bin/search_title
100
102
  - bin/today_anime
101
103
  - bin/today_radio
102
104
  - lib/syoboemon.rb
@@ -134,3 +136,4 @@ signing_key:
134
136
  specification_version: 4
135
137
  summary: shoboi calendar API wrapper.
136
138
  test_files: []
139
+ has_rdoc: