enju_news 0.1.1 → 0.2.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +3 -3
  3. data/app/controllers/news_feeds_controller.rb +11 -1
  4. data/app/controllers/news_posts_controller.rb +12 -2
  5. data/app/models/news_post.rb +12 -0
  6. data/app/policies/news_feed_policy.rb +21 -0
  7. data/app/policies/news_post_policy.rb +21 -0
  8. data/app/views/news_feeds/index.html.erb +4 -2
  9. data/app/views/news_posts/index.html.erb +3 -1
  10. data/lib/enju_news/engine.rb +1 -1
  11. data/lib/enju_news/version.rb +1 -1
  12. data/spec/controllers/news_feeds_controller_spec.rb +12 -12
  13. data/spec/controllers/news_posts_controller_spec.rb +10 -10
  14. data/spec/dummy/app/controllers/application_controller.rb +5 -2
  15. data/spec/dummy/app/models/user.rb +1 -2
  16. data/spec/dummy/config/application.rb +7 -24
  17. data/spec/dummy/config/environments/development.rb +25 -14
  18. data/spec/dummy/config/environments/production.rb +50 -31
  19. data/spec/dummy/config/environments/test.rb +23 -18
  20. data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
  21. data/spec/dummy/db/migrate/154_create_messages.rb +23 -0
  22. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +18 -0
  23. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
  24. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
  25. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  26. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +18 -0
  27. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +18 -0
  28. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
  29. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
  30. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +14 -0
  31. data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +5 -0
  32. data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +13 -0
  33. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +13 -0
  34. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +9 -0
  35. data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +5 -0
  36. data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +9 -0
  37. data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +9 -0
  38. data/spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb +9 -0
  39. data/spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +5 -0
  40. data/spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb +5 -0
  41. data/spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb +5 -0
  42. data/spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb +5 -0
  43. data/spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb +9 -0
  44. data/spec/dummy/db/schema.rb +48 -5
  45. data/spec/fixtures/library_groups.yml +1 -6
  46. data/spec/models/news_feed_spec.rb +1 -1
  47. data/spec/models/news_post_spec.rb +1 -1
  48. data/spec/rails_helper.rb +60 -0
  49. data/spec/spec_helper.rb +84 -52
  50. data/spec/support/devise.rb +2 -2
  51. metadata +114 -17
  52. data/app/models/enju_news/ability.rb +0 -18
  53. data/spec/dummy/app/models/ability.rb +0 -18
  54. data/spec/dummy/config/application.yml +0 -42
@@ -0,0 +1,5 @@
1
+ class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :html_snippet, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToMessageTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :message_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :message_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddMaxNumberOfResultsToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :max_number_of_results, :integer, default: 500
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddFamilyNameFirstToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :family_name_first, :boolean, default: true
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPubYearFacetRangeIntervalToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :pub_year_facet_range_interval, :integer, default: 10
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddUserIdToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_reference :library_groups, :user, index: true, foreign_key: true
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToMessageRequestTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :message_request_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :message_request_transitions, :most_recent
8
+ end
9
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150221063719) do
14
+ ActiveRecord::Schema.define(version: 20160813203039) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -57,6 +57,17 @@ ActiveRecord::Schema.define(version: 20150221063719) do
57
57
  t.datetime "updated_at"
58
58
  end
59
59
 
60
+ create_table "colors", force: :cascade do |t|
61
+ t.integer "library_group_id"
62
+ t.string "property"
63
+ t.string "code"
64
+ t.integer "position"
65
+ t.datetime "created_at"
66
+ t.datetime "updated_at"
67
+ end
68
+
69
+ add_index "colors", ["library_group_id"], name: "index_colors_on_library_group_id"
70
+
60
71
  create_table "libraries", force: :cascade do |t|
61
72
  t.string "name", null: false
62
73
  t.text "display_name"
@@ -87,10 +98,22 @@ ActiveRecord::Schema.define(version: 20150221063719) do
87
98
  add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
88
99
  add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
89
100
 
