blitline 1.0.3 → 1.1.0
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/README.rdoc +3 -3
- data/VERSION +1 -1
- data/blitline.gemspec +2 -2
- data/lib/blitline/function.rb +1 -0
- data/lib/blitline/job.rb +2 -1
- metadata +13 -13
data/README.rdoc
CHANGED
@@ -16,13 +16,13 @@ Once the gem is installed, you can start a Rails console and try the following:
|
|
16
16
|
|
17
17
|
$ blitline_service = Blitline.new
|
18
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
19
|
$ job.application_id = "ACCOUNT_ID" # This ACCOUNT_ID needs to be your account ID from Blitline which you got from Blitline.com above
|
20
|
+
$ job.add_function("blur", {radius:1}, "my_first_image") # Add a blur function, with no params, and give a unique name to the result
|
21
21
|
$ blitline_service.jobs << job # Push job into service
|
22
22
|
$ blitline_service.post_jobs
|
23
23
|
|
24
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).
|
25
|
+
There are many more things you can do with images (including pushing them to your own S3 buckets).
|
26
26
|
|
27
27
|
|
28
28
|
You can find documentation about Blitline.com and it's services by following the links in the *Further reading* section below
|
@@ -35,7 +35,7 @@ Further reading:
|
|
35
35
|
|
36
36
|
|
37
37
|
== Contributing to blitline
|
38
|
-
|
38
|
+
|
39
39
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
40
40
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
41
41
|
* Fork the project
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/blitline.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "blitline"
|
8
|
-
s.version = "1.0
|
8
|
+
s.version = "1.1.0"
|
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"]
|
12
|
-
s.date = "2011-12-
|
12
|
+
s.date = "2011-12-17"
|
13
13
|
s.description = "The blitline gems provides a simple easy wrapper to the Blitline.com web api"
|
14
14
|
s.email = "support@blitline.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/blitline/function.rb
CHANGED
data/lib/blitline/job.rb
CHANGED
@@ -3,7 +3,7 @@ class Blitline
|
|
3
3
|
include AttributeJsonizer
|
4
4
|
attr_accessor :application_id, :src, :postback_url, :functions
|
5
5
|
|
6
|
-
def initialize(image_src)
|
6
|
+
def initialize(image_src, application_id = nil)
|
7
7
|
@src = image_src
|
8
8
|
@functions = []
|
9
9
|
end
|
@@ -12,6 +12,7 @@ class Blitline
|
|
12
12
|
function = Blitline::Function.new(function_name, function_params)
|
13
13
|
function.add_save(image_identifier) if image_identifier
|
14
14
|
@functions << function
|
15
|
+
return function
|
15
16
|
end
|
16
17
|
|
17
18
|
def validate
|
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.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yajl-ruby
|
16
|
-
requirement: &
|
16
|
+
requirement: &8695220 !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: *8695220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &8694620 !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: *8694620
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &8694080 !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: *8694080
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &8693400 !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: *8693400
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rcov
|
60
|
-
requirement: &
|
60
|
+
requirement: &8692760 !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: *8692760
|
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
|
@@ -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: 2369816258101820046
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
none: false
|
113
113
|
requirements:
|