awl_tags_twitter 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: 970518562fbcd0bb5e99e03c2e3a8cfc886eae7e
4
- data.tar.gz: 6864b327ebae4e75c8ea6b1b1b78ad9811a3ca3c
3
+ metadata.gz: 699e32db1ce6a5a0fb3513a83f566664914cd745
4
+ data.tar.gz: ce64b69cbb659c7c7c6ab782ef8d3a6a76dcd456
5
5
  SHA512:
6
- metadata.gz: a20f8c53c95345d738f47e33a189cab3676b4b44b8c9d0cc4068ba9c92e9c4acc6fa06d93e66e54cab16896a4636f42da2323cd15489ab1d3f72e472144ca160
7
- data.tar.gz: ac456282d79e9009d501e797e5b5dd59347df65206574b2b2a3601d6023f3da840a9182b0dec105e077644a35f2f80459a51fc04552a7854fbb1435389667c11
6
+ metadata.gz: 0947922017cc44024c0fd38a8181c8b49102e4db2a2a6c9a18aa9bf4db1951b5f04694a51d74db6995d7a6eae87b3c263f02a2e31d4dd9e2ae1baa16cd81be84
7
+ data.tar.gz: f4d691833e9e31143cb871bd30913c2b99dea5fccfeafb0c025cad2b046f7fa5a94111e8f9fbfd60aca9408322afe2d682833e854af19235f7d24b746a8398dc
data/bin/awl_tags_twitter CHANGED
@@ -20,6 +20,7 @@ command :list do |c|
20
20
  c.option '--basic', 'Display posts with tags'
21
21
  c.option '--complex', 'Display posts with tags split between posts'
22
22
  c.action do |_args, options|
23
+ fail 'provide --basic or --complex' unless options.basic || options.complex
23
24
  scraper = Scraper.new
24
25
  scraper.retrieve_posts
25
26
  if options.basic
@@ -1,5 +1,5 @@
1
1
  # Global Version for AwlTagsTwitter
2
2
  class AwlTagsTwitter
3
3
  # Global Version for AwlTagsTwitter
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
data/lib/tracker.rb CHANGED
@@ -13,7 +13,7 @@ class Tracker
13
13
  Contract C::None => C::ArrayOf[String]
14
14
  # reads articles from the ./tmp/articles.json file
15
15
  def read_articles
16
- file = JSON.load(File.read("#{Dir.home}/awl_articles.json"))
16
+ file = JSON.load(File.read("#{Dir.home}/.awl_articles.json"))
17
17
  @articles = file['articles']
18
18
 
19
19
  rescue JSON::ParserError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awl_tags_twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Ellis