thunderbird 0.1.1 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06e03c762e9bef79479708b14604743fe03e509a742ecb60abb5302a2fd16788
4
- data.tar.gz: 76d815453006b03948af39ac113ad07db3783d16904a39f71ee00c53fff2d44d
3
+ metadata.gz: 15259f38aecc30a09db01eb75a1920f3fffa56f7a4031f85d2fbd4e5a4908304
4
+ data.tar.gz: 65a256624ca2093e15c2afec842b1fa213a78b3f42643e98eb16de5e27539ce5
5
5
  SHA512:
6
- metadata.gz: a61253e0d2559831f38f39d83fe5fa091846930f8b6ca6a6fe5317bb1aeada74e2cb3a480c39a604c85e648801a95904fcb6aeb9c9b896049214c76db5771b74
7
- data.tar.gz: 4a5b2825eef339f31e2b9d33ced437e38430711478286d2eb081415648dab451fe547ffa159b97bcdfbe32b16b198b281d9b0e9bff4767bdb32539da9267c566
6
+ metadata.gz: dfaebe8b631f430f3f8bcfe71a9b0cfee67f31f3e2ff4eb76cda45125afd2aabc6b937320c2eae9e1888caf5be6cd6e4ef91c797c8a7ae077f772eed10253a43
7
+ data.tar.gz: a53bc319ba224150676a5f0322b8c853b7c5e3f1cde1578cf4a9e208693ea85eb29f3d1075e3da8ad99dbd8630eb4691fd0b7afbee457b2b85e7076e03444426
data/.rubocop.yml CHANGED
@@ -12,12 +12,20 @@ Gemspec/DateAssignment:
12
12
  Gemspec/RequireMFA:
13
13
  Enabled: true
14
14
 
15
+ Layout/DotPosition:
16
+ Enabled: true
17
+ EnforcedStyle: trailing
18
+
15
19
  Layout/LineEndStringConcatenationIndentation:
16
20
  Enabled: true
17
21
 
18
22
  Layout/SpaceBeforeBrackets:
19
23
  Enabled: true
20
24
 
25
+ Layout/SpaceInsideHashLiteralBraces:
26
+ Enabled: true
27
+ EnforcedStyle: no_space
28
+
21
29
  Lint/AmbiguousAssignment:
22
30
  Enabled: true
23
31
 
@@ -179,3 +187,7 @@ Style/SwapValues:
179
187
 
180
188
  Layout/LineLength:
181
189
  Max: 120
190
+
191
+ Metrics/BlockLength:
192
+ Exclude:
193
+ - "spec/**/*"
data/Gemfile CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in thunderbird.gemspec
6
5
  gemspec
7
6
 
7
+ gem "aruba", "~> 2.0"
8
+ gem "pry-byebug", "~> 3.9"
8
9
  gem "rake", "~> 13.0"
9
-
10
10
  gem "rspec", "~> 3.0"
11
-
12
11
  gem "rubocop", "~> 1.21"
12
+ gem "simplecov", "~> 0.21"
@@ -15,7 +15,7 @@ class Thunderbird
15
15
  end
16
16
 
17
17
  def default
18
- Thunderbird::Profiles.new.profile_for_path(entries[:Default])
18
+ Profiles.new.profile_for_path(entries[:Default])
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ class Thunderbird
15
15
  end
16
16
 
17
17
  def set_up
18
- return if path_elements.empty?
18
+ return false if path_elements.empty?
19
19
 
20
20
  return true if !in_subdirectory?
21
21
 
@@ -26,7 +26,7 @@ class Thunderbird
26
26
  if in_subdirectory?
27
27
  File.join(subdirectory.full_path, folder_name)
28
28
  else
29
- folder_name
29
+ path
30
30
  end
31
31
  end
32
32
 
@@ -35,7 +35,7 @@ class Thunderbird
35
35
  end
36
36
 
37
37
  def msf_path
38
- "#{path}.msf"
38
+ "#{full_path}.msf"
39
39
  end
40
40
 
41
41
  def msf_exists?
@@ -51,7 +51,7 @@ class Thunderbird
51
51
  def subdirectory
52
52
  return nil if !in_subdirectory?
53
53
 
54
- Thunderbird::Subdirectory.new(profile, subdirectory_path)
54
+ Subdirectory.new(profile, subdirectory_path)
55
55
  end
56
56
 
57
57
  def path_elements
@@ -3,7 +3,7 @@
3
3
  class Thunderbird
4
4
  module Version
5
5
  MAJOR = 0
6
- MINOR = 1
6
+ MINOR = 2
7
7
  REVISION = 1
8
8
  PRE = nil
9
9
  VERSION = [MAJOR, MINOR, REVISION, PRE].compact.map(&:to_s).join(".")
data/lib/thunderbird.rb CHANGED
@@ -1,7 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "os"
4
- require_relative "thunderbird/version"
4
+
5
+ # Require all files so they get counted in coverage
6
+ Dir.chdir(__dir__) do
7
+ glob = File.join("**", "*.rb")
8
+ Dir[glob].sort.each { |f| require_relative f }
9
+ end
5
10
 
6
11
  # Root information
7
12
  class Thunderbird
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thunderbird
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Yates
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-06 00:00:00.000000000 Z
11
+ date: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os