dry-system-rails 0.0.1 → 0.0.2

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: aa415ae413c6222d8b8163b956594c8417c69665
4
- data.tar.gz: b0b0fd7ca295ff62516c14e24a46f957d20738b6
3
+ metadata.gz: 7ce6cf373baf2d9b26197f0f1bf463c955104e6c
4
+ data.tar.gz: a2445418d71b4c62b7ab6fc5200fe83bc8d7f0d8
5
5
  SHA512:
6
- metadata.gz: 132c694fddf4f00c3768de8e97250924ee8a2d89316083eb6583537323d15e5a399f4fadffd037f7c58067a8a33bba08129c3cb030c2cd653f87b0251a41dd2d
7
- data.tar.gz: 8c1126ee9cf18a1e0acbd7f3abe6f563f59c141cfe448b646f08ed8fde1d6ee0fcbd27f12f143f6d411686df27f580b56c87d6ccafc731e2b5853f56d06c0379
6
+ metadata.gz: 60f714a3d7fa60b6617d9a956552a95e9eb59a3ecd6850297090ed5953a3b809cd2bb016fb5c37b4da9914c0a7ebcc9e34463b1b77a16c288fc3e3d720c2b0dd
7
+ data.tar.gz: a0d025871d900dd3a1601fef49d74ca81e85c94abe08bc97d5acc5999e63477c26f7354b804b6bfce5490a0186c097ba9c7dc85b8bfaad9fe8764ede43238e92
@@ -1,3 +1,9 @@
1
+ # v0.0.2 2016-08-23
2
+
3
+ ### Fixed
4
+
5
+ * `Railtie#namespace` has been renamed to `#app_namespace` because it may conflict with Rake's '#namespace' (blelump)
6
+
1
7
  # v0.0.1 2016-08-17
2
8
 
3
9
  First public release
@@ -40,17 +40,24 @@ module Dry
40
40
  end
41
41
 
42
42
  def finalize!
43
- namespace.const_set(:Container, container)
43
+ app_namespace.const_set(:Container, container)
44
44
  container.config.name = name
45
45
  container.finalize!
46
46
  end
47
47
 
48
48
  def name
49
- namespace.name.underscore.to_sym
49
+ app_namespace.name.underscore.to_sym
50
50
  end
51
51
 
52
- def namespace
53
- Object.const_get(::Rails.application.class.to_s.split('::').first)
52
+ # TODO: we had to rename namespace=>app_namespace because
53
+ # Rake::DSL's Kernel#namespace *sometimes* breaks things.
54
+ # Currently we are missing specs verifying that rake tasks work
55
+ # correctly and those must be added!
56
+ def app_namespace
57
+ @app_namespace ||= begin
58
+ top_level_namespace = ::Rails.application.class.to_s.split('::').first
59
+ Object.const_get(top_level_namespace)
60
+ end
54
61
  end
55
62
 
56
63
  def container
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module System
3
3
  module Rails
4
- VERSION = '0.0.1'.freeze
4
+ VERSION = '0.0.2'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-system-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-system