paperclip-style_map 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +17 -0
- data/Appraisals +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +56 -0
- data/Rakefile +17 -0
- data/bin/appraisal +17 -0
- data/bin/console +13 -0
- data/bin/rake +17 -0
- data/bin/setup +8 -0
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/paperclip_4.gemfile +7 -0
- data/gemfiles/paperclip_5.gemfile +7 -0
- data/lib/paperclip/style_map.rb +15 -0
- data/lib/paperclip/style_map/has_style_map.rb +11 -0
- data/lib/paperclip/style_map/map.rb +59 -0
- data/lib/paperclip/style_map/version.rb +5 -0
- data/paperclip-style_map.gemspec +37 -0
- metadata +239 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1399226649aa921227f86972f42f7cc9a1f0e92c
|
4
|
+
data.tar.gz: 5e83b0d4a2450fac7621d6f1db64b9c381fa57c0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5021e9cae731ae35953d194554559ac460ca53870f1ed8dcb803da533ee4696733e7b9b58467dd270baefa9f40e272a1551d3f1da852b1ba8c5d05009e88eff1
|
7
|
+
data.tar.gz: aa2ed395a726b152b22c5e83579d4d65e7619ab8bca3333ea590bc3dede2d99d00f1631315f660dbbbfbc90a06d096b251ec9e4017b64ac6ec5a363d42308979
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
sudo: false
|
2
|
+
language: ruby
|
3
|
+
cache: bundler
|
4
|
+
gemfile:
|
5
|
+
- gemfiles/paperclip_4.gemfile
|
6
|
+
- gemfiles/paperclip_5.gemfile
|
7
|
+
rvm:
|
8
|
+
- 2.2
|
9
|
+
- 2.3
|
10
|
+
- 2.4.0
|
11
|
+
before_install: gem install bundler -v 1.15.3
|
12
|
+
notifications:
|
13
|
+
email:
|
14
|
+
on_success: never
|
15
|
+
on_failure: always
|
16
|
+
slack:
|
17
|
+
secure: DmyPi20PAitINOQufkmovBNTAn2VsSREoReyvM7pmmVOzO7lHE4WPnuieRfmnn6XQsFaSjljjYmlSygY42MhQYPAyaFstHedNL9RaK9u8swWkRbms91RjygHg9tWJclPJpIcSMTdDea5B8LjQjGQNE8eveUF+DVScvVkKjRLlU8J1x2Ph7rUKYXZifwyYufoI2X0Gu9rsSao6vyYELZp1nqnkJt/3geify7d8Ffd1Ww6R7wz5tGPKtv5DAfRkJJx0VY8ZGEIsat+0OY77vUeUUvrYtCCb7aUWMfHOdNWmXPh8gBZo7Nd8geIaWLnsS1C0RQV7gB9+GBjXNO6zJruhUxFxgg52mwr7/DxLvJ9fiap26PSjesjtLP51Doz8zETvGRaOIujGgDyAktHjvaGweySxc31OKshWF7P00gqIgwuObo/LUoPnTXo3Z5Yy3VcDOTfGUof3+zA5ajlmKU+oLzJko5e6byoFzwstRLHna5mmOjw9QveUOJA4oXHRUAnsoZ/+3Vw/QANXbFFsU+vEa1rYholTk1ll9WmK1TPt+OYacJ+ik8WoP2lDYneCnxG0Xgdew7P2IR5ldnrNHfz9qlQOeARDMst+13wGxLDCz+HJJDcKE14y/CtDE7ikYWCnyffW4l4+nBidf0BqkI4B09O9pZmqUzw+M0HLXLePzg=
|
data/Appraisals
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at devel@mouse.vc. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Alexa Grey
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# Paperclip::StyleMap
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/scryptmouse/paperclip-style_map.svg?branch=master)](https://travis-ci.org/scryptmouse/paperclip-style_map)
|
4
|
+
|
5
|
+
Access your paperclip attachment's styles' URLs with hash-like syntax.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'paperclip-style_map'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install paperclip-style_map
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Given a model named `Thing` with `has_attached_file :asset`
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
thing = Thing.first
|
29
|
+
|
30
|
+
# Get a URL (expiring_url if s3)
|
31
|
+
thing.asset.style_map[:original]
|
32
|
+
|
33
|
+
# If you need a specific expiration from the default:
|
34
|
+
thing.asset.style_map.fetch :original, expiration: 5.hours
|
35
|
+
|
36
|
+
# Get all known styles as an indifferent hash
|
37
|
+
thing.asset.style_map.to_h
|
38
|
+
```
|
39
|
+
|
40
|
+
If using `delayed_paperclip` and the asset is processing, no URL will be returned. This behavior will be a configuration option in later versions.
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/scryptmouse/paperclip-style_map. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
49
|
+
|
50
|
+
## License
|
51
|
+
|
52
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
53
|
+
|
54
|
+
## Code of Conduct
|
55
|
+
|
56
|
+
Everyone interacting in the Paperclip::StyleMap project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/scryptmouse/paperclip-style_map/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "bundler/setup"
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "appraisal/task"
|
5
|
+
require "rspec/core/rake_task"
|
6
|
+
|
7
|
+
Appraisal::Task.new
|
8
|
+
|
9
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
10
|
+
t.verbose = false
|
11
|
+
end
|
12
|
+
|
13
|
+
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
|
14
|
+
task :default => :appraisal
|
15
|
+
else
|
16
|
+
task :default => :spec
|
17
|
+
end
|
data/bin/appraisal
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'appraisal' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require "pathname"
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("appraisal", "appraisal")
|
data/bin/console
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "paperclip/style_map"
|
5
|
+
|
6
|
+
require Bundler.root.join('spec/support/database').to_s
|
7
|
+
|
8
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
9
|
+
# with your gem easier. You can also use a different console, if you like.
|
10
|
+
|
11
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
12
|
+
require "pry"
|
13
|
+
Pry.start
|
data/bin/rake
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'rake' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require "pathname"
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("rake", "rake")
|
data/bin/setup
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "dux"
|
2
|
+
require "active_support/hash_with_indifferent_access"
|
3
|
+
require "active_support/core_ext/module/delegation"
|
4
|
+
require "paperclip"
|
5
|
+
|
6
|
+
require "paperclip/style_map/version"
|
7
|
+
require "paperclip/style_map/map"
|
8
|
+
require "paperclip/style_map/has_style_map"
|
9
|
+
|
10
|
+
module Paperclip
|
11
|
+
module StyleMap
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Paperclip::Attachment.prepend Paperclip::StyleMap::HasStyleMap
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module Paperclip
|
2
|
+
module StyleMap
|
3
|
+
class Map
|
4
|
+
DEFAULT_EXPIRATION = 3600
|
5
|
+
|
6
|
+
attr_reader :model
|
7
|
+
attr_reader :attachment
|
8
|
+
attr_reader :attachment_name
|
9
|
+
attr_reader :style_names
|
10
|
+
|
11
|
+
# @param [ActiveRecord::Base] model
|
12
|
+
# @param [Paperclip::Attachment] attachment
|
13
|
+
def initialize(model:, attachment:)
|
14
|
+
@model = model
|
15
|
+
@attachment = attachment
|
16
|
+
|
17
|
+
@attachment_name = attachment.name
|
18
|
+
|
19
|
+
@style_names = Dux.enum @attachment.default_style, *@attachment.styles.keys
|
20
|
+
end
|
21
|
+
|
22
|
+
# @param [String, Symbol] style_name
|
23
|
+
# @param [ActiveSupport::Duration, Integer] expiration
|
24
|
+
# @return [String, nil]
|
25
|
+
def fetch(style_name, expiration: DEFAULT_EXPIRATION)
|
26
|
+
return nil if blank? || !valid_style?(style_name)
|
27
|
+
|
28
|
+
@attachment.expiring_url(expiration, style_name)
|
29
|
+
end
|
30
|
+
|
31
|
+
alias_method :[], :fetch
|
32
|
+
|
33
|
+
def blank?
|
34
|
+
!@attachment.exists? || processing?
|
35
|
+
end
|
36
|
+
|
37
|
+
def processing?
|
38
|
+
@attachment.respond_to?(:processing?) && @attachment.processing?
|
39
|
+
end
|
40
|
+
|
41
|
+
def inspect
|
42
|
+
inspected_styles = @style_names.map { |n| n.to_sym.inspect }.inspect
|
43
|
+
|
44
|
+
"#<#{self.class.name} @model=#{@model.model_name} @attachment=#{@attachment_name} @style_names=#{inspected_styles}>"
|
45
|
+
end
|
46
|
+
|
47
|
+
# @param [String, Symbol] name
|
48
|
+
def valid_style?(name)
|
49
|
+
@style_names.include? name
|
50
|
+
end
|
51
|
+
|
52
|
+
def to_h
|
53
|
+
@style_names.each_with_object({}.with_indifferent_access) do |style_name, urls|
|
54
|
+
urls[style_name.to_s] = self[style_name]
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "paperclip/style_map/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "paperclip-style_map"
|
8
|
+
spec.version = Paperclip::StyleMap::VERSION
|
9
|
+
spec.authors = ["Alexa Grey"]
|
10
|
+
spec.email = ["devel@mouse.vc"]
|
11
|
+
|
12
|
+
spec.summary = %q{Access Paperclip style URLs like a hash}
|
13
|
+
spec.description = %q{Access Paperclip style URLs like a hash}
|
14
|
+
spec.homepage = "https://github.com/scryptmouse/paperclip-style_map"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "paperclip", "> 4"
|
25
|
+
spec.add_dependency "dux", '>= 0.8.0', '< 2'
|
26
|
+
|
27
|
+
spec.add_development_dependency "appraisal", "~> 2.2.0"
|
28
|
+
spec.add_development_dependency "activerecord"
|
29
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
30
|
+
spec.add_development_dependency "delayed_paperclip"
|
31
|
+
spec.add_development_dependency "factory_girl"
|
32
|
+
spec.add_development_dependency "pry"
|
33
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
35
|
+
spec.add_development_dependency "simplecov"
|
36
|
+
spec.add_development_dependency "sqlite3"
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: paperclip-style_map
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexa Grey
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-07-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: paperclip
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dux
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.8.0
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.8.0
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: appraisal
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.2.0
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.2.0
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: activerecord
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: bundler
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.15'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1.15'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: delayed_paperclip
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: factory_girl
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: pry
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: rake
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '12.0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '12.0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: rspec
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '3.0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '3.0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: simplecov
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: sqlite3
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
description: Access Paperclip style URLs like a hash
|
188
|
+
email:
|
189
|
+
- devel@mouse.vc
|
190
|
+
executables: []
|
191
|
+
extensions: []
|
192
|
+
extra_rdoc_files: []
|
193
|
+
files:
|
194
|
+
- ".gitignore"
|
195
|
+
- ".rspec"
|
196
|
+
- ".travis.yml"
|
197
|
+
- Appraisals
|
198
|
+
- CODE_OF_CONDUCT.md
|
199
|
+
- Gemfile
|
200
|
+
- LICENSE.txt
|
201
|
+
- README.md
|
202
|
+
- Rakefile
|
203
|
+
- bin/appraisal
|
204
|
+
- bin/console
|
205
|
+
- bin/rake
|
206
|
+
- bin/setup
|
207
|
+
- gemfiles/.bundle/config
|
208
|
+
- gemfiles/paperclip_4.gemfile
|
209
|
+
- gemfiles/paperclip_5.gemfile
|
210
|
+
- lib/paperclip/style_map.rb
|
211
|
+
- lib/paperclip/style_map/has_style_map.rb
|
212
|
+
- lib/paperclip/style_map/map.rb
|
213
|
+
- lib/paperclip/style_map/version.rb
|
214
|
+
- paperclip-style_map.gemspec
|
215
|
+
homepage: https://github.com/scryptmouse/paperclip-style_map
|
216
|
+
licenses:
|
217
|
+
- MIT
|
218
|
+
metadata: {}
|
219
|
+
post_install_message:
|
220
|
+
rdoc_options: []
|
221
|
+
require_paths:
|
222
|
+
- lib
|
223
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - ">="
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: '0'
|
228
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
+
requirements:
|
230
|
+
- - ">="
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '0'
|
233
|
+
requirements: []
|
234
|
+
rubyforge_project:
|
235
|
+
rubygems_version: 2.6.12
|
236
|
+
signing_key:
|
237
|
+
specification_version: 4
|
238
|
+
summary: Access Paperclip style URLs like a hash
|
239
|
+
test_files: []
|