chanko 1.0.6 → 2.0.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.
Files changed (95) hide show
  1. data/.gitignore +22 -0
  2. data/.travis.yml +5 -0
  3. data/Gemfile +26 -0
  4. data/MIT-LICENSE +22 -0
  5. data/README.md +168 -0
  6. data/Rakefile +12 -0
  7. data/chanko.gemspec +30 -0
  8. data/lib/chanko.rb +19 -0
  9. data/lib/chanko/active_if.rb +59 -0
  10. data/lib/chanko/config.rb +30 -0
  11. data/lib/chanko/controller.rb +31 -0
  12. data/lib/chanko/exception_handler.rb +10 -0
  13. data/lib/chanko/function.rb +85 -0
  14. data/lib/chanko/helper.rb +29 -0
  15. data/lib/chanko/invoker.rb +105 -0
  16. data/lib/chanko/invoker/function_finder.rb +42 -0
  17. data/lib/chanko/invoker/options.rb +64 -0
  18. data/lib/chanko/loader.rb +65 -0
  19. data/lib/chanko/logger.rb +67 -0
  20. data/lib/chanko/railtie.rb +11 -0
  21. data/lib/chanko/test.rb +44 -0
  22. data/lib/chanko/unit.rb +101 -0
  23. data/lib/chanko/unit/extender.rb +21 -0
  24. data/lib/chanko/unit/extender/active_record_class_methods.rb +57 -0
  25. data/lib/chanko/unit/extender/extension.rb +51 -0
  26. data/lib/chanko/unit/scope_finder.rb +41 -0
  27. data/lib/chanko/unit_proxy.rb +30 -0
  28. data/lib/chanko/unit_proxy_provider.rb +27 -0
  29. data/lib/chanko/version.rb +3 -0
  30. data/lib/generators/chanko/unit/templates/unit.rb.erb +84 -0
  31. data/lib/generators/chanko/unit/unit_generator.rb +49 -0
  32. data/spec/chanko/controller_spec.rb +44 -0
  33. data/spec/chanko/exception_handler_spec.rb +39 -0
  34. data/spec/chanko/function_spec.rb +60 -0
  35. data/spec/chanko/helper_spec.rb +26 -0
  36. data/spec/chanko/invoker_spec.rb +156 -0
  37. data/spec/chanko/loader_spec.rb +43 -0
  38. data/spec/chanko/logger_spec.rb +94 -0
  39. data/spec/chanko/test_spec.rb +28 -0
  40. data/spec/chanko/unit/extender_spec.rb +40 -0
  41. data/spec/chanko/unit/scope_finder_spec.rb +37 -0
  42. data/spec/chanko/unit_proxy_provider_spec.rb +68 -0
  43. data/spec/chanko/unit_proxy_spec.rb +23 -0
  44. data/spec/chanko/unit_spec.rb +181 -0
  45. data/spec/controllers/application_controller_spec.rb +15 -0
  46. data/spec/dummy/README.rdoc +261 -0
  47. data/spec/dummy/Rakefile +7 -0
  48. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  49. data/spec/dummy/app/assets/stylesheets/application.css +14 -0
  50. data/spec/dummy/app/assets/stylesheets/main.scss +21 -0
  51. data/spec/dummy/app/assets/stylesheets/reset.scss +14 -0
  52. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  53. data/spec/dummy/app/controllers/entries_controller.rb +33 -0
  54. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  55. data/spec/dummy/app/mailers/.gitkeep +0 -0
  56. data/spec/dummy/app/models/.gitkeep +0 -0
  57. data/spec/dummy/app/models/entry.rb +3 -0
  58. data/spec/dummy/app/units/entry_deletion/entry_deletion.rb +37 -0
  59. data/spec/dummy/app/units/entry_deletion/views/_delete_link.html.slim +1 -0
  60. data/spec/dummy/app/views/entries/edit.html.slim +14 -0
  61. data/spec/dummy/app/views/entries/index.html.slim +5 -0
  62. data/spec/dummy/app/views/entries/show.html.slim +8 -0
  63. data/spec/dummy/app/views/layouts/application.html.slim +16 -0
  64. data/spec/dummy/config.ru +4 -0
  65. data/spec/dummy/config/application.rb +68 -0
  66. data/spec/dummy/config/boot.rb +10 -0
  67. data/spec/dummy/config/database.yml +25 -0
  68. data/spec/dummy/config/environment.rb +5 -0
  69. data/spec/dummy/config/environments/development.rb +37 -0
  70. data/spec/dummy/config/environments/production.rb +67 -0
  71. data/spec/dummy/config/environments/test.rb +37 -0
  72. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  73. data/spec/dummy/config/initializers/inflections.rb +15 -0
  74. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  75. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  76. data/spec/dummy/config/initializers/session_store.rb +8 -0
  77. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  78. data/spec/dummy/config/locales/en.yml +5 -0
  79. data/spec/dummy/config/routes.rb +5 -0
  80. data/spec/dummy/db/migrate/20130127170331_create_entries.rb +11 -0
  81. data/spec/dummy/db/schema.rb +24 -0
  82. data/spec/dummy/lib/assets/.gitkeep +0 -0
  83. data/spec/dummy/log/.gitkeep +0 -0
  84. data/spec/dummy/public/404.html +26 -0
  85. data/spec/dummy/public/422.html +26 -0
  86. data/spec/dummy/public/500.html +25 -0
  87. data/spec/dummy/public/favicon.ico +0 -0
  88. data/spec/dummy/script/rails +6 -0
  89. data/spec/fixtures/units/example_unit/example_unit.rb +77 -0
  90. data/spec/fixtures/units/example_unit/views/_test.html.erb +1 -0
  91. data/spec/fixtures/units/inactive_unit/inactive_unit.rb +11 -0
  92. data/spec/fixtures/units/insensitive_unit/insensitive_unit.rb +3 -0
  93. data/spec/fixtures/units/sensitive_unit/sensitive_unit.rb +4 -0
  94. data/spec/spec_helper.rb +27 -0
  95. metadata +339 -170
