tumblr 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -4
  2. data/bin/tumblr +4 -4
  3. data/lib/tumblr.rb +11 -6
  4. data/tumblr.gemspec +4 -5
  5. metadata +5 -34
data/Rakefile CHANGED
@@ -4,7 +4,6 @@ This.author = "Ara T. Howard"
4
4
  This.email = "ara.t.howard@gmail.com"
5
5
  This.homepage = "http://github.com/ahoward/#{ This.lib }/tree/master"
6
6
 
7
-
8
7
  task :default do
9
8
  puts(Rake::Task.tasks.map{|task| task.name} - ['default'])
10
9
  end
@@ -89,9 +88,7 @@ task :gemspec do
89
88
  }
90
89
  end
91
90
 
92
- unless test(?e, "#{ lib }.gemspec")
93
- open("#{ lib }.gemspec", "w"){|fd| fd.puts template}
94
- end
91
+ open("#{ lib }.gemspec", "w"){|fd| fd.puts template}
95
92
  This.gemspec = "#{ lib }.gemspec"
96
93
  end
97
94
 
data/bin/tumblr CHANGED
@@ -89,13 +89,13 @@ Main {
89
89
  def parse_args
90
90
  hash = { 'json' => params['json'].value }
91
91
  argv.inject hash do |args, arg|
92
- k, v = arg.split %r/=/, 2
93
- if v[%r/^(?:file|path)?=/]
94
- file, v = v.split %r/=/, 2
92
+ k, v = arg.split(%r/=/, 2)
93
+ if v =~ %r/^(?:file|path)?=/
94
+ file, v = v.split(%r/=/, 2)
95
95
  v = v == '-' ? STDIN.read : IO.read(v)
96
96
  end
97
97
  v ||= true
98
- args.update k => v
98
+ args.update(k => v)
99
99
  end
100
100
  end
101
101
 
@@ -1,19 +1,24 @@
1
1
  #
2
+ # built-in
3
+ #
4
+ require "uri"
5
+ require "yaml"
6
+ #
2
7
  # gems
3
8
  #
9
+ begin
10
+ require 'rubygems'
11
+ rescue LoadError
12
+ nil
13
+ end
4
14
  require "main"
5
15
  require "fattr"
6
16
  require "httpclient"
7
17
  #
8
- # built-in
9
- #
10
- require "uri"
11
- require "yaml"
12
- #
13
18
  # tumblr.rb
14
19
  #
15
20
  module Tumblr
16
- Version = '2.0.0'
21
+ Version = '2.1.0'
17
22
 
18
23
  class << Tumblr
19
24
  def version() Tumblr::Version end
@@ -3,10 +3,10 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "tumblr"
6
- spec.version = "2.0.0"
6
+ spec.version = "2.1.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "tumblr"
9
- spec.description = "a command line utility and library for the excellent tumblr blogging platform"
9
+ spec.description = "description: tumblr kicks the ass"
10
10
 
11
11
  spec.files = ["bin", "bin/tumblr", "lib", "lib/tumblr.rb", "Rakefile", "README", "tumblr.gemspec"]
12
12
  spec.executables = ["tumblr"]
@@ -15,9 +15,8 @@ Gem::Specification::new do |spec|
15
15
 
16
16
  spec.has_rdoc = true
17
17
  spec.test_files = nil
18
- spec.add_dependency 'fattr'
19
- spec.add_dependency 'main'
20
- spec.add_dependency 'httpclient'
18
+ #spec.add_dependency 'lib', '>= version'
19
+ #spec.add_dependency 'fattr'
21
20
 
22
21
  spec.extensions.push(*[])
23
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tumblr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
@@ -9,40 +9,11 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-14 00:00:00 -06:00
12
+ date: 2009-11-05 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: fattr
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: main
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: httpclient
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
45
- description: a command line utility and library for the excellent tumblr blogging platform
14
+ dependencies: []
15
+
16
+ description: "description: tumblr kicks the ass"
46
17
  email: ara.t.howard@gmail.com
47
18
  executables:
48
19
  - tumblr