jpegtran 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fa42283b2ec2c344d360dc4ea51e777cdb1900e4
4
+ data.tar.gz: 2b20327b478b26bee5bc42efb3a76f43990dd18c
5
+ SHA512:
6
+ metadata.gz: 6d85e90e3b94e745058ef2ac41f64178ac66999939dfc99b76786744ea2fddd35afb37981b35e210135a9f55cc0c141bba3fae4db99c158c4f4a4e431f08c73a
7
+ data.tar.gz: 82049bf26fc3064a2ab1367817743797b1a10ffca336cb7a09fcbcac735690d28e1d5bc9a2c8ec5849748e0689391abf29395dcbd588b326bc5e568f94e6e8fe
@@ -1,3 +1,6 @@
1
+ 0.1.4 (2015-08-15)
2
+ * minor bugfixes
3
+ * the 'hash-utils' dependency removed
1
4
 
2
5
  0.1.3 (2011-09-08)
3
6
  * the 'lookup-hash' dependency removed
data/Gemfile CHANGED
@@ -1,7 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- gem "hash-utils", ">= 0.18.0"
5
4
  gem "command-builder", ">= 0.2.0"
6
5
  gem "unix-whereis", ">= 0.1.0"
7
6
 
@@ -1,17 +1,55 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- command-builder (0.2.0)
5
- hash-utils (>= 0.18.0)
4
+ addressable (2.3.8)
5
+ builder (3.2.2)
6
+ command-builder (0.3.2)
6
7
  pipe-run (>= 0.2.1)
7
- git (1.2.5)
8
- hash-utils (0.19.0)
9
- jeweler (1.6.4)
10
- bundler (~> 1.0)
8
+ descendants_tracker (0.0.4)
9
+ thread_safe (~> 0.3, >= 0.3.1)
10
+ faraday (0.9.1)
11
+ multipart-post (>= 1.2, < 3)
12
+ git (1.2.9.1)
13
+ github_api (0.12.4)
14
+ addressable (~> 2.3)
15
+ descendants_tracker (~> 0.0.4)
16
+ faraday (~> 0.8, < 0.10)
17
+ hashie (>= 3.4)
18
+ multi_json (>= 1.7.5, < 2.0)
19
+ nokogiri (~> 1.6.6)
20
+ oauth2
21
+ hash-utils (2.2.0)
22
+ ruby-version (>= 0.4.0)
23
+ hashie (3.4.2)
24
+ highline (1.7.3)
25
+ jeweler (2.0.1)
26
+ builder
27
+ bundler (>= 1.0)
11
28
  git (>= 1.2.5)
29
+ github_api
30
+ highline (>= 1.6.15)
31
+ nokogiri (>= 1.5.10)
12
32
  rake
13
- pipe-run (0.2.1)
14
- rake (0.9.2)
33
+ rdoc
34
+ jwt (1.5.1)
35
+ mini_portile (0.6.2)
36
+ multi_json (1.11.2)
37
+ multi_xml (0.5.5)
38
+ multipart-post (2.0.0)
39
+ nokogiri (1.6.6.2)
40
+ mini_portile (~> 0.6.0)
41
+ oauth2 (1.0.0)
42
+ faraday (>= 0.8, < 0.10)
43
+ jwt (~> 1.0)
44
+ multi_json (~> 1.3)
45
+ multi_xml (~> 0.5)
46
+ rack (~> 1.2)
47
+ pipe-run (0.3.0)
48
+ rack (1.6.4)
49
+ rake (10.4.2)
50
+ rdoc (4.2.0)
51
+ ruby-version (0.4.3)
52
+ thread_safe (0.3.5)
15
53
  unix-whereis (0.1.1)
16
54
  command-builder (>= 0.2.0)
17
55
  hash-utils (>= 0.18.0)
@@ -22,6 +60,8 @@ PLATFORMS
22
60
  DEPENDENCIES
23
61
  bundler (>= 1.0.0)
24
62
  command-builder (>= 0.2.0)
25
- hash-utils (>= 0.18.0)
26
63
  jeweler (>= 1.5.2)