@@ -0,0 +1,37 @@
1
+ Dummy::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
+
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"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -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,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
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
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '51ca37a6709156b59d667c092cd18abe392f137efb5e8be61287a5d38823e31d61470bb417098476092e5c53c52467e4a949163c6e78ce70e921ed928b39f9d8'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -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]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,5 @@
1
+ Dummy::Application.routes.draw do
2
+ root :to => "entries#index"
3
+
4
+ resources :entries
5
+ end
@@ -0,0 +1,11 @@
1
+ class CreateEntries < ActiveRecord::Migration
2
+ def change
3
+ create_table :entries do |t|
4
+ t.string :title
5
+ t.string :body
6
+ t.datetime :deleted_at
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,24 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130127170331) do
15
+
16
+ create_table "entries", :force => true do |t|
17
+ t.string "title"
18
+ t.string "body"
19
+ t.datetime "deleted_at"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
23
+
24
+ end
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,77 @@
1
+ module ExampleUnit
2
+ include Chanko::Unit
3
+
4
+ shared(:shared) do |args|
5
+ "shared #{args}"
6
+ end
7
+
8
+ scope(:controller) do
9
+ function(:test) do
10
+ "test"
11
+ end
12
+
13
+ function(:foo) do
14
+ "foo"
15
+ end
16
+
17
+ function(:bar) do
18
+ "bar"
19
+ end
20
+
21
+ function(:alias) do
22
+ "alias"
23
+ end
24
+
25
+ function(:default) do
26
+ run_default
27
+ end
28
+
29
+ function(:render) do
30
+ render_to_string :partial => "/test", :locals => { :local => "test" }
31
+ end
32
+ end
33
+
34
+ scope(:view) do
35
+ function(:test) do
36
+ "test"
37
+ end
38
+
39
+ function(:self) do
40
+ self
41
+ end
42
+
43
+ function(:locals) do
44
+ key
45
+ end
46
+
47
+ function(:falsy) do
48
+ key.nil?
49
+ end
50
+
51
+ function(:shared) do
52
+ shared("args")
53
+ end
54
+
55
+ function(:error) do
56
+ raise_no_method_error
57
+ end
58
+
59
+ function(:helper) do
60
+ unit.helper
61
+ end
62
+
63
+ function(:render) do
64
+ render "/test", :local => "test"
65
+ end
66
+
67
+ function(:blank) do
68
+ " "
69
+ end
70
+ end
71
+
72
+ helpers do
73
+ def helper
74
+ "helper"
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,11 @@
1
+ module InactiveUnit
2
+ include Chanko::Unit
3
+
4
+ active_if { false }
5
+
6
+ scope(:view) do
7
+ function(:inactive) do
8
+ "inactive"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module InsensitiveUnit
2
+ include Chanko::Unit
3
+ end
@@ -0,0 +1,4 @@
1
+ module SensitiveUnit
2
+ include Chanko::Unit
3
+ raise_error
4
+ end
@@ -0,0 +1,27 @@
1
+ require "simplecov"
2
+ SimpleCov.start do
3
+ add_filter "/spec\/fixtures/"
4
+ add_filter "/spec\/dummy/"
5
+ end
6
+
7
+ ENV["RAILS_ENV"] ||= "test"
8
+ require "chanko"
9
+
10
+ require File.expand_path("../dummy/config/environment", __FILE__)
11
+ require "rspec/rails"
12
+ require "rspec/autorun"
13
+
14
+ RSpec.configure do |config|
15
+ config.use_transactional_fixtures = true
16
+ config.infer_base_class_for_anonymous_controllers = false
17
+ config.treat_symbols_as_metadata_keys_with_true_values = true
18
+ config.run_all_when_everything_filtered = true
19
+ config.filter_run :focus
20
+
21
+ config.after do
22
+ Chanko::Config.reset
23
+ Chanko::Config.units_directory_path = File.expand_path("../fixtures/units", __FILE__)
24
+ end
25
+ end
26
+
27
+ Chanko::Config.units_directory_path = File.expand_path("../fixtures/units", __FILE__)
metadata CHANGED
@@ -1,210 +1,379 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: chanko
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 6
10
- version: 1.0.6
11
6
  platform: ruby
12
- authors:
13
- - MORITA shingo
7
+ authors:
8
+ - Ryo Nakamura
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-04-24 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- hash: 19
27
- segments:
28
- - 3
29
- - 0
30
- - 10
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
31
21
  version: 3.0.10
32
- prerelease: false
33
- requirement: *id001
34
22
  type: :runtime
35
- name: rails
36
- - !ruby/object:Gem::Dependency
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
46
23
  prerelease: false
47
- requirement: *id002
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.10
30
+ - !ruby/object:Gem::Dependency
31
+ name: coffee-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.10
48
38
  type: :development
49
- name: sqlite3
50
- - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
60
39
  prerelease: false
61
- requirement: *id003
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.10
46
+ - !ruby/object:Gem::Dependency
47
+ name: jquery-rails
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
62
54
  type: :development
63
- name: rspec
64
- - !ruby/object:Gem::Dependency
65
- version_requirements: &id004 !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
74
55
  prerelease: false
75
- requirement: *id004
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: pry
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
76
70
  type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
77
79
  name: rspec-rails
78
- - !ruby/object:Gem::Dependency
79
- version_requirements: &id005 !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - '='
84
+ - !ruby/object:Gem::Version
85
+ version: 2.12.2
86
+ type: :development
88
87
  prerelease: false
89
- requirement: *id005
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - '='
92
+ - !ruby/object:Gem::Version
93
+ version: 2.12.2
94
+ - !ruby/object:Gem::Dependency
95
+ name: sass-rails
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: 3.0.10
90
102
  type: :development
91
- name: rcov
92
- - !ruby/object:Gem::Dependency
93
- version_requirements: &id006 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- hash: 3
99
- segments:
100
- - 0
101
- version: "0"
102
103
  prerelease: false
103
- requirement: *id006
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 3.0.10
110
+ - !ruby/object:Gem::Dependency
111
+ name: simplecov
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
104
118
  type: :development
