This repository has been archived by the owner on Feb 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from Factlink/pavlov-0.1.3
Pavlov 0.1.3
- Loading branch information
Showing
23 changed files
with
501 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Pavlov Changelog | ||
|
||
## HEAD | ||
|
||
## 0.1.3 | ||
|
||
This release brings forth lots and lots of incompatibilities. Where possible, we've tried to keep a backwards-compatible API available. You can activate this by requiring `pavlov/alpha_compatibility'. | ||
|
||
#### New Stuff: | ||
|
||
* Pavlov now uses Virtus for what used to be called `arguments`. Instead of specifying a list of arguments, you can now specify attributes individually, with optional defaults. Check the README on all the cool stuff you can do with these Virtus-based attributes. | ||
|
||
#### Deprecations: | ||
|
||
If you want to retain deprecated functionality, you can `require 'pavlov/alpha_compatibility'`. | ||
|
||
* Deprecated `arguments` in operations. | ||
* Deprecated `pavlov_options` that were used by the helpers. | ||
|
||
#### Completely removed: | ||
|
||
* Removed support for `finish_initialize`. Override the `initialize` method and call `super` instead. | ||
|
||
## 0.1.0 | ||
|
||
Initial alpha-release. Here be dragons. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'rails/generators' | ||
|
||
module Pavlov | ||
class InstallGenerator < Rails::Generators::Base | ||
def self.source_root | ||
@source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) | ||
end | ||
|
||
def copy_backend_directory | ||
directory 'backend', 'app/backend', recursive: true | ||
end | ||
|
||
def add_backend_to_autoload_paths | ||
application "config.autoload_paths += %W(\#{config.root}/app/backend)" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Backend | ||
# This class is a placeholder that will be expanded by a later feature branch | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Command | ||
include Pavlov::Operation | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class Interactor | ||
include Pavlov::Operation | ||
|
||
# If you want your interactors to be compatible with a backgrounding | ||
# daemon, you can use this base class to add support. | ||
# | ||
# Example for Resque: | ||
# | ||
# def self.perform(*args) | ||
# new(*args).call | ||
# end | ||
|
||
def authorized? | ||
raise NotImplementedError | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Query | ||
include Pavlov::Operation | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.