presenting 2.0.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 479f2f07c59e5ba846053771fc69d48bd703961b
4
+ data.tar.gz: 41bfb8bd7c763ebcc784f175ae2d0dac1e99262e
5
+ SHA512:
6
+ metadata.gz: 51d98fb4a952f3cec277647493498f0cc892689fccc09e69da679fc0914dd43690a7eaa5c4a905ca4da7229692fbf1e8143be828a25f70449348e0ba31b2f4f0
7
+ data.tar.gz: b046c92f6adfc65d30f9dad6e2eddce0b9ec45591050264d41f9aa1f1fcf283910a0707d64251bdaf2a5f84751b4d6ccdad14bca19376194860cfcc41d69288e
@@ -1,4 +1,10 @@
1
1
  class Presentation::AssetsController < ActionController::Base
2
+ # TODO: this is a hack b/c of load order in the extracted Rails 4 gems, read
3
+ # more in this pull request: https://github.com/rails/rails-observers/pull/8
4
+ if Rails.version >= '4.0.0'
5
+ include ActionController::Caching::Pages
6
+ end
7
+
2
8
  # TODO: consider packaging a minifier so we get the perfect solution: a cached, minified bundle of assets
3
9
  caches_page :stylesheet, :javascript
4
10
 
data/config/routes.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  Rails.application.routes.draw do
2
2
  namespace :presentation do
3
3
  controller 'assets' do
4
- match 'stylesheets/:id.:format', :as => 'stylesheet', :action => 'stylesheet', :constraints => {:format => 'css'}
5
- match 'javascript/:id.:format', :as => 'javascript', :action => 'javascript', :constraints => {:format => 'js'}
4
+ match 'stylesheets/:id.:format', :as => 'stylesheet', :action => 'stylesheet', :via => [:get], :constraints => {:format => 'css'}
5
+ match 'javascript/:id.:format', :as => 'javascript', :action => 'javascript', :via => [:get], :constraints => {:format => 'js'}
6
6
  end
7
7
  end
8
8
  end
data/test/r3/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '3.2.5'
3
+ gem 'rails', '3.2.13'
4
4
  gem 'sqlite3'
5
5
 
6
6
  gem 'presenting', :path => File.dirname(__FILE__) + '/../../'
7
- gem 'will_paginate', '~>3.0.0'
7
+ gem 'will_paginate', '~>3.0.4'
8
8
 
9
9
  group :test do
10
10
  gem 'mocha', :require => nil
data/test/r3/Gemfile.lock CHANGED
@@ -1,92 +1,92 @@
1
1
  PATH
2
2
  remote: /Users/cainlevy/Code/presenting
3
3
  specs:
4
- presenting (2.0.1)
4
+ presenting (2.0.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- actionmailer (3.2.5)
10
- actionpack (= 3.2.5)
11
- mail (~> 2.4.4)
12
- actionpack (3.2.5)
13
- activemodel (= 3.2.5)
14
- activesupport (= 3.2.5)
9
+ actionmailer (3.2.13)
10
+ actionpack (= 3.2.13)
11
+ mail (~> 2.5.3)
12
+ actionpack (3.2.13)
13
+ activemodel (= 3.2.13)
14
+ activesupport (= 3.2.13)
15
15
  builder (~> 3.0.0)
16
16
  erubis (~> 2.7.0)
17
- journey (~> 1.0.1)
18
- rack (~> 1.4.0)
17
+ journey (~> 1.0.4)
18
+ rack (~> 1.4.5)
19
19
  rack-cache (~> 1.2)
20
20
  rack-test (~> 0.6.1)
21
- sprockets (~> 2.1.3)
22
- activemodel (3.2.5)
23
- activesupport (= 3.2.5)
21
+ sprockets (~> 2.2.1)
22
+ activemodel (3.2.13)
23
+ activesupport (= 3.2.13)
24
24
  builder (~> 3.0.0)
25
- activerecord (3.2.5)
26
- activemodel (= 3.2.5)
27
- activesupport (= 3.2.5)
25
+ activerecord (3.2.13)
26
+ activemodel (= 3.2.13)
27
+ activesupport (= 3.2.13)
28
28
  arel (~> 3.0.2)
29
29
  tzinfo (~> 0.3.29)
30
- activeresource (3.2.5)
31
- activemodel (= 3.2.5)
32
- activesupport (= 3.2.5)
33
- activesupport (3.2.5)
34
- i18n (~> 0.6)
30
+ activeresource (3.2.13)
31
+ activemodel (= 3.2.13)
32
+ activesupport (= 3.2.13)
33
+ activesupport (3.2.13)
34
+ i18n (= 0.6.1)
35
35
  multi_json (~> 1.0)
36
36
  arel (3.0.2)
37
- builder (3.0.0)
37
+ builder (3.0.4)
38
38
  erubis (2.7.0)
39
- hike (1.2.1)
40
- i18n (0.6.0)
41
- journey (1.0.3)
42
- json (1.7.3)
43
- mail (2.4.4)
44
- i18n (>= 0.4.0)
39
+ hike (1.2.3)
40
+ i18n (0.6.1)
41
+ journey (1.0.4)
42
+ json (1.8.0)
43
+ mail (2.5.4)
45
44
  mime-types (~> 1.16)
46
45
  treetop (~> 1.4.8)
47
46
  metaclass (0.0.1)
48
- mime-types (1.18)
49
- mocha (0.11.3)
47
+ mime-types (1.23)
48
+ mocha (0.14.0)
50
49
  metaclass (~> 0.0.1)
51
- multi_json (1.3.6)
50
+ multi_json (1.7.7)
52
51
  polyglot (0.3.3)
53
- rack (1.4.1)
52
+ rack (1.4.5)
54
53
  rack-cache (1.2)
55
54
  rack (>= 0.4)
56
- rack-ssl (1.3.2)
55
+ rack-ssl (1.3.3)
57
56
  rack
58
- rack-test (0.6.1)
57
+ rack-test (0.6.2)
59
58
  rack (>= 1.0)
60
- rails (3.2.5)
61
- actionmailer (= 3.2.5)
62
- actionpack (= 3.2.5)
63
- activerecord (= 3.2.5)
64
- activeresource (= 3.2.5)
65
- activesupport (= 3.2.5)
59
+ rails (3.2.13)
60
+ actionmailer (= 3.2.13)
61
+ actionpack (= 3.2.13)
62
+ activerecord (= 3.2.13)
63
+ activeresource (= 3.2.13)
64
+ activesupport (= 3.2.13)
66
65
  bundler (~> 1.0)
67
- railties (= 3.2.5)
68
- railties (3.2.5)
69
- actionpack (= 3.2.5)
70
- activesupport (= 3.2.5)
66
+ railties (= 3.2.13)
67
+ railties (3.2.13)
68
+ actionpack (= 3.2.13)
69
+ activesupport (= 3.2.13)
71
70
  rack-ssl (~> 1.3.2)
72
71
  rake (>= 0.8.7)
73
72
  rdoc (~> 3.4)
74
73
  thor (>= 0.14.6, < 2.0)
75
- rake (0.9.2.2)
76
- rdoc (3.12)
74
+ rake (10.1.0)
75
+ rdoc (3.12.2)
77
76
  json (~> 1.4)
78
- sprockets (2.1.3)
77
+ sprockets (2.2.2)
79
78
  hike (~> 1.2)
79
+ multi_json (~> 1.0)
80
80
  rack (~> 1.0)
81
81
  tilt (~> 1.1, != 1.3.0)
82
82
  sqlite3 (1.3.6)
83
- thor (0.15.2)
84
- tilt (1.3.3)
85
- treetop (1.4.10)
83
+ thor (0.18.1)
84
+ tilt (1.4.1)
85
+ treetop (1.4.14)
86
86
  polyglot
87
87
  polyglot (>= 0.3.1)
88
- tzinfo (0.3.33)
89
- will_paginate (3.0.3)
88
+ tzinfo (0.3.37)
89
+ will_paginate (3.0.4)
90
90
 
91
91
  PLATFORMS
92
92
  ruby
@@ -94,6 +94,6 @@ PLATFORMS
94
94
  DEPENDENCIES
95
95
  mocha
96
96
  presenting!
97
- rails (= 3.2.5)
97
+ rails (= 3.2.13)
98
98
  sqlite3
99
- will_paginate (~> 3.0.0)
99
+ will_paginate (~> 3.0.4)
data/test/r4/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'rails', '4.0.0'
4
+ gem 'sqlite3'
5
+
6
+ gem 'presenting', :path => File.dirname(__FILE__) + '/../../'
7
+ gem 'will_paginate', '~>3.0.4'
8
+ gem 'actionpack-page_caching'
9
+
10
+ group :test do
11
+ gem 'mocha', :require => nil
12
+ end
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: /Users/cainlevy/Code/presenting
3
+ specs:
4
+ presenting (2.0.3)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (4.0.0)
10
+ actionpack (= 4.0.0)
11
+ mail (~> 2.5.3)
12
+ actionpack (4.0.0)
13
+ activesupport (= 4.0.0)
14
+ builder (~> 3.1.0)
15
+ erubis (~> 2.7.0)
16
+ rack (~> 1.5.2)
17
+ rack-test (~> 0.6.2)
18
+ actionpack-page_caching (1.0.0)
19
+ activemodel (4.0.0)
20
+ activesupport (= 4.0.0)
21
+ builder (~> 3.1.0)
22
+ activerecord (4.0.0)
23
+ activemodel (= 4.0.0)
24
+ activerecord-deprecated_finders (~> 1.0.2)
25
+ activesupport (= 4.0.0)
26
+ arel (~> 4.0.0)
27
+ activerecord-deprecated_finders (1.0.3)
28
+ activesupport (4.0.0)
29
+ i18n (~> 0.6, >= 0.6.4)
30
+ minitest (~> 4.2)
31
+ multi_json (~> 1.3)
32
+ thread_safe (~> 0.1)
33
+ tzinfo (~> 0.3.37)
34
+ arel (4.0.0)
35
+ atomic (1.1.10)
36
+ builder (3.1.4)
37
+ erubis (2.7.0)
38
+ hike (1.2.3)
39
+ i18n (0.6.4)
40
+ mail (2.5.4)
41
+ mime-types (~> 1.16)
42
+ treetop (~> 1.4.8)
43
+ metaclass (0.0.1)
44
+ mime-types (1.23)
45
+ minitest (4.7.5)
46
+ mocha (0.14.0)
47
+ metaclass (~> 0.0.1)
48
+ multi_json (1.7.7)
49
+ polyglot (0.3.3)
50
+ rack (1.5.2)
51
+ rack-test (0.6.2)
52
+ rack (>= 1.0)
53
+ rails (4.0.0)
54
+ actionmailer (= 4.0.0)
55
+ actionpack (= 4.0.0)
56
+ activerecord (= 4.0.0)
57
+ activesupport (= 4.0.0)
58
+ bundler (>= 1.3.0, < 2.0)
59
+ railties (= 4.0.0)
60
+ sprockets-rails (~> 2.0.0)
61
+ railties (4.0.0)
62
+ actionpack (= 4.0.0)
63
+ activesupport (= 4.0.0)
64
+ rake (>= 0.8.7)
65
+ thor (>= 0.18.1, < 2.0)
66
+ rake (10.1.0)
67
+ sprockets (2.10.0)
68
+ hike (~> 1.2)
69
+ multi_json (~> 1.0)
70
+ rack (~> 1.0)
71
+ tilt (~> 1.1, != 1.3.0)
72
+ sprockets-rails (2.0.0)
73
+ actionpack (>= 3.0)
74
+ activesupport (>= 3.0)
75
+ sprockets (~> 2.8)
76
+ sqlite3 (1.3.6)
77
+ thor (0.18.1)
78
+ thread_safe (0.1.0)
79
+ atomic
80
+ tilt (1.4.1)
81
+ treetop (1.4.14)
82
+ polyglot
83
+ polyglot (>= 0.3.1)
84
+ tzinfo (0.3.37)
85
+ will_paginate (3.0.4)
86
+
87
+ PLATFORMS
88
+ ruby
89
+
90
+ DEPENDENCIES
91
+ actionpack-page_caching
92
+ mocha
93
+ presenting!
94
+ rails (= 4.0.0)
95
+ sqlite3
96
+ will_paginate (~> 3.0.4)
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
6
+
7
+ module R4
8
+ class Application < Rails::Application
9
+ config.encoding = "utf-8"
10
+ config.filter_parameters += [:password]
11
+ config.secret_key_base = "blahblahblahblah"
12
+ end
13
+ end
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ R4::Application.initialize!
@@ -0,0 +1,36 @@
1
+ R4::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+ config.eager_load = false
10
+
11
+ # Log error messages when you accidentally call methods on nil.
12
+ config.whiny_nils = true
13
+
14
+ # Show full error reports and disable caching
15
+ config.consider_all_requests_local = true
16
+ config.action_controller.perform_caching = false
17
+
18
+ # Raise exceptions instead of rendering exception templates
19
+ config.action_dispatch.show_exceptions = false
20
+
21
+ # Disable request forgery protection in test environment
22
+ config.action_controller.allow_forgery_protection = false
23
+
24
+ # Tell Action Mailer not to deliver emails to the real world.
25
+ # The :test delivery method accumulates sent emails in the
26
+ # ActionMailer::Base.deliveries array.
27
+ config.action_mailer.delivery_method = :test
28
+
29
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
30
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
31
+ # like if you have constraints or database-specific column types
32
+ # config.active_record.schema_format = :sql
33
+
34
+ # Print deprecation notices to the stderr
35
+ config.active_support.deprecation = :stderr
36
+ end
data/test/r4/config.ru ADDED
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run R4::Application
data/test/test_helper.rb CHANGED
@@ -1,8 +1,14 @@
1
1
  # load the test app, which will load gems
2
2
  ENV['RAILS_ENV'] = 'test'
3
- require File.join(File.dirname(__FILE__), 'r3', 'config', 'environment.rb')
3
+
4
+ if ENV['RAILS_VERSION'] = '4'
5
+ require File.join(File.dirname(__FILE__), 'r4', 'config', 'environment.rb')
6
+ else
7
+ require File.join(File.dirname(__FILE__), 'r3', 'config', 'environment.rb')
8
+ end
9
+
10
+ require 'test/unit/testcase'
4
11
  require 'rails/test_help'
5
- require 'mocha'
6
12
 
7
13
  Rails.backtrace_cleaner.remove_silencers!
8
14
 
metadata CHANGED
@@ -1,27 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presenting
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
5
- prerelease:
4
+ version: 2.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Lance Ivy
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000 Z
11
+ date: 2013-07-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mocha
16
- requirement: &70121340514100 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *70121340514100
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  description: Provides view components to quickly render tables, forms, etc., typically
26
28
  for an admin interface.
27
29
  email: lance@cainlevy.net
@@ -86,7 +88,6 @@ files:
86
88
  - test/r3/Gemfile
87
89
  - test/r3/Gemfile.lock
88
90
  - test/r3/log/development.log
89
- - test/r3/log/test.log
90
91
  - test/r3/public/javascripts/presenting/grid.js
91
92
  - test/r3/public/javascripts/presenting/search.js
92
93
  - test/r3/public/stylesheets/presenting/details-color.css
@@ -96,6 +97,14 @@ files:
96
97
  - test/r3/public/stylesheets/presenting/grid.css
97
98
  - test/r3/public/stylesheets/presenting/search-color.css
98
99
  - test/r3/public/stylesheets/presenting/search.css
100
+ - test/r4/config/application.rb
101
+ - test/r4/config/boot.rb
102
+ - test/r4/config/database.yml
103
+ - test/r4/config/environment.rb
104
+ - test/r4/config/environments/test.rb
105
+ - test/r4/config.ru
106
+ - test/r4/Gemfile
107
+ - test/r4/Gemfile.lock
99
108
  - test/sanitize_test.rb
100
109
  - test/search_conditions_test.rb
101
110
  - test/search_test.rb
@@ -103,27 +112,26 @@ files:
103
112
  - test/test_helper.rb
104
113
  homepage: http://github.com/cainlevy/presenting
105
114
  licenses: []
115
+ metadata: {}
106
116
  post_install_message:
107
117
  rdoc_options: []
108
118
  require_paths:
109
119
  - lib
110
120
  required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
121
  requirements:
113
- - - ! '>='
122
+ - - '>='
114
123
  - !ruby/object:Gem::Version
115
124
  version: '0'
116
125
  required_rubygems_version: !ruby/object:Gem::Requirement
117
- none: false
118
126
  requirements:
119
- - - ! '>='
127
+ - - '>='
120
128
  - !ruby/object:Gem::Version
121
129
  version: '0'
122
130
  requirements: []
123
131
  rubyforge_project:
124
- rubygems_version: 1.8.11
132
+ rubygems_version: 2.0.0
125
133
  signing_key:
126
- specification_version: 3
134
+ specification_version: 4
127
135
  summary: component-style scaffolding helpers
128
136
  test_files:
129
137
  - test/assets_test.rb
@@ -146,7 +154,6 @@ test_files:
146
154
  - test/r3/Gemfile
147
155
  - test/r3/Gemfile.lock
148
156
  - test/r3/log/development.log
149
- - test/r3/log/test.log
150
157
  - test/r3/public/javascripts/presenting/grid.js
151
158
  - test/r3/public/javascripts/presenting/search.js
152
159
  - test/r3/public/stylesheets/presenting/details-color.css
@@ -156,6 +163,14 @@ test_files:
156
163
  - test/r3/public/stylesheets/presenting/grid.css
157
164
  - test/r3/public/stylesheets/presenting/search-color.css
158
165
  - test/r3/public/stylesheets/presenting/search.css
166
+ - test/r4/config/application.rb
167
+ - test/r4/config/boot.rb
168
+ - test/r4/config/database.yml
169
+ - test/r4/config/environment.rb
170
+ - test/r4/config/environments/test.rb
171
+ - test/r4/config.ru
172
+ - test/r4/Gemfile
173
+ - test/r4/Gemfile.lock
159
174
  - test/sanitize_test.rb
160
175
  - test/search_conditions_test.rb
161
176
  - test/search_test.rb