105
- name: ruby-debug
106
- - !ruby/object:Gem::Dependency
107
- version_requirements: &id007 !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - "="
111
- - !ruby/object:Gem::Version
112
- hash: 31
113
- segments:
114
- - 2
115
- - 6
116
- - 4
117
- version: 2.6.4
118
119
  prerelease: false
119
- requirement: *id007
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: slim
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
120
134
  type: :development
121
- name: factory_girl
122
- - !ruby/object:Gem::Dependency
123
- version_requirements: &id008 !ruby/object:Gem::Requirement
124
- none: false
125
- requirements:
126
- - - "="
127
- - !ruby/object:Gem::Version
128
- hash: 11
129
- segments:
130
- - 3
131
- - 1
132
- - 4
133
- version: 3.1.4
134
135
  prerelease: false
135
- requirement: *id008
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: sqlite3
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
136
150
  type: :development
137
- name: haml
138
- - !ruby/object:Gem::Dependency
139
- version_requirements: &id009 !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- hash: 3
145
- segments:
146
- - 0
147
- version: "0"
148
151
  prerelease: false
149
- requirement: *id009
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: thin
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
150
166
  type: :development
151
- name: webrat
152
- - !ruby/object:Gem::Dependency
153
- version_requirements: &id010 !ruby/object:Gem::Requirement
154
- none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3
159
- segments:
160
- - 0
161
- version: "0"
162
167
  prerelease: false
163
- requirement: *id010
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: uglifier
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
164
182
  type: :development
165
- name: database_cleaner
166
- description: Extend rails application
167
- email: morita.shingo@gmail.com
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ description: Chanko is a Rails extension tool
191
+ email:
192
+ - r7kamura@gmail.com
168
193
  executables: []
169
-
170
194
  extensions: []
171
-
172
195
  extra_rdoc_files: []
