blitline 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +33 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/blitline.gemspec +2 -2
- data/lib/blitline/function.rb +2 -2
- metadata +13 -13
data/README.rdoc
CHANGED
@@ -1,6 +1,38 @@
|
|
1
1
|
= blitline
|
2
|
+
You must first have a Blitline.com account to successfully use the gem. You can obtain one (free) by going to (http://www.blitline.com)[http://www.blitline.com]
|
3
|
+
|
4
|
+
Once you have your account, you will need to find you ACCOUNT_ID which you can get by logging in and clicking on the *Account* tab.
|
5
|
+
|
6
|
+
|
7
|
+
In you application environment, install the Blitline gem or add the Blitline gem to your Gemfile
|
8
|
+
|
9
|
+
$ gem install blitline
|
10
|
+
|
11
|
+
or...if you have a Gemfile
|
12
|
+
|
13
|
+
gem 'blitline'
|
14
|
+
|
15
|
+
Once the gem is installed, you can start a Rails console and try the following:
|
16
|
+
|
17
|
+
$ blitline_service = Blitline.new
|
18
|
+
$ job = Blitline::Job.new("http://www.google.com/logos/2011/yokoyama11-hp.jpg") #My source file to manipulate
|
19
|
+
$ job.add_function("blur", "{radius:1}", "my_first_image") # Add a blur function, with no params, and give a unique name to the result
|
20
|
+
$ job.application_id = "ACCOUNT_ID" # This ACCOUNT_ID needs to be your account ID from Blitline which you got from Blitline.com above
|
21
|
+
$ blitline_service.jobs << job # Push job into service
|
22
|
+
$ blitline_service.post_jobs
|
23
|
+
|
24
|
+
And you will get JSON back describing where the resulting image will be located
|
25
|
+
There are many more things you can do with images (including pushing them to your own S3 buckets).
|
26
|
+
|
27
|
+
|
28
|
+
You can find documentation about Blitline.com and it's services by following the links in the *Further reading* section below
|
29
|
+
|
30
|
+
Further reading:
|
31
|
+
|
32
|
+
* (Quickstart)[http://www.blitline.com/docs/quickstart]
|
33
|
+
* (Blitline Blog)[http://blitline.tumblr.com]
|
34
|
+
|
2
35
|
|
3
|
-
Description goes here.
|
4
36
|
|
5
37
|
== Contributing to blitline
|
6
38
|
|
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
|
|
15
15
|
Jeweler::Tasks.new do |gem|
|
16
16
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
17
|
gem.name = "blitline"
|
18
|
-
gem.homepage = "http://github.com/
|
18
|
+
gem.homepage = "http://github.com/blitline-dev/blitline"
|
19
19
|
gem.license = "MIT"
|
20
20
|
gem.summary = %Q{Blitline provides simple image processing in the cloud}
|
21
21
|
gem.description = %Q{The blitline gems provides a simple easy wrapper to the Blitline.com web api}
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/blitline.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "blitline"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Blitline LLC"]
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
"test/helper.rb",
|
36
36
|
"test/test_blitline.rb"
|
37
37
|
]
|
38
|
-
s.homepage = "http://github.com/
|
38
|
+
s.homepage = "http://github.com/blitline-dev/blitline"
|
39
39
|
s.licenses = ["MIT"]
|
40
40
|
s.require_paths = ["lib"]
|
41
41
|
s.rubygems_version = "1.8.12"
|
data/lib/blitline/function.rb
CHANGED
@@ -24,9 +24,9 @@ class Blitline
|
|
24
24
|
|
25
25
|
def validate
|
26
26
|
raise "Function must have a name" if @name.nil?
|
27
|
-
raise "Params must be a hash" if @params && !@params.is_a(Hash)
|
27
|
+
raise "Params must be a hash" if @params && !@params.is_a?(Hash)
|
28
28
|
@save.validate if @save
|
29
29
|
@functions.each { |f| f.validate } if @functions
|
30
30
|
end
|
31
31
|
end
|
32
|
-
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blitline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yajl-ruby
|
16
|
-
requirement: &
|
16
|
+
requirement: &20534740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *20534740
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &22921660 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *22921660
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &22920980 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *22920980
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &22920400 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.6.4
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *22920400
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rcov
|
60
|
-
requirement: &
|
60
|
+
requirement: &22919620 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *22919620
|
69
69
|
description: The blitline gems provides a simple easy wrapper to the Blitline.com
|
70
70
|
web api
|
71
71
|
email: support@blitline.com
|
@@ -92,7 +92,7 @@ files:
|
|
92
92
|
- lib/blitline/save.rb
|
93
93
|
- test/helper.rb
|
94
94
|
- test/test_blitline.rb
|
95
|
-
homepage: http://github.com/
|
95
|
+
homepage: http://github.com/blitline-dev/blitline
|
96
96
|
licenses:
|
97
97
|
- MIT
|
98
98
|
post_install_message:
|
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
segments:
|
109
109
|
- 0
|
110
|
-
hash:
|
110
|
+
hash: 377295825420554637
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
none: false
|
113
113
|
requirements:
|