twterm 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: 52ffcecd46a9f09aacf0db6c809ce6f5fe71e874
4
- data.tar.gz: f1340022b9fd1628be5bba96839321d381fdc94d
3
+ metadata.gz: 4c12295e3d9afd6d5530f4bef0a7ce04303534dd
4
+ data.tar.gz: b510d4cbde776eea8f84f841ed4b74a620b03d97
5
5
  SHA512:
6
- metadata.gz: 3b0732ac89eb6cdf4fc7475f8a47bbcdca9906cba71bffb3cad63ccbbaa7b298a9000ba82efa1e6353e776e8bd41b833e8343b8c63db495333263bf2bed7917c
7
- data.tar.gz: 0451fec8a057f15b113785797673117cb99ca13eb25b7605af87657eeb2ae7f6048fb3f4ab7740ebffa2a0bf7e45ab2254b605cc1fe39228aaf2681532f0f1e6
6
+ metadata.gz: eba83dd74c4a3ddb83f3d6bb926a88251dc705868dad7a7ceee16f89bb13a6792cd293110611561c7cb7437df8f7c4dca517a47095a458c329299c90c75caf88
7
+ data.tar.gz: 89bb48da13afb9588dec0a4fdf40ffc2280487957e0326fe2eb7bf17d96cc395aad131333ea7e992951fdd335ec09af1c5b73fd82c3d201bb82888df7fc91a7d
data/lib/twterm/app.rb CHANGED
@@ -5,7 +5,7 @@ module Twterm
5
5
  DATA_DIR = "#{ENV['HOME']}/.twterm"
6
6
 
7
7
  def initialize
8
- Dir.mkdir(DATA_DIR, 700) unless File.directory?(DATA_DIR)
8
+ Dir.mkdir(DATA_DIR, 0700) unless File.directory?(DATA_DIR)
9
9
 
10
10
  Config.load
11
11
  Auth.authenticate_user if Config[:screen_name].nil?
data/lib/twterm/config.rb CHANGED
@@ -22,13 +22,8 @@ module Twterm
22
22
  private
23
23
 
24
24
  def save
25
- begin
26
- file = File.open(CONFIG_FILE, 'w', 0600)
27
- file.write @config.to_yaml
28
- rescue
29
- puts 'exception raised'
30
- ensure
31
- file.close
25
+ File.open(CONFIG_FILE, 'w', 0600) do |f|
26
+ f.write @config.to_yaml
32
27
  end
33
28
  end
34
29
 
@@ -1,3 +1,3 @@
1
1
  module Twterm
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Kameoka