enju_event 0.1.17.pre26 → 0.1.17.pre27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 952d9e4be45acb984585b9ca979adee42fd6f4b8
4
- data.tar.gz: d0a8884b4b50f4acc1f6d3e7a23998be47df2283
3
+ metadata.gz: d80ebd7d07d1b07ae6216f60a0bb3169d0370991
4
+ data.tar.gz: 5d0b7c51d060074871370aacd92f45610c3229b2
5
5
  SHA512:
6
- metadata.gz: 1baecb169b72d269d100c809145659f76e63fd2778901bcd281088d09588d01e8a4e0fe713128971ca7d123385787cb5b2f18e8d2a726fb2994a9c630c3ffd91
7
- data.tar.gz: 927a4f5952b53547e3d28772b8ee0e461db9e83db2de2426a6629e41fcb4a9c0de9ad832a160d580f83ce6c5707f7454dd95f30cf99a881890197570f094c8ca
6
+ metadata.gz: b86b343a80cf3c36d0808cfb8d33d57c85f5f2a0a1a3603184c7ee09acaacffcb0e3075dbabda6ff05037d1470a361a2f058d287115a0d80fdd2049bab337369
7
+ data.tar.gz: 20ca2bbabad3204a9e24b77a2377a18ec8f9ab36a9e36aa036226d7fd1706cf8f16604ada31dbb8c9903c6d66623e5cd1d98deeb1d2a53aea8cb42e2e1ee85d9
@@ -23,14 +23,14 @@
23
23
 
24
24
  <div class="field">
25
25
  <%= f.label :start_at -%><br />
26
- <%= f.datetime_select :start_at, use_month_numbers: true -%>
26
+ <%= f.datetime_select :start_at -%>
27
27
  <%= f.label :all_day -%>
28
28
  <%= f.check_box :all_day -%>
29
29
  </div>
30
30
 
31
31
  <div class="field">
32
32
  <%= f.label :end_at -%><br />
33
- <%= f.datetime_select :end_at, use_month_numbers: true -%>
33
+ <%= f.datetime_select :end_at -%>
34
34
  </div>
35
35
 
36
36
  <div class="field">
@@ -24,12 +24,20 @@
24
24
 
25
25
  <p>
26
26
  <strong><%= t('activerecord.attributes.event.start_at') -%>:</strong>
27
- <%= l(@event.start_at, format: :only_date) -%>
27
+ <% if @event.all_day %>
28
+ <%= l(@event.start_at, format: :only_date) -%>
29
+ <% else %>
30
+ <%= l(@event.start_at) -%>
31
+ <% end %>
28
32
  </p>
29
33
 
30
34
  <p>
31
35
  <strong><%= t('activerecord.attributes.event.end_at') -%>:</strong>
32
- <%= l(@event.end_at, format: :only_date) -%>
36
+ <% if @event.all_day %>
37
+ <%= l(@event.end_at, format: :only_date) -%>
38
+ <% else %>
39
+ <%= l(@event.end_at) -%>
40
+ <% end %>
33
41
  </p>
34
42
 
35
43
  <p>
@@ -1,3 +1,3 @@
1
1
  module EnjuEvent
2
- VERSION = "0.1.17.pre26"
2
+ VERSION = "0.1.17.pre27"
3
3
  end
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
  require 'sunspot/rails/spec_helper'
3
3
 
4
4
  describe EventCategoriesController do
@@ -1,9 +1,13 @@
1
- // This is a manifest file that'll be compiled into including all the files listed below.
2
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
- // be included in the compiled file accessible from http://example.com/assets/application.js
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
4
7
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
- // the compiled file.
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
6
12
  //
7
- //= require jquery
8
- //= require jquery_ujs
9
13
  //= require_tree .