101
+ create_table "library_group_translations", force: :cascade do |t|
102
+ t.integer "library_group_id", null: false
103
+ t.string "locale", null: false
104
+ t.datetime "created_at", null: false
105
+ t.datetime "updated_at", null: false
106
+ t.text "login_banner"
107
+ t.text "footer_banner"
108
+ end
109
+
110
+ add_index "library_group_translations", ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
111
+ add_index "library_group_translations", ["locale"], name: "index_library_group_translations_on_locale"
112
+
90
113
  create_table "library_groups", force: :cascade do |t|
91
- t.string "name", null: false
114
+ t.string "name", null: false
92
115
  t.text "display_name"
93
- t.string "short_name", null: false
116
+ t.string "short_name", null: false
94
117
  t.text "my_networks"
95
118
  t.text "login_banner"
96
119
  t.text "note"
@@ -99,11 +122,17 @@ ActiveRecord::Schema.define(version: 20150221063719) do
99
122
  t.datetime "created_at"
100
123
  t.datetime "updated_at"
101
124
  t.text "admin_networks"
102
- t.string "url", default: "http://localhost:3000/"
125
+ t.string "url", default: "http://localhost:3000/"
103
126
  t.text "settings"
127
+ t.text "html_snippet"
128
+ t.integer "max_number_of_results", default: 500
129
+ t.boolean "family_name_first", default: true
130
+ t.integer "pub_year_facet_range_interval", default: 10
131
+ t.integer "user_id"
104
132
  end
105
133
 
106
134
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
135
+ add_index "library_groups", ["user_id"], name: "index_library_groups_on_user_id"
107
136
 
108
137
  create_table "news_feeds", force: :cascade do |t|
109
138
  t.integer "library_group_id", default: 1, null: false
@@ -240,6 +269,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
240
269
  t.integer "user_export_file_id"
241
270
  t.datetime "created_at"
242
271
  t.datetime "updated_at"
272
+ t.boolean "most_recent"
243
273
  end
244
274
 
245
275
  add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
@@ -285,6 +315,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
285
315
  t.integer "user_import_file_id"
286
316
  t.datetime "created_at"
287
317
  t.datetime "updated_at"
318
+ t.boolean "most_recent"
288
319
  end
289
320
 
290
321
  add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
@@ -296,7 +327,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
296
327
  t.datetime "executed_at"
297
328
  t.string "user_import_file_name"
298
329
  t.string "user_import_content_type"
299
- t.string "user_import_file_size"
330
+ t.integer "user_import_file_size"
300
331
  t.datetime "user_import_updated_at"
301
332
  t.string "user_import_fingerprint"
302
333
  t.string "edit_mode"
@@ -314,6 +345,7 @@ ActiveRecord::Schema.define(version: 20150221063719) do
314
345
  t.text "body"
315
346
  t.datetime "created_at"
316
347
  t.datetime "updated_at"
348
+ t.text "error_message"
317
349
  end
318
350
 
319
351
  create_table "users", force: :cascade do |t|
@@ -354,4 +386,15 @@ ActiveRecord::Schema.define(version: 20150221063719) do
354
386
 
355
387
  add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
356
388
 
389
+ create_table "withdraws", force: :cascade do |t|
390
+ t.integer "basket_id"
391
+ t.integer "item_id"
392
+ t.integer "librarian_id"
393
+ t.datetime "created_at", null: false
394
+ t.datetime "updated_at", null: false
395
+ end
396
+
397
+ add_index "withdraws", ["basket_id"], name: "index_withdraws_on_basket_id"
398
+ add_index "withdraws", ["item_id"], name: "index_withdraws_on_item_id"
399
+
357
400
  end
@@ -7,12 +7,7 @@ one:
7
7
  note:
8
8
  my_networks: 0.0.0.0/0
9
9
  url: "http://localhost:3000/"
10
- settings: <% if Rails::VERSION::MAJOR > 3 %>
11
- "{\"max_number_of_results\":200,\"family_name_first\":true,\"book_jacket_source\":\"google\",\"screenshot_generator\":\"mozshot\"}"
12
- <% else %>
13
- "---\n:max_number_of_results: 200\n:family_name_first: true\n:book_jacket_source: \"google\"\n:screenshot_generator: \"mozshot\""
14
- <% end %>
15
-
10
+ user_id: 1
16
11
 
