twurl 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,7 +1,9 @@
1
+ language: ruby
1
2
  rvm:
2
3
  - 1.8.7
3
4
  - 1.9.2
4
5
  - 1.9.3
5
- - jruby
6
- - rbx
7
- - ree
6
+ - jruby-18mode
7
+ - jruby-19mode
8
+ - rbx-18mode
9
+ - rbx-19mode
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  platforms :jruby do
4
4
  gem 'jruby-openssl', '~> 0.7'
data/INSTALL CHANGED
@@ -15,4 +15,4 @@
15
15
  | Dependencies |
16
16
  +--------------+
17
17
 
18
- sudo gem i oauth
18
+ sudo gem i oauth
data/README CHANGED
@@ -116,4 +116,4 @@ Notice that one of those consumer keys is marked as the default. To change the d
116
116
  +--------------+
117
117
 
118
118
  Marcel Molina <marcel@twitter.com> / @noradio
119
- Erick Michaels-Ober / @sferik
119
+ Erik Michaels-Ober / @sferik
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env rake
2
2
  require 'rake/testtask'
3
3
  require 'rubygems/package_task'
4
+ require 'bundler'
4
5
 
5
6
  task :default => :test
6
7
 
@@ -9,25 +10,4 @@ Rake::TestTask.new do |test|
9
10
  test.verbose = true
10
11
  end
11
12
 
12
- namespace :dist do
13
- spec = Gem::Specification.load('twurl.gemspec')
14
-
15
- Gem::PackageTask.new(spec) do |pkg|
16
- pkg.need_tar_gz = true
17
- pkg.package_files.include('{lib,bin,test}/**/*')
18
- pkg.package_files.include('README')
19
- pkg.package_files.include('COPYING')
20
- pkg.package_files.include('INSTALL')
21
- pkg.package_files.include('Rakefile')
22
- end
23
-
24
- task :spec do
25
- puts spec.to_ruby
26
- end
27
-
28
- desc "Unpack current version of library into the twitter.com vendor directory"
29
- task :unpack_to_vendor => :repackage do
30
- cd 'pkg'
31
- system("gem unpack '#{spec.name}-#{spec.version}.gem' --target=$TWITTER/vendor/gems")
32
- end
33
- end
13
+ Bundler::GemHelper.install_tasks
data/bin/twurl CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  require File.dirname(__FILE__) + '/../lib/twurl'
3
3
 
4
- Twurl::CLI.run(ARGV)
4
+ Twurl::CLI.run(ARGV)
@@ -13,4 +13,4 @@ module Twurl
13
13
  @options = options
14
14
  end
15
15
  end
16
- end
16
+ end
@@ -19,4 +19,4 @@ module Twurl
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -22,4 +22,4 @@ module Twurl
22
22
  end
23
23
  end
24
24
  end
25
- end
25
+ end
@@ -10,4 +10,4 @@ module Twurl
10
10
  raise Exception, AUTHORIZATION_FAILED_MESSAGE
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -19,4 +19,4 @@ module Twurl
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
data/lib/twurl/rcfile.rb CHANGED
@@ -1,9 +1,14 @@
1
1
  module Twurl
2
2
  class RCFile
3
3
  FILE = '.twurlrc'
4
- @directory ||= ENV['HOME']
5
4
  class << self
6
- attr_accessor :directory
5
+ def directory
6
+ @@directory ||= File.expand_path('~')
7
+ end
8
+
9
+ def directory=(dir)
10
+ @@directory = dir
11
+ end
7
12
 
8
13
  def file_path
9
14
  File.join(directory, FILE)
@@ -90,4 +95,4 @@ module Twurl
90
95
  save
91
96
  end
92
97
  end
93
- end
98
+ end
data/lib/twurl/version.rb CHANGED
@@ -2,7 +2,7 @@ module Twurl
2
2
  module VERSION
3
3
  MAJOR = '0' unless defined? MAJOR
4
4
  MINOR = '6' unless defined? MINOR
5
- TINY = '5' unless defined? TINY
5
+ TINY = '6' unless defined? TINY
6
6
  BETA = nil unless defined? BETA # Time.now.to_i.to_s
7
7
  end
8
8
 
data/test/test_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
- $:.unshift File.dirname(__FILE__) + '/../lib'
2
- require 'rubygems'
3
- require 'simplecov'
4
- SimpleCov.start
1
+ unless ENV['CI']
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+ end
5
5
  require 'twurl'
6
6
  require 'minitest/autorun'
7
7
  require 'rr'
metadata CHANGED
@@ -1,112 +1,109 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: twurl
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.6
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 5
10
- version: 0.6.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Marcel Molina
14
9
  - Erik Michaels-Ober
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-10-23 00:00:00 -07:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2012-03-12 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: oauth
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
19
+ requirements:
28
20
  - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- - 4
34
- version: "0.4"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.4'
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rake
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: '0.4'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rake
33
+ requirement: !ruby/object:Gem::Requirement
41
34
  none: false
42
- requirements:
35
+ requirements:
43
36
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 27
46
- segments:
47
- - 0
48
- - 8
49
- version: "0.8"
37
+ - !ruby/object:Gem::Version
38
+ version: '0.8'
50
39
  type: :development
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: rr
54
40
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
56
42
  none: false
57
- requirements:
43
+ requirements:
58
44
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 15
61
- segments:
62
- - 1
63
- - 0
64
- version: "1.0"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.8'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rr
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
65
55
  type: :development
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: simplecov
69
56
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: !ruby/object:Gem::Requirement
71
58
  none: false
72
- requirements:
59
+ requirements:
73
60
  - - ~>
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- - 4
79
- version: "0.4"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: simplecov
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: '0.4'
80
71
  type: :development
81
- version_requirements: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: minitest
84
72
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: '0.4'
79
+ - !ruby/object:Gem::Dependency
80
+ name: minitest
81
+ requirement: !ruby/object:Gem::Requirement
86
82
  none: false
87
- requirements:
83
+ requirements:
88
84
  - - ~>
89
- - !ruby/object:Gem::Version
90
- hash: 9
91
- segments:
92
- - 2
93
- - 5
94
- version: "2.5"
85
+ - !ruby/object:Gem::Version
86
+ version: '2.5'
95
87
  type: :development
96
- version_requirements: *id005
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: '2.5'
97
95
  description: Curl for the Twitter API
98
- email:
96
+ email:
99
97
  - marcel@twitter.com
100
- executables:
98
+ executables:
101
99
  - twurl
102
100
  extensions: []
103
-
104
- extra_rdoc_files:
101
+ extra_rdoc_files:
105
102
  - CHANGELOG
106
103
  - COPYING
107
104
  - INSTALL
108
105
  - README
109
- files:
106
+ files:
110
107
  - .gemtest
111
108
  - .gitignore
112
109
  - .travis.yml
@@ -139,48 +136,37 @@ files:
139
136
  - test/request_controller_test.rb
140
137
  - test/test_helper.rb
141
138
  - twurl.gemspec
142
- has_rdoc: true
143
139
  homepage: http://github.com/marcel/twurl
144
140
  licenses: []
145
-
146
141
  post_install_message:
147
- rdoc_options:
142
+ rdoc_options:
148
143
  - --title
149
144
  - twurl -- OAuth-enabled curl for the Twitter API
150
145
  - --main
151
146
  - README
152
147
  - --line-numbers
153
148
  - --inline-source
154
- require_paths:
149
+ require_paths:
155
150
  - lib
156
- required_ruby_version: !ruby/object:Gem::Requirement
151
+ required_ruby_version: !ruby/object:Gem::Requirement
157
152
  none: false
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- hash: 3
162
- segments:
163
- - 0
164
- version: "0"
165
- required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ! '>='
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
158
  none: false
167
- requirements:
168
- - - ">="
169
- - !ruby/object:Gem::Version
170
- hash: 23
171
- segments:
172
- - 1
173
- - 3
174
- - 6
159
+ requirements:
160
+ - - ! '>='
161
+ - !ruby/object:Gem::Version
175
162
  version: 1.3.6
176
163
  requirements: []
177
-
178
164
  rubyforge_project: twurl
179
- rubygems_version: 1.5.0
165
+ rubygems_version: 1.8.18
180
166
  signing_key:
181
167
  specification_version: 3
182
168
  summary: Curl for the Twitter API
183
- test_files:
169
+ test_files:
184
170
  - test/account_information_controller_test.rb
185
171
  - test/alias_controller_test.rb
186
172
  - test/authorization_controller_test.rb
@@ -191,3 +177,4 @@ test_files:
191
177
  - test/rcfile_test.rb
192
178
  - test/request_controller_test.rb
193
179
  - test/test_helper.rb
180
+ has_rdoc: