worthwhile 0.0.1.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3d672feb49111119c51871054c4f5fda80fa7cf3
4
+ data.tar.gz: eb5a14048defe4922aab40a23163a99e5e78d38c
5
+ SHA512:
6
+ metadata.gz: cd5e2d39047099ccd3374fa65ab24dd8f5e111333ab9abd3e8d521f84e233196717ba7c0798eba8ac23648af34c07f9f2fbfc57474ca167a273e6f29a3d17570
7
+ data.tar.gz: 7186d931d56c0763a1a3f2dcd805e5f0c1b01feb866631f65faf16b2511c0d2372272dd1d942ab1f87397a12aeb1e6a0fec6a41ab6003c29f7b0cebbb80382f7
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ Gemfile.lock
5
+ coverage
6
+ pkg
7
+ tmp
8
+ *.bundle
9
+ spec/internal
10
+ jetty
11
+
data/Gemfile ADDED
@@ -0,0 +1,24 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in worthwhile.gemspec
4
+ gemspec
5
+
6
+
7
+ gem 'sufia-models', github: 'projecthydra/sufia', branch: 'dce_dev'
8
+ gem 'byebug' unless ENV['TRAVIS']
9
+
10
+ # If we don't specify 2.11.0 we'll end up with sprockets 2.12.0 in the main
11
+ # Gemfile.lock but since sass-rails gets generated (rails new) into the test app
12
+ # it'll want sprockets 2.11.0 and we'll have a conflict
13
+ gem 'sprockets', '2.11.0'
14
+
15
+ # If we don't specify 3.2.15 we'll end up with sass 3.3.2 in the main
16
+ # Gemfile.lock but since sass-rails gets generated (rails new) into the test app
17
+ # it'll want sass 3.2.0 and we'll have a conflict
18
+ gem 'sass', '~> 3.2.0'
19
+
20
+ file = File.expand_path("Gemfile", ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path("../spec/internal", __FILE__))
21
+ if File.exists?(file)
22
+ puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
23
+ instance_eval File.read(file)
24
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,15 @@
1
+ ##########################################################################
2
+ # Copyright 2014 Data Curation Experts
3
+ # Additional copyright may be held by others, as reflected in the commit log
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Worthwhile
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'worthwhile'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install worthwhile
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( https://github.com/[my-github-username]/worthwhile/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require "bundler/gem_tasks"
2
+ require 'bundler/setup'
3
+
4
+ require 'engine_cart/rake_task'
5
+
6
+ require 'rspec/core/rake_task'
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
data/lib/worthwhile.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "worthwhile/version"
2
+
3
+ module Worthwhile
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module Worthwhile
2
+ VERSION = "0.0.1.alpha"
3
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Worthwhile::GenericFile do
4
+ it "should have depositor" do
5
+ subject.depositor = 'tess@example.com'
6
+ end
7
+ end
@@ -0,0 +1,45 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+
3
+ require 'factory_girl'
4
+ require 'database_cleaner'
5
+ require 'devise'
6
+ require 'engine_cart'
7
+ EngineCart.load_application!
8
+
9
+ require 'rspec/rails'
10
+ require 'rspec/autorun'
11
+ # require 'capybara/poltergeist'
12
+ # Capybara.javascript_driver = :poltergeist
13
+ # Capybara.default_wait_time = 5
14
+
15
+ require 'worthwhile'
16
+
17
+
18
+ Dir["./spec/support/**/*.rb"].sort.each {|f| require f}
19
+
20
+ FactoryGirl.definition_file_paths = [File.expand_path("../factories", __FILE__)]
21
+ FactoryGirl.find_definitions
22
+
23
+
24
+ RSpec.configure do |config|
25
+ config.use_transactional_fixtures = false
26
+
27
+ config.before :each do
28
+ if Capybara.current_driver == :rack_test
29
+ DatabaseCleaner.strategy = :transaction
30
+ else
31
+ DatabaseCleaner.strategy = :truncation
32
+ end
33
+ DatabaseCleaner.start
34
+ end
35
+
36
+ config.after do
37
+ DatabaseCleaner.clean
38
+ end
39
+
40
+ config.include Devise::TestHelpers, type: :controller
41
+ config.include Devise::TestHelpers, type: :view
42
+ config.include Warden::Test::Helpers, type: :feature
43
+ config.after(:each, type: :feature) { Warden.test_reset! }
44
+ config.include Capybara::DSL
45
+ end
@@ -0,0 +1,41 @@
1
+ require 'rails/generators'
2
+
3
+ class TestAppGenerator < Rails::Generators::Base
4
+ source_root "../../spec/test_app_templates"
5
+
6
+ def add_gems
7
+ gem 'sufia-models', github: 'projecthydra/sufia', branch: 'dce_dev'
8
+ # gem 'blacklight', ">= 5.4.0.rc1", "<6"
9
+ # gem "blacklight-gallery", :github => 'projectblacklight/blacklight-gallery'
10
+ # gem 'sir-trevor-rails', :github => 'sul-dlss/sir-trevor-rails'
11
+ # gem 'openseadragon', :github => 'sul-dlss/openseadragon-rails'
12
+ # gem "jettywrapper"
13
+ Bundler.with_clean_env do
14
+ run "bundle install"
15
+ end
16
+ end
17
+
18
+ def run_blacklight_generator
19
+ say_status("warning", "GENERATING BL", :yellow)
20
+
21
+ generate 'blacklight:install', '--devise'
22
+ say_status("warning", "GENERATING HYDRA-HEAD", :yellow)
23
+ generate "hydra:head -f"
24
+ say_status("warning", "GENERATING SUFIA", :yellow)
25
+ generate "sufia:models:install#{options[:force] ? ' -f' : ''}"
26
+ end
27
+
28
+ def run_migrations
29
+ # rake "spotlight:install:migrations"
30
+ rake "db:migrate"
31
+ end
32
+
33
+ # def add_spotlight_routes_and_assets
34
+ # generate 'spotlight:install'
35
+ # end
36
+
37
+ # def add_mailer_defaults
38
+ # mail_config = " config.action_mailer.default_url_options = { host: \"localhost:3000\", from: \"noreply@example.com\" }\n"
39
+ # insert_into_file 'config/application.rb', mail_config, after: "< Rails::Application\n"
40
+ # end
41
+ end
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'worthwhile/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "worthwhile"
8
+ spec.version = Worthwhile::VERSION
9
+ spec.authors = ["Justin Coyne"]
10
+ spec.email = ["justin@curationexperts.com"]
11
+ spec.summary = %q{A simple institutional repository for Hydra}
12
+ spec.description = %q{A self-deposit system with works and and many attached files}
13
+ spec.homepage = ""
14
+ spec.license = "APACHE2"
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_dependency 'hydra', '7.0.0.rc1'
22
+ # spec.add_dependency 'sufia-models', '4.0.0.beta1'
23
+
24
+ spec.add_development_dependency "devise", "~> 3.0"
25
+ spec.add_development_dependency "bundler", "~> 1.6"
26
+ spec.add_development_dependency "rake"
27
+ spec.add_development_dependency "engine_cart", "~> 0.3.4"
28
+ spec.add_development_dependency "sqlite3"
29
+ spec.add_development_dependency "rspec-rails"
30
+ spec.add_development_dependency "capybara"
31
+ spec.add_development_dependency "poltergeist", ">= 1.5.0"
32
+ spec.add_development_dependency "factory_girl"
33
+ spec.add_development_dependency "database_cleaner", "< 1.1.0"
34
+
35
+ end
metadata ADDED
@@ -0,0 +1,212 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: worthwhile
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Justin Coyne
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hydra
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 7.0.0.rc1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 7.0.0.rc1
27
+ - !ruby/object:Gem::Dependency
28
+ name: devise
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.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.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
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: engine_cart
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.3.4
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.4
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
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: rspec-rails
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
+ - !ruby/object:Gem::Dependency
112
+ name: capybara
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: poltergeist
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 1.5.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 1.5.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: factory_girl
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: database_cleaner
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.1.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "<"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.1.0
167
+ description: A self-deposit system with works and and many attached files
168
+ email:
169
+ - justin@curationexperts.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".gitignore"
175
+ - Gemfile
176
+ - LICENSE.txt
177
+ - README.md
178
+ - Rakefile
179
+ - lib/worthwhile.rb
180
+ - lib/worthwhile/version.rb
181
+ - spec/models/worthwhile/generic_file_spec.rb
182
+ - spec/spec_helper.rb
183
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
184
+ - worthwhile.gemspec
185
+ homepage: ''
186
+ licenses:
187
+ - APACHE2
188
+ metadata: {}
189
+ post_install_message:
190
+ rdoc_options: []
191
+ require_paths:
192
+ - lib
193
+ required_ruby_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">"
201
+ - !ruby/object:Gem::Version
202
+ version: 1.3.1
203
+ requirements: []
204
+ rubyforge_project:
205
+ rubygems_version: 2.2.2
206
+ signing_key:
207
+ specification_version: 4
208
+ summary: A simple institutional repository for Hydra
209
+ test_files:
210
+ - spec/models/worthwhile/generic_file_spec.rb
211
+ - spec/spec_helper.rb
212
+ - spec/test_app_templates/lib/generators/test_app_generator.rb