partially_useful 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cb5c39667fa7c9a85d94d690a3bc15328877310
4
- data.tar.gz: deebacba003dacd221235a75f596f96d7dc8028c
3
+ metadata.gz: 1ebef1233f73625b5e0f211d5dc79cfb37da095a
4
+ data.tar.gz: 095852829c6266185cd9ec0bf06ff8566bb031fc
5
5
  SHA512:
6
- metadata.gz: 79100bf055b0e3aa591f075f09b43badd15cb53a604a4a8d8ddff81f5fd95ece07f8201b33d0a8630baf76b2c17cb9f14f73f0aaee292894108cbb7e337093dd
7
- data.tar.gz: ababe56f2aab2af8e4943580b3954c3b3326a07edaa37dd907a9de41a45f734737cc3527ef283343ac64342810060e70ee3774e84b87d3a9273b189649d78724
6
+ metadata.gz: 70889c869a76d1bb45b9d56937be2110fb6203905cd2f52558d79d3a1911db253657a8e0738d62df12e06eebb17d446c35103b482011aede7e1d0414bd469c0f
7
+ data.tar.gz: b1373344087cd5f048eda1f5c9e27a2620aa307c96fb95cbf91f31523a73ed4dfeab96a1c64b8f5abe4a64840ceb5921973b6c830c380b530416e5e5b9da9875
data/.travis.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  script: "bundle exec rake"
2
2
  rvm:
3
+ - rbx-2
3
4
  - jruby-19mode
4
5
  - 1.9.3
5
6
  - 2.0.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.2
2
+
3
+ * loosen rails dependency
4
+
1
5
  # 0.2.1
2
6
 
3
7
  * remove ruby version requirement
