citero_engine 3.0.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +105 -0
- data/Rakefile +46 -0
- data/app/assets/javascripts/citero_engine.js +6 -0
- data/app/assets/javascripts/citero_engine/submit_external_form.js +12 -0
- data/app/controllers/citero_engine/citero_engine_controller.rb +190 -0
- data/app/helpers/citero_engine/application_helper.rb +7 -0
- data/app/models/citero_engine/citation.rb +17 -0
- data/app/models/citero_engine/push_format.rb +19 -0
- data/app/models/citero_engine/resource_key.rb +13 -0
- data/app/views/citero_engine/cite/_external_form.html.erb +16 -0
- data/app/views/citero_engine/cite/external_form.html.erb +1 -0
- data/config/initializers/mime_types.rb +4 -0
- data/config/routes.rb +3 -0
- data/lib/citero_engine.rb +3 -0
- data/lib/citero_engine/core_ext.rb +21 -0
- data/lib/citero_engine/engine.rb +42 -0
- data/lib/citero_engine/version.rb +3 -0
- data/lib/tasks/citero_engine_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/type_one.rb +6 -0
- data/test/dummy/app/models/type_two.rb +5 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +22 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/migrate/20130211192047_create_type_ones.rb +11 -0
- data/test/dummy/db/migrate/20130211192122_create_type_twos.rb +11 -0
- data/test/dummy/db/schema.rb +32 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/type_ones.yml +36 -0
- data/test/dummy/test/fixtures/type_twos.yml +11 -0
- data/test/dummy/test/unit/citero_engine_record_test.rb +9 -0
- data/test/dummy/test/unit/record_test.rb +7 -0
- data/test/dummy/test/unit/type_one_test.rb +24 -0
- data/test/dummy/test/unit/type_two_test.rb +16 -0
- data/test/fixtures/ex_cite/citations.yml +11 -0
- data/test/functional/citero_engine/export_citations_controller_test.rb +160 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +36 -0
- data/test/unit/citero_engine/citation_test.rb +4 -0
- data/test/unit/helpers/citero_engine/cite_helper_test.rb +6 -0
- metadata +345 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TypeOneTest < ActiveSupport::TestCase
|
4
|
+
# test "the truth" do
|
5
|
+
# assert true
|
6
|
+
# end
|
7
|
+
|
8
|
+
test "typeones fields should be records fields" do
|
9
|
+
assert_equal "formatting", TypeOne.format_field
|
10
|
+
end
|
11
|
+
|
12
|
+
test "test typeones formatting should populate records fields" do
|
13
|
+
typeone = TypeOne.new(:formatting => "csf", :raw => "itemType: book")
|
14
|
+
assert_equal "csf", typeone.formatting
|
15
|
+
end
|
16
|
+
|
17
|
+
test "test typeones ability to act as citable" do
|
18
|
+
CiteroEngine.acts_as_citable_class = "TypeOne"
|
19
|
+
t = CiteroEngine.acts_as_citable_class.new(:formatting => "csf", :raw => "itemType: book")
|
20
|
+
t.id = 1
|
21
|
+
assert_equal t.to_ris, "TY - BOOK\nER -\n\n"
|
22
|
+
CiteroEngine.acts_as_citable_class = "CiteroEngine::Citation"
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TypeTwoTest < ActiveSupport::TestCase
|
4
|
+
# test "the truth" do
|
5
|
+
# assert true
|
6
|
+
# end
|
7
|
+
|
8
|
+
test "test a typetwos fields should be records fields" do
|
9
|
+
assert_equal "from_format", TypeTwo.format_field
|
10
|
+
end
|
11
|
+
|
12
|
+
test "test typetwos formatting should populate records fields" do
|
13
|
+
typetwo = TypeTwo.new(:from_format => "csf", :data => "itemType: book")
|
14
|
+
assert_equal "csf", typetwo.from_format
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
#!/bin/env ruby
|
2
|
+
# encoding: utf-8
|
3
|
+
require 'test_helper'
|
4
|
+
require 'rack/utils'
|
5
|
+
require 'citero-jruby'
|
6
|
+
|
7
|
+
|
8
|
+
module CiteroEngine
|
9
|
+
class CiteroEngineControllerTest < ActionController::TestCase
|
10
|
+
setup :initialize_cite
|
11
|
+
teardown :clear
|
12
|
+
|
13
|
+
def initialize_cite
|
14
|
+
@controller = CiteroEngineController.new
|
15
|
+
end
|
16
|
+
|
17
|
+
def clear
|
18
|
+
@controller = nil
|
19
|
+
end
|
20
|
+
|
21
|
+
test "should convert format to format" do
|
22
|
+
$acts_as_citable_classes.each do |citable_class|
|
23
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
24
|
+
Citero.from_formats.each do |from|
|
25
|
+
Citero.to_formats.each do |to|
|
26
|
+
get :index, :data => $formats[from.to_sym], :from_format => from, :to_format => to, :use_route => :export_citations
|
27
|
+
assert_response :success
|
28
|
+
clear
|
29
|
+
initialize_cite
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
test "should raise an error when a field is missing in index" do
|
36
|
+
$acts_as_citable_classes.each do |citable_class|
|
37
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
38
|
+
get :index, :id => "error", :use_route => :export_citations
|
39
|
+
assert_response :bad_request
|
40
|
+
clear
|
41
|
+
initialize_cite
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
test "should test translate POST and GET" do
|
46
|
+
$acts_as_citable_classes.each do |citable_class|
|
47
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
48
|
+
get :index, :data => "itemType: book", :from_format => "csf", :to_format => "ris", :use_route => :export_citations
|
49
|
+
assert_response :success
|
50
|
+
clear
|
51
|
+
initialize_cite
|
52
|
+
post :index, :data => "itemType: book", :from_format => "csf", :to_format => "ris", :use_route => :export_citations
|
53
|
+
assert_response :success
|
54
|
+
clear
|
55
|
+
initialize_cite
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
test "should convert openurl to format" do
|
60
|
+
$acts_as_citable_classes.each do |citable_class|
|
61
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
62
|
+
Citero.to_formats.each do |to|
|
63
|
+
get :index, "rft_val_fmt" => "info:ofi/fmt:kev:mtx:book", :to_format => to, :use_route => :export_citations
|
64
|
+
assert_response :success
|
65
|
+
clear
|
66
|
+
initialize_cite
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
test "should redirect with specified protocol" do
|
72
|
+
$acts_as_citable_classes.each do |citable_class|
|
73
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
74
|
+
CiteroEngine.endnote.protocol = :https
|
75
|
+
get :index, :to_format => "endnote", :use_route => :export_citations
|
76
|
+
assert_redirected_to "http://www.myendnoteweb.com/?func=directExport&partnerName=Primo&dataIdentifier=1&dataRequestUrl=https%3A%2F%2Ftest.host%2Fcitero_engine%2Fexport_citations%3Fresource_key%3D5b174a9f0bbae8e128c8fd3c5c74b22c5a772cfd%26to_format%3Dris"
|
77
|
+
CiteroEngine.endnote.callback_protocol = :http
|
78
|
+
clear
|
79
|
+
initialize_cite
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
test "should redirect to endnote" do
|
84
|
+
$acts_as_citable_classes.each do |citable_class|
|
85
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
86
|
+
get :index, :to_format => "endnote", :use_route => :export_citations
|
87
|
+
assert_redirected_to "http://www.myendnoteweb.com/?func=directExport&partnerName=Primo&dataIdentifier=1&dataRequestUrl=http%3A%2F%2Ftest.host%2Fcitero_engine%2Fexport_citations%3Fresource_key%3D5b174a9f0bbae8e128c8fd3c5c74b22c5a772cfd%26to_format%3Dris"
|
88
|
+
clear
|
89
|
+
initialize_cite
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
test "should redirect to refworks" do
|
94
|
+
$acts_as_citable_classes.each do |citable_class|
|
95
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
96
|
+
Citero.from_formats.each do |from|
|
97
|
+
get :index, :to_format => "refworks", :from_format => from, :data => $formats[from], :use_route => :export_citations
|
98
|
+
assert_response :success
|
99
|
+
assert_template :partial => '_external_form'
|
100
|
+
clear
|
101
|
+
initialize_cite
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
test "should redirect to easybib" do
|
107
|
+
$acts_as_citable_classes.each do |citable_class|
|
108
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
109
|
+
Citero.from_formats.each do |from|
|
110
|
+
get :index, :to_format => "easybibpush", :from_format => from, :data => $formats[from], :use_route => :export_citations
|
111
|
+
assert_response :success
|
112
|
+
assert_template :partial => '_external_form'
|
113
|
+
clear
|
114
|
+
initialize_cite
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
test "should batch map multiple citations" do
|
120
|
+
$acts_as_citable_classes.each do |citable_class|
|
121
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
122
|
+
post :index, :to_format => "ris", :from_format => ["csf", "csf"], :data => ["itemType: book", "itemType: journalArticle"], :use_route => :export_citations
|
123
|
+
assert_response :success
|
124
|
+
clear
|
125
|
+
initialize_cite
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
test "should attempt to find by resource_key" do
|
130
|
+
$acts_as_citable_classes.each do |citable_class|
|
131
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
132
|
+
get :index, :to_format => "ris", :resource_key => "unknown", :use_route => :export_citations
|
133
|
+
assert_response :bad_request
|
134
|
+
clear
|
135
|
+
initialize_cite
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
test "should attempt to find by id" do
|
140
|
+
$acts_as_citable_classes.each do |citable_class|
|
141
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
142
|
+
get :index, :to_format => "ris", :id => "unknown", :use_route => :export_citations
|
143
|
+
assert_response :bad_request
|
144
|
+
clear
|
145
|
+
initialize_cite
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
test "should handle missing to_format" do
|
150
|
+
$acts_as_citable_classes.each do |citable_class|
|
151
|
+
CiteroEngine.acts_as_citable_class = citable_class
|
152
|
+
get :index, :data => "itemType: book", :from_format => "csf", :use_route => :export_citations
|
153
|
+
assert_response :bad_request
|
154
|
+
clear
|
155
|
+
initialize_cite
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
end
|
160
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
unless ENV['TRAVIS']
|
2
|
+
require 'simplecov'
|
3
|
+
require 'simplecov-rcov'
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
|
5
|
+
SimpleCov.start 'rails'
|
6
|
+
else
|
7
|
+
require 'coveralls'
|
8
|
+
Coveralls.wear!
|
9
|
+
end
|
10
|
+
|
11
|
+
# Configure Rails Environment
|
12
|
+
ENV["RAILS_ENV"] = "test"
|
13
|
+
|
14
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
15
|
+
require "rails/test_help"
|
16
|
+
|
17
|
+
|
18
|
+
Rails.backtrace_cleaner.remove_silencers!
|
19
|
+
|
20
|
+
# Load support files
|
21
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
22
|
+
|
23
|
+
# Load fixtures from the engine
|
24
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
25
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
26
|
+
end
|
27
|
+
|
28
|
+
$formats ||= Hash[
|
29
|
+
:csf => "itemType: book",
|
30
|
+
:ris => "TY - JOUR\nER -\n\n",
|
31
|
+
:openurl => "https://getit.library.nyu.edu/resolve?rft_val_fmt=info:ofi/fmt:kev:mtx:book",
|
32
|
+
:bibtex => "@article{Adams2001\n}",
|
33
|
+
:pnx => "<display><type>book</type></display>"
|
34
|
+
]
|
35
|
+
|
36
|
+
$acts_as_citable_classes = ["CiteroEngine::Citation", "TypeOne"]
|
metadata
ADDED
@@ -0,0 +1,345 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: citero_engine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0.alpha
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- hab278
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-01-22 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.10
|
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.10
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: acts_as_citable
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.0.0.alpha3
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 5.0.0.alpha3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: citero-renderers
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.0.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jquery-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.3.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.3.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.13
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.3.13
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov-rcov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.2.3
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.2.3
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: test-unit
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.2.6
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.2.6
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: coveralls
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.8.21
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.8.21
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pry
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.11.2
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.11.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec-rails
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.5'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.5'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rspec-html-matchers
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.9.1
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.9.1
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rspec-its
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.2.0
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.2.0
|
195
|
+
description: Leverages citero-jruby gem and acts_as_citable to deliver a download
|
196
|
+
and push mechanism.
|
197
|
+
email: hab278@nyu.edu
|
198
|
+
executables: []
|
199
|
+
extensions: []
|
200
|
+
extra_rdoc_files: []
|
201
|
+
files:
|
202
|
+
- MIT-LICENSE
|
203
|
+
- README.md
|
204
|
+
- Rakefile
|
205
|
+
- app/assets/javascripts/citero_engine.js
|
206
|
+
- app/assets/javascripts/citero_engine/submit_external_form.js
|
207
|
+
- app/controllers/citero_engine/citero_engine_controller.rb
|
208
|
+
- app/helpers/citero_engine/application_helper.rb
|
209
|
+
- app/models/citero_engine/citation.rb
|
210
|
+
- app/models/citero_engine/push_format.rb
|
211
|
+
- app/models/citero_engine/resource_key.rb
|
212
|
+
- app/views/citero_engine/cite/_external_form.html.erb
|
213
|
+
- app/views/citero_engine/cite/external_form.html.erb
|
214
|
+
- config/initializers/mime_types.rb
|
215
|
+
- config/routes.rb
|
216
|
+
- lib/citero_engine.rb
|
217
|
+
- lib/citero_engine/core_ext.rb
|
218
|
+
- lib/citero_engine/engine.rb
|
219
|
+
- lib/citero_engine/version.rb
|
220
|
+
- lib/tasks/citero_engine_tasks.rake
|
221
|
+
- test/dummy/README.rdoc
|
222
|
+
- test/dummy/Rakefile
|
223
|
+
- test/dummy/app/assets/javascripts/application.js
|
224
|
+
- test/dummy/app/assets/stylesheets/application.css
|
225
|
+
- test/dummy/app/controllers/application_controller.rb
|
226
|
+
- test/dummy/app/helpers/application_helper.rb
|
227
|
+
- test/dummy/app/models/type_one.rb
|
228
|
+
- test/dummy/app/models/type_two.rb
|
229
|
+
- test/dummy/app/views/layouts/application.html.erb
|
230
|
+
- test/dummy/bin/bundle
|
231
|
+
- test/dummy/bin/rails
|
232
|
+
- test/dummy/bin/rake
|
233
|
+
- test/dummy/config.ru
|
234
|
+
- test/dummy/config/application.rb
|
235
|
+
- test/dummy/config/boot.rb
|
236
|
+
- test/dummy/config/database.yml
|
237
|
+
- test/dummy/config/environment.rb
|
238
|
+
- test/dummy/config/environments/development.rb
|
239
|
+
- test/dummy/config/environments/production.rb
|
240
|
+
- test/dummy/config/environments/test.rb
|
241
|
+
- test/dummy/config/initializers/assets.rb
|
242
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
243
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
244
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
245
|
+
- test/dummy/config/initializers/inflections.rb
|
246
|
+
- test/dummy/config/initializers/mime_types.rb
|
247
|
+
- test/dummy/config/initializers/session_store.rb
|
248
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
249
|
+
- test/dummy/config/locales/en.yml
|
250
|
+
- test/dummy/config/routes.rb
|
251
|
+
- test/dummy/config/secrets.yml
|
252
|
+
- test/dummy/db/migrate/20130211192047_create_type_ones.rb
|
253
|
+
- test/dummy/db/migrate/20130211192122_create_type_twos.rb
|
254
|
+
- test/dummy/db/schema.rb
|
255
|
+
- test/dummy/public/404.html
|
256
|
+
- test/dummy/public/422.html
|
257
|
+
- test/dummy/public/500.html
|
258
|
+
- test/dummy/public/favicon.ico
|
259
|
+
- test/dummy/test/fixtures/type_ones.yml
|
260
|
+
- test/dummy/test/fixtures/type_twos.yml
|
261
|
+
- test/dummy/test/unit/citero_engine_record_test.rb
|
262
|
+
- test/dummy/test/unit/record_test.rb
|
263
|
+
- test/dummy/test/unit/type_one_test.rb
|
264
|
+
- test/dummy/test/unit/type_two_test.rb
|
265
|
+
- test/fixtures/ex_cite/citations.yml
|
266
|
+
- test/functional/citero_engine/export_citations_controller_test.rb
|
267
|
+
- test/integration/navigation_test.rb
|
268
|
+
- test/test_helper.rb
|
269
|
+
- test/unit/citero_engine/citation_test.rb
|
270
|
+
- test/unit/helpers/citero_engine/cite_helper_test.rb
|
271
|
+
homepage: https://github.com/NYULibraries/citero_engine
|
272
|
+
licenses: []
|
273
|
+
metadata: {}
|
274
|
+
post_install_message:
|
275
|
+
rdoc_options: []
|
276
|
+
require_paths:
|
277
|
+
- lib
|
278
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
279
|
+
requirements:
|
280
|
+
- - ">="
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: '0'
|
283
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
|
+
requirements:
|
285
|
+
- - ">"
|
286
|
+
- !ruby/object:Gem::Version
|
287
|
+
version: 1.3.1
|
288
|
+
requirements: []
|
289
|
+
rubyforge_project:
|
290
|
+
rubygems_version: 2.6.11
|
291
|
+
signing_key:
|
292
|
+
specification_version: 4
|
293
|
+
summary: Web engine to allow download and push capabilities to an array of bibiligraphic
|
294
|
+
records.
|
295
|
+
test_files:
|
296
|
+
- test/unit/helpers/citero_engine/cite_helper_test.rb
|
297
|
+
- test/unit/citero_engine/citation_test.rb
|
298
|
+
- test/dummy/app/models/type_one.rb
|
299
|
+
- test/dummy/app/models/type_two.rb
|
300
|
+
- test/dummy/app/controllers/application_controller.rb
|
301
|
+
- test/dummy/app/views/layouts/application.html.erb
|
302
|
+
- test/dummy/app/assets/javascripts/application.js
|
303
|
+
- test/dummy/app/assets/stylesheets/application.css
|
304
|
+
- test/dummy/app/helpers/application_helper.rb
|
305
|
+
- test/dummy/test/unit/type_one_test.rb
|
306
|
+
- test/dummy/test/unit/citero_engine_record_test.rb
|
307
|
+
- test/dummy/test/unit/type_two_test.rb
|
308
|
+
- test/dummy/test/unit/record_test.rb
|
309
|
+
- test/dummy/test/fixtures/type_ones.yml
|
310
|
+
- test/dummy/test/fixtures/type_twos.yml
|
311
|
+
- test/dummy/bin/rake
|
312
|
+
- test/dummy/bin/bundle
|
313
|
+
- test/dummy/bin/rails
|
314
|
+
- test/dummy/config/secrets.yml
|
315
|
+
- test/dummy/config/routes.rb
|
316
|
+
- test/dummy/config/locales/en.yml
|
317
|
+
- test/dummy/config/environments/production.rb
|
318
|
+
- test/dummy/config/environments/development.rb
|
319
|
+
- test/dummy/config/environments/test.rb
|
320
|
+
- test/dummy/config/environment.rb
|
321
|
+
- test/dummy/config/application.rb
|
322
|
+
- test/dummy/config/database.yml
|
323
|
+
- test/dummy/config/boot.rb
|
324
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
325
|
+
- test/dummy/config/initializers/mime_types.rb
|
326
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
327
|
+
- test/dummy/config/initializers/session_store.rb
|
328
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
329
|
+
- test/dummy/config/initializers/assets.rb
|
330
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
331
|
+
- test/dummy/config/initializers/inflections.rb
|
332
|
+
- test/dummy/config.ru
|
333
|
+
- test/dummy/Rakefile
|
334
|
+
- test/dummy/public/favicon.ico
|
335
|
+
- test/dummy/public/422.html
|
336
|
+
- test/dummy/public/500.html
|
337
|
+
- test/dummy/public/404.html
|
338
|
+
- test/dummy/db/schema.rb
|
339
|
+
- test/dummy/db/migrate/20130211192047_create_type_ones.rb
|
340
|
+
- test/dummy/db/migrate/20130211192122_create_type_twos.rb
|
341
|
+
- test/dummy/README.rdoc
|
342
|
+
- test/integration/navigation_test.rb
|
343
|
+
- test/fixtures/ex_cite/citations.yml
|
344
|
+
- test/test_helper.rb
|
345
|
+
- test/functional/citero_engine/export_citations_controller_test.rb
|