manga_plus-api 0.1.0

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.
@@ -0,0 +1,157 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: manga_plus.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("manga_plus.proto", :syntax => :proto3) do
8
+ add_message "manga_plus.Chapter" do
9
+ optional :titleId, :uint32, 1
10
+ optional :chapterId, :uint32, 2
11
+ optional :name, :string, 3
12
+ optional :subTitle, :string, 4
13
+ optional :thumbnailUrl, :string, 5
14
+ optional :startTimeStamp, :uint32, 6
15
+ optional :endTimeStamp, :uint32, 7
16
+ optional :alreadyViewed, :bool, 8
17
+ optional :isVerticalOnly, :bool, 9
18
+ end
19
+ add_message "manga_plus.LastPage" do
20
+ optional :currentChapter, :message, 1, "manga_plus.Chapter"
21
+ optional :nextChapter, :message, 2, "manga_plus.Chapter"
22
+ optional :isSubscribed, :bool, 4
23
+ optional :nextTimeStamp, :uint32, 5
24
+ optional :chapterType, :int32, 6
25
+ end
26
+ add_message "manga_plus.MangaPage" do
27
+ optional :imageUrl, :string, 1
28
+ optional :width, :uint32, 2
29
+ optional :height, :uint32, 3
30
+ optional :type, :enum, 4, "manga_plus.MangaPage.Type"
31
+ optional :encryptionKey, :string, 5
32
+ end
33
+ add_enum "manga_plus.MangaPage.Type" do
34
+ value :SINGLE, 0
35
+ value :LEFT, 1
36
+ value :RIGHT, 2
37
+ value :DOUBLE, 3
38
+ end
39
+ add_message "manga_plus.Page" do
40
+ optional :mangaPage, :message, 1, "manga_plus.MangaPage"
41
+ end
42
+ add_message "manga_plus.MangaViewer" do
43
+ repeated :pages, :message, 1, "manga_plus.Page"
44
+ optional :chapterId, :uint32, 2
45
+ repeated :chapters, :message, 3, "manga_plus.Chapter"
46
+ optional :sns, :message, 4, "manga_plus.Sns"
47
+ optional :titleName, :string, 5
48
+ optional :chapterName, :string, 6
49
+ optional :numberOfComments, :uint32, 7
50
+ optional :isVerticalOnly, :bool, 8
51
+ optional :titleId, :uint32, 9
52
+ optional :startFromRight, :bool, 10
53
+ end
54
+ add_message "manga_plus.TitleDetailView" do
55
+ optional :title, :message, 1, "manga_plus.Title"
56
+ optional :titleImageUrl, :string, 2
57
+ optional :overview, :string, 3
58
+ optional :backgroundImageUrl, :string, 4
59
+ optional :nextTimeStamp, :uint32, 5
60
+ optional :updateTiming, :enum, 6, "manga_plus.TitleDetailView.UpdateTiming"
61
+ optional :viewingPeriodDescription, :string, 7
62
+ optional :nonAppearanceInfo, :string, 8
63
+ repeated :firstChapterList, :message, 9, "manga_plus.Chapter"
64
+ repeated :lastChapterList, :message, 10, "manga_plus.Chapter"
65
+ repeated :recommendedTitleList, :message, 12, "manga_plus.Title"
66
+ optional :sns, :message, 13, "manga_plus.Sns"
67
+ optional :isSimulReleased, :bool, 14
68
+ optional :isSubscribed, :bool, 15
69
+ optional :rating, :enum, 16, "manga_plus.TitleDetailView.Rating"
70
+ optional :chaptersDescending, :bool, 17
71
+ optional :numberOfViews, :uint32, 18
72
+ end
73
+ add_enum "manga_plus.TitleDetailView.UpdateTiming" do
74
+ value :NOT_REGULARLY, 0
75
+ value :MONDAY, 1
76
+ value :TUESDAY, 2
77
+ value :WEDNESDAY, 3
78
+ value :THURSDAY, 4
79
+ value :FRIDAY, 5
80
+ value :SATURDAY, 6
81
+ value :SUNDAY, 7
82
+ value :DAY, 8
83
+ end
84
+ add_enum "manga_plus.TitleDetailView.Rating" do
85
+ value :ALLAGE, 0
86
+ value :TEEN, 1
87
+ value :TEENPLUS, 2
88
+ value :MATURE, 3
89
+ end
90
+ add_message "manga_plus.Title" do
91
+ optional :titleId, :uint32, 1
92
+ optional :name, :string, 2
93
+ optional :author, :string, 3
94
+ optional :portraitImageUrl, :string, 4
95
+ optional :landscapeImageUrl, :string, 5
96
+ optional :viewCount, :uint32, 6
97
+ optional :language, :enum, 7, "manga_plus.Title.Language"
98
+ end
99
+ add_enum "manga_plus.Title.Language" do
100
+ value :ENGLISH, 0
101
+ value :SPANISH, 1
102
+ end
103
+ add_message "manga_plus.Sns" do
104
+ optional :body, :string, 1
105
+ optional :url, :string, 2
106
+ end
107
+ add_message "manga_plus.SuccessResult" do
108
+ optional :allTitlesView, :message, 5, "manga_plus.AllTitlesView"
109
+ optional :titleDetailView, :message, 8, "manga_plus.TitleDetailView"
110
+ optional :mangaViewer, :message, 10, "manga_plus.MangaViewer"
111
+ optional :webHomeView, :message, 11, "manga_plus.WebHomeView"
112
+ end
113
+ add_message "manga_plus.Response" do
114
+ optional :success, :message, 1, "manga_plus.SuccessResult"
115
+ end
116
+ add_message "manga_plus.AllTitlesView" do
117
+ repeated :titles, :message, 1, "manga_plus.Title"
118
+ end
119
+ add_message "manga_plus.WebHomeView" do
120
+ repeated :updatedTitleGroup, :message, 2, "manga_plus.UpdatedTitleGroup"
121
+ repeated :title, :message, 3, "manga_plus.Title"
122
+ end
123
+ add_message "manga_plus.UpdatedTitleGroup" do
124
+ optional :groupName, :string, 1
125
+ repeated :title, :message, 2, "manga_plus.UpdatedTitle"
126
+ end
127
+ add_message "manga_plus.UpdatedTitle" do
128
+ optional :title, :message, 1, "manga_plus.Title"
129
+ optional :chapterId, :uint32, 2
130
+ optional :chapterName, :string, 3
131
+ optional :chapterSubTitle, :string, 4
132
+ optional :isLatest, :bool, 5
133
+ optional :isVerticalOnly, :bool, 6
134
+ end
135
+ end
136
+ end
137
+
138
+ module MangaPlus
139
+ Chapter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.Chapter").msgclass
140
+ LastPage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.LastPage").msgclass
141
+ MangaPage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.MangaPage").msgclass
142
+ MangaPage::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.MangaPage.Type").enummodule
143
+ Page = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.Page").msgclass
144
+ MangaViewer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.MangaViewer").msgclass
145
+ TitleDetailView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.TitleDetailView").msgclass
146
+ TitleDetailView::UpdateTiming = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.TitleDetailView.UpdateTiming").enummodule
147
+ TitleDetailView::Rating = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.TitleDetailView.Rating").enummodule
148
+ Title = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.Title").msgclass
149
+ Title::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.Title.Language").enummodule
150
+ Sns = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.Sns").msgclass
151
+ SuccessResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.SuccessResult").msgclass
152
+ Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.Response").msgclass
153
+ AllTitlesView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.AllTitlesView").msgclass
154
+ WebHomeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.WebHomeView").msgclass
155
+ UpdatedTitleGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.UpdatedTitleGroup").msgclass
156
+ UpdatedTitle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("manga_plus.UpdatedTitle").msgclass
157
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'manga_plus/api/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'manga_plus-api'
9
+ spec.version = MangaPlus::Api::VERSION
10
+ spec.authors = ['parasquid']
11
+ spec.email = ['tristan.gomez@gmail.com']
12
+
13
+ spec.summary = 'Thin API layer for the MangaPlus manga site'
14
+ # spec.description = 'Write a longer description or delete this line.'
15
+ spec.homepage = 'https://github.com/parasquid/manga_plus-api'
16
+ spec.licenses = ['GPL-3.0-or-later']
17
+
18
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
20
+ if spec.respond_to?(:metadata)
21
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
22
+
23
+ spec.metadata['homepage_uri'] = spec.homepage
24
+ spec.metadata['source_code_uri'] = 'https://github.com/parasquid/manga_plus-api'
25
+ spec.metadata['changelog_uri'] = 'https://github.com/parasquid/manga_plus-api/commits/master'
26
+ else
27
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
28
+ 'public gem pushes.'
29
+ end
30
+
31
+ # Specify which files should be added to the gem when it is released.
32
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
33
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
34
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
35
+ end
36
+ spec.bindir = 'exe'
37
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
38
+ spec.require_paths = ['lib']
39
+
40
+ spec.add_dependency 'google-protobuf', '~> 3.12.0'
41
+ spec.add_dependency 'httparty', '~> 0.18.0'
42
+
43
+ spec.add_development_dependency 'bundler', '~> 1.17'
44
+ spec.add_development_dependency 'byebug', '~> 11.1.3'
45
+ spec.add_development_dependency 'rake', '~> 10.0'
46
+ spec.add_development_dependency 'rspec', '~> 3.0'
47
+ spec.add_development_dependency 'rubocop', '~> 0.84'
48
+ end
metadata ADDED
@@ -0,0 +1,168 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: manga_plus-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - parasquid
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-protobuf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.12.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.12.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.18.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.18.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.17'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.17'
55
+ - !ruby/object:Gem::Dependency
56
+ name: byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 11.1.3
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 11.1.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.84'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.84'
111
+ description:
112
+ email:
113
+ - tristan.gomez@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".rubocop.yml"
121
+ - ".travis.yml"
122
+ - COPYING
123
+ - Gemfile
124
+ - Gemfile.lock
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - docs/raw/all
130
+ - docs/raw/app.sample.js
131
+ - docs/raw/decode.sh
132
+ - docs/raw/manga_viewer
133
+ - docs/raw/protobuf.md
134
+ - docs/raw/title_detail
135
+ - docs/raw/web_home
136
+ - lib/manga_plus/api.rb
137
+ - lib/manga_plus/api/version.rb
138
+ - lib/manga_plus/proto/make_proto.sh
139
+ - lib/manga_plus/proto/manga_plus.proto
140
+ - lib/manga_plus/proto/manga_plus_pb.rb
141
+ - manga_plus-api.gemspec
142
+ homepage: https://github.com/parasquid/manga_plus-api
143
+ licenses:
144
+ - GPL-3.0-or-later
145
+ metadata:
146
+ homepage_uri: https://github.com/parasquid/manga_plus-api
147
+ source_code_uri: https://github.com/parasquid/manga_plus-api
148
+ changelog_uri: https://github.com/parasquid/manga_plus-api/commits/master
149
+ post_install_message:
150
+ rdoc_options: []
151
+ require_paths:
152
+ - lib
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ requirements: []
164
+ rubygems_version: 3.0.6
165
+ signing_key:
166
+ specification_version: 4
167
+ summary: Thin API layer for the MangaPlus manga site
168
+ test_files: []