27
64
  unix-whereis (>= 0.1.0)
65
+
66
+ BUNDLED WITH
67
+ 1.10.6
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
1
+ Copyright (c) 2011-2015 Martin Poljak (martin@poljak.cz)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -4,13 +4,17 @@ Jpegtran
4
4
  **Jpegtran** provides Ruby interface to the [`jpegtran`][1] tool.
5
5
  Some examples follow: (for details, see module documentation)
6
6
 
7
- require "jpegtran"
8
-
9
- Jpegtran.available? # will return true (or false)
10
-
11
- Jpegtran.optimize("foo.jpg", { :progressive => true, :optimize => true })
12
- # will run 'jpegtran -progressive -optimize -outfile foo.jpg foo.jpg'
13
-
7
+ ```ruby
8
+ require "jpegtran"
9
+
10
+ Jpegtran.available? # will return true (or false)
11
+
12
+ options = { :progressive => true, :optimize => true }
13
+ Jpegtran.optimize("foo.jpg", options)
14
+
15
+ # will run 'jpegtran -progressive -optimize -outfile foo.jpg foo.jpg'
16
+ ```
17
+
14
18
  It can be also run asynchronously by non-blocking way (with [`eventmachine`][4])
15
19
  simply by giving block to `#optimize`. See documentation.
16
20
 
@@ -18,26 +22,13 @@ simply by giving block to `#optimize`. See documentation.
18
22
 
19
23
  The `-maxmemory N` option isn't supported.
20
24
 
21
-
22
-
23
-
24
- Contributing
25
- ------------
26
-
27
- 1. Fork it.
28
- 2. Create a branch (`git checkout -b 20101220-my-change`).
29
- 3. Commit your changes (`git commit -am "Added something"`).
30
- 4. Push to the branch (`git push origin 20101220-my-change`).
31
- 5. Create an [Issue][2] with a link to your branch.
32
- 6. Enjoy a refreshing Diet Coke and wait.
33
-
34
25
  Copyright
35
26
  ---------
36
27
 
37
- Copyright &copy; 2011 [Martin Kozák][3]. See `LICENSE.txt` for
28
+ Copyright &copy; 2011 &ndash; 2015 [Martin Poljak][3]. See `LICENSE.txt` for
38
29
  further details.
39
30
 
40
31
  [1]: http://linux.die.net/man/1/jpegtran
41
32
  [2]: http://github.com/martinkozak/jpegtran/issues
42
- [3]: http://www.martinkozak.net/
33
+ [3]: http://www.martinpoljak.net/
43
34
  [4]: http://rubyeventmachine.com/
data/Rakefile CHANGED
@@ -20,8 +20,8 @@ Jeweler::Tasks.new do |gem|
20
20
  gem.homepage = "https://github.com/martinkozak/jpegtran"
21
21
  gem.license = "MIT"
22
22
  gem.summary = "Ruby interface to 'jpegtran' tool."
23
- gem.email = "martinkozak@martinkozak.net"
24
- gem.authors = ["Martin Kozák"]
23
+ gem.email = "martin@poljak.cz"
24
+ gem.authors = ["Martin Poljak"]
25
25
  # Include your dependencies below. Runtime dependencies are required when using your gem,
26
26
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
27
27
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -2,15 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: jpegtran 0.1.4 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "jpegtran"
8
- s.version = "0.1.3"
9
+ s.version = "0.1.4"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Martin Koz\u{e1}k"]
12
- s.date = "2011-09-08"
13
- s.email = "martinkozak@martinkozak.net"
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Martin Poljak"]
14
+ s.date = "2015-08-15"
15
+ s.email = "martin@poljak.cz"
14
16
  s.extra_rdoc_files = [
15
17
  "LICENSE.txt",
16
18
  "README.md"
@@ -31,28 +33,24 @@ Gem::Specification.new do |s|
31
33
  ]
32
34
  s.homepage = "https://github.com/martinkozak/jpegtran"
33
35
  s.licenses = ["MIT"]
