counter_culture 0.1.20 → 0.1.21

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: f5c04260f58914bf559f6f7b94bee0af339daa44
4
- data.tar.gz: fae72b4c05340ec945bad231311c214d2a9956d4
3
+ metadata.gz: 89e6e595dc3bfd04dc2c43689a2e92551a0d1e62
4
+ data.tar.gz: 0eaa6cb18bd4f31a0c93a75b65dd87e3f88c864d
5
5
  SHA512:
6
- metadata.gz: 7ea0b1c02e7afd5f19f59226d7b4118399e7fadcaba9162d87969eb9ae3d1940110c522e9536a259588acd604289a95d5c0b8760b725348d1ec5141652e68094
7
- data.tar.gz: dc746d48a2774df255c42300024e6c96b68c09d9e52ad9b5db0a959f8d7d24875faca48acd4836a98952688fbc566b6b22d3c94ec17188eb443683a59e222487
6
+ metadata.gz: 327ffa770c20fb19cb62997fbb7b5e731edda014e892ec1eed971f8cc9488e430d64e922036e018603f766705f057cd2732545d5a947a2c802e5a2534ac79b70
7
+ data.tar.gz: cf7382c2e12317c8c6b358db94bfdf254b3f8e5af12a7d26437644376d31125902441988fcb445260994d5f719061b9db6fd05d828d0297701a0850c7d98b1a3
data/Gemfile.lock CHANGED
@@ -1,45 +1,47 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionmailer (4.0.0)
5
- actionpack (= 4.0.0)
6
- mail (~> 2.5.3)
7
- actionpack (4.0.0)
8
- activesupport (= 4.0.0)
9
- builder (~> 3.1.0)
10
- erubis (~> 2.7.0)
4
+ actionmailer (4.1.1)
5
+ actionpack (= 4.1.1)
6
+ actionview (= 4.1.1)
7
+ mail (~> 2.5.4)
8
+ actionpack (4.1.1)
9
+ actionview (= 4.1.1)
10
+ activesupport (= 4.1.1)
11
11
  rack (~> 1.5.2)
12
12
  rack-test (~> 0.6.2)
13
- activemodel (4.0.0)
14
- activesupport (= 4.0.0)
15
- builder (~> 3.1.0)
16
- activerecord (4.0.0)
17
- activemodel (= 4.0.0)
18
- activerecord-deprecated_finders (~> 1.0.2)
19
- activesupport (= 4.0.0)
20
- arel (~> 4.0.0)
21
- activerecord-deprecated_finders (1.0.3)
22
- activesupport (4.0.0)
23
- i18n (~> 0.6, >= 0.6.4)
24
- minitest (~> 4.2)
25
- multi_json (~> 1.3)
13
+ actionview (4.1.1)
14
+ activesupport (= 4.1.1)
15
+ builder (~> 3.1)
16
+ erubis (~> 2.7.0)
17
+ activemodel (4.1.1)
18
+ activesupport (= 4.1.1)
19
+ builder (~> 3.1)
20
+ activerecord (4.1.1)
21
+ activemodel (= 4.1.1)
22
+ activesupport (= 4.1.1)
23
+ arel (~> 5.0.0)
24
+ activesupport (4.1.1)
25
+ i18n (~> 0.6, >= 0.6.9)
26
+ json (~> 1.7, >= 1.7.7)
27
+ minitest (~> 5.1)
26
28
  thread_safe (~> 0.1)
27
- tzinfo (~> 0.3.37)
28
- addressable (2.3.5)
29
+ tzinfo (~> 1.1)
30
+ addressable (2.3.6)
29
31
  after_commit_action (0.1.3)
30
32
  activerecord (>= 3.0.0)
31
- arel (4.0.0)
32
- atomic (1.1.14)
33
+ arel (5.0.1.20140414130214)
33
34
  awesome_print (1.2.0)
34
- builder (3.1.4)
35
- database_cleaner (1.1.1)
36
- descendants_tracker (0.0.3)
35
+ builder (3.2.2)
36
+ database_cleaner (1.2.0)
37
+ descendants_tracker (0.0.4)
38
+ thread_safe (~> 0.3, >= 0.3.1)
37
39
  diff-lcs (1.1.3)
38
40
  erubis (2.7.0)