17
12
  # == Schema Information
18
13
  #
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
2
+ require 'rails_helper'
3
3
 
4
4
  describe NewsFeed do
5
5
  fixtures :news_feeds
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
2
+ require 'rails_helper'
3
3
 
4
4
  describe NewsPost do
5
5
  end
@@ -0,0 +1,60 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+ SimpleCov.start 'rails'
4
+ Coveralls.wear!
5
+
6
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
7
+ ENV["RAILS_ENV"] ||= 'test'
8
+ require File.expand_path("../dummy/config/environment", __FILE__)
9
+ require 'rspec/rails'
10
+ require 'vcr'
11
+ require 'factory_girl'
12
+ require 'sunspot-rails-tester'
13
+
14
+ # Requires supporting ruby files with custom matchers and macros, etc,
15
+ # in spec/support/ and its subdirectories.
16
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
17
+
18
+ RSpec.configure do |config|
19
+ # == Mock Framework
20
+ #
21
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
22
+ #
23
+ # config.mock_with :mocha
24
+ # config.mock_with :flexmock
25
+ # config.mock_with :rr
26
+ config.mock_with :rspec
27
+
28
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
29
+ config.fixture_path = "#{::Rails.root}/../../spec/fixtures"
30
+
31
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
32
+ # examples within a transaction, remove the following line or assign false
33
+ # instead of true.
34
+ config.use_transactional_fixtures = true
35
+ config.extend ControllerMacros, :type => :controller
36
+
37
+ $original_sunspot_session = Sunspot.session
38
+
39
+ config.before do
40
+ Sunspot.session = Sunspot::Rails::StubSessionProxy.new($original_sunspot_session)
41
+ end
42
+
43
+ config.before :each, :solr => true do
44
+ Sunspot::Rails::Tester.start_original_sunspot_session
45
+ Sunspot.session = $original_sunspot_session
46
+ Sunspot.remove_all!
47
+ end
48
+
49
+ config.infer_spec_type_from_file_location!
50
+ end
51
+
52
+ FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"
53
+ FactoryGirl.find_definitions
54
+
55
+ VCR.configure do |c|
56
+ c.cassette_library_dir = 'spec/cassette_library'
57
+ c.hook_into :webmock
58
+ c.configure_rspec_metadata!
59
+ c.allow_http_connections_when_no_cassette = true
60
+ end
@@ -1,60 +1,92 @@
1
- require 'simplecov'
2
- require 'coveralls'
3
- SimpleCov.start 'rails'
4
- Coveralls.wear!
5
-
6
- # This file is copied to spec/ when you run 'rails generate rspec:install'
7
- ENV["RAILS_ENV"] ||= 'test'
8
- require File.expand_path("../dummy/config/environment", __FILE__)
9
- require 'rspec/rails'
10
- require 'vcr'
11
- require 'factory_girl'
12
- require 'sunspot-rails-tester'
13
-
14
- # Requires supporting ruby files with custom matchers and macros, etc,
15
- # in spec/support/ and its subdirectories.
16
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
17
-
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
19
  RSpec.configure do |config|
19
- # == Mock Framework
20
- #
21
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
22
- #
23
- # config.mock_with :mocha
24
- # config.mock_with :flexmock
25
- # config.mock_with :rr
26
- config.mock_with :rspec
27
-
28
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
29
- config.fixture_path = "#{::Rails.root}/../../spec/fixtures"
30
-
31
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
32
- # examples within a transaction, remove the following line or assign false
33
- # instead of true.
34
- config.use_transactional_fixtures = true
35
- config.extend ControllerMacros, :type => :controller
36
-
37
- $original_sunspot_session = Sunspot.session
38
-
39
- config.before do
40
- Sunspot.session = Sunspot::Rails::StubSessionProxy.new($original_sunspot_session)
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
41
32
  end
42
33
 
43
- config.before :each, :solr => true do
44
- Sunspot::Rails::Tester.start_original_sunspot_session
45
- Sunspot.session = $original_sunspot_session
46
- Sunspot.remove_all!
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = false
47
41
  end
