mongoid_paperclip_image_dimension 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
+ # development environment upon cd'ing into the directory
5
+
6
+ # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
+ environment_id="ruby-1.9.3-p0@mongoid_paperclip_image_dimension"
8
+
9
+ #
10
+ # Uncomment following line if you want options to be set only for given project.
11
+ #
12
+ # PROJECT_JRUBY_OPTS=( --1.9 )
13
+ #
14
+ # The variable PROJECT_JRUBY_OPTS requires the following to be run in shell:
15
+ #
16
+ # chmod +x ${rvm_path}/hooks/after_use_jruby_opts
17
+ #
18
+
19
+ #
20
+ # First we attempt to load the desired environment directly from the environment
21
+ # file. This is very fast and efficient compared to running through the entire
22
+ # CLI and selector. If you want feedback on which environment was used then
23
+ # insert the word 'use' after --create as this triggers verbose mode.
24
+ #
25
+ if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
26
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
27
+ then
28
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
29
+
30
+ if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
31
+ then
32
+ . "${rvm_path:-$HOME/.rvm}/hooks/after_use"
33
+ fi
34
+ else
35
+ # If the environment file has not yet been created, use the RVM CLI to select.
36
+ if ! rvm --create use "$environment_id"
37
+ then
38
+ echo "Failed to create RVM environment '${environment_id}'."
39
+ return 1
40
+ fi
41
+ fi
42
+
43
+ #
44
+ # If you use an RVM gemset file to install a list of gems (*.gems), you can have
45
+ # it be automatically loaded. Uncomment the following and adjust the filename if
46
+ # necessary.
47
+ #
48
+ # filename=".gems"
49
+ # if [[ -s "$filename" ]]
50
+ # then
51
+ # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
52
+ # fi
53
+
54
+ # If you use bundler, this might be useful to you:
55
+ # if [[ -s Gemfile ]] && ! command -v bundle >/dev/null
56
+ # then
57
+ # printf "The rubygem 'bundler' is not installed. Installing it now.\n"
58
+ # gem install bundler
59
+ # fi
60
+ # if [[ -s Gemfile ]] && command -v bundle
61
+ # then
62
+ # bundle install
63
+ # fi
64
+
65
+ if [[ $- == *i* ]] # check for interactive shells
66
+ then
67
+ echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
68
+ else
69
+ echo "Using: $GEM_HOME" # don't use colors in interactive shells
70
+ fi
71
+
data/Gemfile CHANGED
@@ -1,17 +1,18 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'mongoid', '~> 2.0.0.beta.20'
4
- gem "mongoid-paperclip", '~> 0.0.3', :require => "mongoid_paperclip"
3
+ gem 'mongoid', '~> 2.3.4'
4
+ gem "mongoid-paperclip", '~> 0.0.7', :require => "mongoid_paperclip"
5
+ gem "paperclip", '~> 2.4'
5
6
 
6
7
  # Add dependencies to develop your gem here.
7
8
  # Include everything needed to run rake, tests, features, etc.
8
9
  group :development do
9
10
  gem 'database_cleaner'
10
- gem 'bson', '~> 1.2.1'
11
- gem 'bson_ext', '~> 1.2.1'
12
- gem 'rspec', '~> 2.3.0'
13
- gem 'yard', '~> 0.6.0'
14
- gem 'bundler', '~> 1.0.0'
15
- gem 'jeweler', '~> 1.5.2'
16
- gem 'rcov', '>= 0'
11
+ gem 'bson'
12
+ gem 'bson_ext'
13
+ gem 'rspec'
14
+ gem 'yard'
15
+ gem 'bundler'
16
+ gem 'jeweler'
17
+ gem 'rcov'
17
18
  end
data/README.rdoc CHANGED
@@ -27,7 +27,7 @@ or in Gemfile:
27
27
  :small => ['30x30>', :jpg]
28
28
  }
29
29
 
30
- has_mongoid_attached_file :some_other_image, :styles => {
30
+ has_mongoid_attached_file :another_image, :styles => {
31
31
  :large => ['350x350>', :jpg],
32
32
  :medium => ['150x150>', :jpg],
33
33
  :small => ['30x30>', :jpg]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -2,12 +2,12 @@ require 'active_support/concern'
2
2
 
3
3
  module Mongoid::Paperclip::ImageDimension
4
4
  extend ActiveSupport::Concern
5
-
5
+
6
6
  included do
7
- class_inheritable_reader :perperclip_image_dimension_fields
8
- write_inheritable_attribute(:perperclip_image_dimension_fields, [])
7
+ class_attribute :perperclip_image_dimension_fields
8
+ self.perperclip_image_dimension_fields = []
9
9
  end
10
-
10
+
11
11
  module ClassMethods
12
12
  def save_image_dimensions_on(*args)
13
13
  args.flatten.each do |attachment_field|
@@ -15,25 +15,25 @@ module Mongoid::Paperclip::ImageDimension
15
15
  dimension_field_name = "#{attachment_field}_dimensions".to_sym
16
16
  perperclip_image_dimension_fields << attachment_field
17
17
  field dimension_field_name, :type => Hash
18
-
18
+
19
19
  class_eval <<-END
20
20
  def #{attachment_field}_dimension(style=:original)
21
21
  #{attachment_field}_dimensions[style.to_s].map(&:to_i)
22
22
  end
23
-
23
+
24
24
  def #{attachment_field}_dimension_str(style=:original)
25
25
  #{attachment_field}_dimension(style).join('x')
26
26
  end
27
-
27
+
28
28
  after_#{attachment_field}_post_process do
29
29
  save_dimensions_for(:"#{attachment_field}")
30
30
  end
31
31
  END
32
-
32
+
33
33
  end
34
34
  end
35
35
  end
36
-
36
+
37
37
  def save_dimensions_for(attachment_field)
38
38
  styles = self.class.attachment_definitions[attachment_field][:styles].keys + [:original]
39
39
  dimension_hash = {}
@@ -44,4 +44,4 @@ module Mongoid::Paperclip::ImageDimension
44
44
  end
45
45
  self.send "#{attachment_field}_dimensions=", dimension_hash
46
46
  end
47
- end
47
+ end
@@ -0,0 +1,112 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "mongoid_paperclip_image_dimension"
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Aaron Qian"]
12
+ s.date = "2011-12-20"
13
+ s.description = "A simple plugin to persist image dimensions into mongoid document."
14
+ s.email = "aq1018@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ ".rvmrc",
23
+ "Gemfile",
24
+ "LICENSE.txt",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "lib/mongoid_paperclip_image_dimension.rb",
29
+ "mongoid_paperclip_image_dimension.gemspec",
30
+ "spec/mongoid_paperclip_image_dimension_spec.rb",
31
+ "spec/ruby.png",
32
+ "spec/spec_helper.rb"
33
+ ]
34
+ s.homepage = "http://github.com/aq1018/mongoid_paperclip_image_dimension"
35
+ s.licenses = ["MIT"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = "1.8.10"
38
+ s.summary = "A simple plugin to persist image dimensions into mongoid document."
39
+
40
+ if s.respond_to? :specification_version then
41
+ s.specification_version = 3
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<mongoid>, ["~> 2.3.4"])
45
+ s.add_runtime_dependency(%q<mongoid-paperclip>, ["~> 0.0.7"])
46
+ s.add_runtime_dependency(%q<paperclip>, ["~> 2.4"])
47
+ s.add_development_dependency(%q<database_cleaner>, [">= 0"])
48
+ s.add_development_dependency(%q<bson>, [">= 0"])
49
+ s.add_development_dependency(%q<bson_ext>, [">= 0"])
50
+ s.add_development_dependency(%q<rspec>, [">= 0"])
51
+ s.add_development_dependency(%q<yard>, [">= 0"])
52
+ s.add_development_dependency(%q<bundler>, [">= 0"])
53
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
54
+ s.add_development_dependency(%q<rcov>, [">= 0"])
55
+ s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.0.beta.20"])
56
+ s.add_runtime_dependency(%q<mongoid-paperclip>, ["~> 0.0.3"])
57
+ s.add_development_dependency(%q<database_cleaner>, [">= 0"])
58
+ s.add_development_dependency(%q<bson>, ["~> 1.2.1"])
59
+ s.add_development_dependency(%q<bson_ext>, ["~> 1.2.1"])
60
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
61
+ s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
62
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
63
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
64
+ s.add_development_dependency(%q<rcov>, [">= 0"])
65
+ else
66
+ s.add_dependency(%q<mongoid>, ["~> 2.3.4"])
67
+ s.add_dependency(%q<mongoid-paperclip>, ["~> 0.0.7"])
68
+ s.add_dependency(%q<paperclip>, ["~> 2.4"])
69
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
70
+ s.add_dependency(%q<bson>, [">= 0"])
71
+ s.add_dependency(%q<bson_ext>, [">= 0"])
72
+ s.add_dependency(%q<rspec>, [">= 0"])
73
+ s.add_dependency(%q<yard>, [">= 0"])
74
+ s.add_dependency(%q<bundler>, [">= 0"])
75
+ s.add_dependency(%q<jeweler>, [">= 0"])
76
+ s.add_dependency(%q<rcov>, [">= 0"])
77
+ s.add_dependency(%q<mongoid>, ["~> 2.0.0.beta.20"])
78
+ s.add_dependency(%q<mongoid-paperclip>, ["~> 0.0.3"])
79
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
80
+ s.add_dependency(%q<bson>, ["~> 1.2.1"])
81
+ s.add_dependency(%q<bson_ext>, ["~> 1.2.1"])
82
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
83
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
84
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
85
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
86
+ s.add_dependency(%q<rcov>, [">= 0"])
87
+ end
88
+ else
89
+ s.add_dependency(%q<mongoid>, ["~> 2.3.4"])
90
+ s.add_dependency(%q<mongoid-paperclip>, ["~> 0.0.7"])
91
+ s.add_dependency(%q<paperclip>, ["~> 2.4"])
92
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
93
+ s.add_dependency(%q<bson>, [">= 0"])
94
+ s.add_dependency(%q<bson_ext>, [">= 0"])
95
+ s.add_dependency(%q<rspec>, [">= 0"])
96
+ s.add_dependency(%q<yard>, [">= 0"])
97
+ s.add_dependency(%q<bundler>, [">= 0"])
98
+ s.add_dependency(%q<jeweler>, [">= 0"])
99
+ s.add_dependency(%q<rcov>, [">= 0"])
100
+ s.add_dependency(%q<mongoid>, ["~> 2.0.0.beta.20"])
101
+ s.add_dependency(%q<mongoid-paperclip>, ["~> 0.0.3"])
102
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
103
+ s.add_dependency(%q<bson>, ["~> 1.2.1"])
104
+ s.add_dependency(%q<bson_ext>, ["~> 1.2.1"])
105
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
106
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
107
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
108
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
109
+ s.add_dependency(%q<rcov>, [">= 0"])
110
+ end
111
+ end
112
+
metadata CHANGED
@@ -1,394 +1,294 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mongoid_paperclip_image_dimension
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Aaron Qian
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-02-13 00:00:00 -08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 62196427
29
- segments:
30
- - 2
31
- - 0
32
- - 0
33
- - beta
34
- - 20
35
- version: 2.0.0.beta.20
12
+ date: 2011-12-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
36
15
  name: mongoid
37
- version_requirements: *id001
38
- prerelease: false
39
- - !ruby/object:Gem::Dependency
40
- type: :runtime
41
- requirement: &id002 !ruby/object:Gem::Requirement
16
+ requirement: &70176762695640 !ruby/object:Gem::Requirement
42
17
  none: false
43
- requirements:
18
+ requirements:
44
19
  - - ~>
45
- - !ruby/object:Gem::Version
46
- hash: 25
47
- segments:
48
- - 0
49
- - 0
50
- - 3
51
- version: 0.0.3
52
- name: mongoid-paperclip
53
- version_requirements: *id002
54
- prerelease: false
55
- - !ruby/object:Gem::Dependency
56
- type: :development
57
- requirement: &id003 !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
66
- name: database_cleaner
67
- version_requirements: *id003
20
+ - !ruby/object:Gem::Version
21
+ version: 2.3.4
22
+ type: :runtime
68
23
  prerelease: false
69
- - !ruby/object:Gem::Dependency
70
- type: :development
71
- requirement: &id004 !ruby/object:Gem::Requirement
24
+ version_requirements: *70176762695640
25
+ - !ruby/object:Gem::Dependency
26
+ name: mongoid-paperclip
27
+ requirement: &70176762694120 !ruby/object:Gem::Requirement
72
28
  none: false
73
- requirements:
29
+ requirements:
74
30
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 29
77
- segments:
78
- - 1
79
- - 2
80
- - 1
81
- version: 1.2.1
82
- name: bson
83
- version_requirements: *id004
31
+ - !ruby/object:Gem::Version
32
+ version: 0.0.7
33
+ type: :runtime
84
34
  prerelease: false
85
- - !ruby/object:Gem::Dependency
86
- type: :development
87
- requirement: &id005 !ruby/object:Gem::Requirement
35
+ version_requirements: *70176762694120
36
+ - !ruby/object:Gem::Dependency
37
+ name: paperclip
38
+ requirement: &70176762693040 !ruby/object:Gem::Requirement
88
39
  none: false
89
- requirements:
40
+ requirements:
90
41
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 29
93
- segments:
94
- - 1
95
- - 2
96
- - 1
97
- version: 1.2.1
98
- name: bson_ext
99
- version_requirements: *id005
42
+ - !ruby/object:Gem::Version
43
+ version: '2.4'
44
+ type: :runtime
100
45
  prerelease: false
101
- - !ruby/object:Gem::Dependency
102
- type: :development
103
- requirement: &id006 !ruby/object:Gem::Requirement
46
+ version_requirements: *70176762693040
47
+ - !ruby/object:Gem::Dependency
48
+ name: database_cleaner
49
+ requirement: &70176762692100 !ruby/object:Gem::Requirement
104
50
  none: false
105
- requirements:
106
- - - ~>
107
- - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 2
111
- - 3
112
- - 0
113
- version: 2.3.0
114
- name: rspec
115
- version_requirements: *id006
116
- prerelease: false
117
- - !ruby/object:Gem::Dependency
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
118
55
  type: :development
119
- requirement: &id007 !ruby/object:Gem::Requirement
120
- none: false
121
- requirements:
122
- - - ~>
123
- - !ruby/object:Gem::Version
124
- hash: 7
125
- segments:
126
- - 0
127
- - 6
128
- - 0
129
- version: 0.6.0
130
- name: yard
131
- version_requirements: *id007
132
56
  prerelease: false
133
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *70176762692100
58
+ - !ruby/object:Gem::Dependency
59
+ name: bson
60
+ requirement: &70176762690700 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
134
66
  type: :development
135
- requirement: &id008 !ruby/object:Gem::Requirement
67
+ prerelease: false
68
+ version_requirements: *70176762690700
69
+ - !ruby/object:Gem::Dependency
70
+ name: bson_ext
71
+ requirement: &70176762689620 !ruby/object:Gem::Requirement
136
72
  none: false
137
- requirements:
138
- - - ~>
139
- - !ruby/object:Gem::Version
140
- hash: 23
141
- segments:
142
- - 1
143
- - 0
144
- - 0
145
- version: 1.0.0
146
- name: bundler
147
- version_requirements: *id008
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
148
78
  prerelease: false
149
- - !ruby/object:Gem::Dependency
79
+ version_requirements: *70176762689620
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ requirement: &70176762688620 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
150
88
  type: :development
151
- requirement: &id009 !ruby/object:Gem::Requirement
89
+ prerelease: false
90
+ version_requirements: *70176762688620
91
+ - !ruby/object:Gem::Dependency
92
+ name: yard
93
+ requirement: &70176762540120 !ruby/object:Gem::Requirement
152
94
  none: false
153
- requirements:
154
- - - ~>
155
- - !ruby/object:Gem::Version
156
- hash: 7
157
- segments:
158
- - 1
159
- - 5
160
- - 2
161
- version: 1.5.2
162
- name: jeweler
163
- version_requirements: *id009
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
164
100
  prerelease: false
165
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *70176762540120
102
+ - !ruby/object:Gem::Dependency
103
+ name: bundler
104
+ requirement: &70176762538920 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
166
110
  type: :development
167
- requirement: &id010 !ruby/object:Gem::Requirement
111
+ prerelease: false
112
+ version_requirements: *70176762538920
113
+ - !ruby/object:Gem::Dependency
114
+ name: jeweler
115
+ requirement: &70176762537840 !ruby/object:Gem::Requirement
168
116
  none: false
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- hash: 3
173
- segments:
174
- - 0
175
- version: "0"
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *70176762537840
124
+ - !ruby/object:Gem::Dependency
176
125
  name: rcov
177
- version_requirements: *id010
126
+ requirement: &70176762536140 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
178
133
  prerelease: false
179
- - !ruby/object:Gem::Dependency
180
- type: :runtime
181
- requirement: &id011 !ruby/object:Gem::Requirement
134
+ version_requirements: *70176762536140
135
+ - !ruby/object:Gem::Dependency
136
+ name: mongoid
137
+ requirement: &70176762535280 !ruby/object:Gem::Requirement
182
138
  none: false
183
- requirements:
139
+ requirements:
184
140
  - - ~>
185
- - !ruby/object:Gem::Version
186
- hash: 62196427
187
- segments:
188
- - 2
189
- - 0
190
- - 0
191
- - beta
192
- - 20
141
+ - !ruby/object:Gem::Version
193
142
  version: 2.0.0.beta.20
194
- name: mongoid
195
- version_requirements: *id011
196
- prerelease: false
197
- - !ruby/object:Gem::Dependency
198
143
  type: :runtime
199
- requirement: &id012 !ruby/object:Gem::Requirement
144
+ prerelease: false
145
+ version_requirements: *70176762535280
146
+ - !ruby/object:Gem::Dependency
147
+ name: mongoid-paperclip
148
+ requirement: &70176762533760 !ruby/object:Gem::Requirement
200
149
  none: false
201
- requirements:
150
+ requirements:
202
151
  - - ~>
203
- - !ruby/object:Gem::Version
204
- hash: 25
205
- segments:
206
- - 0
207
- - 0
208
- - 3
152
+ - !ruby/object:Gem::Version
209
153
  version: 0.0.3
210
- name: mongoid-paperclip
211
- version_requirements: *id012
154
+ type: :runtime
212
155
  prerelease: false
213
- - !ruby/object:Gem::Dependency
214
- type: :development
215
- requirement: &id013 !ruby/object:Gem::Requirement
216
- none: false
217
- requirements:
218
- - - ">="
219
- - !ruby/object:Gem::Version
220
- hash: 3
221
- segments:
222
- - 0
223
- version: "0"
156
+ version_requirements: *70176762533760
157
+ - !ruby/object:Gem::Dependency
224
158
  name: database_cleaner
225
- version_requirements: *id013
226
- prerelease: false
227
- - !ruby/object:Gem::Dependency
159
+ requirement: &70176762749720 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
228
165
  type: :development
229
- requirement: &id014 !ruby/object:Gem::Requirement
166
+ prerelease: false
167
+ version_requirements: *70176762749720
168
+ - !ruby/object:Gem::Dependency
169
+ name: bson
170
+ requirement: &70176762747040 !ruby/object:Gem::Requirement
230
171
  none: false
231
- requirements:
172
+ requirements:
232
173
  - - ~>
233
- - !ruby/object:Gem::Version
234
- hash: 29
235
- segments:
236
- - 1
237
- - 2
238
- - 1
174
+ - !ruby/object:Gem::Version
239
175
  version: 1.2.1
240
- name: bson
241
- version_requirements: *id014
242
- prerelease: false
243
- - !ruby/object:Gem::Dependency
244
176
  type: :development
245
- requirement: &id015 !ruby/object:Gem::Requirement
177
+ prerelease: false
178
+ version_requirements: *70176762747040
179
+ - !ruby/object:Gem::Dependency
180
+ name: bson_ext
181
+ requirement: &70176762744220 !ruby/object:Gem::Requirement
246
182
  none: false
247
- requirements:
183
+ requirements:
248
184
  - - ~>
249
- - !ruby/object:Gem::Version
250
- hash: 29
251
- segments:
252
- - 1
253
- - 2
254
- - 1
185
+ - !ruby/object:Gem::Version
255
186
  version: 1.2.1
256
- name: bson_ext
257
- version_requirements: *id015
258
- prerelease: false
259
- - !ruby/object:Gem::Dependency
260
187
  type: :development
261
- requirement: &id016 !ruby/object:Gem::Requirement
188
+ prerelease: false
189
+ version_requirements: *70176762744220
190
+ - !ruby/object:Gem::Dependency
191
+ name: rspec
192
+ requirement: &70176762757720 !ruby/object:Gem::Requirement
262
193
  none: false
263
- requirements:
194
+ requirements:
264
195
  - - ~>
265
- - !ruby/object:Gem::Version
266
- hash: 3
267
- segments:
268
- - 2
269
- - 3
270
- - 0
196
+ - !ruby/object:Gem::Version
271
197
  version: 2.3.0
272
- name: rspec
273
- version_requirements: *id016
274
- prerelease: false
275
- - !ruby/object:Gem::Dependency
276
198
  type: :development
277
- requirement: &id017 !ruby/object:Gem::Requirement
199
+ prerelease: false
200
+ version_requirements: *70176762757720
201
+ - !ruby/object:Gem::Dependency
202
+ name: yard
203
+ requirement: &70176762756920 !ruby/object:Gem::Requirement
278
204
  none: false
279
- requirements:
205
+ requirements:
280
206
  - - ~>
281
- - !ruby/object:Gem::Version
282
- hash: 7
283
- segments:
284
- - 0
285
- - 6
286
- - 0
207
+ - !ruby/object:Gem::Version
287
208
  version: 0.6.0
288
- name: yard
289
- version_requirements: *id017
290
- prerelease: false
291
- - !ruby/object:Gem::Dependency
292
209
  type: :development
293
- requirement: &id018 !ruby/object:Gem::Requirement
210
+ prerelease: false
211
+ version_requirements: *70176762756920
212
+ - !ruby/object:Gem::Dependency
213
+ name: bundler
214
+ requirement: &70176762755860 !ruby/object:Gem::Requirement
294
215
  none: false
295
- requirements:
216
+ requirements:
296
217
  - - ~>
297
- - !ruby/object:Gem::Version
298
- hash: 23
299
- segments:
300
- - 1
301
- - 0
302
- - 0
218
+ - !ruby/object:Gem::Version
303
219
  version: 1.0.0
304
- name: bundler
305
- version_requirements: *id018
306
- prerelease: false
307
- - !ruby/object:Gem::Dependency
308
220
  type: :development
309
- requirement: &id019 !ruby/object:Gem::Requirement
221
+ prerelease: false
222
+ version_requirements: *70176762755860
223
+ - !ruby/object:Gem::Dependency
224
+ name: jeweler
225
+ requirement: &70176762754700 !ruby/object:Gem::Requirement
310
226
  none: false
311
- requirements:
227
+ requirements:
312
228
  - - ~>
313
- - !ruby/object:Gem::Version
314
- hash: 7
315
- segments:
316
- - 1
317
- - 5
318
- - 2
229
+ - !ruby/object:Gem::Version
319
230
  version: 1.5.2
320
- name: jeweler
321
- version_requirements: *id019
322
- prerelease: false
323
- - !ruby/object:Gem::Dependency
324
231
  type: :development
325
- requirement: &id020 !ruby/object:Gem::Requirement
326
- none: false
327
- requirements:
328
- - - ">="
329
- - !ruby/object:Gem::Version
330
- hash: 3
331
- segments:
332
- - 0
333
- version: "0"
232
+ prerelease: false
233
+ version_requirements: *70176762754700
234
+ - !ruby/object:Gem::Dependency
334
235
  name: rcov
335
- version_requirements: *id020
236
+ requirement: &70176762753820 !ruby/object:Gem::Requirement
237
+ none: false
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ type: :development
336
243
  prerelease: false
244
+ version_requirements: *70176762753820
337
245
  description: A simple plugin to persist image dimensions into mongoid document.
338
246
  email: aq1018@gmail.com
339
247
  executables: []
340
-
341
248
  extensions: []
342
-
343
- extra_rdoc_files:
249
+ extra_rdoc_files:
344
250
  - LICENSE.txt
345
251
  - README.rdoc
346
- files:
252
+ files:
347
253
  - .document
348
254
  - .rspec
255
+ - .rvmrc
349
256
  - Gemfile
350
257
  - LICENSE.txt
351
258
  - README.rdoc
352
259
  - Rakefile
353
260
  - VERSION
354
261
  - lib/mongoid_paperclip_image_dimension.rb
262
+ - mongoid_paperclip_image_dimension.gemspec
355
263
  - spec/mongoid_paperclip_image_dimension_spec.rb
356
264
  - spec/ruby.png
357
265
  - spec/spec_helper.rb
358
- has_rdoc: true
359
266
  homepage: http://github.com/aq1018/mongoid_paperclip_image_dimension
360
- licenses:
267
+ licenses:
361
268
  - MIT
362
269
  post_install_message:
363
270
  rdoc_options: []
364
-
365
- require_paths:
271
+ require_paths:
366
272
  - lib
367
- required_ruby_version: !ruby/object:Gem::Requirement
273
+ required_ruby_version: !ruby/object:Gem::Requirement
368
274
  none: false
369
- requirements:
370
- - - ">="
371
- - !ruby/object:Gem::Version
372
- hash: 3
373
- segments:
275
+ requirements:
276
+ - - ! '>='
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ segments:
374
280
  - 0
375
- version: "0"
376
- required_rubygems_version: !ruby/object:Gem::Requirement
281
+ hash: 582442809819487057
282
+ required_rubygems_version: !ruby/object:Gem::Requirement
377
283
  none: false
378
- requirements:
379
- - - ">="
380
- - !ruby/object:Gem::Version
381
- hash: 3
382
- segments:
383
- - 0
384
- version: "0"
284
+ requirements:
285
+ - - ! '>='
286
+ - !ruby/object:Gem::Version
287
+ version: '0'
385
288
  requirements: []
386
-
387
289
  rubyforge_project:
388
- rubygems_version: 1.5.2
290
+ rubygems_version: 1.8.10
389
291
  signing_key:
390
292
  specification_version: 3
391
293
  summary: A simple plugin to persist image dimensions into mongoid document.
392
- test_files:
393
- - spec/mongoid_paperclip_image_dimension_spec.rb
394
- - spec/spec_helper.rb
294
+ test_files: []