39
41
  faraday (0.9.0)
40
42
  multipart-post (>= 1.2, < 3)
41
43
  git (1.2.6)
42
- github_api (0.11.1)
44
+ github_api (0.11.3)
43
45
  addressable (~> 2.3)
44
46
  descendants_tracker (~> 0.0.1)
45
47
  faraday (~> 0.8, < 0.10)
@@ -47,10 +49,10 @@ GEM
47
49
  multi_json (>= 1.7.5, < 2.0)
48
50
  nokogiri (~> 1.6.0)
49
51
  oauth2
50
- hashie (2.0.5)
51
- highline (1.6.20)
52
+ hashie (2.1.1)
53
+ highline (1.6.21)
52
54
  hike (1.2.3)
53
- i18n (0.6.5)
55
+ i18n (0.6.9)
54
56
  jeweler (2.0.1)
55
57
  builder
56
58
  bundler (>= 1.0)
@@ -61,43 +63,45 @@ GEM
61
63
  rake
62
64
  rdoc
63
65
  json (1.8.1)
64
- jwt (0.1.11)
66
+ jwt (0.1.13)
65
67
  multi_json (>= 1.5)
66
68
  mail (2.5.4)
67
69
  mime-types (~> 1.16)
68
70
  treetop (~> 1.4.8)
69
- mime-types (1.25)
70
- mini_portile (0.5.2)
71
- minitest (4.7.5)
72
- multi_json (1.8.4)
71
+ mime-types (1.25.1)
72
+ mini_portile (0.6.0)
73
+ minitest (5.3.3)
74
+ multi_json (1.10.0)
73
75
  multi_xml (0.5.5)
74
76
  multipart-post (2.0.0)
75
- nokogiri (1.6.1)
76
- mini_portile (~> 0.5.0)
77
+ nokogiri (1.6.2.1)
78
+ mini_portile (= 0.6.0)
77
79
  oauth2 (0.9.3)
78
80
  faraday (>= 0.8, < 0.10)
79
81
  jwt (~> 0.1.8)
80
82
  multi_json (~> 1.3)
81
83
  multi_xml (~> 0.5)
82
84
  rack (~> 1.2)
83
- polyglot (0.3.3)
85
+ polyglot (0.3.4)
84
86
  rack (1.5.2)
85
87
  rack-test (0.6.2)
86
88
  rack (>= 1.0)
87
- rails (4.0.0)
88
- actionmailer (= 4.0.0)
89
- actionpack (= 4.0.0)
90
- activerecord (= 4.0.0)
91
- activesupport (= 4.0.0)
89
+ rails (4.1.1)
90
+ actionmailer (= 4.1.1)
91
+ actionpack (= 4.1.1)
92
+ actionview (= 4.1.1)
93
+ activemodel (= 4.1.1)
94
+ activerecord (= 4.1.1)
95
+ activesupport (= 4.1.1)
92
96
  bundler (>= 1.3.0, < 2.0)
93
- railties (= 4.0.0)
94
- sprockets-rails (~> 2.0.0)
95
- railties (4.0.0)
96
- actionpack (= 4.0.0)
97
- activesupport (= 4.0.0)
97
+ railties (= 4.1.1)
98
+ sprockets-rails (~> 2.0)
99
+ railties (4.1.1)
100
+ actionpack (= 4.1.1)
101
+ activesupport (= 4.1.1)
98
102
  rake (>= 0.8.7)
99
103
  thor (>= 0.18.1, < 2.0)
100
- rake (10.1.1)
104
+ rake (10.3.1)
101
105
  rdoc (3.12.2)
102
106
  json (~> 1.4)
103
107
  rspec (2.10.0)
@@ -109,24 +113,24 @@ GEM
109
113
  diff-lcs (~> 1.1.3)
110
114
  rspec-extra-formatters (1.0.0)
111
115
  rspec-mocks (2.10.1)
112
- sprockets (2.10.0)
116
+ sprockets (2.12.1)
113
117
  hike (~> 1.2)
114
118
  multi_json (~> 1.0)
115
119
  rack (~> 1.0)
116
120
  tilt (~> 1.1, != 1.3.0)
117
- sprockets-rails (2.0.0)
121
+ sprockets-rails (2.1.3)
118
122
  actionpack (>= 3.0)
