news_reader_cli 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c59fbbe0570258304416ab304d0451dead16a3996e62118006e4167269d886ed
4
- data.tar.gz: 4431f7c5a0620d87ca36c1f8b0ffc0b40f1ee5fdb11b3df8f98742047819e467
3
+ metadata.gz: ca93ebe7d33de73a47f6e20a0e2aa5d6252bb16d374d5ceab40b8504ef4b4e79
4
+ data.tar.gz: 83adc9f0955556770b76b9707c446948fc623aa597a6a0942f6c321eed60ee8e
5
5
  SHA512:
6
- metadata.gz: b6aed8c7db77dfe2fb2e1d6143c335f516f74b0989544245acf14a97548590cdc4c7ece8f143f62c24c3682c92dd5ad4f2888ff970150ab8a936cd4f71669140
7
- data.tar.gz: f4213fc5c499804a2fc7026dfdf3c58b6ae1d9034db147579335662ef7ac8fb0b6b6c216e135d444905f91fe82b8f7b1d54d38550535d6c9caa3567cc8d1ec55
6
+ metadata.gz: 526d5ba0dc0de75b46f9aca3761a308498b5fb7426c2b03c8c355e6e38976562b07d711e564d23cae972da2daf95e00dfe99c3d28da8d3da74ee3665d4385290
7
+ data.tar.gz: fcbc90fb40bf5d4850462c098d2f6a286baf86cb161e5080bae5faed056ad92012cc50628db55c0f53b2d029f96d245f91aadac82419e570c8db0debbb9aea30
data/Gemfile CHANGED
@@ -1,8 +1,6 @@
1
1
 
2
2
  source "https://rubygems.org"
3
3
 
4
- #gem 'dotenv-rails' # groups: [:development, :test] # not able to load dotenv
5
-
6
4
 
7
5
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
8
6
 
@@ -1,78 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- news_reader_cli (0.1.0)
4
+ news_reader_cli (0.1.1)
5
+ dotenv
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
8
9
  specs:
9
- actionpack (5.2.2)
10
- actionview (= 5.2.2)
11
- activesupport (= 5.2.2)
12
- rack (~> 2.0)
13
- rack-test (>= 0.6.3)
14
- rails-dom-testing (~> 2.0)
15
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
16
- actionview (5.2.2)
17
- activesupport (= 5.2.2)
18
- builder (~> 3.1)
19
- erubi (~> 1.4)
20
- rails-dom-testing (~> 2.0)
21
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
22
- activesupport (5.2.2)
23
- concurrent-ruby (~> 1.0, >= 1.0.2)
24
- i18n (>= 0.7, < 2)
25
- minitest (~> 5.1)
26
- tzinfo (~> 1.1)
27
- builder (3.2.3)
28
10
  coderay (1.1.2)
29
- concurrent-ruby (1.1.4)
30
- crass (1.0.4)
31
11
  dotenv (2.5.0)
32
- dotenv-rails (2.5.0)
33
- dotenv (= 2.5.0)
34
- railties (>= 3.2, < 6.0)
35
- erubi (1.8.0)
36
12
  gem-release (2.0.1)
37
- i18n (1.3.0)
38
- concurrent-ruby (~> 1.0)
39
- loofah (2.2.3)
40
- crass (~> 1.0.2)
41
- nokogiri (>= 1.5.9)
42
13
  method_source (0.9.2)
43
- mini_portile2 (2.4.0)
44
- minitest (5.11.3)
45
- nokogiri (1.9.1)
46
- mini_portile2 (~> 2.4.0)
47
14
  pry (0.12.2)
48
15
  coderay (~> 1.1.0)
49
16
  method_source (~> 0.9.0)
50
- rack (2.0.6)
51
- rack-test (1.1.0)
52
- rack (>= 1.0, < 3)
53
- rails-dom-testing (2.0.3)
54
- activesupport (>= 4.2.0)
55
- nokogiri (>= 1.6)
56
- rails-html-sanitizer (1.0.4)
57
- loofah (~> 2.2, >= 2.2.2)
58
- railties (5.2.2)
59
- actionpack (= 5.2.2)
60
- activesupport (= 5.2.2)
61
- method_source
62
- rake (>= 0.8.7)
63
- thor (>= 0.19.0, < 2.0)
64
17
  rake (10.5.0)
65
- thor (0.20.3)
66
- thread_safe (0.3.6)
67
- tzinfo (1.2.5)
68
- thread_safe (~> 0.1)
69
18
 
70
19
  PLATFORMS
71
20
  ruby
72
21
 
73
22
  DEPENDENCIES
74
23
  bundler (~> 1.16)
75
- dotenv-rails
76
24
  gem-release
77
25
  news_reader_cli!
78
26
  pry
@@ -8,5 +8,5 @@ NewsReaderCli::ApiKeyValidate.new.key_validate
8
8
 
9
9
  # binding.pry
10
10
 
11
- Dotenv.load('.env')
11
+ Dotenv.load # defaul will looking for ('.env')
12
12
  NewsReaderCli::CLI.new.start
@@ -21,7 +21,6 @@ class NewsReaderCli::ApiKeyValidate
21
21
 
22
22
  Your API keys value shows invalid.
23
23
  Please check verify your API Key and type in again.
24
- To exit, type in "exit"
25
24
 
26
25
  HEREDOC
27
26
 
@@ -1,3 +1,3 @@
1
1
  module NewsReaderCli
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -6,7 +6,7 @@ require "news_reader_cli/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "news_reader_cli"
8
8
  spec.version = NewsReaderCli::VERSION
9
- spec.authors = [" Henry"]
9
+ spec.authors = ["Henry"]
10
10
  spec.email = ["hanke.liu@gmail.com"]
11
11
 
12
12
  spec.summary = %q{CLI for displaying news headlines of the day (as of 2018)}
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "rake", "~> 10.0"
37
37
  spec.add_development_dependency "pry"
38
38
  spec.add_development_dependency "gem-release"
39
+ spec.add_runtime_dependency "dotenv"
39
40
  #spec.add_development_dependency "open-uri"
40
41
  #spec.add_development_dependency "nokogiri" # won't need it for now.
41
42
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: news_reader_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - " Henry"
7
+ - Henry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dotenv
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: 'Parse API from News API for viewing 36 top US breaking news from a variety
70
84
  of publishers '
71
85
  email: