smirk 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -45
- data/lib/smirk/image.rb +7 -2
- metadata +11 -14
- data/VERSION +0 -1
- data/test/helper.rb +0 -10
- data/test/test_smirk.rb +0 -4
data/Rakefile
CHANGED
@@ -1,25 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "smirk"
|
8
|
-
gem.summary = %Q{Ruby wrapper for the SmugMug API}
|
9
|
-
gem.description = %Q{Smirk is a simple ruby wrapper for the SmugMug 1.2.2 API specification. It currently supports initiating a session and getting all album information.}
|
10
|
-
gem.email = "james@jk-tech.com"
|
11
|
-
gem.homepage = "http://github.com/bensie/smirk"
|
12
|
-
gem.authors = ["James Miller"]
|
13
|
-
gem.add_development_dependency "shoulda", ">= 0"
|
14
|
-
gem.add_dependency "rest-client", '~> 1.2.0'
|
15
|
-
gem.add_dependency "json", '~> 1.2.0'
|
16
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
|
-
end
|
18
|
-
Jeweler::GemcutterTasks.new
|
19
|
-
rescue LoadError
|
20
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
21
|
-
end
|
22
|
-
|
23
4
|
require 'rake/testtask'
|
24
5
|
Rake::TestTask.new(:test) do |test|
|
25
6
|
test.libs << 'lib' << 'test'
|
@@ -27,29 +8,4 @@ Rake::TestTask.new(:test) do |test|
|
|
27
8
|
test.verbose = true
|
28
9
|
end
|
29
10
|
|
30
|
-
|
31
|
-
require 'rcov/rcovtask'
|
32
|
-
Rcov::RcovTask.new do |test|
|
33
|
-
test.libs << 'test'
|
34
|
-
test.pattern = 'test/**/test_*.rb'
|
35
|
-
test.verbose = true
|
36
|
-
end
|
37
|
-
rescue LoadError
|
38
|
-
task :rcov do
|
39
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
task :test => :check_dependencies
|
44
|
-
|
45
|
-
task :default => :test
|
46
|
-
|
47
|
-
require 'rake/rdoctask'
|
48
|
-
Rake::RDocTask.new do |rdoc|
|
49
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
50
|
-
|
51
|
-
rdoc.rdoc_dir = 'rdoc'
|
52
|
-
rdoc.title = "smirk #{version}"
|
53
|
-
rdoc.rdoc_files.include('README*')
|
54
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
55
|
-
end
|
11
|
+
task :default => :test
|
data/lib/smirk/image.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Smirk
|
2
2
|
class Image < Client
|
3
|
-
|
3
|
+
|
4
4
|
def initialize(info)
|
5
5
|
info.each do |key, value|
|
6
6
|
instance_variable_set("@#{key}", value)
|
@@ -9,6 +9,11 @@ module Smirk
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
|
+
def delete
|
14
|
+
params = default_params.merge!({:method => "smugmug.images.delete", :ImageID => id})
|
15
|
+
get(params)
|
16
|
+
end
|
17
|
+
|
13
18
|
end
|
14
19
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smirk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Miller
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-13 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,14 +24,14 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 7
|
30
30
|
segments:
|
31
31
|
- 1
|
32
|
-
-
|
33
|
-
-
|
34
|
-
version: 1.
|
32
|
+
- 4
|
33
|
+
- 0
|
34
|
+
version: 1.4.0
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
hash: 1
|
46
46
|
segments:
|
@@ -62,14 +62,11 @@ files:
|
|
62
62
|
- README.rdoc
|
63
63
|
- Rakefile
|
64
64
|
- LICENSE
|
65
|
-
-
|
65
|
+
- lib/smirk.rb
|
66
66
|
- lib/smirk/album.rb
|
67
67
|
- lib/smirk/category.rb
|
68
68
|
- lib/smirk/client.rb
|
69
69
|
- lib/smirk/image.rb
|
70
|
-
- lib/smirk.rb
|
71
|
-
- test/helper.rb
|
72
|
-
- test/test_smirk.rb
|
73
70
|
has_rdoc: true
|
74
71
|
homepage: http://github.com/bensie/smirk
|
75
72
|
licenses: []
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.9
|
data/test/helper.rb
DELETED
data/test/test_smirk.rb
DELETED