zazicki 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d2649f8af75ea0d6f4c33b84d35b2ede2bb75c8
4
+ data.tar.gz: de79d50e46835b0e00d4ab2578b3c54f2b05b290
5
+ SHA512:
6
+ metadata.gz: 1af7720af43adb3dabfa14b9e4702ccf6570b601f6febe525efdd58e6daee2a19a34ee68bbb3799c6e901863cb0e600d3ab1dadbd15c15437c5d66ea8a3c998c
7
+ data.tar.gz: 6b958033101df4ac98035d930afad50702e1cb1a7a3141a8e78598aedc265482f1e2b170ddaf142740002448a8b14e1e4649d069a87eb20909dda77e0c242eae
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in zazicki.gemspec
4
+ gemspec
@@ -0,0 +1,29 @@
1
+ # Zazicki
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'zazicki'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install zazicki
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,4 @@
1
+ require "zazicki/version"
2
+ require "zazicki/loader"
3
+ require "zazicki/middleware"
4
+ require "zazicki/railtie" if defined?(Rails)
@@ -0,0 +1,14 @@
1
+ module Zazicki
2
+ class Loader
3
+ def initialize(klass, app, *args, &block)
4
+ @klass = klass
5
+ @app = app
6
+ @args = args
7
+ @block = block
8
+ end
9
+
10
+ def call(env)
11
+ @klass.constantize.new(@app, *@args, &@block).call(env)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ module Zazicki
2
+ module Middleware
3
+ def build(app)
4
+ if @klass
5
+ super
6
+ else
7
+ Zazicki::Loader.new(@name, app, *@args, &@block)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ require 'rails/railtie'
2
+
3
+ ActionDispatch::MiddlewareStack::Middleware.send :prepend, Zazicki::Middleware
@@ -0,0 +1,3 @@
1
+ module Zazicki
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'zazicki/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "zazicki"
8
+ spec.version = Zazicki::VERSION
9
+ spec.authors = ["phoet"]
10
+ spec.email = ["phoetmail@googlemail.com"]
11
+ spec.description = spec.summary = %q{reload your middleware in development}
12
+ spec.homepage = "https://github.com/phoet/zazicki"
13
+
14
+ spec.files = `git ls-files`.split($/)
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ["lib"]
18
+
19
+ spec.add_dependency "rails", "~> 4"
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: zazicki
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - phoet
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: reload your middleware in development
56
+ email:
57
+ - phoetmail@googlemail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - README.md
65
+ - Rakefile
66
+ - lib/zazicki.rb
67
+ - lib/zazicki/loader.rb
68
+ - lib/zazicki/middleware.rb
69
+ - lib/zazicki/railtie.rb
70
+ - lib/zazicki/version.rb
71
+ - zazicki.gemspec
72
+ homepage: https://github.com/phoet/zazicki
73
+ licenses: []
74
+ metadata: {}
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.0.3
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: reload your middleware in development
95
+ test_files: []