48
42
 
49
- config.infer_spec_type_from_file_location!
50
- end
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ =begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
50
+ config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Allows RSpec to persist some state between runs in order to support
54
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
55
+ # you configure your source control system to ignore this file.
56
+ config.example_status_persistence_file_path = "spec/examples.txt"
57
+
58
+ # Limits the available syntax to the non-monkey patched syntax that is
59
+ # recommended. For more details, see:
60
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
61
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
62
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
63
+ config.disable_monkey_patching!
64
+
65
+ # Many RSpec users commonly either run the entire suite or an individual
66
+ # file, and it's useful to allow more verbose output when running an
67
+ # individual spec file.
68
+ if config.files_to_run.one?
69
+ # Use the documentation formatter for detailed output,
70
+ # unless a formatter has already been configured
71
+ # (e.g. via a command-line flag).
72
+ config.default_formatter = 'doc'
73
+ end
74
+
75
+ # Print the 10 slowest examples and example groups at the
76
+ # end of the spec run, to help surface which specs are running
77
+ # particularly slow.
78
+ config.profile_examples = 10
51
79
 
52
- FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"
53
- FactoryGirl.find_definitions
80
+ # Run specs in random order to surface order dependencies. If you find an
81
+ # order dependency and want to debug it, you can fix the order by providing
82
+ # the seed, which is printed after each run.
83
+ # --seed 1234
84
+ config.order = :random
54
85
 
55
- VCR.configure do |c|
56
- c.cassette_library_dir = 'spec/cassette_library'
57
- c.hook_into :webmock
58
- c.configure_rspec_metadata!
59
- c.allow_http_connections_when_no_cassette = true
86
+ # Seed global randomization in this process using the `--seed` CLI option.
87
+ # Setting this allows you to use `--seed` to deterministically reproduce
88
+ # test failures related to randomization by passing the same `--seed` value
89
+ # as the one that triggered the failure.
90
+ Kernel.srand config.seed
91
+ =end
60
92
  end
@@ -1,4 +1,4 @@
1
1
  RSpec.configure do |config|
2
- config.include Devise::TestHelpers, :type => :controller
3
- config.include Devise::TestHelpers, :type => :view
2
+ config.include Devise::Test::ControllerHelpers, type: :controller
3
+ config.include Devise::Test::ControllerHelpers, type: :view
4
4
  end
metadata CHANGED
@@ -1,23 +1,65 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_news
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-26 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: faraday
14
+ name: enju_library
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.0.beta.9
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.0.beta.9
27
+ - !ruby/object:Gem::Dependency
28
+ name: enju_leaf
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.0.beta.3
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.2.0.beta.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: globalize
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 5.0.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 5.0.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: globalize-accessors
15
57
  requirement: !ruby/object:Gem::Requirement
16
58
  requirements:
17
59
  - - ">="
18
60
  - !ruby/object:Gem::Version
19
61
  version: '0'
20
- type: :runtime
62
+ type: :development
21
63
  prerelease: false
22
64
  version_requirements: !ruby/object:Gem::Requirement
23
65
  requirements:
@@ -150,6 +192,20 @@ dependencies:
150
192
  - - ">="
151
193
  - !ruby/object:Gem::Version
152
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sunspot_solr
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - '='
200
+ - !ruby/object:Gem::Version
201
+ version: 2.2.0
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '='
207
+ - !ruby/object:Gem::Version
208
+ version: 2.2.0
153
209
  - !ruby/object:Gem::Dependency
154
210
  name: sunspot-rails-tester
155
211
  requirement: !ruby/object:Gem::Requirement
@@ -165,19 +221,19 @@ dependencies:
165
221
  - !ruby/object:Gem::Version
166
222
  version: '0'
167
223
  - !ruby/object:Gem::Dependency
168
- name: enju_leaf
224
+ name: coveralls
169
225
  requirement: !ruby/object:Gem::Requirement
170
226
  requirements:
171
- - - "~>"
227
+ - - ">="
172
228
  - !ruby/object:Gem::Version
173
- version: 1.1.2
229
+ version: '0'
174
230
  type: :development
175
231
  prerelease: false