173
-
174
- files: []
175
-
176
- homepage: ""
196
+ files:
197
+ - .gitignore
198
+ - .travis.yml
199
+ - Gemfile
200
+ - MIT-LICENSE
201
+ - README.md
202
+ - Rakefile
203
+ - chanko.gemspec
204
+ - lib/chanko.rb
205
+ - lib/chanko/active_if.rb
206
+ - lib/chanko/config.rb
207
+ - lib/chanko/controller.rb
208
+ - lib/chanko/exception_handler.rb
209
+ - lib/chanko/function.rb
210
+ - lib/chanko/helper.rb
211
+ - lib/chanko/invoker.rb
212
+ - lib/chanko/invoker/function_finder.rb
213
+ - lib/chanko/invoker/options.rb
214
+ - lib/chanko/loader.rb
215
+ - lib/chanko/logger.rb
216
+ - lib/chanko/railtie.rb
217
+ - lib/chanko/test.rb
218
+ - lib/chanko/unit.rb
219
+ - lib/chanko/unit/extender.rb
220
+ - lib/chanko/unit/extender/active_record_class_methods.rb
221
+ - lib/chanko/unit/extender/extension.rb
222
+ - lib/chanko/unit/scope_finder.rb
223
+ - lib/chanko/unit_proxy.rb
224
+ - lib/chanko/unit_proxy_provider.rb
225
+ - lib/chanko/version.rb
226
+ - lib/generators/chanko/unit/templates/unit.rb.erb
227
+ - lib/generators/chanko/unit/unit_generator.rb
228
+ - spec/chanko/controller_spec.rb
229
+ - spec/chanko/exception_handler_spec.rb
230
+ - spec/chanko/function_spec.rb
231
+ - spec/chanko/helper_spec.rb
232
+ - spec/chanko/invoker_spec.rb
233
+ - spec/chanko/loader_spec.rb
234
+ - spec/chanko/logger_spec.rb
235
+ - spec/chanko/test_spec.rb
236
+ - spec/chanko/unit/extender_spec.rb
237
+ - spec/chanko/unit/scope_finder_spec.rb
238
+ - spec/chanko/unit_proxy_provider_spec.rb
239
+ - spec/chanko/unit_proxy_spec.rb
240
+ - spec/chanko/unit_spec.rb
241
+ - spec/controllers/application_controller_spec.rb
242
+ - spec/dummy/README.rdoc
243
+ - spec/dummy/Rakefile
244
+ - spec/dummy/app/assets/javascripts/application.js
245
+ - spec/dummy/app/assets/stylesheets/application.css
246
+ - spec/dummy/app/assets/stylesheets/main.scss
247
+ - spec/dummy/app/assets/stylesheets/reset.scss
248
+ - spec/dummy/app/controllers/application_controller.rb
249
+ - spec/dummy/app/controllers/entries_controller.rb
250
+ - spec/dummy/app/helpers/application_helper.rb
251
+ - spec/dummy/app/mailers/.gitkeep
252
+ - spec/dummy/app/models/.gitkeep
253
+ - spec/dummy/app/models/entry.rb
254
+ - spec/dummy/app/units/entry_deletion/entry_deletion.rb
255
+ - spec/dummy/app/units/entry_deletion/views/_delete_link.html.slim
256
+ - spec/dummy/app/views/entries/edit.html.slim
257
+ - spec/dummy/app/views/entries/index.html.slim
258
+ - spec/dummy/app/views/entries/show.html.slim
259
+ - spec/dummy/app/views/layouts/application.html.slim
260
+ - spec/dummy/config.ru
261
+ - spec/dummy/config/application.rb
262
+ - spec/dummy/config/boot.rb
263
+ - spec/dummy/config/database.yml
264
+ - spec/dummy/config/environment.rb
265
+ - spec/dummy/config/environments/development.rb
266
+ - spec/dummy/config/environments/production.rb
267
+ - spec/dummy/config/environments/test.rb
268
+ - spec/dummy/config/initializers/backtrace_silencers.rb
269
+ - spec/dummy/config/initializers/inflections.rb
270
+ - spec/dummy/config/initializers/mime_types.rb
271
+ - spec/dummy/config/initializers/secret_token.rb
272
+ - spec/dummy/config/initializers/session_store.rb
273
+ - spec/dummy/config/initializers/wrap_parameters.rb
274
+ - spec/dummy/config/locales/en.yml
275
+ - spec/dummy/config/routes.rb
276
+ - spec/dummy/db/migrate/20130127170331_create_entries.rb
277
+ - spec/dummy/db/schema.rb
278
+ - spec/dummy/lib/assets/.gitkeep
279
+ - spec/dummy/log/.gitkeep
280
+ - spec/dummy/public/404.html
281
+ - spec/dummy/public/422.html
282
+ - spec/dummy/public/500.html
283
+ - spec/dummy/public/favicon.ico
284
+ - spec/dummy/script/rails
285
+ - spec/fixtures/units/example_unit/example_unit.rb
286
+ - spec/fixtures/units/example_unit/views/_test.html.erb
287
+ - spec/fixtures/units/inactive_unit/inactive_unit.rb
288
+ - spec/fixtures/units/insensitive_unit/insensitive_unit.rb
289
+ - spec/fixtures/units/sensitive_unit/sensitive_unit.rb
290
+ - spec/spec_helper.rb
291
+ homepage: https://github.com/cookpad/chanko
177
292
  licenses: []
178
-
179
293
  post_install_message:
180
294
  rdoc_options: []
181
-
182
- require_paths:
295
+ require_paths:
183
296
  - lib
184
- required_ruby_version: !ruby/object:Gem::Requirement
297
+ required_ruby_version: !ruby/object:Gem::Requirement
185
298
  none: false
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- hash: 3
190
- segments:
191
- - 0
192
- version: "0"
193
- required_rubygems_version: !ruby/object:Gem::Requirement
299
+ requirements:
300
+ - - ! '>='
301
+ - !ruby/object:Gem::Version
302
+ version: '0'
303
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
304
  none: false
195
- requirements:
196
- - - ">="
197
- - !ruby/object:Gem::Version
198
- hash: 3
199
- segments:
200
- - 0
201
- version: "0"
305
+ requirements:
306
+ - - ! '>='
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
202
309
  requirements: []
203
-
204
310
  rubyforge_project:
205
- rubygems_version: 1.8.15
311
+ rubygems_version: 1.8.23
206
312
  signing_key:
207
313
  specification_version: 3
208
- summary: extension framework
209
- test_files: []
210
-
314
+ summary: Rails extension tool
315
+ test_files:
316
+ - spec/chanko/controller_spec.rb
317
+ - spec/chanko/exception_handler_spec.rb
318
+ - spec/chanko/function_spec.rb
319
+ - spec/chanko/helper_spec.rb
320
+ - spec/chanko/invoker_spec.rb
321
+ - spec/chanko/loader_spec.rb
322
+ - spec/chanko/logger_spec.rb
323
+ - spec/chanko/test_spec.rb
324
+ - spec/chanko/unit/extender_spec.rb
325
+ - spec/chanko/unit/scope_finder_spec.rb
326
+ - spec/chanko/unit_proxy_provider_spec.rb
327
+ - spec/chanko/unit_proxy_spec.rb
328
+ - spec/chanko/unit_spec.rb
329
+ - spec/controllers/application_controller_spec.rb
330
+ - spec/dummy/README.rdoc
331
+ - spec/dummy/Rakefile
332
+ - spec/dummy/app/assets/javascripts/application.js
333
+ - spec/dummy/app/assets/stylesheets/application.css
334
+ - spec/dummy/app/assets/stylesheets/main.scss
335
+ - spec/dummy/app/assets/stylesheets/reset.scss
336
+ - spec/dummy/app/controllers/application_controller.rb
337
+ - spec/dummy/app/controllers/entries_controller.rb
338
+ - spec/dummy/app/helpers/application_helper.rb
339
+ - spec/dummy/app/mailers/.gitkeep
340
+ - spec/dummy/app/models/.gitkeep
341
+ - spec/dummy/app/models/entry.rb
342
+ - spec/dummy/app/units/entry_deletion/entry_deletion.rb
343
+ - spec/dummy/app/units/entry_deletion/views/_delete_link.html.slim
344
+ - spec/dummy/app/views/entries/edit.html.slim
345
+ - spec/dummy/app/views/entries/index.html.slim
346
+ - spec/dummy/app/views/entries/show.html.slim
347
+ - spec/dummy/app/views/layouts/application.html.slim
348
+ - spec/dummy/config.ru
349
+ - spec/dummy/config/application.rb
350
+ - spec/dummy/config/boot.rb
351
+ - spec/dummy/config/database.yml
352
+ - spec/dummy/config/environment.rb
353
+ - spec/dummy/config/environments/development.rb
354
+ - spec/dummy/config/environments/production.rb
355
+ - spec/dummy/config/environments/test.rb
356
+ - spec/dummy/config/initializers/backtrace_silencers.rb
357
+ - spec/dummy/config/initializers/inflections.rb
358
+ - spec/dummy/config/initializers/mime_types.rb
359
+ - spec/dummy/config/initializers/secret_token.rb
360
+ - spec/dummy/config/initializers/session_store.rb
361
+ - spec/dummy/config/initializers/wrap_parameters.rb
362
+ - spec/dummy/config/locales/en.yml
363
+ - spec/dummy/config/routes.rb
364
+ - spec/dummy/db/migrate/20130127170331_create_entries.rb
365
+ - spec/dummy/db/schema.rb
366
+ - spec/dummy/lib/assets/.gitkeep
367
+ - spec/dummy/log/.gitkeep
368
+ - spec/dummy/public/404.html
369
+ - spec/dummy/public/422.html
370
+ - spec/dummy/public/500.html
371
+ - spec/dummy/public/favicon.ico
372
+ - spec/dummy/script/rails
373
+ - spec/fixtures/units/example_unit/example_unit.rb
374
+ - spec/fixtures/units/example_unit/views/_test.html.erb
375
+ - spec/fixtures/units/inactive_unit/inactive_unit.rb
376
+ - spec/fixtures/units/insensitive_unit/insensitive_unit.rb
377
+ - spec/fixtures/units/sensitive_unit/sensitive_unit.rb
378
+ - spec/spec_helper.rb
379
+ has_rdoc: