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 +0 -2
- data/.travis.yml +5 -4
- data/lib/twurl/rcfile.rb +1 -1
- data/lib/twurl/version.rb +2 -2
- data/test/rcfile_test.rb +6 -0
- data/test/test_helper.rb +3 -1
- metadata +3 -3
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/lib/twurl/rcfile.rb
CHANGED
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
|
-
|
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::
|
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
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.
|
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-
|
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.
|
165
|
+
rubygems_version: 1.8.23
|
166
166
|
signing_key:
|
167
167
|
specification_version: 3
|
168
168
|
summary: Curl for the Twitter API
|