ImageClip 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 39bb9d5e73a2bfa1b935f64cac0d0bc3a253fb07
4
+ data.tar.gz: 6900076658173524195f1eb45c21d69ed8566fc6
5
+ SHA512:
6
+ metadata.gz: ff93fe1620561d32a9b0ae85360ade5f88639a76da3081450097a0261cc268807a2c9033c28f5424d5c24de19a84facfe68b8f9146bbab46fdc2103610d13233
7
+ data.tar.gz: 6f607e6f8101bd6d827ff87e60219a7d740ba68a07a1301911751dd8b4d85182d02dca3238061ab845685b00eaaaeccdde4cd21c1a55ccbed7c8e38fe42a5f72
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
@@ -0,0 +1 @@
1
+ ImageClip
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="CompassSettings">
4
+ <option name="compassSupportEnabled" value="true" />
5
+ </component>
6
+ <component name="FacetManager">
7
+ <facet type="gem" name="Ruby Gem">
8
+ <configuration>
9
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
10
+ <option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/test" />
11
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
12
+ </configuration>
13
+ </facet>
14
+ </component>
15
+ <component name="NewModuleRootManager">
16
+ <content url="file://$MODULE_DIR$">
17
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
18
+ </content>
19
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.1.4" jdkType="RUBY_SDK" />
20
+ <orderEntry type="sourceFolder" forTests="false" />
21
+ <orderEntry type="library" scope="PROVIDED" name="activemodel (v4.1.5, RVM: ruby-2.1.4) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v4.1.5, RVM: ruby-2.1.4) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.1.4) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.5, RVM: ruby-2.1.4) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="climate_control (v0.0.3, RVM: ruby-2.1.4) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="cocaine (v0.5.4, RVM: ruby-2.1.4) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.11, RVM: ruby-2.1.4) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v1.25.1, RVM: ruby-2.1.4) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.4.3, RVM: ruby-2.1.4) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="paperclip (v4.2.0, RVM: ruby-2.1.4) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.0, RVM: ruby-2.1.4) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.4, RVM: ruby-2.1.4) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.2, RVM: ruby-2.1.4) [gem]" level="application" />
34
+ </component>
35
+ </module>
36
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.1.0" project-jdk-type="RUBY_SDK" />
4
+ </project>
5
+
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ImageClip.iml" filepath="$PROJECT_DIR$/.idea/ImageClip.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,236 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="f03a66b9-6559-4571-add8-f2e08f3812a6" name="Default" comment="" />
5
+ <ignored path="ImageClip.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <option name="TRACKING_ENABLED" value="true" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
14
+ <component name="CreatePatchCommitExecutor">
15
+ <option name="PATCH_PATH" value="" />
16
+ </component>
17
+ <component name="DaemonCodeAnalyzer">
18
+ <disable_hints />
19
+ </component>
20
+ <component name="FavoritesManager">
21
+ <favorites_list name="ImageClip" />
22
+ </component>
23
+ <component name="FileEditorManager">
24
+ <leaf>
25
+ <file leaf-file-name="ImageClip.rb" pinned="false" current="true" current-in-tab="true">
26
+ <entry file="file://$PROJECT_DIR$/lib/ImageClip.rb">
27
+ <provider selected="true" editor-type-id="text-editor">
28
+ <state vertical-scroll-proportion="0.5106383" vertical-offset="0" max-vertical-offset="423">
29
+ <caret line="12" column="12" selection-start-line="12" selection-start-column="12" selection-end-line="12" selection-end-column="12" />
30
+ <folding />
31
+ </state>
32
+ </provider>
33
+ </entry>
34
+ </file>
35
+ </leaf>
36
+ </component>
37
+ <component name="FindManager">
38
+ <FindUsagesManager>
39
+ <setting name="OPEN_NEW_TAB" value="true" />
40
+ </FindUsagesManager>
41
+ </component>
42
+ <component name="IdeDocumentHistory">
43
+ <option name="changedFiles">
44
+ <list>
45
+ <option value="$PROJECT_DIR$/Gemfile" />
46
+ <option value="$PROJECT_DIR$/lib/ImageClip.rb" />
47
+ <option value="$PROJECT_DIR$/ImageClip.gemspec" />
48
+ </list>
49
+ </option>
50
+ </component>
51
+ <component name="ProjectFrameBounds">
52
+ <option name="x" value="65" />
53
+ <option name="y" value="-4" />
54
+ <option name="width" value="1301" />
55
+ <option name="height" value="772" />
56
+ </component>
57
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
58
+ <OptionsSetting value="true" id="Add" />
59
+ <OptionsSetting value="true" id="Remove" />
60
+ <OptionsSetting value="true" id="Checkout" />
61
+ <OptionsSetting value="true" id="Update" />
62
+ <OptionsSetting value="true" id="Status" />
63
+ <OptionsSetting value="true" id="Edit" />
64
+ <ConfirmationsSetting value="0" id="Add" />
65
+ <ConfirmationsSetting value="0" id="Remove" />
66
+ </component>
67
+ <component name="ProjectReloadState">
68
+ <option name="STATE" value="0" />
69
+ </component>
70
+ <component name="ProjectView">
71
+ <navigator currentView="ProjectPane" proportions="" version="1">
72
+ <flattenPackages />
73
+ <showMembers />
74
+ <showModules />
75
+ <showLibraryContents />
76
+ <hideEmptyPackages />
77
+ <abbreviatePackageNames />
78
+ <autoscrollToSource />
79
+ <autoscrollFromSource />
80
+ <sortByType />
81
+ </navigator>
82
+ <panes>
83
+ <pane id="Scope" />
84
+ <pane id="ProjectPane">
85
+ <subPane>
86
+ <PATH>
87
+ <PATH_ELEMENT>
88
+ <option name="myItemId" value="ImageClip" />
89
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
90
+ </PATH_ELEMENT>
91
+ </PATH>
92
+ <PATH>
93
+ <PATH_ELEMENT>
94
+ <option name="myItemId" value="ImageClip" />
95
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
96
+ </PATH_ELEMENT>
97
+ <PATH_ELEMENT>
98
+ <option name="myItemId" value="ImageClip" />
99
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
100
+ </PATH_ELEMENT>
101
+ </PATH>
102
+ <PATH>
103
+ <PATH_ELEMENT>
104
+ <option name="myItemId" value="ImageClip" />
105
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
106
+ </PATH_ELEMENT>
107
+ <PATH_ELEMENT>
108
+ <option name="myItemId" value="ImageClip" />
109
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
110
+ </PATH_ELEMENT>
111
+ <PATH_ELEMENT>
112
+ <option name="myItemId" value="lib" />
113
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
114
+ </PATH_ELEMENT>
115
+ </PATH>
116
+ <PATH>
117
+ <PATH_ELEMENT>
118
+ <option name="myItemId" value="ImageClip" />
119
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
120
+ </PATH_ELEMENT>
121
+ <PATH_ELEMENT>
122
+ <option name="myItemId" value="ImageClip" />
123
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
124
+ </PATH_ELEMENT>
125
+ <PATH_ELEMENT>
126
+ <option name="myItemId" value="lib" />
127
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
128
+ </PATH_ELEMENT>
129
+ <PATH_ELEMENT>
130
+ <option name="myItemId" value="ImageClip" />
131
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
132
+ </PATH_ELEMENT>
133
+ </PATH>
134
+ </subPane>
135
+ </pane>
136
+ </panes>
137
+ </component>
138
+ <component name="PropertiesComponent">
139
+ <property name="options.lastSelected" value="preferences.sourceCode" />
140
+ <property name="options.splitter.main.proportions" value="0.3" />
141
+ <property name="options.splitter.details.proportions" value="0.2" />
142
+ <property name="options.searchVisible" value="true" />
143
+ <property name="WebServerToolWindowFactoryState" value="false" />
144
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/../l33tify" />
145
+ </component>
146
+ <component name="RunManager">
147
+ <list size="0" />
148
+ </component>
149
+ <component name="ShelveChangesManager" show_recycled="false" />
150
+ <component name="TaskManager">
151
+ <task active="true" id="Default" summary="Default task">
152
+ <changelist id="f03a66b9-6559-4571-add8-f2e08f3812a6" name="Default" comment="" />
153
+ <created>1417215004309</created>
154
+ <updated>1417215004309</updated>
155
+ </task>
156
+ <servers />
157
+ </component>
158
+ <component name="ToolWindowManager">
159
+ <frame x="65" y="-4" width="1301" height="772" extended-state="6" />
160
+ <editor active="true" />
161
+ <layout>
162
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
163
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
164
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
165
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
166
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
167
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24940239" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
168
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
169
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
170
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
171
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3288889" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
172
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
173
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
174
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
175
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
176
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
177
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
178
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
179
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
180
+ </layout>
181
+ </component>
182
+ <component name="Vcs.Log.UiProperties">
183
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
184
+ <collection />
185
+ </option>
186
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
187
+ <collection />
188
+ </option>
189
+ </component>
190
+ <component name="VcsContentAnnotationSettings">
191
+ <option name="myLimit" value="2678400000" />
192
+ </component>
193
+ <component name="VcsManagerConfiguration">
194
+ <option name="myTodoPanelSettings">
195
+ <TodoPanelSettings />
196
+ </option>
197
+ </component>
198
+ <component name="XDebuggerManager">
199
+ <breakpoint-manager />
200
+ </component>
201
+ <component name="editorHistoryManager">
202
+ <entry file="file://$PROJECT_DIR$/lib/ImageClip/version.rb">
203
+ <provider selected="true" editor-type-id="text-editor">
204
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="423">
205
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
206
+ <folding />
207
+ </state>
208
+ </provider>
209
+ </entry>
210
+ <entry file="file://$PROJECT_DIR$/Gemfile">
211
+ <provider selected="true" editor-type-id="text-editor">
212
+ <state vertical-scroll-proportion="0.21276596" vertical-offset="0" max-vertical-offset="423">
213
+ <caret line="5" column="15" selection-start-line="5" selection-start-column="15" selection-end-line="5" selection-end-column="15" />
214
+ <folding />
215
+ </state>
216
+ </provider>
217
+ </entry>
218
+ <entry file="file://$PROJECT_DIR$/ImageClip.gemspec">
219
+ <provider selected="true" editor-type-id="text-editor">
220
+ <state vertical-scroll-proportion="0.13170731" vertical-offset="0" max-vertical-offset="522">
221
+ <caret line="3" column="27" selection-start-line="3" selection-start-column="27" selection-end-line="3" selection-end-column="27" />
222
+ <folding />
223
+ </state>
224
+ </provider>
225
+ </entry>
226
+ <entry file="file://$PROJECT_DIR$/lib/ImageClip.rb">
227
+ <provider selected="true" editor-type-id="text-editor">
228
+ <state vertical-scroll-proportion="0.5106383" vertical-offset="0" max-vertical-offset="423">
229
+ <caret line="12" column="12" selection-start-line="12" selection-start-column="12" selection-end-line="12" selection-end-column="12" />
230
+ <folding />
231
+ </state>
232
+ </provider>
233
+ </entry>
234
+ </component>
235
+ </project>
236
+
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ImageClip.gemspec
4
+ gemspec
5
+
6
+ gem 'paperclip'
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ImageClip/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ImageClip"
8
+ spec.version = ImageClip::VERSION
9
+ spec.authors = ["Alex"]
10
+ spec.email = ["alex@monolithinteractive.com"]
11
+ spec.summary = %q{Extension of Paperclip to work with images}
12
+ spec.description = %q{Adding methods building on paperclip and imagemagick to save images as compressed base64 strings in the database. Also adding methods for resizing/cropping.}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Alex
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,31 @@
1
+ # ImageClip
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'ImageClip'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install ImageClip
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/[my-github-username]/ImageClip/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,15 @@
1
+ require "ImageClip/version"
2
+
3
+ module ImageClip
4
+ def self.add_image(table_name, attachment_name)
5
+ add_column(table_name, "#{attachment_name}_data", :text)
6
+ add_attachment(table_name, attachment_name)
7
+ # add code to model for saving
8
+ end
9
+
10
+ def self.remove_image(table_name, attachment_name)
11
+ remove_column(table_name, "#{attachment_name}_data")
12
+ remove_attachment(table_name, attachment_name)
13
+ # remove code to model for saving
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module ImageClip
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ImageClip
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Alex
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Adding methods building on paperclip and imagemagick to save images as
42
+ compressed base64 strings in the database. Also adding methods for resizing/cropping.
43
+ email:
44
+ - alex@monolithinteractive.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - ".idea/.name"
51
+ - ".idea/ImageClip.iml"
52
+ - ".idea/encodings.xml"
53
+ - ".idea/misc.xml"
54
+ - ".idea/modules.xml"
55
+ - ".idea/scopes/scope_settings.xml"
56
+ - ".idea/vcs.xml"
57
+ - ".idea/workspace.xml"
58
+ - Gemfile
59
+ - ImageClip.gemspec
60
+ - LICENSE.txt
61
+ - README.md
62
+ - Rakefile
63
+ - lib/ImageClip.rb
64
+ - lib/ImageClip/version.rb
65
+ homepage: ''
66
+ licenses:
67
+ - MIT
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project:
85
+ rubygems_version: 2.2.2
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: Extension of Paperclip to work with images
89
+ test_files: []