bresson 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bresson/image_reference.rb +6 -1
- data/lib/bresson/version.rb +1 -1
- metadata +39 -60
@@ -1,16 +1,21 @@
|
|
1
1
|
module Bresson
|
2
2
|
class ImageReference
|
3
|
-
attr_accessor :item, :link
|
3
|
+
attr_accessor :item, :link, :legend
|
4
4
|
|
5
5
|
def initialize args
|
6
6
|
@item = eval "Bresson::#{args[:source]}.new"
|
7
7
|
@link = args[:link]
|
8
|
+
@legend = args[:legend]
|
8
9
|
end
|
9
10
|
|
10
11
|
def method_missing name, *args
|
11
12
|
eval "@item.#{name}(args)"
|
12
13
|
end
|
13
14
|
|
15
|
+
def thumb
|
16
|
+
@link.split(".com/").join(".com/thumb/")
|
17
|
+
end
|
18
|
+
|
14
19
|
def to_s
|
15
20
|
'{"reference":"upload","source":"'+@item.class.to_s.split('::').last+'","link":"'+@link+'"}'
|
16
21
|
end
|
data/lib/bresson/version.rb
CHANGED
metadata
CHANGED
@@ -1,60 +1,48 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bresson
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
version: 0.0.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.6
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Christian Mortaro
|
13
9
|
- Nicolas Iensen
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-11-09 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: flickraw
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &27205968 !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
- 0
|
31
|
-
version: "0"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
32
23
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rspec
|
36
24
|
prerelease: false
|
37
|
-
|
25
|
+
version_requirements: *27205968
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rspec
|
28
|
+
requirement: &27205716 !ruby/object:Gem::Requirement
|
38
29
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
- 0
|
44
|
-
version: "0"
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
45
34
|
type: :development
|
46
|
-
|
47
|
-
|
48
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *27205716
|
37
|
+
description: Abstracts the methods from different image services, like Flickr and
|
38
|
+
Picasa
|
39
|
+
email:
|
49
40
|
- christian@quavio.com.br
|
50
41
|
- nicolas@quavio.com.br
|
51
42
|
executables: []
|
52
|
-
|
53
43
|
extensions: []
|
54
|
-
|
55
44
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
45
|
+
files:
|
58
46
|
- .gitignore
|
59
47
|
- .rspec
|
60
48
|
- Gemfile
|
@@ -71,37 +59,28 @@ files:
|
|
71
59
|
- lib/bresson/version.rb
|
72
60
|
- spec/bresson/image_reference_spec.rb
|
73
61
|
- spec/spec_helper.rb
|
74
|
-
has_rdoc: true
|
75
62
|
homepage: https://github.com/quavio/bresson
|
76
63
|
licenses: []
|
77
|
-
|
78
64
|
post_install_message:
|
79
65
|
rdoc_options: []
|
80
|
-
|
81
|
-
require_paths:
|
66
|
+
require_paths:
|
82
67
|
- lib
|
83
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
69
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
version: "0"
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
75
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
- 0
|
98
|
-
version: "0"
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
99
80
|
requirements: []
|
100
|
-
|
101
81
|
rubyforge_project: bresson
|
102
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 1.8.16
|
103
83
|
signing_key:
|
104
84
|
specification_version: 3
|
105
85
|
summary: Single interface to manipulate images from 3rd party services
|
106
86
|
test_files: []
|
107
|
-
|