awesome_xml_dsl 0.1.3 → 0.1.4

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: 8bb7372068b3a1da4911d67b9d3c101554a550f807206a46a4f1425822e43032
4
- data.tar.gz: a7c2a0ad03096da1b92e8a580616cccfb9e746bdb3adc980636112f36ad5711d
3
+ metadata.gz: db4ef4ea4831a9b8d5757aefdc7219fec79ed43dbd19afe98a98a6b5bb5b14e1
4
+ data.tar.gz: 339e5cd404a2ee3dbc49a3ce8e486413fdd0a946ba70cdd1ed9ef756ebb314cb
5
5
  SHA512:
6
- metadata.gz: dbde5cd69e5f1c026be9ae2506d0401505642679a3421b1e340639aa533dbf1274c730e05733ea8665050ec5535e9f36b8b5d3088667b9b5aa2df3fccb2a15fb
7
- data.tar.gz: 551aea3fb50c413b824dba885fb1e13b7950d947d5008b8048bf10aab83133aa0a5e6285b79fb040d8d7718ccb82d934b4c19e7aa185226510c45414061cccb9
6
+ metadata.gz: 2b596aa331249ea0922194eefd37d91205632921b7c3a9fda02848b04918a22f55b3050860a5f3054f47d89a8f88406e7c2469759db00fa6f9eff93bca633199
7
+ data.tar.gz: eed13614e32ebf61b1c66f28faebfc8300d840b6c7834ef8b2bf9f676c2d84a085e4991ae86461931be8371c70e281683269afdeeeb3d3cc27cde55e113da131
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- awesome_xml_dsl (0.1.2)
4
+ awesome_xml_dsl (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XmlDsl
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
data/lib/xml_dsl.rb CHANGED
@@ -1,21 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'xml_dsl/version'
4
+ require 'lib/core_extensions'
5
+
6
+ require 'xml_dsl/options_parser'
7
+ require 'xml_dsl/attribute_options_parser'
8
+
9
+ require 'xml_dsl/generator'
10
+ require 'xml_dsl/attribute'
11
+ require 'xml_dsl/partial'
12
+ require 'xml_dsl/tag'
13
+
3
14
  module XmlDsl
4
15
  class RequiredValueNotPresent < StandardError; end
5
16
 
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
-
19
17
  def self.root
20
18
  File.dirname __dir__
21
19
  end
data/xml_dsl.gemspec CHANGED
@@ -13,16 +13,17 @@ Gem::Specification.new do |spec|
13
13
  spec.license = 'MIT'
14
14
  spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
15
15
 
16
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
16
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
17
17
 
18
18
  spec.metadata['homepage_uri'] = spec.homepage
19
19
  spec.metadata['source_code_uri'] = 'https://github.com/fedeaux/xml_dsl'
20
20
  spec.metadata['changelog_uri'] = 'https://github.com/fedeaux/xml_dsl'
21
21
 
22
22
  # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
23
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|examples)|as_one_file}) }
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ f.match(/^(test|spec|features|examples)|as_one_file/)
26
+ end
26
27
  end
27
28
 
28
29
  spec.bindir = 'exe'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_xml_dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro 'Fedeaux' Bernardes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-02 00:00:00.000000000 Z
11
+ date: 2020-02-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -28,7 +28,6 @@ files:
28
28
  - Rakefile
29
29
  - bin/console
30
30
  - bin/setup
31
- - lib/engine.rb
32
31
  - lib/lib/core_extensions.rb
33
32
  - lib/xml_dsl.rb
34
33
  - lib/xml_dsl/attribute.rb
data/lib/engine.rb DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module XmlDsl
4
- class Engine < ::Rails::Engine
5
- config.autoload_paths += Dir["#{config.root}/lib/**/"]
6
- end
7
- end