oxen_media 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bowerrc +3 -0
- data/.envrc +1 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +331 -0
- data/Guardfile +135 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +31 -0
- data/Rakefile +15 -0
- data/app/assets/images/oxen_media/.keep +0 -0
- data/app/assets/javascripts/jsrender.min.js +4 -0
- data/app/assets/javascripts/jsrender.min.js.map +463 -0
- data/app/assets/javascripts/oxen_media.js +3 -0
- data/app/assets/javascripts/oxen_media/.keep +0 -0
- data/app/assets/javascripts/oxen_media/carrier_wave_cropper.js.coffee +22 -0
- data/app/assets/javascripts/oxen_media/media.js.coffee +469 -0
- data/app/assets/javascripts/oxen_media/medium_pane.js.coffee +107 -0
- data/app/assets/javascripts/templates/selected_files.html +35 -0
- data/app/assets/stylesheets/media.css +10 -0
- data/app/assets/stylesheets/oxen_media/.keep +0 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/.keep +0 -0
- data/app/controllers/media_controller.rb +106 -0
- data/app/helpers/.keep +0 -0
- data/app/helpers/media_helper.rb +2 -0
- data/app/mailers/.keep +0 -0
- data/app/models/.keep +0 -0
- data/app/models/concerns/roleable.rb +61 -0
- data/app/models/medium.rb +25 -0
- data/app/policies/oxen_medium_policy.rb +12 -0
- data/app/uploaders/medium_uploader.rb +106 -0
- data/app/views/.keep +0 -0
- data/app/views/media/_fields.html.haml +42 -0
- data/app/views/media/_form.html.haml +48 -0
- data/app/views/media/_media.html.haml +18 -0
- data/app/views/media/_medium.html.haml +25 -0
- data/app/views/media/_medium_fields.html.haml +4 -0
- data/app/views/media/create.js.haml +2 -0
- data/app/views/media/crop.html.haml +3 -0
- data/app/views/media/edit.html.haml +2 -0
- data/app/views/media/index.html.haml +29 -0
- data/app/views/media/index.json.jbuilder +4 -0
- data/app/views/media/new.html.erb +5 -0
- data/app/views/media/show.html.haml +21 -0
- data/app/views/media/show.json.jbuilder +1 -0
- data/app/views/media/update_crop.js.haml +1 -0
- data/bin/rails +12 -0
- data/config/initializers/backtrace_silencers.rb +9 -0
- data/config/initializers/carrier_wave.rb +11 -0
- data/config/initializers/simple_form.rb +14 -0
- data/config/locales/media.en.yml +20 -0
- data/config/routes.rb +6 -0
- data/db/migrate/20150629071720_create_media.rb +13 -0
- data/lib/generators/media/USAGE +8 -0
- data/lib/generators/media/media_generator.rb +48 -0
- data/lib/generators/media/templates/medium.rb +13 -0
- data/lib/oxen_media.rb +7 -0
- data/lib/oxen_media/engine.rb +19 -0
- data/lib/oxen_media/version.rb +3 -0
- data/lib/tasks/oxen_media_tasks.rake +4 -0
- data/oxen_media.gemspec +59 -0
- data/test/controllers/media_controller_test.rb +49 -0
- data/test/fixtures/media.yml +17 -0
- data/test/integration/oxen_media_test.rb +7 -0
- data/test/lib/generators/media_generator_test.rb +14 -0
- data/test/models/medium_test.rb +7 -0
- data/test/test_helper.rb +13 -0
- metadata +387 -0
data/oxen_media.gemspec
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
# Maintain your gem's version:
|
4
|
+
require "oxen_media/version"
|
5
|
+
|
6
|
+
# Describe your gem and declare its dependencies:
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "oxen_media"
|
9
|
+
s.version = OxenMedia::VERSION
|
10
|
+
s.authors = ["Walther H Diechmann"]
|
11
|
+
s.email = ["walther@diechmann.net"]
|
12
|
+
s.homepage = "http://github.com/wdiechmann/oxen_media"
|
13
|
+
s.summary = "OxenMedia handles your media - uploads, converts, right-sizes, whatever you need"
|
14
|
+
s.description = "OxenMedia is a Gem in the Oxen* Family of Gem's "
|
15
|
+
s.license = "MIT"
|
16
|
+
|
17
|
+
# s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
|
18
|
+
s.files = `git ls-files -z`.split("\x0")
|
19
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
# s.test_files = Dir["test/**/*"]
|
21
|
+
# s.test_files = `git ls-files -- test/*`.split("\n")
|
22
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
23
|
+
# s.require_paths = ["lib"]
|
24
|
+
s.required_ruby_version = '>= 2.1.2'
|
25
|
+
#s.rubyforge_project = "devise"
|
26
|
+
|
27
|
+
s.add_dependency "rails", "~> 4.2.1"
|
28
|
+
s.add_dependency "pundit" #, "~> 0.3.0"
|
29
|
+
s.add_dependency 'mini_magick'
|
30
|
+
s.add_dependency 'carrierwave'
|
31
|
+
s.add_dependency 'carrierwave-crop'
|
32
|
+
s.add_dependency 'carrierwave-processing'
|
33
|
+
s.add_dependency 'fog'
|
34
|
+
#
|
35
|
+
# s.add_dependency "sweetalert-rails"
|
36
|
+
# s.add_dependency("responders")
|
37
|
+
|
38
|
+
s.add_development_dependency 'minitest-reporters'
|
39
|
+
s.add_development_dependency 'mini_backtrace'
|
40
|
+
s.add_development_dependency 'guard-minitest'
|
41
|
+
s.add_development_dependency 'combustion', '~> 0.5.3'
|
42
|
+
s.add_development_dependency "sqlite3"
|
43
|
+
s.add_development_dependency 'factory_girl_rails'
|
44
|
+
s.add_development_dependency 'database_cleaner'
|
45
|
+
s.add_development_dependency 'capybara'
|
46
|
+
s.add_development_dependency "guard"
|
47
|
+
s.add_development_dependency "pry"
|
48
|
+
s.add_development_dependency "pry-remote"
|
49
|
+
s.add_development_dependency "pry-nav"
|
50
|
+
# s.add_development_dependency "guard-rspec"
|
51
|
+
#
|
52
|
+
# s.add_development_dependency "rspec"
|
53
|
+
# s.add_development_dependency 'rspec-rails'
|
54
|
+
# s.add_development_dependency "rspec-nc"
|
55
|
+
# s.add_development_dependency "railties", ">= 3.2.6", "< 5"
|
56
|
+
# s.add_development_dependency "activerecord", ">= 3.2.6"
|
57
|
+
# s.add_development_dependency "bundler", "~> 1.7"
|
58
|
+
# s.add_development_dependency "rake", "~> 10.0"
|
59
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MediaControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@medium = media(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:media)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create medium" do
|
20
|
+
assert_difference('Medium.count') do
|
21
|
+
post :create, medium: { description: @medium.description, imageable_id: @medium.imageable_id, imageable_type: @medium.imageable_type, lng_lat: @medium.lng_lat, medium: @medium.medium, title: @medium.title }
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to medium_path(assigns(:medium))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show medium" do
|
28
|
+
get :show, id: @medium
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @medium
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update medium" do
|
38
|
+
patch :update, id: @medium, medium: { description: @medium.description, imageable_id: @medium.imageable_id, imageable_type: @medium.imageable_type, lng_lat: @medium.lng_lat, medium: @medium.medium, title: @medium.title }
|
39
|
+
assert_redirected_to medium_path(assigns(:medium))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy medium" do
|
43
|
+
assert_difference('Medium.count', -1) do
|
44
|
+
delete :destroy, id: @medium
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to media_path
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
title: MyString
|
5
|
+
imageable_id:
|
6
|
+
imageable_type: Imageable
|
7
|
+
medium: MyString
|
8
|
+
lng_lat: MyString
|
9
|
+
description: MyText
|
10
|
+
|
11
|
+
two:
|
12
|
+
title: MyString
|
13
|
+
imageable_id:
|
14
|
+
imageable_type: Imageable
|
15
|
+
medium: MyString
|
16
|
+
lng_lat: MyString
|
17
|
+
description: MyText
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'generators/media/media_generator'
|
3
|
+
|
4
|
+
class MediaGeneratorTest < Rails::Generators::TestCase
|
5
|
+
tests MediaGenerator
|
6
|
+
destination Rails.root.join('tmp/generators')
|
7
|
+
setup :prepare_destination
|
8
|
+
|
9
|
+
# test "generator runs without errors" do
|
10
|
+
# assert_nothing_raised do
|
11
|
+
# run_generator ["arguments"]
|
12
|
+
# end
|
13
|
+
# end
|
14
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
require "minitest/reporters"
|
5
|
+
Minitest::Reporters.use!
|
6
|
+
|
7
|
+
class ActiveSupport::TestCase
|
8
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical
|
9
|
+
# order.
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,387 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oxen_media
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Walther H Diechmann
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pundit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mini_magick
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: carrierwave
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: carrierwave-crop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: carrierwave-processing
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: fog
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: minitest-reporters
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: mini_backtrace
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: guard-minitest
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: combustion
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.5.3
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.5.3
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sqlite3
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: factory_girl_rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: database_cleaner
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: capybara
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: guard
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: pry
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: pry-remote
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: pry-nav
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
description: 'OxenMedia is a Gem in the Oxen* Family of Gem''s '
|
280
|
+
email:
|
281
|
+
- walther@diechmann.net
|
282
|
+
executables:
|
283
|
+
- rails
|
284
|
+
extensions: []
|
285
|
+
extra_rdoc_files: []
|
286
|
+
files:
|
287
|
+
- ".bowerrc"
|
288
|
+
- ".envrc"
|
289
|
+
- ".gitignore"
|
290
|
+
- ".rspec"
|
291
|
+
- ".ruby-version"
|
292
|
+
- Gemfile
|
293
|
+
- Gemfile.lock
|
294
|
+
- Guardfile
|
295
|
+
- MIT-LICENSE
|
296
|
+
- README.rdoc
|
297
|
+
- Rakefile
|
298
|
+
- app/assets/images/oxen_media/.keep
|
299
|
+
- app/assets/javascripts/jsrender.min.js
|
300
|
+
- app/assets/javascripts/jsrender.min.js.map
|
301
|
+
- app/assets/javascripts/oxen_media.js
|
302
|
+
- app/assets/javascripts/oxen_media/.keep
|
303
|
+
- app/assets/javascripts/oxen_media/carrier_wave_cropper.js.coffee
|
304
|
+
- app/assets/javascripts/oxen_media/media.js.coffee
|
305
|
+
- app/assets/javascripts/oxen_media/medium_pane.js.coffee
|
306
|
+
- app/assets/javascripts/templates/selected_files.html
|
307
|
+
- app/assets/stylesheets/media.css
|
308
|
+
- app/assets/stylesheets/oxen_media/.keep
|
309
|
+
- app/assets/stylesheets/scaffold.css
|
310
|
+
- app/controllers/.keep
|
311
|
+
- app/controllers/media_controller.rb
|
312
|
+
- app/helpers/.keep
|
313
|
+
- app/helpers/media_helper.rb
|
314
|
+
- app/mailers/.keep
|
315
|
+
- app/models/.keep
|
316
|
+
- app/models/concerns/roleable.rb
|
317
|
+
- app/models/medium.rb
|
318
|
+
- app/policies/oxen_medium_policy.rb
|
319
|
+
- app/uploaders/medium_uploader.rb
|
320
|
+
- app/views/.keep
|
321
|
+
- app/views/media/_fields.html.haml
|
322
|
+
- app/views/media/_form.html.haml
|
323
|
+
- app/views/media/_media.html.haml
|
324
|
+
- app/views/media/_medium.html.haml
|
325
|
+
- app/views/media/_medium_fields.html.haml
|
326
|
+
- app/views/media/create.js.haml
|
327
|
+
- app/views/media/crop.html.haml
|
328
|
+
- app/views/media/edit.html.haml
|
329
|
+
- app/views/media/index.html.haml
|
330
|
+
- app/views/media/index.json.jbuilder
|
331
|
+
- app/views/media/new.html.erb
|
332
|
+
- app/views/media/show.html.haml
|
333
|
+
- app/views/media/show.json.jbuilder
|
334
|
+
- app/views/media/update_crop.js.haml
|
335
|
+
- bin/rails
|
336
|
+
- config/initializers/backtrace_silencers.rb
|
337
|
+
- config/initializers/carrier_wave.rb
|
338
|
+
- config/initializers/simple_form.rb
|
339
|
+
- config/locales/media.en.yml
|
340
|
+
- config/routes.rb
|
341
|
+
- db/migrate/20150629071720_create_media.rb
|
342
|
+
- lib/generators/media/USAGE
|
343
|
+
- lib/generators/media/media_generator.rb
|
344
|
+
- lib/generators/media/templates/medium.rb
|
345
|
+
- lib/oxen_media.rb
|
346
|
+
- lib/oxen_media/engine.rb
|
347
|
+
- lib/oxen_media/version.rb
|
348
|
+
- lib/tasks/oxen_media_tasks.rake
|
349
|
+
- oxen_media.gemspec
|
350
|
+
- test/controllers/media_controller_test.rb
|
351
|
+
- test/fixtures/media.yml
|
352
|
+
- test/integration/oxen_media_test.rb
|
353
|
+
- test/lib/generators/media_generator_test.rb
|
354
|
+
- test/models/medium_test.rb
|
355
|
+
- test/test_helper.rb
|
356
|
+
homepage: http://github.com/wdiechmann/oxen_media
|
357
|
+
licenses:
|
358
|
+
- MIT
|
359
|
+
metadata: {}
|
360
|
+
post_install_message:
|
361
|
+
rdoc_options: []
|
362
|
+
require_paths:
|
363
|
+
- lib
|
364
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
365
|
+
requirements:
|
366
|
+
- - ">="
|
367
|
+
- !ruby/object:Gem::Version
|
368
|
+
version: 2.1.2
|
369
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
370
|
+
requirements:
|
371
|
+
- - ">="
|
372
|
+
- !ruby/object:Gem::Version
|
373
|
+
version: '0'
|
374
|
+
requirements: []
|
375
|
+
rubyforge_project:
|
376
|
+
rubygems_version: 2.2.2
|
377
|
+
signing_key:
|
378
|
+
specification_version: 4
|
379
|
+
summary: OxenMedia handles your media - uploads, converts, right-sizes, whatever you
|
380
|
+
need
|
381
|
+
test_files:
|
382
|
+
- test/controllers/media_controller_test.rb
|
383
|
+
- test/fixtures/media.yml
|
384
|
+
- test/integration/oxen_media_test.rb
|
385
|
+
- test/lib/generators/media_generator_test.rb
|
386
|
+
- test/models/medium_test.rb
|
387
|
+
- test/test_helper.rb
|