lazy_columns 0.5.7 → 0.5.9

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: 6912df43b521da5aaea085d4640dbbf36eb8e747
4
- data.tar.gz: 77fd0671a56fa4c14becb4e179ac39813588eb31
3
+ metadata.gz: 5d06cce142205704962912a429133ceebd315965
4
+ data.tar.gz: 8aaa45bcf1fadf79300cf1588599dbed7ff078d4
5
5
  SHA512:
6
- metadata.gz: e8e474f3b50590e5e8bcca580e2aa21bcd2e93896def07a9b274519ea584446d8e0caf8ae5ba000a39fa972bad09dffe9d1cb3e568ec64bb92938125c7f09c3a
7
- data.tar.gz: 5311634d20ded836536bba6adb34a7ac61a5ff9910cf6c12475867320e893e7da04324dea920b9f53a96490bf8a258e3b29d46a1cdae291cca608905012d1983
6
+ metadata.gz: 4ac1929a8bb83b0cfb2faaf4a53a21d1264343446f30e8b357a307d14abaf9091fecb6610b8b55707c48894aec4182629036307931d367c95c00bb28be650a98
7
+ data.tar.gz: 771062ce6061328bea8faeac8ab030e12dbd0a9c4c5b42bbfb6fc68c46e86a05dd0fa4fcd1574fc8da96265f0271253124181b533b81fb824d32f96b35e9bbb4
data/Rakefile CHANGED
@@ -22,6 +22,7 @@ end
22
22
 
23
23
  Bundler::GemHelper.install_tasks
24
24
 
25
+ require 'appraisal'
25
26
  require "rspec/core/rake_task"
26
27
 
27
28
  RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -29,4 +30,4 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
29
30
  spec.rspec_opts = ['--backtrace']
30
31
  end
31
32
 
32
- task :default => :spec
33
+ task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module LazyColumns
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.9"
3
3
  end
@@ -6,6 +6,9 @@ Dummy::Application.configure do
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
9
12
  # Log error messages when you accidentally call methods on nil.
10
13
  config.whiny_nils = true
11
14
 
@@ -4,13 +4,16 @@ Dummy::Application.configure do
4
4
  # Code is not reloaded between requests
5
5
  config.cache_classes = true
6
6
 
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
7
13
  # Full error reports are disabled and caching is turned on
8
14
  config.consider_all_requests_local = false
9
15
  config.action_controller.perform_caching = true
10
16
 
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
13
-
14
17
  # Compress JavaScripts and CSS
15
18
  config.assets.compress = true
16
19
 
@@ -7,9 +7,10 @@ Dummy::Application.configure do
7
7
  # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
13
14
 
14
15
  # Log error messages when you accidentally call methods on nil
15
16
  config.whiny_nils = true
@@ -34,4 +35,7 @@ Dummy::Application.configure do
34
35
 
35
36
  # Print deprecation notices to the stderr
36
37
  config.active_support.deprecation = :stderr
38
+
39
+ # Run tests in random order
40
+ config.active_support.test_order = :random
37
41
  end
Binary file
@@ -64,7 +64,7 @@ describe LazyColumns::ActsAsLazyColumnLoader do
64
64
  end
65
65
 
66
66
  def create_and_reload_action_from_db(klass=Action)
67
- klass.find Action.create(title: "some action", comments: "some comments")
67
+ klass.find Action.create(title: "some action", comments: "some comments").id
68
68
  end
69
69
 
70
70
  class ActionWith2LazyColumns < ActiveRecord::Base
@@ -1,6 +1,7 @@
1
1
  # This file is copied to spec/ when you run 'rails generate rspec:install'
2
2
  ENV["RAILS_ENV"] ||= 'test'
3
3
  require File.expand_path("../dummy/config/environment", __FILE__)
4
+ require 'minitest/autorun'
4
5
  require 'rspec/rails'
5
6
  require "rspec/expectations"
6
7
 
metadata CHANGED
@@ -1,69 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_columns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-21 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '3.1'
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: '3.2'
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: sqlite3
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: appraisal
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.2
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.0.2
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rspec
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
- - - ~>
73
+ - - "~>"
46
74
  - !ruby/object:Gem::Version
47
75
  version: 2.12.0
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
- - - ~>
80
+ - - "~>"
53
81
  - !ruby/object:Gem::Version
54
82
  version: 2.12.0
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rspec-rails
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
- - - ~>
87
+ - - "~>"
60
88
  - !ruby/object:Gem::Version
61
89
  version: 2.12.0
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
- - - ~>
94
+ - - "~>"
67
95
  - !ruby/object:Gem::Version
68
96
  version: 2.12.0
69
97
  description: This plugin lets you define specific columns in ActiveRecord models to
@@ -74,13 +102,15 @@ executables: []
74
102
  extensions: []
75
103
  extra_rdoc_files: []
76
104
  files:
105
+ - MIT-LICENSE
106
+ - README.md
107
+ - Rakefile
108
+ - lib/lazy_columns.rb
77
109
  - lib/lazy_columns/acts_as_lazy_column_loader.rb
78
110
  - lib/lazy_columns/version.rb
79
- - lib/lazy_columns.rb
80
111
  - lib/tasks/lazy_columns_tasks.rake
81
- - MIT-LICENSE
82
- - Rakefile
83
- - README.md
112
+ - spec/dummy/README.rdoc
113
+ - spec/dummy/Rakefile
84
114
  - spec/dummy/app/assets/javascripts/application.js
85
115
  - spec/dummy/app/assets/stylesheets/application.css
86
116
  - spec/dummy/app/controllers/application_controller.rb
@@ -88,6 +118,7 @@ files:
88
118
  - spec/dummy/app/models/action.rb
89
119
  - spec/dummy/app/models/person.rb
90
120
  - spec/dummy/app/views/layouts/application.html.erb
121
+ - spec/dummy/config.ru
91
122
  - spec/dummy/config/application.rb
92
123
  - spec/dummy/config/boot.rb
93
124
  - spec/dummy/config/database.yml
@@ -103,7 +134,6 @@ files:
103
134
  - spec/dummy/config/initializers/wrap_parameters.rb
104
135
  - spec/dummy/config/locales/en.yml
105
136
  - spec/dummy/config/routes.rb
106
- - spec/dummy/config.ru
107
137
  - spec/dummy/db/development.sqlite3
108
138
  - spec/dummy/db/migrate/20130107093428_create_actions.rb
109
139
  - spec/dummy/db/migrate/20130224111844_create_people.rb
@@ -116,8 +146,6 @@ files:
116
146
  - spec/dummy/public/422.html
117
147
  - spec/dummy/public/500.html
118
148
  - spec/dummy/public/favicon.ico
119
- - spec/dummy/Rakefile
120
- - spec/dummy/README.rdoc
121
149
  - spec/dummy/script/rails
122
150
  - spec/dummy/spec/models/person_spec.rb
123
151
  - spec/dummy/test/fixtures/actions.yml
@@ -132,17 +160,17 @@ require_paths:
132
160
  - lib
133
161
  required_ruby_version: !ruby/object:Gem::Requirement
134
162
  requirements:
135
- - - '>='
163
+ - - ">="
136
164
  - !ruby/object:Gem::Version
137
165
  version: '0'
138
166
  required_rubygems_version: !ruby/object:Gem::Requirement
139
167
  requirements:
140
- - - '>='
168
+ - - ">="
141
169
  - !ruby/object:Gem::Version
142
170
  version: '0'
143
171
  requirements: []
144
172
  rubyforge_project:
145
- rubygems_version: 2.0.2
173
+ rubygems_version: 2.2.2
146
174
  signing_key:
147
175
  specification_version: 4
148
176
  summary: Rails plugin that let you configure ActiveRecord columns to be loaded lazily