carrierwave-imagesorcery 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ Gemfile.lock
6
7
  InstalledFiles
7
8
  _yardoc
8
9
  coverage
@@ -10,8 +10,8 @@ rvm:
10
10
 
11
11
  before_install:
12
12
  - sudo apt-get update -qq
13
- - sudo apt-get install -qq -y imagemagick
13
+ - sudo apt-get install -qq -y graphicsmagick imagemagick
14
14
 
15
15
  matrix:
16
16
  allow_failures:
17
- - rvm: ruby-head
17
+ - rvm: ruby-head
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in carrierwave-sorcery.gemspec
1
+ source :rubygems
4
2
  gemspec
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Additional processing to use [ImageSorcery](https://github.com/EricR/image_sorcery) into [CarrierWave](https://github.com/jnicklas/carrierwave).
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/carrierwave-imagesorcery.png)](http://badge.fury.io/rb/image_sorcery)
5
6
  [![Build Status](https://travis-ci.org/WaYdotNET/carrierwave-imagesorcery.png)](https://travis-ci.org/WaYdotNET/carrierwave-imagesorcery)
6
7
  [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/WaYdotNET/carrierwave-imagesorcery)
7
8
 
@@ -88,7 +89,7 @@ WaYdotNET, you can follow me on twitter [@WaYdotNET](http://twitter.com/WaYdotNE
88
89
 
89
90
  ## Copyright
90
91
 
91
- Copyright (C) 2012 Carlo Bertini - [@WaYdotNET](http://twitter.com/WaYdotNET)
92
+ Copyright (C) 2013 Carlo Bertini - [@WaYdotNET](http://twitter.com/WaYdotNET)
92
93
 
93
94
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
94
95
  associated documentation files (the “Software”), to deal in the Software without restriction, including without
data/Rakefile CHANGED
@@ -1,10 +1,5 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
3
1
  require 'rspec/core/rake_task'
4
2
 
5
- desc "Run all examples"
6
- RSpec::Core::RakeTask.new(:spec) do |t|
7
- t.rspec_opts = %w[--color]
8
- end
3
+ RSpec::Core::RakeTask.new(:spec)
9
4
 
10
5
  task :default => :spec
@@ -1,21 +1,22 @@
1
- # -*- encoding: utf-8 -*-
2
1
  require File.expand_path('../lib/carrierwave-imagesorcery/version', __FILE__)
3
2
 
3
+ require 'bundler/version'
4
+
4
5
  Gem::Specification.new do |gem|
5
6
  gem.authors = ["Carlo Bertini"]
6
7
  gem.email = ["waydotnet@gmail.com"]
7
8
  gem.description = "CarrierWave Additional processing to support ImageSorcery"
8
9
  gem.summary = "ImageSorcery carrierwave processor"
9
10
  gem.homepage = "http://www.waydotnet.com"
11
+ gem.platform = Gem::Platform::RUBY
10
12
 
11
13
  gem.extra_rdoc_files = ["README.md"]
12
14
  gem.rdoc_options = ["--main"]
13
15
  gem.add_development_dependency 'rspec', '~> 2.12.0'
14
16
  gem.add_development_dependency 'rake','~> 10.0.2'
15
- gem.add_development_dependency 'subexec', '~> 0.2.2'
16
17
 
17
18
  gem.add_dependency 'carrierwave'
18
- gem.add_dependency 'image_sorcery'
19
+ gem.add_dependency 'image_sorcery','>= 1.1.0'
19
20
 
20
21
  gem.files = `git ls-files`.split($\)
21
22
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -153,7 +153,7 @@ module CarrierWave
153
153
 
154
154
  def manipulate!
155
155
  cache_stored_file! if !cached?
156
- image = Sorcery.new current_path
156
+ image = ::ImageSorcery.new current_path
157
157
  image = yield(image)
158
158
 
159
159
  replace_file(image.file) if !image.is_a?(Hash) && image.filename_changed?
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module ImageSorcery
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -1,7 +1,6 @@
1
1
  # # require_relative '../../spec_helper'
2
2
  # # For Ruby < 1.9.3, use this instead of require_relative
3
3
  require (File.expand_path('./../../../spec_helper', __FILE__))
4
- require 'subexec'
5
4
 
6
5
  class Uploader < CarrierWave::Uploader::Base
7
6
  include CarrierWave::ImageSorcery
@@ -26,7 +25,7 @@ describe CarrierWave::ImageSorcery do
26
25
  describe "#convert" do
27
26
  it "should convert from one format to another" do
28
27
  @instance.convert('png')
29
- img = Sorcery.new @instance.current_path
28
+ img = ImageSorcery.new @instance.current_path
30
29
  img.identify.should =~ /PNG/
31
30
  end
32
31
  end
@@ -1,7 +1,4 @@
1
1
  require 'rubygems' unless defined? Gem
2
- # we need the actual library file
3
- # require_relative '../lib/ms_translate'
4
- # For Ruby < 1.9.3, use this instead of require_relative
5
2
  require 'bundler/setup'
6
3
  require 'carrierwave'
7
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-imagesorcery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
12
+ date: 2013-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -43,22 +43,6 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: 10.0.2
46
- - !ruby/object:Gem::Dependency
47
- name: subexec
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 0.2.2
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 0.2.2
62
46
  - !ruby/object:Gem::Dependency
63
47
  name: carrierwave
64
48
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +66,7 @@ dependencies:
82
66
  requirements:
83
67
  - - ! '>='
84
68
  - !ruby/object:Gem::Version
85
- version: '0'
69
+ version: 1.1.0
86
70
  type: :runtime
87
71
  prerelease: false
88
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +74,7 @@ dependencies:
90
74
  requirements:
91
75
  - - ! '>='
92
76
  - !ruby/object:Gem::Version
93
- version: '0'
77
+ version: 1.1.0
94
78
  description: CarrierWave Additional processing to support ImageSorcery
95
79
  email:
96
80
  - waydotnet@gmail.com
@@ -102,7 +86,6 @@ files:
102
86
  - .gitignore
103
87
  - .travis.yml
104
88
  - Gemfile
105
- - Gemfile.lock
106
89
  - LICENSE
107
90
  - README.md
108
91
  - Rakefile
@@ -142,4 +125,3 @@ test_files:
142
125
  - spec/fixtures/landscape.jpg
143
126
  - spec/lib/carrierwave-imagesorcery/image_sorcery_spec.rb
144
127
  - spec/spec_helper.rb
145
- has_rdoc:
@@ -1,43 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- carrierwave-imagesorcery (0.0.3)
5
- carrierwave
6
- image_sorcery
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activemodel (3.2.9)
12
- activesupport (= 3.2.9)
13
- builder (~> 3.0.0)
14
- activesupport (3.2.9)
15
- i18n (~> 0.6)
16
- multi_json (~> 1.0)
17
- builder (3.0.4)
18
- carrierwave (0.7.1)
19
- activemodel (>= 3.2.0)
20
- activesupport (>= 3.2.0)
21
- diff-lcs (1.1.3)
22
- i18n (0.6.1)
23
- image_sorcery (1.0.7)
24
- multi_json (1.5.0)
25
- rake (10.0.3)
26
- rspec (2.12.0)
27
- rspec-core (~> 2.12.0)
28
- rspec-expectations (~> 2.12.0)
29
- rspec-mocks (~> 2.12.0)
30
- rspec-core (2.12.2)
31
- rspec-expectations (2.12.1)
32
- diff-lcs (~> 1.1.3)
33
- rspec-mocks (2.12.1)
34
- subexec (0.2.2)
35
-
36
- PLATFORMS
37
- ruby
38
-
39
- DEPENDENCIES
40
- carrierwave-imagesorcery!
41
- rake (~> 10.0.2)
42
- rspec (~> 2.12.0)
43
- subexec (~> 0.2.2)