119
123
  activesupport (>= 3.0)
120
124
  sprockets (~> 2.8)
121
- sqlite3 (1.3.8)
122
- thor (0.18.1)
123
- thread_safe (0.1.3)
124
- atomic
125
+ sqlite3 (1.3.9)
126
+ thor (0.19.1)
127
+ thread_safe (0.3.3)
125
128
  tilt (1.4.1)
126
129
  treetop (1.4.15)
127
130
  polyglot
128
131
  polyglot (>= 0.3.1)
129
- tzinfo (0.3.37)
132
+ tzinfo (1.1.0)
133
+ thread_safe (~> 0.1)
130
134
 
131
135
  PLATFORMS
132
136
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.20
1
+ 0.1.21
@@ -2,15 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: counter_culture 0.1.20 ruby lib
5
+ # stub: counter_culture 0.1.21 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "counter_culture"
9
- s.version = "0.1.20"
9
+ s.version = "0.1.21"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Magnus von Koeller"]
13
- s.date = "2014-05-15"
13
+ s.date = "2014-05-24"
14
14
  s.description = "counter_culture provides turbo-charged counter caches that are kept up-to-date not just on create and destroy, that support multiple levels of indirection through relationships, allow dynamic column names and that avoid deadlocks by updating in the after_commit callback."
15
15
  s.email = "magnus@vonkoeller.de"