176
232
  version_requirements: !ruby/object:Gem::Requirement
177
233
  requirements:
178
- - - "~>"
234
+ - - ">="
179
235
  - !ruby/object:Gem::Version
180
- version: 1.1.2
236
+ version: '0'
181
237
  - !ruby/object:Gem::Dependency
182
238
  name: appraisal
183
239
  requirement: !ruby/object:Gem::Requirement
@@ -206,9 +262,10 @@ files:
206
262
  - app/controllers/news_posts_controller.rb
207
263
  - app/helpers/news_feeds_helper.rb
208
264
  - app/helpers/news_posts_helper.rb
209
- - app/models/enju_news/ability.rb
210
265
  - app/models/news_feed.rb
211
266
  - app/models/news_post.rb
267
+ - app/policies/news_feed_policy.rb
268
+ - app/policies/news_post_policy.rb
212
269
  - app/views/news_feeds/_content.html.erb
213
270
  - app/views/news_feeds/_content_atom.html.erb
214
271
  - app/views/news_feeds/_content_rss.html.erb
@@ -245,7 +302,6 @@ files:
245
302
  - spec/dummy/app/assets/stylesheets/application.css
246
303
  - spec/dummy/app/controllers/application_controller.rb
247
304
  - spec/dummy/app/helpers/application_helper.rb
248
- - spec/dummy/app/models/ability.rb
249
305
  - spec/dummy/app/models/user.rb
250
306
  - spec/dummy/app/views/layouts/application.html.erb
251
307
  - spec/dummy/bin/bundle
@@ -254,7 +310,6 @@ files:
254
310
  - spec/dummy/bin/setup
255
311
  - spec/dummy/config.ru
256
312
  - spec/dummy/config/application.rb
257
- - spec/dummy/config/application.yml
258
313
  - spec/dummy/config/boot.rb
259
314
  - spec/dummy/config/database.yml
260
315
  - spec/dummy/config/environment.rb
@@ -280,6 +335,9 @@ files:
280
335
  - spec/dummy/db/migrate/124_create_bookstores.rb
281
336
  - spec/dummy/db/migrate/130_create_request_status_types.rb
282
337
  - spec/dummy/db/migrate/131_create_request_types.rb
338
+ - spec/dummy/db/migrate/149_create_message_templates.rb
339
+ - spec/dummy/db/migrate/154_create_messages.rb
340
+ - spec/dummy/db/migrate/20080819181903_create_message_requests.rb
283
341
  - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
284
342
  - spec/dummy/db/migrate/20081006093246_create_subscribes.rb
285
343
  - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
@@ -289,7 +347,9 @@ files:
289
347
  - spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
290
348
  - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
291
349
  - spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
350
+ - spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb
292
351
  - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
352
+ - spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb
293
353
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
294
354
  - spec/dummy/db/migrate/20120319173203_create_accepts.rb
295
355
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
@@ -298,6 +358,8 @@ files:
298
358
  - spec/dummy/db/migrate/20140110122216_create_user_import_files.rb
299
359
  - spec/dummy/db/migrate/20140110131010_create_user_import_results.rb
300
360
  - spec/dummy/db/migrate/20140122054321_create_profiles.rb
361
+ - spec/dummy/db/migrate/20140518111006_create_message_transitions.rb
362
+ - spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb
301
363
  - spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
302
364
  - spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
303
365
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
@@ -306,7 +368,21 @@ files:
306
368
  - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
307
369
  - spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb
308
370
  - spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
371
+ - spec/dummy/db/migrate/20140821151023_create_colors.rb
309
372
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
373
+ - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
374
+ - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
375
+ - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
376
+ - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
377
+ - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
378
+ - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
379
+ - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
380
+ - spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
381
+ - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
382
+ - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
383
+ - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
384
+ - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
385
+ - spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb
310
386
  - spec/dummy/db/schema.rb
311
387
  - spec/dummy/public/404.html
312
388
  - spec/dummy/public/422.html
@@ -326,6 +402,7 @@ files:
326
402
  - spec/fixtures/users.yml
327
403
  - spec/models/news_feed_spec.rb
