fuck_facebook 0.1.1 → 0.1.2

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: '059a4dd680f130343508367f8a4d661ea3de1ef4bd74fa6b700d9ddd323e41c4'
4
- data.tar.gz: 68d9b31fcc64272a7c7df41764ffda58c4066af19fc7132346e7dcfc7ab0ceaa
3
+ metadata.gz: 0f671ef4b3c5a7c3f2e6588e97c23047de204f309c06b0d563e239ad4f654ca8
4
+ data.tar.gz: 94d1962dbc7d824bca10f51fb08f3388cd33f482f41f49afeed09fd80b77a325
5
5
  SHA512:
6
- metadata.gz: c09a4393cab84897c62bd0c980dd8e2a7315f94e34fa181bd2d0f43346c5ecfd9e9e04fd579e86095633cb8d79a93f908a004a67673dccda7c1751ff0f40e36c
7
- data.tar.gz: d3f9ad82007908d96c2d3a96d85fb7436af46643bc4e7ca08341f7e93f458bbd9e41248c92caa06fbf817fd08b43d0e3fc8978bec62c0ada6e267d6dfee4b555
6
+ metadata.gz: f2c7745e2ed0559bce742015e66e4203e254404badf0402a57deef1289496f6775e2c73766968779630a3c3a08a19ba270a8fd34c7c4b5846c1227d29074fcf6
7
+ data.tar.gz: ae7dcdd2c32cac29858da002a0a13c16eaeff59bbe2e1734732aeee7022128d461ac12f8aa564e23f67ce4501c9d722a8dc324869b44d14ee62f100e80a711aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuck_facebook (0.1.1)
4
+ fuck_facebook (0.1.2)
5
5
  activesupport (~> 6.1)
6
6
  highline (~> 2.0)
7
7
  mail (~> 2.7)
data/bin/fuck-facebook CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'optparse'
4
4
  require 'mail'
5
- require 'pry'
6
5
 
7
6
  require_relative '../src/facebook_connection'
8
7
  require_relative '../src/config'
@@ -1,3 +1,3 @@
1
1
  module FuckFacebook
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
data/src/config.rb CHANGED
@@ -1,9 +1,10 @@
1
1
  require 'yaml'
2
2
 
3
3
  class Config
4
- CONFIG = YAML.load_file("#{ENV['HOME']}/.config/fuck-facebook/config.yaml", symbolize_names: true)
4
+ CONFIG = YAML.load_file("#{ENV['HOME']}/.config/fuck-facebook/config.yaml")
5
5
 
6
6
  def self.option(*path)
7
- CONFIG.dig(*path)
7
+ path_strings = path.map(&:to_s)
8
+ CONFIG.dig(*path_strings)
8
9
  end
9
10
  end
data/src/storage.rb CHANGED
@@ -29,7 +29,7 @@ class Storage
29
29
  def self.storage
30
30
  create_storage_file_if_not_exists!
31
31
 
32
- YAML.load_file(STORAGE_FILE_PATH, symbolize_names: true)
32
+ YAML.load_file(STORAGE_FILE_PATH)
33
33
  end
34
34
 
35
35
  def self.create_storage_file_if_not_exists!
data/src/xpaths.rb CHANGED
@@ -64,16 +64,17 @@ class Xpaths
64
64
  end
65
65
 
66
66
  def for(*path_elements)
67
- result = XPATHS.dig(*path_elements)
67
+ path_elements_strings = path_elements.map(&:to_s)
68
+ result = XPATHS.dig(*path_elements_strings)
68
69
 
69
- raise 'Could not find xpath' if result.empty?
70
+ raise 'Could not find xpath' if result.nil? || result.empty?
70
71
 
71
72
  result
72
73
  end
73
74
 
74
75
  private_class_method def self.xpaths_from_file
75
76
  xpaths_file = File.join(File.dirname(__FILE__), '../xpaths.yaml')
76
- YAML.load_file(xpaths_file, symbolize_names: true)
77
+ YAML.load_file(xpaths_file)
77
78
  end
78
79
 
79
80
  XPATHS = xpaths_from_file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuck_facebook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keeyan Nejad