awesome_xml_dsl 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42ac9228475c201a5f1dbeba16fd0643f8e49ba7e19ca8e4e4d98fb8f31652f2
4
- data.tar.gz: 2e702e09f7b57074d46c2da30fc0e816fda3fef6d4e3ff1ffe0a19c011e135fd
3
+ metadata.gz: c363e7a223ff40b0cb2ad00272a76ff9b600f9082201f2e126fbb3163c823eed
4
+ data.tar.gz: 66d8a74730a59737e93d8b75aa403c4ecf87926207e493a1ca01b78d0c363698
5
5
  SHA512:
6
- metadata.gz: 560635f64613ff777f505e69beb33d4b51fbeb05346194bf97d6c36bde326a7a26b60d7a3b5dabb8fd543acc739a848bd860d674ea85c82043fc998f3f37f1a9
7
- data.tar.gz: '0729cede90811991feb0606f5d974b1668b1e35befd4a142ce0e5b677ec0bd9d9a7e3926e0b485a68f72548de5e7abcb82a53bba12ef86df939ad66e2d84445f'
6
+ metadata.gz: 2bd09a04c94af8163cfb156f4ad31d02808cc81ff4a7c819ec1fffed88669d03241e73c19d64233f384172124b42b56d5be518b6ef66c21597376e273a2714da
7
+ data.tar.gz: 7a77a19cce550f0ed2c150d4ab95f3c0b9c68937f07552f448f9bf46d35de659ffedddc8bd1974ea218fc5af895aa0c96c88b47bba46a1e50510da5402cdc964
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xml_dsl (0.1.0)
4
+ awesome_xml_dsl (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -26,9 +26,9 @@ PLATFORMS
26
26
  ruby
27
27
 
28
28
  DEPENDENCIES
29
+ awesome_xml_dsl!
29
30
  rake (~> 12.0)
30
31
  rspec (~> 3.0)
31
- xml_dsl!
32
32
 
33
33
  BUNDLED WITH
34
34
  2.1.4
data/lib/engine.rb ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module XmlDsl
4
+ class Engine < ::Rails::Engine
5
+ config.autoload_paths += Dir["#{config.root}/lib/xml_dsl/**/"]
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XmlDsl
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/lib/xml_dsl.rb CHANGED
@@ -1,17 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'xml_dsl/version'
4
- require 'xml_dsl/generator'
5
- require 'xml_dsl/tag'
6
- require 'xml_dsl/attribute'
7
- require 'xml_dsl/partial'
8
- require 'xml_dsl/options_parser'
9
- require 'xml_dsl/attribute_options_parser'
10
- require 'lib/core_extensions'
11
-
12
3
  module XmlDsl
13
4
  class RequiredValueNotPresent < StandardError; end
14
5
 
6
+ if defined?(Rails)
7
+ require 'engine'
8
+ else
9
+ require 'xml_dsl/version'
10
+ require 'xml_dsl/generator'
11
+ require 'xml_dsl/tag'
12
+ require 'xml_dsl/attribute'
13
+ require 'xml_dsl/partial'
14
+ require 'xml_dsl/options_parser'
15
+ require 'xml_dsl/attribute_options_parser'
16
+ require 'lib/core_extensions'
17
+ end
18
+
15
19
  def self.root
16
20
  File.dirname __dir__
17
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_xml_dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro 'Fedeaux' Bernardes
@@ -28,6 +28,7 @@ files:
28
28
  - Rakefile
29
29
  - bin/console
30
30
  - bin/setup
31
+ - lib/engine.rb
31
32
  - lib/lib/core_extensions.rb
32
33
  - lib/xml_dsl.rb
33
34
  - lib/xml_dsl/as_one_file.rb