16
16
  s.extra_rdoc_files = [
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
47
47
  "spec/models/user.rb",
48
48
  "spec/rails_app/.gitignore",
49
49
  "spec/rails_app/Gemfile",
50
+ "spec/rails_app/Gemfile.lock",
50
51
  "spec/rails_app/README.rdoc",
51
52
  "spec/rails_app/Rakefile",
52
53
  "spec/rails_app/app/assets/images/rails.png",
@@ -63,7 +64,6 @@ Gem::Specification.new do |s|
63
64
  "spec/rails_app/config/database.yml",
64
65
  "spec/rails_app/config/environment.rb",
65
66
  "spec/rails_app/config/environments/development.rb",
66
- "spec/rails_app/config/environments/production.rb",
67
67
  "spec/rails_app/config/environments/test.rb",
68
68
  "spec/rails_app/config/initializers/backtrace_silencers.rb",
69
69
  "spec/rails_app/config/initializers/inflections.rb",
@@ -14,8 +14,6 @@ class CounterCultureGenerator < ActiveRecord::Generators::Base
14
14
  migration_template "counter_culture_migration.rb.erb", "db/migrate/#{migration_file_name}"
15
15
  end
16
16
 
17
- protected
18
-
19
17
  def migration_name
20
18
  "add_#{counter_cache_columns.join("_")}_to_#{name.underscore.pluralize}"
21
19
  end
@@ -1,27 +1,28 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '3.2.3'
3
+ gem 'rails', '~> 4.1.0'
4
4
 
5
5
  # Bundle edge Rails instead:
6
6
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
7
 
8
8
  gem 'sqlite3'
9
9
 
10
-
11
10
  # Gems used only for assets and not required
12
11
  # in production environments by default.
13
12
  group :assets do
14
- gem 'sass-rails', '~> 3.2.3'
15
- gem 'coffee-rails', '~> 3.2.1'
13
+ gem 'sass-rails'
14
+ gem 'coffee-rails'
16
15
 
17
16
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
18
17
  # gem 'therubyracer', :platform => :ruby
19
18
 
20
- gem 'uglifier', '>= 1.0.3'
19
+ gem 'uglifier'
21
20
  end
22
21
 
23
22
  gem 'jquery-rails'
24
23
 
24
+ gem 'counter_culture', path: '../..'
25
+
25
26
  # To use ActiveModel has_secure_password
26
27
  # gem 'bcrypt-ruby', '~> 3.0.0'
27
28
 
@@ -0,0 +1,119 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ counter_culture (0.1.20)
5
+ after_commit_action (~> 0.1.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.1.1)
11
+ actionpack (= 4.1.1)
12
+ actionview (= 4.1.1)
13
+ mail (~> 2.5.4)
14
+ actionpack (4.1.1)
15
+ actionview (= 4.1.1)
16
+ activesupport (= 4.1.1)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ actionview (4.1.1)
20
+ activesupport (= 4.1.1)
21
+ builder (~> 3.1)
22
+ erubis (~> 2.7.0)
23
+ activemodel (4.1.1)
24
+ activesupport (= 4.1.1)
25
+ builder (~> 3.1)
26
+ activerecord (4.1.1)
27
+ activemodel (= 4.1.1)
28
+ activesupport (= 4.1.1)
29
+ arel (~> 5.0.0)
30
+ activesupport (4.1.1)
31
+ i18n (~> 0.6, >= 0.6.9)
32
+ json (~> 1.7, >= 1.7.7)
33
+ minitest (~> 5.1)
34
+ thread_safe (~> 0.1)
35
+ tzinfo (~> 1.1)
36
+ after_commit_action (0.1.3)
37
+ activerecord (>= 3.0.0)
38
+ arel (5.0.1.20140414130214)
39
+ builder (3.2.2)
40
+ coffee-rails (4.0.1)
41
+ coffee-script (>= 2.2.0)
42
+ railties (>= 4.0.0, < 5.0)
43
+ coffee-script (2.2.0)
44
+ coffee-script-source
45
+ execjs
46
+ coffee-script-source (1.7.0)
47
+ erubis (2.7.0)
48
+ execjs (2.0.2)
49
+ hike (1.2.3)
50
+ i18n (0.6.9)
51
+ jquery-rails (3.1.0)
52
+ railties (>= 3.0, < 5.0)
53
+ thor (>= 0.14, < 2.0)
54
+ json (1.8.1)
55
+ mail (2.5.4)
56
+ mime-types (~> 1.16)
57
+ treetop (~> 1.4.8)
58
+ mime-types (1.25.1)
59
+ minitest (5.3.4)
60
+ multi_json (1.10.1)
61
+ polyglot (0.3.4)
62
+ rack (1.5.2)
63
+ rack-test (0.6.2)
64
+ rack (>= 1.0)
65
+ rails (4.1.1)
66
+ actionmailer (= 4.1.1)
67
+ actionpack (= 4.1.1)
68
+ actionview (= 4.1.1)
69
+ activemodel (= 4.1.1)
70
+ activerecord (= 4.1.1)
71
+ activesupport (= 4.1.1)
72
+ bundler (>= 1.3.0, < 2.0)
73
+ railties (= 4.1.1)
74
+ sprockets-rails (~> 2.0)
75
+ railties (4.1.1)
76
+ actionpack (= 4.1.1)
77
+ activesupport (= 4.1.1)
78
+ rake (>= 0.8.7)
79
+ thor (>= 0.18.1, < 2.0)
80
+ rake (10.3.2)
81
+ sass (3.2.19)
82
+ sass-rails (4.0.3)
83
+ railties (>= 4.0.0, < 5.0)
84
+ sass (~> 3.2.0)
85
+ sprockets (~> 2.8, <= 2.11.0)
86
+ sprockets-rails (~> 2.0)
87
+ sprockets (2.11.0)
88
+ hike (~> 1.2)
89
+ multi_json (~> 1.0)
90
+ rack (~> 1.0)
91
+ tilt (~> 1.1, != 1.3.0)
92
+ sprockets-rails (2.1.3)
93
+ actionpack (>= 3.0)
94
+ activesupport (>= 3.0)
95
+ sprockets (~> 2.8)
96
+ sqlite3 (1.3.9)
97
+ thor (0.19.1)
98
+ thread_safe (0.3.3)
99
+ tilt (1.4.1)
100
+ treetop (1.4.15)
101
+ polyglot
102
+ polyglot (>= 0.3.1)
103
+ tzinfo (1.1.0)
104
+ thread_safe (~> 0.1)
105
+ uglifier (2.5.0)
106
+ execjs (>= 0.3.0)
107
+ json (>= 1.8.0)
108
+
109
+ PLATFORMS
110
+ ruby
111
+
112
+ DEPENDENCIES
113
+ coffee-rails
114
+ counter_culture!
115
+ jquery-rails
116
+ rails (~> 4.1.0)
117
+ sass-rails
118
+ sqlite3
119
+ uglifier
@@ -44,12 +44,6 @@ module RailsApp
44
44
  # like if you have constraints or database-specific column types
45
45
  # config.active_record.schema_format = :sql
46
46
 
47
- # Enforce whitelist mode for mass assignment.
48
- # This will create an empty whitelist of attributes available for mass-assignment for all models
49
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
50
- # parameters by using an attr_accessible or attr_protected declaration.
51
- config.active_record.whitelist_attributes = false
52
-
53
47
  # Enable the asset pipeline
54
48
  config.assets.enabled = true
55
49
 
@@ -22,16 +22,11 @@ RailsApp::Application.configure do
22
22
  # Only use best-standards-support built into browsers
23
23
  config.action_dispatch.best_standards_support = :builtin
24
24
 
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
- # Log the query plan for queries taking more than this (works
29
- # with SQLite, MySQL, and PostgreSQL)
30
- config.active_record.auto_explain_threshold_in_seconds = 0.5
31
-
32
25
  # Do not compress assets
33
26
  config.assets.compress = false
34
27
 
35
28
  # Expands the lines which load the assets
36
29
  config.assets.debug = true
30
+
31
+ config.eager_load = false
37
32
  end
@@ -26,11 +26,10 @@ RailsApp::Application.configure do
26
26
  # ActionMailer::Base.deliveries array.
27
27
  config.action_mailer.delivery_method = :test
28
28
 
29
- # Raise exception on mass assignment protection for Active Record models
30
- config.active_record.mass_assignment_sanitizer = :strict
31
-
32
29
  # Print deprecation notices to the stderr
33
30
  config.active_support.deprecation = :stderr
34
31
 
32
+ config.eager_load = false
33
+
35
34
  config.log_level = :warn
36
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: counter_culture
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus von Koeller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-15 00:00:00.000000000 Z
11
+ date: 2014-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -176,6 +176,7 @@ files:
176
176
  - spec/models/user.rb
177
177
  - spec/rails_app/.gitignore
178
178
  - spec/rails_app/Gemfile
179
+ - spec/rails_app/Gemfile.lock
179
180
  - spec/rails_app/README.rdoc
180
181
  - spec/rails_app/Rakefile
181
182
  - spec/rails_app/app/assets/images/rails.png
@@ -192,7 +193,6 @@ files:
192
193
  - spec/rails_app/config/database.yml
193
194
  - spec/rails_app/config/environment.rb
194
195
  - spec/rails_app/config/environments/development.rb
195
- - spec/rails_app/config/environments/production.rb
196
196
  - spec/rails_app/config/environments/test.rb
197
197
  - spec/rails_app/config/initializers/backtrace_silencers.rb
198
198
  - spec/rails_app/config/initializers/inflections.rb
@@ -1,67 +0,0 @@
1
- RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Full error reports are disabled and caching is turned on
8
- config.consider_all_requests_local = false
9
- config.action_controller.perform_caching = true
10
-
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
13
-
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
16
-
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
18
- config.assets.compile = false
19
-
20
- # Generate digests for assets URLs
21
- config.assets.digest = true
22
-
23
- # Defaults to Rails.root.join("public/assets")
24
- # config.assets.manifest = YOUR_PATH
25
-
26
- # Specifies the header that your server uses for sending files
27
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
-
30
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
- # config.force_ssl = true
32
-
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
35
-
36
- # Prepend all log lines with the following tags
37
- # config.log_tags = [ :subdomain, :uuid ]
38
-
39
- # Use a different logger for distributed setups
40
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
-
42
- # Use a different cache store in production
43
- # config.cache_store = :mem_cache_store
44
-
45
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
- # config.action_controller.asset_host = "http://assets.example.com"
47
-
48
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
- # config.assets.precompile += %w( search.js )
50
-
51
- # Disable delivery errors, bad email addresses will be ignored
52
- # config.action_mailer.raise_delivery_errors = false
53
-
54
- # Enable threaded mode
55
- # config.threadsafe!
56
-
57
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
- # the I18n.default_locale when a translation can not be found)
59
- config.i18n.fallbacks = true
60
-
61
- # Send deprecation notices to registered listeners
62
- config.active_support.deprecation = :notify
63
-
64
- # Log the query plan for queries taking more than this (works
65
- # with SQLite, MySQL, and PostgreSQL)
66
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
- end