data/Gemfile CHANGED
@@ -2,4 +2,8 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "byebug"
5
+ group :rails_4_2 do
6
+ gem "responders", '~> 2.0'
7
+ end
8
+
9
+ gem "byebug", platforms: :ruby_20
data/Gemfile.lock CHANGED
@@ -1,49 +1,69 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- partially_useful (0.2.1)
5
- railties (~> 4.0)
4
+ partially_useful (0.2.2)
5
+ railties (~> 4.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (4.1.1)
11
- actionview (= 4.1.1)
12
- activesupport (= 4.1.1)
13
- rack (~> 1.5.2)
10
+ actionpack (4.2.1)
11
+ actionview (= 4.2.1)
12
+ activesupport (= 4.2.1)
13
+ rack (~> 1.6)
14
14
  rack-test (~> 0.6.2)
15
- actionview (4.1.1)
16
- activesupport (= 4.1.1)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
+ actionview (4.2.1)
18
+ activesupport (= 4.2.1)
17
19
  builder (~> 3.1)
18
20
  erubis (~> 2.7.0)
19
- activesupport (4.1.1)
20
- i18n (~> 0.6, >= 0.6.9)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
+ activesupport (4.2.1)
24
+ i18n (~> 0.7)
21
25
  json (~> 1.7, >= 1.7.7)
22
26
  minitest (~> 5.1)
23
- thread_safe (~> 0.1)
27
+ thread_safe (~> 0.3, >= 0.3.4)
24
28
  tzinfo (~> 1.1)
25
29
  builder (3.2.2)
26
- byebug (3.1.2)
27
- columnize (~> 0.8)
28
- debugger-linecache (~> 1.2)
29
- columnize (0.8.9)
30
- debugger-linecache (1.2.0)
30
+ byebug (4.0.4)
31
+ columnize (= 0.9.0)
32
+ columnize (0.9.0)
31
33
  erubis (2.7.0)
32
- i18n (0.6.9)
33
- json (1.8.1)
34
- minitest (5.3.4)
35
- rack (1.5.2)
36
- rack-test (0.6.2)
34
+ i18n (0.7.0)
35
+ json (1.8.2)
36
+ json (1.8.2-java)
37
+ loofah (2.0.1)
38
+ nokogiri (>= 1.5.9)
39
+ mini_portile (0.6.2)
40
+ minitest (5.5.1)
41
+ nokogiri (1.6.6.2)
42
+ mini_portile (~> 0.6.0)
43
+ nokogiri (1.6.6.2-java)
44
+ rack (1.6.0)
45
+ rack-test (0.6.3)
37
46
  rack (>= 1.0)
38
- railties (4.1.1)
39
- actionpack (= 4.1.1)
40
- activesupport (= 4.1.1)
47
+ rails-deprecated_sanitizer (1.0.3)
48
+ activesupport (>= 4.2.0.alpha)
49
+ rails-dom-testing (1.0.6)
50
+ activesupport (>= 4.2.0.beta, < 5.0)
51
+ nokogiri (~> 1.6.0)
52
+ rails-deprecated_sanitizer (>= 1.0.1)
53
+ rails-html-sanitizer (1.0.2)
54
+ loofah (~> 2.0)
55
+ railties (4.2.1)
56
+ actionpack (= 4.2.1)
57
+ activesupport (= 4.2.1)
41
58
  rake (>= 0.8.7)
42
59
  thor (>= 0.18.1, < 2.0)
43
- rake (10.3.2)
60
+ rake (10.4.2)
61
+ responders (2.1.0)
62
+ railties (>= 4.2.0, < 5)
44
63
  thor (0.19.1)
45
- thread_safe (0.3.4)
46
- tzinfo (1.2.1)
64
+ thread_safe (0.3.5)
65
+ thread_safe (0.3.5-java)
66
+ tzinfo (1.2.2)
47
67
  thread_safe (~> 0.1)
48
68
 
49
69
  PLATFORMS
@@ -54,4 +74,5 @@ DEPENDENCIES
54
74
  bundler (~> 1.6)
55
75
  byebug
56
76
  partially_useful!
57
- rake
77
+ rake (~> 10.0)
78
+ responders (~> 2.0)
@@ -1,3 +1,3 @@
1
1
  module PartiallyUseful
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'railties', '~> 4.0'
21
+ spec.add_dependency 'railties', '~> 4.1'
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.6"
24
- spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
25
  end
@@ -3,11 +3,28 @@ require File.expand_path('../boot', __FILE__)
3
3
  require 'action_controller/railtie'
4
4
  require 'action_view/railtie'
5
5
 
6
+ # Require the gems listed in Gemfile, including any gems
7
+ # you've limited to :test, :development, or :production.
6
8
  Bundler.require(*Rails.groups)
7
9
  require "partially_useful"
10
+ require "responders" if Rails::VERSION::MINOR >= 2
8
11
 
9
12
  module Dummy
10
13
  class Application < Rails::Application
11
14
  config.partially_useful = true
15
+ # Settings in config/environments/* take precedence over those specified here.
16
+ # Application configuration should go into files in config/initializers
17
+ # -- all .rb files in that directory are automatically loaded.
18
+
19
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
20
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
21
+ # config.time_zone = 'Central Time (US & Canada)'
22
+
23
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
24
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
25
+ # config.i18n.default_locale = :de
26
+
27
+ # Do not swallow errors in after_commit/after_rollback callbacks.
28
+ # config.active_record.raise_in_transactional_callbacks = true
12
29
  end
13
30
  end
@@ -1,7 +1,41 @@
1
1
  Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
2
7
  config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
3
10
  config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
4
13
  config.consider_all_requests_local = true
5
14
  config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ # config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
6
20
  config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations.
23
+ # config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
7
41
  end
@@ -1,9 +1,42 @@
1
1
  Rails.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!
2
8
  config.cache_classes = true
9
+
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.
3
13
  config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
4
20
  config.consider_all_requests_local = true
5
21
  config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
6
24
  config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
7
27
  config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ # config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
8
38
  config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
9
42
  end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :marshal
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: c5ab738113d0d2852435b6283b342f812fc5111a562673a9ded66c74c8f0cb852dd9ddfb4b5e18df82c3e650c84753624ad5ee006ae0659dee2dd89e94401833
15
+
16
+ test:
17
+ secret_key_base: 913efb498a4e33cc26a388800b13da4d610595c3b29785417b8529768a55635fb86b6334bd0cc88399846c92b6a16ebda8d4d5b47436e4c086e23257be23bf36
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: partially_useful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - phoet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-17 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.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: '4.0'
26
+ version: '4.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '10.0'
55
55
  description: Helps finding partials in large html pages
56
56
  email:
57
57
  - phoetmail@googlemail.com
@@ -90,10 +90,17 @@ files:
90
90
  - test/dummy/config/environment.rb
91
91
  - test/dummy/config/environments/development.rb
92
92
  - test/dummy/config/environments/test.rb
93
+ - test/dummy/config/initializers/assets.rb
94
+ - test/dummy/config/initializers/backtrace_silencers.rb
95
+ - test/dummy/config/initializers/cookies_serializer.rb
93
96
  - test/dummy/config/initializers/filter_parameter_logging.rb
97
+ - test/dummy/config/initializers/inflections.rb
98
+ - test/dummy/config/initializers/mime_types.rb
94
99
  - test/dummy/config/initializers/secret_token.rb
95
100
  - test/dummy/config/initializers/session_store.rb
101
+ - test/dummy/config/initializers/wrap_parameters.rb
96
102
  - test/dummy/config/routes.rb
103
+ - test/dummy/config/secrets.yml
97
104
  - test/dummy/log/.keep
98
105
  - test/dummy/public/favicon.ico
99
106
  - test/partially_useful_test.rb
@@ -118,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
125
  version: '0'
119
126
  requirements: []
120
127
  rubyforge_project:
121
- rubygems_version: 2.2.2
128
+ rubygems_version: 2.4.5
122
129
  signing_key:
123
130
  specification_version: 4
124
131
  summary: Helps finding partials in large html pages
@@ -142,12 +149,18 @@ test_files:
142
149
  - test/dummy/config/environment.rb
143
150
  - test/dummy/config/environments/development.rb
144
151
  - test/dummy/config/environments/test.rb
152
+ - test/dummy/config/initializers/assets.rb
153
+ - test/dummy/config/initializers/backtrace_silencers.rb
154
+ - test/dummy/config/initializers/cookies_serializer.rb
145
155
  - test/dummy/config/initializers/filter_parameter_logging.rb
156
+ - test/dummy/config/initializers/inflections.rb
157
+ - test/dummy/config/initializers/mime_types.rb
146
158
  - test/dummy/config/initializers/secret_token.rb
147
159
  - test/dummy/config/initializers/session_store.rb
160
+ - test/dummy/config/initializers/wrap_parameters.rb
148
161
  - test/dummy/config/routes.rb
162
+ - test/dummy/config/secrets.yml
149
163
  - test/dummy/log/.keep
150
164
  - test/dummy/public/favicon.ico
151
165
  - test/partially_useful_test.rb
152
166
  - test/test_helper.rb
153
- has_rdoc: