booking-com-crawler 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 41db8c1aa4cbd7a236953993c19071baadb53a6ab65739ffcaabe34beb2489ec
4
+ data.tar.gz: 820be0c1b88a9cb15a857345de75ebbe78a22ab3e213ce611bc683001ab53052
5
+ SHA512:
6
+ metadata.gz: 7e8692277a36e96599d76147477ade408f6d86f93b95640043f06a967eb1a866117c19a4e859ded44f227c48fd47c5a0be9e5790d2802935db8c1d927b749918
7
+ data.tar.gz: 4f3a5805a1860e18037f627b0a71a010aaa7576d9b6a403668ee9a07c216911d353c21ea5702c157a36ead50a38985c2d8bcdc87250e9d86d4192a735e612efa
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -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
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.1
6
+ before_install: gem install bundler -v 2.1.4
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in booking-com-crawler.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
@@ -0,0 +1,36 @@
1
+ # Booking::Com::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/booking/com/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 'booking-com-crawler'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install booking-com-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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/booking-com-crawler.
36
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "booking/com/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__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+ require_relative 'lib/booking/com/crawler/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "booking-com-crawler"
5
+ spec.version = Booking::Com::Crawler::VERSION
6
+ spec.authors = ["FUMI-POPPIN"]
7
+ spec.email = ["fumitake.kawasaki@el-soul.com"]
8
+
9
+ spec.summary = "Booking.com Data Crawler"
10
+ spec.description = "Empower World Travel Information Technology"
11
+ spec.homepage = "https://github.com/elsoul/booking-com-crawler"
12
+ spec.license = "MIT"
13
+ spec.metadata = { "source_code_uri" => "https://github.com/elsoul/booking-com-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/booking-com-crawler"
19
+ spec.metadata["changelog_uri"] = "https://github.com/elsoul/booking-com-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
@@ -0,0 +1,10 @@
1
+ require "booking/com/crawler/version"
2
+
3
+ module Booking
4
+ module Com
5
+ module Crawler
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module Booking
2
+ module Com
3
+ module Crawler
4
+ VERSION = "0.1.0"
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: booking-com-crawler
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - FUMI-POPPIN
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Empower World Travel Information Technology
14
+ email:
15
+ - fumitake.kawasaki@el-soul.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - ".rspec"
22
+ - ".rubocop.yml"
23
+ - ".travis.yml"
24
+ - Gemfile
25
+ - README.md
26
+ - Rakefile
27
+ - bin/console
28
+ - bin/setup
29
+ - booking-com-crawler.gemspec
30
+ - lib/booking/com/crawler.rb
31
+ - lib/booking/com/crawler/version.rb
32
+ homepage: https://github.com/elsoul/booking-com-crawler
33
+ licenses:
34
+ - MIT
35
+ metadata:
36
+ source_code_uri: https://github.com/elsoul/booking-com-crawler
37
+ homepage_uri: https://github.com/elsoul/booking-com-crawler
38
+ changelog_uri: https://github.com/elsoul/booking-com-crawler
39
+ post_install_message:
40
+ rdoc_options: []
41
+ require_paths:
42
+ - lib
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 2.7.0
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ requirements: []
54
+ rubygems_version: 3.1.4
55
+ signing_key:
56
+ specification_version: 4
57
+ summary: Booking.com Data Crawler
58
+ test_files: []