ds_node 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 +13 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/app/models/ds_node/resource.rb +181 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config/initializers/check_dependencies.rb +3 -0
- data/db/migrate/1_create_resources.rb +19 -0
- data/ds_node.gemspec +31 -0
- data/lib/ds_node.rb +4 -0
- data/lib/ds_node/ds_resource.rb +159 -0
- data/lib/ds_node/rails.rb +11 -0
- data/lib/ds_node/version.rb +3 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6882c72eba223fba4869f57d29cbac945fccc0c0
|
4
|
+
data.tar.gz: 8a9f1da5cdbe5aa8baa35e2242a7276f495f554f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ddaccc712a73d81cc66d77275aecb6870b8ad5e3f2dd424cbcda202ac4ca823d592e772be1bd417b027944ca8855d4bbf98f5f1eeded09ed79c302d0fd4c61d4
|
7
|
+
data.tar.gz: 05af250a347f776a5472517b56bd9fa5ff1eff4c4ffe2839860ba248f83dab6c1455943678974616cea1fa63ab29c58cbb059d5745c3c8ce2e40844669c5502c
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ds_node
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.6
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Micah Geisel
|
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,41 @@
|
|
1
|
+
# DSNode
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ds_node`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'ds_node'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install ds_node
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/botandrose/ds_node.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,181 @@
|
|
1
|
+
require "mime/types"
|
2
|
+
require "tempfile"
|
3
|
+
|
4
|
+
module DSNode
|
5
|
+
class Resource < ActiveRecord::Base
|
6
|
+
class UnrecognizedFileType < StandardError; end
|
7
|
+
|
8
|
+
self.primary_key = :resourcesid
|
9
|
+
self.inheritance_column = :subclass
|
10
|
+
|
11
|
+
attr_accessor :new_file, :mime_type, :extension
|
12
|
+
|
13
|
+
before_save :save_to_disk, :if => :new_file
|
14
|
+
before_destroy :delete_file
|
15
|
+
|
16
|
+
def file= file
|
17
|
+
# normalize when file is an HttpUploadedFile
|
18
|
+
self.original_file_name ||= actual_file_name(file)
|
19
|
+
file = actual_file(file)
|
20
|
+
|
21
|
+
# queue for after_save hook
|
22
|
+
self.new_file = file
|
23
|
+
|
24
|
+
# initial processing
|
25
|
+
set_mime_type
|
26
|
+
set_type
|
27
|
+
set_extension
|
28
|
+
set_dimensions_and_duration
|
29
|
+
|
30
|
+
self.file = to_thumbnail_file if needs_processing? # reenter if needed
|
31
|
+
end
|
32
|
+
|
33
|
+
def file_path
|
34
|
+
File.join "/assets", path, file_name
|
35
|
+
end
|
36
|
+
|
37
|
+
def full_path
|
38
|
+
File.join "public", file_path
|
39
|
+
end
|
40
|
+
|
41
|
+
def url
|
42
|
+
file_path
|
43
|
+
end
|
44
|
+
|
45
|
+
def image?
|
46
|
+
media_type == "i"
|
47
|
+
end
|
48
|
+
|
49
|
+
def video?
|
50
|
+
media_type == "v"
|
51
|
+
end
|
52
|
+
|
53
|
+
def audio?
|
54
|
+
media_type == "a"
|
55
|
+
end
|
56
|
+
|
57
|
+
def pdf?
|
58
|
+
media_type == "p"
|
59
|
+
end
|
60
|
+
|
61
|
+
def needs_processing?
|
62
|
+
false
|
63
|
+
end
|
64
|
+
|
65
|
+
def preferred_format
|
66
|
+
"jpg"
|
67
|
+
end
|
68
|
+
|
69
|
+
def to_thumbnail_file
|
70
|
+
result = Tempfile.new(["result", ".#{preferred_format}"])
|
71
|
+
if video?
|
72
|
+
Dir.mktmpdir do |dir|
|
73
|
+
Dir.chdir dir do
|
74
|
+
`mplayer -nosound -ss 1 -vf screenshot -frames 1 -vo png:z=9 #{new_file.path} 2>&1`
|
75
|
+
`convert 00000001.png -resize #{resize_geometry} 00000001.jpg 2>&1`
|
76
|
+
`mv 00000001.jpg #{result.path} 2>&1`
|
77
|
+
end
|
78
|
+
end
|
79
|
+
else
|
80
|
+
`convert #{new_file.path}[0] -resize #{resize_geometry} #{result.path} 2>&1`
|
81
|
+
end
|
82
|
+
result
|
83
|
+
end
|
84
|
+
|
85
|
+
private
|
86
|
+
|
87
|
+
def permitted_image_format?
|
88
|
+
permitted_image_formats = %w(png jpeg)
|
89
|
+
permitted_image_formats.include?(self.extension)
|
90
|
+
end
|
91
|
+
|
92
|
+
def set_mime_type
|
93
|
+
mime_type_array = `file -ibL "#{new_file.path}"`.chomp.split("; ")
|
94
|
+
self.mime_type = MIME::Type.new(mime_type_array)
|
95
|
+
end
|
96
|
+
|
97
|
+
def set_type
|
98
|
+
type_letter = case mime_type.raw_media_type
|
99
|
+
when "video" then "v"
|
100
|
+
when "image" then "i"
|
101
|
+
when "audio" then "a"
|
102
|
+
else
|
103
|
+
mime_type == "application/pdf" ? "p" : "d"
|
104
|
+
end
|
105
|
+
self.media_type= type_letter
|
106
|
+
end
|
107
|
+
|
108
|
+
def set_extension
|
109
|
+
self.extension = mime_type.sub_type
|
110
|
+
end
|
111
|
+
|
112
|
+
def set_dimensions_and_duration
|
113
|
+
if video?
|
114
|
+
video_metadata = `mplayer -vo null -ao null -frames 0 -identify #{new_file.path} 2>&1`
|
115
|
+
self.width = video_metadata[/ID_VIDEO_WIDTH=(\d+)/].split("=").last
|
116
|
+
self.height = video_metadata[/ID_VIDEO_HEIGHT=(\d+)/].split("=").last
|
117
|
+
self.duration = video_metadata[/ID_LENGTH=([0-9.]+)/].split("=").last
|
118
|
+
elsif image?
|
119
|
+
command = "identify -format '%w %h' #{new_file.path} 2>&1"
|
120
|
+
dimensions = `#{command}`.split(" ")
|
121
|
+
self.width, self.height = dimensions
|
122
|
+
end
|
123
|
+
raise UnrecognizedFileType unless $?.success?
|
124
|
+
end
|
125
|
+
|
126
|
+
def save_to_disk
|
127
|
+
copy_file
|
128
|
+
self.new_file.close if new_file.respond_to?(:close) # otherwise we'll eventually get a Errno::EMFILE
|
129
|
+
self.new_file = nil
|
130
|
+
end
|
131
|
+
|
132
|
+
def copy_file
|
133
|
+
self.file_name = "#{SecureRandom.uuid}.#{extension}"
|
134
|
+
folder = File.join("public/assets", path)
|
135
|
+
FileUtils.mkdir_p folder
|
136
|
+
FileUtils.cp new_file.path, full_path unless new_file.path == full_path
|
137
|
+
File.chmod 0644, full_path
|
138
|
+
|
139
|
+
self.md5hash = `md5sum --binary #{full_path}`.split(" ").first
|
140
|
+
end
|
141
|
+
|
142
|
+
def delete_file
|
143
|
+
FileUtils.rm full_path rescue Errno::ENOENT
|
144
|
+
|
145
|
+
directory = File.join("public/assets/resources", path)
|
146
|
+
FileUtils.rmdir directory rescue Errno::ENOTEMPTY
|
147
|
+
end
|
148
|
+
|
149
|
+
def actual_file_name file
|
150
|
+
if file.respond_to?(:tempfile)
|
151
|
+
file.original_filename
|
152
|
+
else
|
153
|
+
File.basename(file.path)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
def actual_file file
|
158
|
+
if file.respond_to?(:tempfile)
|
159
|
+
file.tempfile
|
160
|
+
else
|
161
|
+
file
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# TODO: remove when schema sucks less
|
166
|
+
|
167
|
+
{
|
168
|
+
:media_type => :resourcestype,
|
169
|
+
:duration => :resourcesduration,
|
170
|
+
:width => :resourceswidth,
|
171
|
+
:height => :resourcesheight,
|
172
|
+
:file_name => :resourcesfilename,
|
173
|
+
:original_file_name => :resourcesoriginalfilename,
|
174
|
+
:path => :resourcespath,
|
175
|
+
:md5hash => :resourceshash,
|
176
|
+
}.each do |new_column, old_column|
|
177
|
+
alias_attribute new_column, old_column
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "ds_node"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
class CreateResources < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table "resources", primary_key: "resourcesid" do |t|
|
4
|
+
t.string "resourcestype"
|
5
|
+
t.decimal "resourcesduration", precision: 10, default: 0
|
6
|
+
t.integer "resourceswidth", default: 0
|
7
|
+
t.integer "resourcesheight", default: 0
|
8
|
+
t.string "resourcesfilename"
|
9
|
+
t.string "resourcesoriginalfilename"
|
10
|
+
t.string "resourcespath", default: "resources/"
|
11
|
+
t.integer "resourcesthumbid"
|
12
|
+
t.string "resourceshash"
|
13
|
+
t.integer "resourcesparentid", default: 0
|
14
|
+
t.integer "resourcesparentindex", default: 0
|
15
|
+
t.datetime "created_at", null: false
|
16
|
+
t.datetime "updated_at", null: false
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/ds_node.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'ds_node/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ds_node"
|
8
|
+
spec.version = DSNode::VERSION
|
9
|
+
spec.authors = ["Micah Geisel"]
|
10
|
+
spec.email = ["micah@botandrose.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Gem for interfacing with Downstream's DSNode}
|
13
|
+
spec.description = %q{Gem for interfacing with Downstream's DSNode}
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = "exe"
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_dependency "activerecord"
|
24
|
+
spec.add_dependency "mime-types"
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
spec.add_development_dependency "database_cleaner"
|
30
|
+
spec.add_development_dependency "sqlite3"
|
31
|
+
end
|
data/lib/ds_node.rb
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
require "active_record"
|
2
|
+
|
3
|
+
module DSNode
|
4
|
+
module DSResource
|
5
|
+
class PreventDestroyLast < StandardError; end
|
6
|
+
|
7
|
+
class RecognizedFileTypeValidator < ActiveModel::EachValidator
|
8
|
+
def validate_each record, attr, values
|
9
|
+
[values].flatten.each do |value|
|
10
|
+
if value and !image?(value) and !video?(value)
|
11
|
+
record.errors.add attr, "must be a recognized file type."
|
12
|
+
return
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def image? value
|
20
|
+
`identify -format '%w %h' #{value.path} 2>&1` && $?.success?
|
21
|
+
end
|
22
|
+
|
23
|
+
def video? value
|
24
|
+
`mplayer -vc null -vo null -ao null -identify #{value.path} 2>&1 | grep 'VIDEO: [[]'` && $?.success?
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module ClassMethods
|
29
|
+
def ds_resource name, options = {}
|
30
|
+
should_validate = options.fetch(:validate, true)
|
31
|
+
|
32
|
+
belongs_to name, options.reverse_merge({
|
33
|
+
class_name: "DSNode::Resource",
|
34
|
+
required: false,
|
35
|
+
})
|
36
|
+
|
37
|
+
inquirer_accessor = :"#{name}?"
|
38
|
+
define_method inquirer_accessor do
|
39
|
+
send(name).present?
|
40
|
+
end
|
41
|
+
|
42
|
+
writer_accessor = :"#{name}_file"
|
43
|
+
attr_accessor writer_accessor
|
44
|
+
validates writer_accessor, recognized_file_type: true if should_validate
|
45
|
+
|
46
|
+
destroy_accessor = :"destroy_#{name}"
|
47
|
+
attr_accessor destroy_accessor
|
48
|
+
|
49
|
+
remove_accessor = :"remove_#{name}"
|
50
|
+
attr_accessor remove_accessor
|
51
|
+
|
52
|
+
after_save do
|
53
|
+
if file = send(writer_accessor)
|
54
|
+
send :"build_#{name}", file: file
|
55
|
+
send :"#{writer_accessor}=", nil
|
56
|
+
save
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
after_save do
|
61
|
+
if send(destroy_accessor).to_i == 1
|
62
|
+
send(name).try(:destroy)
|
63
|
+
send :"#{name}=", nil
|
64
|
+
send :"#{destroy_accessor}=", nil
|
65
|
+
save
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
after_save do
|
70
|
+
if send(remove_accessor).to_i == 1
|
71
|
+
send :"#{name}=", nil
|
72
|
+
send :"#{remove_accessor}=", nil
|
73
|
+
save
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def has_many_ds_resources name, options = {}
|
79
|
+
single_name = options.key?(:single_name) ? options.delete(:single_name) : name.to_s.singularize.to_sym
|
80
|
+
prevent_destroy_last = options.key?(:prevent_destroy_last) ? options.delete(:prevent_destroy_last) : false
|
81
|
+
|
82
|
+
has_many name, options
|
83
|
+
|
84
|
+
validates :"new_#{single_name}_files", recognized_file_type: true
|
85
|
+
|
86
|
+
attr_accessor :"new_#{single_name}_files", :"destroy_#{single_name}_ids"
|
87
|
+
|
88
|
+
after_save do
|
89
|
+
if send(:"new_#{single_name}_files").present?
|
90
|
+
Array(send(:"new_#{single_name}_files")).each do |file|
|
91
|
+
send(name).create! file: file
|
92
|
+
end
|
93
|
+
send :"new_#{single_name}_files=", nil
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
after_save do
|
98
|
+
if send(:"destroy_#{single_name}_ids").present?
|
99
|
+
(send(:"destroy_#{single_name}_ids") || []).each do |id|
|
100
|
+
raise PreventDestroyLast if prevent_destroy_last && send(name).count == 1
|
101
|
+
send(name).destroy(id)
|
102
|
+
end
|
103
|
+
send :"destroy_#{single_name}_ids=", nil
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
def belongs_to_many_ds_resources name, options = {}
|
109
|
+
single_name = options.key?(:single_name) ? options.delete(:single_name) : name.to_s.singularize.to_sym
|
110
|
+
prevent_destroy_last = options.key?(:prevent_destroy_last) ? options.delete(:prevent_destroy_last) : false
|
111
|
+
|
112
|
+
belongs_to_many name, options.reverse_merge({
|
113
|
+
class_name: "DSNode::Resource",
|
114
|
+
})
|
115
|
+
|
116
|
+
attr_accessor :"new_#{single_name}_files"
|
117
|
+
attr_accessor :"destroy_#{single_name}_ids"
|
118
|
+
attr_accessor :"remove_#{single_name}_ids"
|
119
|
+
|
120
|
+
before_save do
|
121
|
+
if send(:"new_#{single_name}_files").present?
|
122
|
+
new_resources = Array(send(:"new_#{single_name}_files")).map do |file|
|
123
|
+
DSNode::Resource.create! file: file
|
124
|
+
end
|
125
|
+
send :"#{name}=", send(name) + new_resources
|
126
|
+
send :"new_#{single_name}_files=", nil
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
before_save do
|
131
|
+
if send(:"destroy_#{single_name}_ids").present?
|
132
|
+
(send(:"destroy_#{single_name}_ids") || []).map(&:to_i).each do |id|
|
133
|
+
send :"#{single_name}_ids=", send(:"#{single_name}_ids") - [id]
|
134
|
+
raise PreventDestroyLast if prevent_destroy_last && send(name).count == 1
|
135
|
+
DSNode::Resource.destroy(id)
|
136
|
+
end
|
137
|
+
send :"destroy_#{single_name}_ids=", nil
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
before_save do
|
142
|
+
if send(:"remove_#{single_name}_ids").present?
|
143
|
+
(send(:"remove_#{single_name}_ids") || []).map(&:to_i).each do |id|
|
144
|
+
send :"#{single_name}_ids=", send(:"#{single_name}_ids") - [id]
|
145
|
+
raise PreventDestroyLast if prevent_destroy_last && send(name).count == 0
|
146
|
+
end
|
147
|
+
send :"remove_#{single_name}_ids=", nil
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
private
|
154
|
+
|
155
|
+
def self.included base
|
156
|
+
base.extend ClassMethods
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ds_node
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Micah Geisel
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mime-types
|
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: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.14'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: database_cleaner
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
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: sqlite3
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Gem for interfacing with Downstream's DSNode
|
112
|
+
email:
|
113
|
+
- micah@botandrose.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".ruby-gemset"
|
121
|
+
- ".ruby-version"
|
122
|
+
- ".travis.yml"
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- app/models/ds_node/resource.rb
|
128
|
+
- bin/console
|
129
|
+
- bin/setup
|
130
|
+
- config/initializers/check_dependencies.rb
|
131
|
+
- db/migrate/1_create_resources.rb
|
132
|
+
- ds_node.gemspec
|
133
|
+
- lib/ds_node.rb
|
134
|
+
- lib/ds_node/ds_resource.rb
|
135
|
+
- lib/ds_node/rails.rb
|
136
|
+
- lib/ds_node/version.rb
|
137
|
+
homepage:
|
138
|
+
licenses:
|
139
|
+
- MIT
|
140
|
+
metadata: {}
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
requirements: []
|
156
|
+
rubyforge_project:
|
157
|
+
rubygems_version: 2.4.8
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: Gem for interfacing with Downstream's DSNode
|
161
|
+
test_files: []
|