simple_tumblr 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,10 +40,20 @@ class SimpleTumblr
40
40
  end
41
41
 
42
42
  class << self
43
- def method_missing(*args)
44
- method, options = args
45
-
46
- new.respond_to?(method) ? new(options).send(method) : super
43
+ def method_missing(method, *args, &block)
44
+ instance = new
45
+
46
+ if instance.respond_to?(method)
47
+ instance.options = args.extract_options!
48
+
49
+ if instance.method(method).arity == 1
50
+ instance.send(method, args)
51
+ else
52
+ instance.send(method)
53
+ end
54
+ else
55
+ super
56
+ end
47
57
  end
48
58
  end
49
59
 
@@ -1,3 +1,3 @@
1
1
  class SimpleTumblr
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_tumblr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-09 00:00:00.000000000 Z
12
+ date: 2012-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &70121662354260 !ruby/object:Gem::Requirement
16
+ requirement: &70277556937260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.x
21
+ version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70121662354260
24
+ version_requirements: *70277556937260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: httparty
27
- requirement: &70121662353340 !ruby/object:Gem::Requirement
27
+ requirement: &70277556936840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,21 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70121662353340
36
- - !ruby/object:Gem::Dependency
37
- name: i18n
38
- requirement: &70121662352300 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *70121662352300
35
+ version_requirements: *70277556936840
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: minitest
49
- requirement: &70121662351260 !ruby/object:Gem::Requirement
38
+ requirement: &70277556936380 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ! '>='
@@ -54,10 +43,10 @@ dependencies:
54
43
  version: '0'
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *70121662351260
46
+ version_requirements: *70277556936380
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: purdytest
60
- requirement: &70121662350620 !ruby/object:Gem::Requirement
49
+ requirement: &70277556935960 !ruby/object:Gem::Requirement
61
50
  none: false
62
51
  requirements:
63
52
  - - ! '>='
@@ -65,21 +54,21 @@ dependencies:
65
54
  version: '0'
66
55
  type: :development
67
56
  prerelease: false
68
- version_requirements: *70121662350620
57
+ version_requirements: *70277556935960
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: rake
71
- requirement: &70121662349840 !ruby/object:Gem::Requirement
60
+ requirement: &70277556935460 !ruby/object:Gem::Requirement
72
61
  none: false
73
62
  requirements:
74
- - - ! '>='
63
+ - - ~>
75
64
  - !ruby/object:Gem::Version
76
- version: '0'
65
+ version: 0.8.0
77
66
  type: :development
78
67
  prerelease: false
79
- version_requirements: *70121662349840
68
+ version_requirements: *70277556935460
80
69
  - !ruby/object:Gem::Dependency
81
70
  name: vcr
82
- requirement: &70121662365120 !ruby/object:Gem::Requirement
71
+ requirement: &70277556935040 !ruby/object:Gem::Requirement
83
72
  none: false
84
73
  requirements:
85
74
  - - ! '>='
@@ -87,10 +76,10 @@ dependencies:
87
76
  version: '0'
88
77
  type: :development
89
78
  prerelease: false
90
- version_requirements: *70121662365120
79
+ version_requirements: *70277556935040
91
80
  - !ruby/object:Gem::Dependency
92
81
  name: webmock
93
- requirement: &70121662364280 !ruby/object:Gem::Requirement
82
+ requirement: &70277556934580 !ruby/object:Gem::Requirement
94
83
  none: false
95
84
  requirements:
96
85
  - - ! '>='
@@ -98,7 +87,7 @@ dependencies:
98
87
  version: '0'
99
88
  type: :development
100
89
  prerelease: false
101
- version_requirements: *70121662364280
90
+ version_requirements: *70277556934580
102
91
  description: SimpleTumblr provides a simple – ActiveRecord::Relation like – way to
103
92
  interact with the Tumblr API.
104
93
  email: uher.mario@gmail.com
@@ -131,6 +120,7 @@ rubyforge_project:
131
120
  rubygems_version: 1.8.13
132
121
  signing_key:
133
122
  specification_version: 3
134
- summary: A simple way to use the Tumblr™ API in Ruby.
123
+ summary: SimpleTumblr provides a simple ActiveRecord::Relation like way to interact
124
+ with the Tumblr API.
135
125
  test_files: []
136
126
  has_rdoc: