smirk 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/smirk/client.rb +1 -1
- data/lib/try.rb +26 -0
- metadata +34 -38
data/lib/smirk/client.rb
CHANGED
data/lib/try.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'smirk'
|
3
|
+
|
4
|
+
def test
|
5
|
+
smug = Smirk::Client.new("info@studiocastillero.com", "freestyle")
|
6
|
+
|
7
|
+
smug.albums(true).each do |a|
|
8
|
+
puts a.title
|
9
|
+
# puts a.id
|
10
|
+
# puts [a.id, a.key].join(" - ")
|
11
|
+
# puts a.images(true).map(&:filename).join(", ")
|
12
|
+
# if a.respond_to? :highlight
|
13
|
+
# puts a.highlight[:key]
|
14
|
+
# end
|
15
|
+
# puts a.inspect
|
16
|
+
end
|
17
|
+
|
18
|
+
puts smug.find_image_exif("519912731", "pNN8q").model
|
19
|
+
puts smug.find_album(10992869, "9x9Xe").title
|
20
|
+
|
21
|
+
puts smug.categories.map(&:nicename).join(", ")
|
22
|
+
ensure
|
23
|
+
smug.logout
|
24
|
+
end
|
25
|
+
|
26
|
+
test
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smirk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
8
|
+
- 2
|
7
9
|
- 1
|
8
|
-
|
9
|
-
version: 0.1.0
|
10
|
+
version: 0.2.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- James Miller
|
@@ -14,68 +15,60 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-05-18 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
name: shoulda
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
version: "0"
|
30
|
-
type: :development
|
31
|
-
version_requirements: *id001
|
32
21
|
- !ruby/object:Gem::Dependency
|
33
22
|
name: rest-client
|
34
23
|
prerelease: false
|
35
|
-
requirement: &
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
36
26
|
requirements:
|
37
27
|
- - ">="
|
38
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 1
|
39
30
|
segments:
|
40
31
|
- 1
|
41
|
-
-
|
42
|
-
-
|
43
|
-
version: 1.
|
32
|
+
- 5
|
33
|
+
- 1
|
34
|
+
version: 1.5.1
|
44
35
|
type: :runtime
|
45
|
-
version_requirements: *
|
36
|
+
version_requirements: *id001
|
46
37
|
- !ruby/object:Gem::Dependency
|
47
38
|
name: json
|
48
39
|
prerelease: false
|
49
|
-
requirement: &
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
50
42
|
requirements:
|
51
43
|
- - ">="
|
52
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 1
|
53
46
|
segments:
|
54
47
|
- 1
|
55
|
-
-
|
56
|
-
-
|
57
|
-
version: 1.
|
48
|
+
- 4
|
49
|
+
- 3
|
50
|
+
version: 1.4.3
|
58
51
|
type: :runtime
|
59
|
-
version_requirements: *
|
52
|
+
version_requirements: *id002
|
60
53
|
description: Smirk is a simple Ruby wrapper for the SmugMug 1.2.2 API specification. It currently supports initiating a session, finding albums, images, and categories.
|
61
54
|
email: james@jk-tech.com
|
62
55
|
executables: []
|
63
56
|
|
64
57
|
extensions: []
|
65
58
|
|
66
|
-
extra_rdoc_files:
|
67
|
-
|
68
|
-
- README.rdoc
|
59
|
+
extra_rdoc_files: []
|
60
|
+
|
69
61
|
files:
|
70
|
-
- LICENSE
|
71
62
|
- README.rdoc
|
72
63
|
- Rakefile
|
64
|
+
- LICENSE
|
73
65
|
- VERSION
|
74
|
-
- lib/smirk.rb
|
75
|
-
- lib/smirk/client.rb
|
76
66
|
- lib/smirk/album.rb
|
77
|
-
- lib/smirk/image.rb
|
78
67
|
- lib/smirk/category.rb
|
68
|
+
- lib/smirk/client.rb
|
69
|
+
- lib/smirk/image.rb
|
70
|
+
- lib/smirk.rb
|
71
|
+
- lib/try.rb
|
79
72
|
- test/helper.rb
|
80
73
|
- test/test_smirk.rb
|
81
74
|
has_rdoc: true
|
@@ -83,31 +76,34 @@ homepage: http://github.com/bensie/smirk
|
|
83
76
|
licenses: []
|
84
77
|
|
85
78
|
post_install_message:
|
86
|
-
rdoc_options:
|
87
|
-
|
79
|
+
rdoc_options: []
|
80
|
+
|
88
81
|
require_paths:
|
89
82
|
- lib
|
90
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
91
85
|
requirements:
|
92
86
|
- - ">="
|
93
87
|
- !ruby/object:Gem::Version
|
88
|
+
hash: 3
|
94
89
|
segments:
|
95
90
|
- 0
|
96
91
|
version: "0"
|
97
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
98
94
|
requirements:
|
99
95
|
- - ">="
|
100
96
|
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
101
98
|
segments:
|
102
99
|
- 0
|
103
100
|
version: "0"
|
104
101
|
requirements: []
|
105
102
|
|
106
103
|
rubyforge_project:
|
107
|
-
rubygems_version: 1.3.
|
104
|
+
rubygems_version: 1.3.7
|
108
105
|
signing_key:
|
109
106
|
specification_version: 3
|
110
107
|
summary: Ruby wrapper for the SmugMug API
|
111
|
-
test_files:
|
112
|
-
|
113
|
-
- test/test_smirk.rb
|
108
|
+
test_files: []
|
109
|
+
|