thenewslensapi 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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/scraper +12 -0
  3. metadata +89 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c047d8b10610570ff217cb2e0a64baf0b8884971
4
+ data.tar.gz: 87a70e74d90c7736653405a1200c3ad97ca7ee1e
5
+ SHA512:
6
+ metadata.gz: 232d3bb8f119a8278eb6b1f872d1d8fe0952d1978b5467c89b2eb9e2c1da3839bbc61e24122a6cdf6cdfa53f01b0346ac1be8ec221d3375143aa28b19a15c03d
7
+ data.tar.gz: 39adbb703674566ea924e1b154cd48af9633e581defbcb7c98b971dbd97e01939706b49c3660e7cdc31457bf586f4625b54cdc738f5ee161c43da3b8cf6e0bb6
data/bin/scraper ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'scraper' # for production
3
+
4
+ newsfound = Scraper::NewsLens.gets_news
5
+
6
+ File.open('test.txt', 'w') do |file|
7
+ # use "\n" for two lines of text
8
+ newsfound.each do |x|
9
+ file.puts x.to_yaml
10
+ end
11
+ end
12
+
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thenewslensapi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Anita Lin
8
+ - Peggy Chao
9
+ - Ethan Chen
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2014-10-23 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: minitest
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: minitest-rg
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: nokogiri
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 1.6.2
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 1.6.2
57
+ description: Automatically give you the titles of latest news.
58
+ email: gatheringbc@gmail.com
59
+ executables:
60
+ - scraper
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - bin/scraper
65
+ homepage: https://github.com/SOAgroup3/theNewsLensApi
66
+ licenses:
67
+ - MIT
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project:
85
+ rubygems_version: 2.4.1
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: Grab the news information from theNewsLens
89
+ test_files: []