twurl 0.6.6 → 0.6.7

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.
data/.gitignore CHANGED
@@ -5,7 +5,6 @@
5
5
  *.tmproject
6
6
  *.un~
7
7
  *~
8
- .DS_Store
9
8
  .Spotlight-V100
10
9
  .Trashes
11
10
  ._*
@@ -22,7 +21,6 @@ Gemfile.lock
22
21
  Icon?
23
22
  InstalledFiles
24
23
  Session.vim
25
- Thumbs.db
26
24
  \#*\#
27
25
  _yardoc
28
26
  auto-save-list
data/.travis.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - rbx-18mode
4
+ - rbx-19mode
5
+ - jruby-18mode
6
+ - jruby-19mode
3
7
  - 1.8.7
4
8
  - 1.9.2
5
9
  - 1.9.3
6
- - jruby-18mode
7
- - jruby-19mode
8
- - rbx-18mode
9
- - rbx-19mode
10
+ - ruby-head
data/lib/twurl/rcfile.rb CHANGED
@@ -35,7 +35,7 @@ module Twurl
35
35
  end
36
36
 
37
37
  def save
38
- File.open(self.class.file_path, 'w') do |rcfile|
38
+ File.open(self.class.file_path, File::RDWR|File::CREAT, 0600) do |rcfile|
39
39
  rcfile.write data.to_yaml
40
40
  end
41
41
  end
data/lib/twurl/version.rb CHANGED
@@ -2,9 +2,9 @@ module Twurl
2
2
  module VERSION
3
3
  MAJOR = '0' unless defined? MAJOR
4
4
  MINOR = '6' unless defined? MINOR
5
- TINY = '6' unless defined? TINY
5
+ PATCH = '7' unless defined? PATCH
6
6
  BETA = nil unless defined? BETA # Time.now.to_i.to_s
7
7
  end
8
8
 
9
- Version = [VERSION::MAJOR, VERSION::MINOR, VERSION::TINY, VERSION::BETA].compact * '.'
9
+ Version = [VERSION::MAJOR, VERSION::MINOR, VERSION::PATCH, VERSION::BETA].compact * '.'
10
10
  end
data/test/rcfile_test.rb CHANGED
@@ -128,6 +128,12 @@ class Twurl::RCFile::SavingTest < MiniTest::Unit::TestCase
128
128
  assert rcfile_exists?
129
129
  end
130
130
 
131
+ def test_file_is_not_world_readable
132
+ client = Twurl::OAuthClient.test_exemplar
133
+ rcfile << client
134
+ assert_equal 33152, File.stat(Twurl::RCFile.file_path).mode
135
+ end
136
+
131
137
  private
132
138
  def rcfile_exists?
133
139
  File.exists?(Twurl::RCFile.file_path)
data/test/test_helper.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  unless ENV['CI']
2
2
  require 'simplecov'
3
- SimpleCov.start
3
+ SimpleCov.start do
4
+ add_filter 'test'
5
+ end
4
6
  end
5
7
  require 'twurl'
6
8
  require 'minitest/autorun'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twurl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-12 00:00:00.000000000 Z
13
+ date: 2012-04-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oauth
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: 1.3.6
163
163
  requirements: []
164
164
  rubyforge_project: twurl
165
- rubygems_version: 1.8.18
165
+ rubygems_version: 1.8.23
166
166
  signing_key:
167
167
  specification_version: 3
168
168
  summary: Curl for the Twitter API