328
404
  - spec/models/news_post_spec.rb
405
+ - spec/rails_helper.rb
329
406
  - spec/spec_helper.rb
330
407
  - spec/support/controller_macros.rb
331
408
  - spec/support/devise.rb
@@ -343,12 +420,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
343
420
  version: '0'
344
421
  required_rubygems_version: !ruby/object:Gem::Requirement
345
422
  requirements:
346
- - - ">="
423
+ - - ">"
347
424
  - !ruby/object:Gem::Version
348
- version: '0'
425
+ version: 1.3.1
349
426
  requirements: []
350
427
  rubyforge_project:
351
- rubygems_version: 2.5.0
428
+ rubygems_version: 2.5.1
352
429
  signing_key:
353
430
  specification_version: 4
354
431
  summary: enju_news plugin
@@ -362,7 +439,6 @@ test_files:
362
439
  - spec/dummy/app/assets/stylesheets/application.css
363
440
  - spec/dummy/app/controllers/application_controller.rb
364
441
  - spec/dummy/app/helpers/application_helper.rb
365
- - spec/dummy/app/models/ability.rb
366
442
  - spec/dummy/app/models/user.rb
367
443
  - spec/dummy/app/views/layouts/application.html.erb
368
444
  - spec/dummy/bin/bundle
@@ -370,7 +446,6 @@ test_files:
370
446
  - spec/dummy/bin/rake
371
447
  - spec/dummy/bin/setup
372
448
  - spec/dummy/config/application.rb
373
- - spec/dummy/config/application.yml
374
449
  - spec/dummy/config/boot.rb
375
450
  - spec/dummy/config/database.yml
376
451
  - spec/dummy/config/environment.rb
@@ -397,6 +472,9 @@ test_files:
397
472
  - spec/dummy/db/migrate/124_create_bookstores.rb
398
473
  - spec/dummy/db/migrate/130_create_request_status_types.rb
399
474
  - spec/dummy/db/migrate/131_create_request_types.rb
475
+ - spec/dummy/db/migrate/149_create_message_templates.rb
476
+ - spec/dummy/db/migrate/154_create_messages.rb
477
+ - spec/dummy/db/migrate/20080819181903_create_message_requests.rb
400
478
  - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
401
479
  - spec/dummy/db/migrate/20081006093246_create_subscribes.rb
402
480
  - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
@@ -406,7 +484,9 @@ test_files:
406
484
  - spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
407
485
  - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
408
486
  - spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
487
+ - spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb
409
488
  - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
489
+ - spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb
410
490
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
411
491
  - spec/dummy/db/migrate/20120319173203_create_accepts.rb
412
492
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
@@ -415,6 +495,8 @@ test_files:
415
495
  - spec/dummy/db/migrate/20140110122216_create_user_import_files.rb
416
496
  - spec/dummy/db/migrate/20140110131010_create_user_import_results.rb
417
497
  - spec/dummy/db/migrate/20140122054321_create_profiles.rb
498
+ - spec/dummy/db/migrate/20140518111006_create_message_transitions.rb
499
+ - spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb
418
500
  - spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
419
501
  - spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
420
502
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
@@ -423,7 +505,21 @@ test_files:
423
505
  - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
424
506
  - spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb
425
507
  - spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
508
+ - spec/dummy/db/migrate/20140821151023_create_colors.rb
426
509
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
510
+ - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
511
+ - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
512
+ - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
513
+ - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
514
+ - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
515
+ - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
516
+ - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
517
+ - spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
518
+ - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
519
+ - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
520
+ - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
521
+ - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
522
+ - spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb
427
523
  - spec/dummy/db/schema.rb
428
524
  - spec/dummy/public/404.html
429
525
  - spec/dummy/public/422.html
@@ -444,6 +540,7 @@ test_files:
444
540
  - spec/fixtures/users.yml
445
541
  - spec/models/news_feed_spec.rb
446
542
  - spec/models/news_post_spec.rb
543
+ - spec/rails_helper.rb
447
544
  - spec/spec_helper.rb
448
545
  - spec/support/controller_macros.rb
449
546
  - spec/support/devise.rb