soa_codeschool 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 291813dfc9df57eb94173e399b5da5c1a751539b
4
- data.tar.gz: cffcad4abee4df6783d34553b8070095e48cd38f
3
+ metadata.gz: 3d7a6226e2a48cad730ec0f47f22202a3dccb83a
4
+ data.tar.gz: 96897ef307f0d0ba06f4c061a47a675dcc0da196
5
5
  SHA512:
6
- metadata.gz: abfa2fbaa6919af2fe2b3115a705c9b95c62de3faafcbae1e541ea394abc5ec12b162e95e412187bca4207d74214061dcacf8d007002c16427681c202e1500c4
7
- data.tar.gz: 3d3396b93e74ab969063ce461f9fef8cf2ff527207f541cfe2be66f765bbc76c8e7130fff6f41a9f0c806014f52cb5c171fde4c9c769ccfb2bf8bce68c0f45b0
6
+ metadata.gz: fb6530558dc61178f05ec233020ebe652af3f10e9d5ae42d4f37e63b38f43ab0790d43aa700d1ee66121a6292068f315edf10a0cfb2fb2a99bf8341ebe59e8b1
7
+ data.tar.gz: a478af0cdfa5d0d05b2d0f80f4c1395df8edd9c7b986caf60d66df711ba56b075d963a7ff0cf75ad1bcec43989c5e83a3e07ed73995ea1f2c741d68980d31a2e
data/Gemfile CHANGED
@@ -4,11 +4,10 @@ gemspec
4
4
 
5
5
  gem 'nokogiri'
6
6
 
7
- group :test do
8
- gem 'rake'
9
- gem 'vcr'
10
- gem 'webmock'
11
- gem 'minitest'
12
- gem 'minitest-rg'
7
+ group :test do
8
+ gem 'rake'
9
+ gem 'vcr'
10
+ gem 'webmock'
11
+ gem 'minitest'
12
+ gem 'minitest-rg'
13
13
  end
14
-
data/LICENSE CHANGED
@@ -0,0 +1,22 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
22
+
data/README.md CHANGED
@@ -1,5 +1,23 @@
1
- # Team-HW-1-Ideate-and-Scrape[![Build Status](https://travis-ci.org/pengyuchen/Team-HW-1-Ideate-and-Scrape.svg?branch=master)](https://travis-ci.org/pengyuchen/Team-HW-1-Ideate-and-Scrape)
1
+ # soa_codeschool [![Build Status](https://travis-ci.org/pengyuchen/Team-HW-1-Ideate-and-Scrape.svg?branch=master)](https://travis-ci.org/pengyuchen/Team-HW-1-Ideate-and-Scrape)[![Gem Version](https://badge.fury.io/rb/soa_codeschool.svg)](https://badge.fury.io/rb/soa_codeschool)
2
2
 
3
- - @stozuka created [original scraper code](https://gist.github.com/stozuka/b5ad519866a46387e4f2)
4
- - @stonegold546 and @huangjr pair-refactored this code
5
- - @pengyuchen @stozuka created the specs (pair-programmed)
3
+ https://rubygems.org/gems/soa_codeschool
4
+
5
+ A simple Ruby Gem to scrap the website codeschool and to get courses and its instructors.
6
+
7
+
8
+ ## Usage
9
+
10
+ Run the following command:
11
+
12
+ ```
13
+ gem install soa_codeschool
14
+ ```
15
+ ### Command line usage
16
+
17
+ ```
18
+ codeschool
19
+ ```
20
+
21
+ ## License
22
+
23
+ Distributed under the [MIT License](LICENSE).
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
- task :default => [:spec]
1
+ task default: [:spec]
2
2
 
3
3
  task :spec do
4
- sh "ruby spec/*_spec.rb"
4
+ sh 'ruby spec/*_spec.rb'
5
5
  end
data/codeschool.gemspec CHANGED
@@ -8,8 +8,9 @@ Gem::Specification.new do |s|
8
8
  s.executables << 'codeschool'
9
9
  s.summary = 'Access teacher and course information on CodeSchool'
10
10
  s.description = 'show course and teacher on codeschool'
11
- s.authors = ['stozuka', 'stonegold546','huangjr','pengyuchen']
12
- s.email = ['stozuka@gmail.com','stozuka@gmail.com','jr@nlplab.cc', 'pengyu@gmail.com']
11
+ s.authors = %w('stozuka', 'stonegold546', 'huangjr', 'pengyuchen')
12
+ s.email = %w('stozuka@gmail.com', 'stozuka@gmail.com',
13
+ 'jr@nlplab.cc', 'pengyu@gmail.com')
13
14
  s.files = `git ls-files`.split("\n")
14
15
  s.test_files = `git ls-files spec/*`.split("\n")
15
16
  s.homepage = 'https://github.com/SOAupstart2/Team-HW-1-Ideate-and-Scrape'
data/lib/version.rb CHANGED
@@ -1,6 +1,5 @@
1
+ # Gem info
1
2
  module CodeSchool
2
- VERSION = '0.0.1'
3
- DATE = '2015-10-15'
3
+ VERSION = '0.0.2'
4
+ DATE = '2015-10-15'
4
5
  end
5
-
6
-
@@ -5,15 +5,14 @@ require 'webmock/minitest'
5
5
  require_relative '../lib/scrape'
6
6
 
7
7
  VCR.configure do |config|
8
- config.cassette_library_dir = './spec/fixtures/vcr/cassettes'
9
- config.hook_into :webmock
8
+ config.cassette_library_dir = './spec/fixtures/vcr/cassettes'
9
+ config.hook_into :webmock
10
10
  end
11
11
 
12
12
  VCR.use_cassette('codeschool') do
13
-
14
13
  codeschool = SiteScraper.new.code_school_data
15
14
  golden = File.read('./spec/fixtures/output.json')
16
-
15
+
17
16
  describe 'test for code school' do
18
17
  it 'has same length' do
19
18
  codeschool.size.must_equal golden.chomp.length
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soa_codeschool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - stozuka
8
- - stonegold546
9
- - huangjr
10
- - pengyuchen
7
+ - "'stozuka',"
8
+ - "'stonegold546',"
9
+ - "'huangjr',"
10
+ - "'pengyuchen'"
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
@@ -85,10 +85,10 @@ dependencies:
85
85
  version: '0'
86
86
  description: show course and teacher on codeschool
87
87
  email:
88
- - stozuka@gmail.com
89
- - stozuka@gmail.com
90
- - jr@nlplab.cc
91
- - pengyu@gmail.com
88
+ - "'stozuka@gmail.com',"
89
+ - "'stozuka@gmail.com',"
90
+ - "'jr@nlplab.cc',"
91
+ - "'pengyu@gmail.com'"
92
92
  executables:
93
93
  - codeschool
94
94
  extensions: []