shopee 0.0.4 → 0.1.1
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 +4 -4
- data/.gitignore +2 -0
- data/Gemfile +3 -1
- data/README.md +224 -31
- data/bin/shopee +29 -7
- data/lib/shopee/version.rb +2 -2
- data/lib/shopee.rb +82 -21
- data/spec/fixtures/vcr_cassettes/shopee.yml +1930 -593
- data/spec/shopee_spec.rb +10 -10
- metadata +2 -2
data/spec/shopee_spec.rb
CHANGED
@@ -155,13 +155,13 @@ describe 'Testing all categories of mobile01.' do
|
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
158
|
-
|
159
|
-
#
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
158
|
+
VCR.use_cassette('shopee') do
|
159
|
+
# //It should be placed outside.
|
160
|
+
shopeecate = ShopeeScrape::ShopeeListGoodsByCate.new('電腦資訊')
|
161
|
+
describe 'Shopee testament using vcr' do
|
162
|
+
it 'should return an array of string and name of categories' do
|
163
|
+
good_list = shopeecate.goods
|
164
|
+
good_list.length.must_equal 30
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheng Jung Wu
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-11-
|
14
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: minitest
|