34
- s.require_paths = ["lib"]
35
- s.rubygems_version = "1.8.10"
36
+ s.rubygems_version = "2.4.5"
36
37
  s.summary = "Ruby interface to 'jpegtran' tool."
37
38
 
38
39
  if s.respond_to? :specification_version then
39
- s.specification_version = 3
40
+ s.specification_version = 4
40
41
 
41
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
- s.add_runtime_dependency(%q<hash-utils>, [">= 0.18.0"])
43
43
  s.add_runtime_dependency(%q<command-builder>, [">= 0.2.0"])
44
44
  s.add_runtime_dependency(%q<unix-whereis>, [">= 0.1.0"])
45
45
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
46
46
  s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
47
47
  else
48
- s.add_dependency(%q<hash-utils>, [">= 0.18.0"])
49
48
  s.add_dependency(%q<command-builder>, [">= 0.2.0"])
50
49
  s.add_dependency(%q<unix-whereis>, [">= 0.1.0"])
51
50
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
52
51
  s.add_dependency(%q<jeweler>, [">= 1.5.2"])
53
52
  end
54
53
  else
55
- s.add_dependency(%q<hash-utils>, [">= 0.18.0"])
56
54
  s.add_dependency(%q<command-builder>, [">= 0.2.0"])
57
55
  s.add_dependency(%q<unix-whereis>, [">= 0.1.0"])
58
56
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
@@ -89,7 +89,7 @@ module Jpegtran
89
89
 
90
90
  # Turn on/off arguments
91
91
  options.each_pair do |k, v|
92
- if v.true? and k.in? self::BOOLEAN_ARGS
92
+ if v.kind_of? TrueClass and self::BOOLEAN_ARGS.include? k
93
93
  cmd << k
94
94
  end
95
95
  end
@@ -97,35 +97,35 @@ module Jpegtran
97
97
  # Rotate
98
98
  if options[:rotate].kind_of? Integer
99
99
  cmd.arg(:rotate, options[:rotate].to_i)
100
- elsif :rotate.in? options
100
+ elsif options.include? :rotate
101
101
  raise Exception::new("Invalid value for :rotate option. Integer expected.")
102
102
  end
103
103
 
104
104
  # Rotate
105
105
  if options[:restart].kind_of? Integer
106
106
  cmd.arg(:restart, options[:restart].to_i)
107
- elsif :restart.in? options
107
+ elsif options.include? :restart
108
108
  raise Exception::new("Invalid value for :restart option. Integer expected.")
109
109
  end
110
110
 
111
111
  # Crop
112
- if options[:crop].string?
112
+ if options[:crop].kind_of? String
113
113
  cmd.arg(:crop, options[:crop].to_s)
114
- elsif :crop.in? options
114
+ elsif options.include? :crop
115
115
  raise Exception::new("Invalid value for :crop option. Structured string expected. See 'jpegtran' reference.")
116
116
  end
117
117
 
118
118
  # Scans
119
- if options[:scans].string?
119
+ if options[:scans].kind_of? String
120
120
  cmd.arg(:scans, options[:scans].to_s)
121
- elsif :scans.in? options
121
+ elsif options.include? :scans
122
122
  raise Exception::new("Invalid value for :scans option. String expected.")
123
123
  end
124
124
 
125
125
  # Copy
126
- if :copy.in? options
126
+ if options.include? :copy
127
127
  value = options[:copy].to_sym
128
- if vlaue.in? self::COPY_OPTIONS
128
+ if self::COPY_OPTIONS.include? value
129
129
  cmd.arg(:copy, value)
130
130
  else
131
131
  raise Exception::new("Invalid value for :copy. Expected " << self::COPY_OPTIONS.to_s)
@@ -133,9 +133,9 @@ module Jpegtran
133
133
  end
134
134
 
135
135
  # Flip
136
- if :flip.in? options
136
+ if options.include? :flip
137
137
  value = options[:flip].to_sym
138
- if value.in? self::FLIP_OPTIONS
138
+ if self::FLIP_OPTIONS.include? :value
139
139
  cmd.arg(:flip, value)
140
140
  else
141
141
  raise Exception::new("Invalid value for :flip. Expected " << self::FLIP_OPTIONS.to_s)
@@ -143,8 +143,8 @@ module Jpegtran
143
143
  end
144
144
 
145
145
  # Outfile
146
- if :outfile.in? options
147
- if options[:outfile].string?
146
+ if options.include? :outfile
147
+ if options[:outfile].kind_of? String
148
148
  value = options[:outfile].to_s
149
149
  else
150
150
  raise Exception::new("Invalid value for :outfile option. String expected.")
metadata CHANGED
@@ -1,80 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpegtran
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
5
- prerelease:
4
+ version: 0.1.4
6
5
  platform: ruby
7
6
  authors:
8
- - Martin Kozák
7
+ - Martin Poljak
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-09-08 00:00:00.000000000 Z
11
+ date: 2015-08-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: hash-utils
16
- requirement: &11385200 !ruby/object:Gem::Requirement
17
- none: false
14
+ name: command-builder
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: 0.18.0
19
+ version: 0.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *11385200
25
- - !ruby/object:Gem::Dependency
26
- name: command-builder
27
- requirement: &11383940 !ruby/object:Gem::Requirement
28
- none: false
22
+ version_requirements: !ruby/object:Gem::Requirement
29
23
  requirements:
30
- - - ! '>='
24
+ - - ">="
31
25
  - !ruby/object:Gem::Version
32
26
  version: 0.2.0
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *11383940
36
27
  - !ruby/object:Gem::Dependency
37
28
  name: unix-whereis
38
- requirement: &11382140 !ruby/object:Gem::Requirement
39
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
40
30
  requirements:
41
- - - ! '>='
31
+ - - ">="
42
32
  - !ruby/object:Gem::Version
43
33
  version: 0.1.0
44
34
  type: :runtime
45
35
  prerelease: false
46
- version_requirements: *11382140
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.1.0
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler
49
- requirement: &11303780 !ruby/object:Gem::Requirement
50
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
51
44
  requirements:
52
- - - ! '>='
45
+ - - ">="
53
46
  - !ruby/object:Gem::Version
54
47
  version: 1.0.0
55
48
  type: :development
56
49
  prerelease: false
57
- version_requirements: *11303780
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.0
58
55
  - !ruby/object:Gem::Dependency
59
56
  name: jeweler
60
- requirement: &11302800 !ruby/object:Gem::Requirement
61
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
62
58
  requirements:
63
- - - ! '>='
59
+ - - ">="
64
60
  - !ruby/object:Gem::Version
65
61
  version: 1.5.2
66
62
  type: :development
67
63
  prerelease: false
68
- version_requirements: *11302800
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 1.5.2
69
69
  description:
70
- email: martinkozak@martinkozak.net
70
+ email: martin@poljak.cz
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files:
74
74
  - LICENSE.txt
75
75
  - README.md
76
76
  files:
77
- - .document
77
+ - ".document"
78
78
  - CHANGES.txt
79
79
  - Gemfile
80
80
  - Gemfile.lock
@@ -89,29 +89,25 @@ files:
89
89
  homepage: https://github.com/martinkozak/jpegtran
90
90
  licenses:
91
91
  - MIT
92
+ metadata: {}
92
93
  post_install_message:
93
94
  rdoc_options: []
94
95
  require_paths:
95
96
  - lib
96
97
  required_ruby_version: !ruby/object:Gem::Requirement
97
- none: false
98
98
  requirements:
99
- - - ! '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
- segments:
103
- - 0
104
- hash: 3769897826179762785
105
102
  required_rubygems_version: !ruby/object:Gem::Requirement
106
- none: false
107
103
  requirements:
108
- - - ! '>='
104
+ - - ">="
109
105
  - !ruby/object:Gem::Version
110
106
  version: '0'
111
107
  requirements: []
112
108
  rubyforge_project:
113
- rubygems_version: 1.8.10
109
+ rubygems_version: 2.4.5
114
110
  signing_key:
115
- specification_version: 3
111
+ specification_version: 4
116
112
  summary: Ruby interface to 'jpegtran' tool.
117
113
  test_files: []