soa_codeschool 0.0.2 → 0.0.3

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: 3d7a6226e2a48cad730ec0f47f22202a3dccb83a
4
- data.tar.gz: 96897ef307f0d0ba06f4c061a47a675dcc0da196
3
+ metadata.gz: 04c067f1138525f5fe6480b5110a284eea3a34c8
4
+ data.tar.gz: 3c9f4ec4610049d444c486eaee5d115e15d92cc9
5
5
  SHA512:
6
- metadata.gz: fb6530558dc61178f05ec233020ebe652af3f10e9d5ae42d4f37e63b38f43ab0790d43aa700d1ee66121a6292068f315edf10a0cfb2fb2a99bf8341ebe59e8b1
7
- data.tar.gz: a478af0cdfa5d0d05b2d0f80f4c1395df8edd9c7b986caf60d66df711ba56b075d963a7ff0cf75ad1bcec43989c5e83a3e07ed73995ea1f2c741d68980d31a2e
6
+ metadata.gz: 4d4be46c79fa97914cb57af41f8683e9abf3b2fe99f6e6a8e4f7fa30ee9ce351cdd3892d6b27cf8146e9e7e0a753ed1ea260693aea61f18885be0bb183831bb5
7
+ data.tar.gz: 7e84ea430a5c8311a20d2cd7e19b938d86a21639ea14ca29b0f50075d91139b0080def892065b98448032445d82ca5833c025cb70a6faf3f8d10dff23cd02789
data/Gemfile CHANGED
@@ -2,8 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'nokogiri'
6
-
7
5
  group :test do
8
6
  gem 'rake'
9
7
  gem 'vcr'
data/README.md CHANGED
@@ -15,7 +15,17 @@ gem install soa_codeschool
15
15
  ### Command line usage
16
16
 
17
17
  ```
18
- codeschool
18
+ soa_codeschool # Puts JSON array of code school courses and teachers to command line
19
+ ```
20
+
21
+ ### Usage in ruby code
22
+ ```
23
+ require 'soa_codeschool'
24
+
25
+ code_school = SiteScraper.new
26
+ code_school.course_names # Returns array of course names
27
+ code_school.code_school_data # Returns JSON array of code school courses and teachers
28
+ code_school.code_school_output # Puts JSON array of code school courses and teachers
19
29
  ```
20
30
 
21
31
  ## License
data/bin/codeschool CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require_relative '../lib/scrape'
2
+ require_relative '../lib/soa_codeschool'
3
3
 
4
4
  code_school = SiteScraper.new
5
5
  code_school.code_school_output
data/codeschool.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  $LOAD_PATH.push File.expand_path('../lib', __FILE__)
2
- require 'version'
2
+ require 'code_school/version'
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'soa_codeschool'
@@ -8,9 +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 = %w('stozuka', 'stonegold546', 'huangjr', 'pengyuchen')
12
- s.email = %w('stozuka@gmail.com', 'stozuka@gmail.com',
13
- 'jr@nlplab.cc', 'pengyu@gmail.com')
11
+ s.authors = %w(stozuka, stonegold546, huangjr, pengyuchen)
12
+ s.email = %w(stozuka@gmail.com, stonegold546@gmail.com,
13
+ jr@nlplab.cc, pengyu@gmail.com)
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.test_files = `git ls-files spec/*`.split("\n")
16
16
  s.homepage = 'https://github.com/SOAupstart2/Team-HW-1-Ideate-and-Scrape'
File without changes
@@ -0,0 +1,5 @@
1
+ # Gem info
2
+ module CodeSchool
3
+ VERSION = '0.0.3'
4
+ DATE = '2015-10-24'
5
+ end
@@ -1,4 +1,4 @@
1
- require_relative './code_school'
1
+ require_relative './code_school/code_school'
2
2
 
3
3
  # Scraper class for several sites
4
4
  class SiteScraper
@@ -2,7 +2,7 @@ require 'minitest/autorun'
2
2
  require 'minitest/rg'
3
3
  require 'vcr'
4
4
  require 'webmock/minitest'
5
- require_relative '../lib/scrape'
5
+ require_relative '../lib/soa_codeschool'
6
6
 
7
7
  VCR.configure do |config|
8
8
  config.cassette_library_dir = './spec/fixtures/vcr/cassettes'
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soa_codeschool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: []
14
- date: 2015-10-15 00:00:00.000000000 Z
14
+ date: 2015-10-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: minitest
@@ -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
+ - stonegold546@gmail.com,
90
+ - jr@nlplab.cc,
91
+ - pengyu@gmail.com
92
92
  executables:
93
93
  - codeschool
94
94
  extensions: []
@@ -102,9 +102,9 @@ files:
102
102
  - Rakefile
103
103
  - bin/codeschool
104
104
  - codeschool.gemspec
105
- - lib/code_school.rb
106
- - lib/scrape.rb
107
- - lib/version.rb
105
+ - lib/code_school/code_school.rb
106
+ - lib/code_school/version.rb
107
+ - lib/soa_codeschool.rb
108
108
  - spec/code_school_spec.rb
109
109
  - spec/fixtures/output.json
110
110
  - spec/fixtures/vcr/cassettes/codeschool.yml
data/lib/version.rb DELETED
@@ -1,5 +0,0 @@
1
- # Gem info
2
- module CodeSchool
3
- VERSION = '0.0.2'
4
- DATE = '2015-10-15'
5
- end