agoda-crawler 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +191 -0
- data/.travis.yml +6 -0
- data/Gemfile +7 -0
- data/README.md +36 -0
- data/Rakefile +6 -0
- data/agoda-crawler.gemspec +29 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/agoda/crawler.rb +8 -0
- data/lib/agoda/crawler/version.rb +5 -0
- metadata +60 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2cabe26ccbadaebef737aa8bb642d458db3e9572358bed55cc53d368a1e0f87d
|
4
|
+
data.tar.gz: 6d02e7c2c23bbfeba5ddc1bd87fb0898886aa51fcb5de538bcb40c689f59e064
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8191dcb76a9a3d79571b04552b037b60f7cb48f3c09cc737d229fa1ce51aa52128e010d71a9572c1fe95213e0cd8f690556707a364931a344219643781061dfb
|
7
|
+
data.tar.gz: a2ac87225a95df7a18d7c5ceb5411d0e0427a89f0c02515676f131d77819c38b48916619409f413cec07560fce61ef341666887e1ad0005509179f44ce07fa2f
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,191 @@
|
|
1
|
+
AllCops:
|
2
|
+
EnabledByDefault: true
|
3
|
+
|
4
|
+
Style/AndOr:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Style/ClassAndModuleChildren:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Style/AsciiComments:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/SymbolArray:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Style/WordArray:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Style/MixinGrouping:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/RescueStandardError:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Style/MethodCallWithArgsParentheses:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/DocumentationMethod:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Style/CollectionMethods:
|
32
|
+
PreferredMethods:
|
33
|
+
detect: "detect"
|
34
|
+
find: "detect"
|
35
|
+
inject: "inject"
|
36
|
+
reduce: "inject"
|
37
|
+
|
38
|
+
Style/Documentation:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Style/DoubleNegation:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
Lint/ConstantResolution:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
Layout/DotPosition:
|
48
|
+
EnforcedStyle: trailing
|
49
|
+
|
50
|
+
|
51
|
+
Layout/EmptyLineAfterGuardClause:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
Style/EmptyElse:
|
55
|
+
EnforcedStyle: empty
|
56
|
+
|
57
|
+
Layout/ExtraSpacing:
|
58
|
+
Exclude:
|
59
|
+
- "db/migrate/*.rb"
|
60
|
+
- "*.gemspec"
|
61
|
+
|
62
|
+
Style/FormatString:
|
63
|
+
EnforcedStyle: percent
|
64
|
+
|
65
|
+
Style/MissingElse:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
Style/StringHashKeys:
|
69
|
+
Exclude:
|
70
|
+
- "spec/queries/*.rb"
|
71
|
+
- "*.gemspec"
|
72
|
+
|
73
|
+
Style/GuardClause:
|
74
|
+
MinBodyLength: 5
|
75
|
+
|
76
|
+
Style/HashSyntax:
|
77
|
+
EnforcedStyle: ruby19
|
78
|
+
Exclude:
|
79
|
+
- "**/*.rake"
|
80
|
+
- "Rakefile"
|
81
|
+
|
82
|
+
Style/IfUnlessModifier:
|
83
|
+
Enabled: false
|
84
|
+
|
85
|
+
Style/PreferredHashMethods:
|
86
|
+
EnforcedStyle: short
|
87
|
+
|
88
|
+
Style/Lambda:
|
89
|
+
Enabled: false
|
90
|
+
|
91
|
+
Style/NumericLiterals:
|
92
|
+
MinDigits: 7
|
93
|
+
|
94
|
+
Style/PerlBackrefs:
|
95
|
+
AutoCorrect: false
|
96
|
+
|
97
|
+
Style/RedundantSelf:
|
98
|
+
Enabled: false
|
99
|
+
|
100
|
+
Style/FrozenStringLiteralComment:
|
101
|
+
Enabled: false
|
102
|
+
|
103
|
+
Style/RedundantReturn:
|
104
|
+
AllowMultipleReturnValues: true
|
105
|
+
|
106
|
+
Style/Semicolon:
|
107
|
+
Exclude:
|
108
|
+
- "spec/**/*"
|
109
|
+
|
110
|
+
Style/SignalException:
|
111
|
+
EnforcedStyle: only_raise
|
112
|
+
|
113
|
+
Style/MethodDefParentheses:
|
114
|
+
Enabled: false
|
115
|
+
|
116
|
+
Style/StringLiterals:
|
117
|
+
EnforcedStyle: double_quotes
|
118
|
+
|
119
|
+
Style/StringLiteralsInInterpolation:
|
120
|
+
Enabled: false
|
121
|
+
|
122
|
+
Style/SingleLineBlockParams:
|
123
|
+
Enabled: false
|
124
|
+
|
125
|
+
Lint/UnderscorePrefixedVariableName:
|
126
|
+
Enabled: false
|
127
|
+
|
128
|
+
Lint/UnusedMethodArgument:
|
129
|
+
Enabled: false
|
130
|
+
|
131
|
+
|
132
|
+
Metrics/AbcSize:
|
133
|
+
Enabled: false
|
134
|
+
|
135
|
+
Metrics/CyclomaticComplexity:
|
136
|
+
Max: 10
|
137
|
+
|
138
|
+
Metrics/PerceivedComplexity:
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
Metrics/BlockLength:
|
142
|
+
Enabled: false
|
143
|
+
|
144
|
+
Layout/LineLength:
|
145
|
+
Enabled: false
|
146
|
+
|
147
|
+
|
148
|
+
Metrics/MethodLength:
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
Metrics/ClassLength:
|
152
|
+
Enabled: false
|
153
|
+
|
154
|
+
Naming/HeredocDelimiterNaming:
|
155
|
+
Enabled: false
|
156
|
+
|
157
|
+
Naming/AccessorMethodName:
|
158
|
+
Enabled: false
|
159
|
+
|
160
|
+
Metrics/ModuleLength:
|
161
|
+
Enabled: false
|
162
|
+
|
163
|
+
Lint/UnusedBlockArgument:
|
164
|
+
Enabled: false
|
165
|
+
|
166
|
+
Lint/RescueException:
|
167
|
+
Enabled: false
|
168
|
+
|
169
|
+
Naming/RescuedExceptionsVariableName:
|
170
|
+
Enabled: false
|
171
|
+
|
172
|
+
Bundler/GemComment:
|
173
|
+
Enabled: false
|
174
|
+
|
175
|
+
Style/SafeNavigation:
|
176
|
+
Enabled: false
|
177
|
+
|
178
|
+
Lint/NumberConversion:
|
179
|
+
Enabled: false
|
180
|
+
Style/ConstantVisibility:
|
181
|
+
Enabled: false
|
182
|
+
Style/MutableConstant:
|
183
|
+
Enabled: false
|
184
|
+
Style/Copyright:
|
185
|
+
Enabled: false
|
186
|
+
Style/MultilineTernaryOperator:
|
187
|
+
Enabled: false
|
188
|
+
Layout/MultilineAssignmentLayout:
|
189
|
+
Enabled: false
|
190
|
+
Style/Send:
|
191
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Agoda::Crawler
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/agoda/crawler`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'agoda-crawler'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install agoda-crawler
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org/gems/agoda-crawler).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/agoda-crawler.
|
36
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'lib/agoda/crawler/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "agoda-crawler"
|
5
|
+
spec.version = Agoda::Crawler::VERSION
|
6
|
+
spec.authors = ["FUMI-POPPIN", "James Neve"]
|
7
|
+
spec.email = ["fumitake.kawasaki@el-soul.com", "jamesoneve@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = "Agoda Data Crawler"
|
10
|
+
spec.description = "Empower World Travel Information Technology"
|
11
|
+
spec.homepage = "https://github.com/elsoul/agoda-crawler"
|
12
|
+
spec.license = "MIT"
|
13
|
+
spec.metadata = { "source_code_uri" => "https://github.com/elsoul/agoda-crawler" }
|
14
|
+
spec.required_ruby_version = ">= 2.7.0"
|
15
|
+
# spec.metadata["allowed_push_host"] = "https://hotel.el-soul.com"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/elsoul/agoda-crawler"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/elsoul/agoda-crawler"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "agoda/crawler"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
metadata
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: agoda-crawler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- FUMI-POPPIN
|
8
|
+
- James Neve
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Empower World Travel Information Technology
|
15
|
+
email:
|
16
|
+
- fumitake.kawasaki@el-soul.com
|
17
|
+
- jamesoneve@gmail.com
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- ".gitignore"
|
23
|
+
- ".rspec"
|
24
|
+
- ".rubocop.yml"
|
25
|
+
- ".travis.yml"
|
26
|
+
- Gemfile
|
27
|
+
- README.md
|
28
|
+
- Rakefile
|
29
|
+
- agoda-crawler.gemspec
|
30
|
+
- bin/console
|
31
|
+
- bin/setup
|
32
|
+
- lib/agoda/crawler.rb
|
33
|
+
- lib/agoda/crawler/version.rb
|
34
|
+
homepage: https://github.com/elsoul/agoda-crawler
|
35
|
+
licenses:
|
36
|
+
- MIT
|
37
|
+
metadata:
|
38
|
+
source_code_uri: https://github.com/elsoul/agoda-crawler
|
39
|
+
homepage_uri: https://github.com/elsoul/agoda-crawler
|
40
|
+
changelog_uri: https://github.com/elsoul/agoda-crawler
|
41
|
+
post_install_message:
|
42
|
+
rdoc_options: []
|
43
|
+
require_paths:
|
44
|
+
- lib
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.7.0
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
requirements: []
|
56
|
+
rubygems_version: 3.1.4
|
57
|
+
signing_key:
|
58
|
+
specification_version: 4
|
59
|
+
summary: Agoda Data Crawler
|
60
|
+
test_files: []
|