filetter 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  Rakefile )
26
26
  s.executables = ["filetter"]
27
27
  s.add_dependency("configatron", ">= 2.2.2")
28
- s.add_dependency("rubytter", ">= 0.4.5")
28
+ s.add_dependency("rubytter", ">= 0.4.6")
29
29
  s.add_dependency("rflickr", ">= 2006.02.01")
30
30
  s.add_dependency("highline", ">= 1.5.0")
31
31
  s.author = 'jugyo'
@@ -1,4 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module Filetter
3
- VERSION = '0.2.6'
3
+ VERSION = '0.2.7'
4
4
  end
data/lib/modes/twitter.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
-
3
2
  require 'rubytter'
4
3
 
5
4
  if config.twitter.login.empty? || config.twitter.password.empty?
@@ -8,7 +7,10 @@ if config.twitter.login.empty? || config.twitter.password.empty?
8
7
  end
9
8
 
10
9
  module Filetter
11
- rubytter = Rubytter.new(config.twitter.login, config.twitter.password)
10
+ rubytter = Rubytter.new(config.twitter.login, config.twitter.password, :header => {
11
+ 'User-Agent' => "Filetter/#{VERSION} (http://wiki.github.com/jugyo/filetter)"
12
+ })
13
+
12
14
  add_hook :create do |files, event|
13
15
  files.each do |file|
14
16
  file_name = File.basename(file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filetter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.5
33
+ version: 0.4.6
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rflickr