syoboi_calendar 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- syoboi_calendar (0.0.1)
4
+ syoboi_calendar (0.1.0)
5
5
  mechanize (>= 2.3)
6
6
 
7
7
  GEM
@@ -14,7 +14,7 @@ unless args[:keyword]
14
14
  exit
15
15
  end
16
16
 
17
- client = SyoboiCalendar::Client.new
17
+ client = SyoboiCalendar.new
18
18
  titles = client.search(
19
19
  :mode => :title,
20
20
  :keyword => args[:keyword],
@@ -10,7 +10,7 @@ args = Slop.parse :help => true do
10
10
  on :r, :range=, "Date range (e.g. 2012/4/1-2012/4/30)"
11
11
  end
12
12
 
13
- client = SyoboiCalendar::Client.new(
13
+ client = SyoboiCalendar.new(
14
14
  :user => args[:user],
15
15
  :pass => args[:pass]
16
16
  )
@@ -1,7 +1,7 @@
1
1
  require "uri"
2
2
  require "json"
3
3
 
4
- module SyoboiCalendar
4
+ class SyoboiCalendar
5
5
  class Agent
6
6
  BASE_URL = "http://cal.syoboi.jp"
7
7
  SEARCH_URL = BASE_URL + "/find"
@@ -1,5 +1,5 @@
1
- module SyoboiCalendar
2
- class Client
1
+ class SyoboiCalendar
2
+ module Client
3
3
  # user and pass are optional to search with user's channel setting
4
4
  def initialize(opts = {})
5
5
  @agent = Agent.new(:user => opts[:user], :pass => opts[:pass])
@@ -1,4 +1,4 @@
1
- module SyoboiCalendar
1
+ class SyoboiCalendar
2
2
  class Program
3
3
  attr_reader(
4
4
  :pid,
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
 
3
- module SyoboiCalendar
3
+ class SyoboiCalendar
4
4
  class Title
5
5
  attr_reader(
6
6
  :tid,
@@ -1,3 +1,3 @@
1
- module SyoboiCalendar
2
- VERSION = "0.0.1"
1
+ class SyoboiCalendar
2
+ VERSION = "0.1.0"
3
3
  end
@@ -7,3 +7,7 @@ require "syoboi_calendar/agent"
7
7
  require "syoboi_calendar/title"
8
8
  require "syoboi_calendar/program"
9
9
  require "syoboi_calendar/client"
10
+
11
+ class SyoboiCalendar
12
+ include SyoboiCalendar::Client
13
+ end
@@ -26,8 +26,8 @@ describe "SyoboiCalendar::Client" do
26
26
 
27
27
  user = "testuserforruby"
28
28
  pass = user
29
- @client = SyoboiCalendar::Client.new(:user => user, :pass => pass)
30
- @guest = SyoboiCalendar::Client.new
29
+ @client = SyoboiCalendar.new(:user => user, :pass => pass)
30
+ @guest = SyoboiCalendar.new
31
31
  end
32
32
 
33
33
  describe "#search" do
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["r7kamura@gmail.com"]
7
7
  gem.description = "Simple gem for Syoboi Calendar"
8
8
  gem.summary = "Search Japanese Anime Lineup"
9
- gem.homepage = "http://github.com/r7kamura/syoboi_calendar"
9
+ gem.homepage = "http://r7kamura.github.com/syoboi_calendar/"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syoboi_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-09 00:00:00.000000000 Z
12
+ date: 2012-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
16
- requirement: &70245006351620 !ruby/object:Gem::Requirement
16
+ requirement: &70163216847340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70245006351620
24
+ version_requirements: *70163216847340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70245006351100 !ruby/object:Gem::Requirement
27
+ requirement: &70163216846800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.2
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70245006351100
35
+ version_requirements: *70163216846800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70245006350600 !ruby/object:Gem::Requirement
38
+ requirement: &70163216846320 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.9.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70245006350600
46
+ version_requirements: *70163216846320
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: webmock
49
- requirement: &70245006350100 !ruby/object:Gem::Requirement
49
+ requirement: &70163216845820 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.8.6
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70245006350100
57
+ version_requirements: *70163216845820
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &70245006349640 !ruby/object:Gem::Requirement
60
+ requirement: &70163216845340 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.6.1
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70245006349640
68
+ version_requirements: *70163216845340
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov-vim
71
- requirement: &70245006349180 !ruby/object:Gem::Requirement
71
+ requirement: &70163216844840 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: 0.0.1
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70245006349180
79
+ version_requirements: *70163216844840
80
80
  description: Simple gem for Syoboi Calendar
81
81
  email:
82
82
  - r7kamura@gmail.com
@@ -108,7 +108,7 @@ files:
108
108
  - spec/syoboi_calendar/program_spec.rb
109
109
  - spec/syoboi_calendar/title_spec.rb
110
110
  - syoboi_calendar.gemspec
111
- homepage: http://github.com/r7kamura/syoboi_calendar
111
+ homepage: http://r7kamura.github.com/syoboi_calendar/
112
112
  licenses: []
113
113
  post_install_message:
114
114
  rdoc_options: []
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  segments:
124
124
  - 0
125
- hash: -648354377623641355
125
+ hash: -533632008845235547
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: -648354377623641355
134
+ hash: -533632008845235547
135
135
  requirements: []
136
136
  rubyforge_project:
137
137
  rubygems_version: 1.8.15