@@ -0,0 +1,79 @@
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('../../spec/dummy/config/environment', __FILE__)
9
+ # Prevent database truncation if the environment is production
10
+ abort("The Rails environment is running in production mode!") if Rails.env.production?
11
+ require 'spec_helper'
12
+ require 'rspec/rails'
13
+ # Add additional requires below this line. Rails is not loaded until this point!
14
+ require 'factory_girl'
15
+ require 'sunspot-rails-tester'
16
+ require 'rspec/active_model/mocks'
17
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
18
+
19
+ # Requires supporting ruby files with custom matchers and macros, etc, in
20
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
21
+ # run as spec files by default. This means that files in spec/support that end
22
+ # in _spec.rb will both be required and run as specs, causing the specs to be
23
+ # run twice. It is recommended that you do not name files matching this glob to
24
+ # end with _spec.rb. You can configure this pattern with the --pattern
25
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
26
+ #
27
+ # The following line is provided for convenience purposes. It has the downside
28
+ # of increasing the boot-up time by auto-requiring all files in the support
29
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
30
+ # require only the support files necessary.
31
+ #
32
+ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
33
+
34
+ # Checks for pending migrations before tests are run.
35
+ # If you are not using ActiveRecord, you can remove this line.
36
+ ActiveRecord::Migration.maintain_test_schema! if Rails::VERSION::MAJOR >= 4
37
+
38
+ RSpec.configure do |config|
39
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
40
+ config.fixture_path = "#{::Rails.root}/../../spec/fixtures"
41
+
42
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
43
+ # examples within a transaction, remove the following line or assign false
44
+ # instead of true.
45
+ config.use_transactional_fixtures = true
46
+
47
+ # RSpec Rails can automatically mix in different behaviours to your tests
48
+ # based on their file location, for example enabling you to call `get` and
49
+ # `post` in specs under `spec/controllers`.
50
+ #
51
+ # You can disable this behaviour by removing the line below, and instead
52
+ # explicitly tag your specs with their type, e.g.:
53
+ #
54
+ # RSpec.describe UsersController, :type => :controller do
55
+ # # ...
56
+ # end
57
+ #
58
+ # The different available types are documented in the features, such as in
59
+ # https://relishapp.com/rspec/rspec-rails/docs
60
+ config.infer_spec_type_from_file_location!
61
+
62
+ config.extend ControllerMacros, :type => :controller
63
+
64
+ $original_sunspot_session = Sunspot.session
65
+
66
+ config.before do
67
+ Sunspot.session = Sunspot::Rails::StubSessionProxy.new($original_sunspot_session)
68
+ end
69
+
70
+ config.before :each, :solr => true do
71
+ Sunspot::Rails::Tester.start_original_sunspot_session
72
+ Sunspot.session = $original_sunspot_session
73
+ Sunspot.remove_all!
74
+ end
75
+ end
76
+
77
+ FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"
78
+ FactoryGirl.find_definitions
79
+
data/spec/spec_helper.rb CHANGED
@@ -1,54 +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 'factory_girl'
11
- require 'sunspot-rails-tester'
12
- require 'rspec/active_model/mocks'
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
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
32
+ end
27
33
 
28
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
29
- config.fixture_path = "#{::Rails.root}/../../spec/fixtures"
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 = true
41
+ end
30
42
 
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
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
35
52
 
36
- config.extend ControllerMacros, :type => :controller
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"
37
57
 
38
- $original_sunspot_session = Sunspot.session
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!
39
64
 
40
- config.before do
41
- Sunspot.session = Sunspot::Rails::StubSessionProxy.new($original_sunspot_session)
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'
42
73
  end
43
74
 
44
- config.before :each, :solr => true do
45
- Sunspot::Rails::Tester.start_original_sunspot_session
46
- Sunspot.session = $original_sunspot_session
47
- Sunspot.remove_all!
48
- end
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
49
79
 
50
- config.infer_spec_type_from_file_location!
51
- end
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
52
85
 
53
- FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"
54
- FactoryGirl.find_definitions
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
92
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17.pre26
4
+ version: 0.1.17.pre27
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-06-27 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_message
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.14.pre24
19
+ version: 0.1.14.pre26
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.14.pre24
26
+ version: 0.1.14.pre26
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simple_form
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: mysql2
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.3.20
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.3.20
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: pg
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.1.0.rc19
173
+ version: 1.1.0.rc22
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.1.0.rc19
180
+ version: 1.1.0.rc22
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: sunspot_solr
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -614,6 +614,7 @@ files:
614
614
  - spec/models/event_import_result_spec.rb
615
615
  - spec/models/event_spec.rb
616
616
  - spec/models/participate_spec.rb
617
+ - spec/rails_helper.rb
617
618
  - spec/spec_helper.rb
618
619
  - spec/support/controller_macros.rb
619
620
  - spec/support/devise.rb
@@ -641,7 +642,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
641
642
  version: 1.3.1
642
643
  requirements: []
643
644
  rubyforge_project:
644
- rubygems_version: 2.4.5
645
+ rubygems_version: 2.4.5.1
645
646
  signing_key:
646
647
  specification_version: 4
647
648
  summary: enju_event plugin
@@ -898,6 +899,7 @@ test_files:
898
899
  - spec/models/event_import_result_spec.rb
899
900
  - spec/models/event_spec.rb
900
901
  - spec/models/participate_spec.rb
902
+ - spec/rails_helper.rb
901
903
  - spec/spec_helper.rb
902
904
  - spec/support/controller_macros.rb
903
905
  - spec/support/devise.rb