alki-rails 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4236e0836585385f6d61dcacf6c6660f5314bd00
4
- data.tar.gz: ee8c1f550a3ade8c68bb3d9b444f951358dec752
3
+ metadata.gz: '02991f94ff89950eb27e4897691f84d8fb87b4d5'
4
+ data.tar.gz: cc6ea44f236917bd7f16f9d287f4d00b93136bf6
5
5
  SHA512:
6
- metadata.gz: c71af48e68afa9737eba4b7be18cd14c95531d6bef73bea0dccf6407ff1147805647dbbe96be8154d6266f35996b871128d1ff186693f489c0e2dde121a29043
7
- data.tar.gz: 0c8c6ed809eb2f1fbabd4520ab5e257c3ad6998b8e37159e7d961676b6759e8a39f745bda99d96505d6c2d734070bffcf4d2569dfd0e99819670d0bdbf9ad1c6
6
+ metadata.gz: 214429a0b7515ee520d4bb40d9e86cd082bb25612e85b032a252478ef01b09b6a822562ea4f1baaf2ceb3e3983cbf352ef05b61df0ec61ea82879a42424b41fb
7
+ data.tar.gz: 7f493434ec4963dcdfac9e8a1030520c0f86f71050e6d03abb44d091bec8131d1fc76a052045dca42d075a6484d7fbd0857070a906b054fe7565e20a31734fc7
@@ -16,14 +16,14 @@ your core code encapsulated.
16
16
  === What about Rails Services?
17
17
 
18
18
  Recent versions of Rails have added an `app/services` directory as a place to put
19
- dedicated service classes containing your business logic.
19
+ dedicated service objects containing your business logic.
20
20
 
21
21
  The key difference between these Rails services and Alki services is that Rails services are
22
- classes or modules,
23
- while Alki services can be any type of object.
22
+ classes or modules, referenced directly by consumers when needed, while Alki services can be
23
+ any time of object, but are typically instances of a service class.
24
24
 
25
- By using objects, Alki allows services to be configured and dependency injected before
26
- being used, allowing classes to be simpler, more focused, and easily tested.
25
+ By using instances, Alki allows services to be configured and dependency injected before
26
+ being used.
27
27
 
28
28
  == Installation
29
29
 
@@ -55,7 +55,7 @@ Elements like services and application settings are defined in your Assembly def
55
55
  (`config/assembly.rb`). These elements are accessible by name directly within controllers
56
56
  and the rails console.
57
57
 
58
- See http://alki.io[alki.io] for more documentation on how to use Alki.
58
+ See https://github.com/alki-project/alki[here] for more documentation on how to use Alki.
59
59
 
60
60
  .config/assembly.rb
61
61
  ```ruby
@@ -82,7 +82,6 @@ end
82
82
  ```ruby
83
83
  class OrdersController < ApplicationController
84
84
  def post
85
- # Can reference Assembly elements directly in controllers
86
85
  @order = orders.manager.place_order params[:order]
87
86
  end
88
87
  end
@@ -107,8 +106,7 @@ class StripeProcessor
107
106
  end
108
107
  ```
109
108
 
110
- Elements can also be accessed directly in the rails console,
111
- or anywhere in your Rails application, via `Alki::Rails`:
109
+ Elements can also be accessed anywhere in your Rails application, via `Alki::Rails`:
112
110
 
113
111
  .config/assembly.rb
114
112
  ```ruby
@@ -127,14 +125,8 @@ end
127
125
  => 'Hello World'
128
126
  ```
129
127
 
130
- === Code Reloading
128
+ Alki will automatically add your projects `lib` directory to the ruby load path, so you can require files from there directly. It also will handle auto-reloading files in lib.
131
129
 
132
- Alki::Rails automatically will set up http://alki.io/projects/alki-reload[Alki::Reload] and enable it whenever
133
- Rails itself has code reloading enabled. It will handle reloading all Alki configuration files and files in `lib/`.
134
-
135
- Generally the Rails and Alki code reloading systems should work together without any issues.
136
- One place however where they do work differently is in the console.
137
- Alki does not require the `reload!` method to be called and will automatically reload code as soon as it changes.
138
130
 
139
131
  == Contributing
140
132
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["matt.edlefsen@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Rails integration for Alki}
13
- spec.homepage = "http://alki.io/projects/alki-rails"
13
+ spec.homepage = "https://github.com/alki-project/alki-rails"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -20,6 +20,8 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "alki", "~> 0.14"
24
- spec.add_dependency "alki-reload", "~> 0.3", ">= 0.3.4"
23
+ spec.add_development_dependency "bundler", "~> 1.13"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_dependency "alki", "~> 0.12"
26
+ spec.add_dependency "alki-reload", "~> 0.3", '>= 0.3.1'
25
27
  end
@@ -0,0 +1 @@
1
+ require File.expand_path('../../config/environment',caller_locations(1,1)[1][0].absolute_path)
@@ -1,5 +1,5 @@
1
1
  module Alki
2
2
  module Rails
3
- VERSION = "0.4.1"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alki-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Edlefsen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-02 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: alki
15
43
  requirement: !ruby/object:Gem::Requirement
16
44
  requirements:
17
45
  - - "~>"
18
46
  - !ruby/object:Gem::Version
19
- version: '0.14'
47
+ version: '0.12'
20
48
  type: :runtime
21
49
  prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
- version: '0.14'
54
+ version: '0.12'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: alki-reload
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +61,7 @@ dependencies:
33
61
  version: '0.3'
34
62
  - - ">="
35
63
  - !ruby/object:Gem::Version
36
- version: 0.3.4
64
+ version: 0.3.1
37
65
  type: :runtime
38
66
  prerelease: false
39
67
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +71,7 @@ dependencies:
43
71
  version: '0.3'
44
72
  - - ">="
45
73
  - !ruby/object:Gem::Version
46
- version: 0.3.4
74
+ version: 0.3.1
47
75
  description:
48
76
  email:
49
77
  - matt.edlefsen@gmail.com
@@ -60,9 +88,10 @@ files:
60
88
  - alki-rails.gemspec
61
89
  - lib/alki-rails.rb
62
90
  - lib/alki/rails.rb
91
+ - lib/alki/rails/bin.rb
63
92
  - lib/alki/rails/version.rb
64
93
  - lib/rails/generators/alki_generator.rb
65
- homepage: http://alki.io/projects/alki-rails
94
+ homepage: https://github.com/alki-project/alki-rails
66
95
  licenses:
67
96
  - MIT
68
97
  metadata: {}
@@ -82,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
111
  version: '0'
83
112
  requirements: []
84
113
  rubyforge_project:
85
- rubygems_version: 2.6.12
114
+ rubygems_version: 2.5.2
86
115
  signing_key:
87
116
  specification_version: 4
88
117
  summary: Rails integration for Alki