sinatra_more 0.3.42 → 0.3.43

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.
@@ -1,4 +1,5 @@
1
1
  require 'thor/group'
2
+ require File.dirname(__FILE__) + "/../lib/sinatra_more/support_lite"
2
3
  require File.dirname(__FILE__) + '/generator_actions'
3
4
  require File.dirname(__FILE__) + '/components/component_actions'
4
5
  Dir[File.dirname(__FILE__) + "/{base_app,components}/**/*.rb"].each { |lib| require lib }
@@ -1,5 +1,7 @@
1
1
  # This is for adding specific methods that are required by sinatra_more if activesupport isn't required
2
2
 
3
+ require 'yaml' unless defined?(YAML)
4
+
3
5
  unless String.method_defined?(:titleize) && Hash.method_defined?(:slice)
4
6
  require 'active_support/core_ext/kernel'
5
7
  require 'active_support/core_ext/array'
@@ -11,7 +13,7 @@ unless String.method_defined?(:titleize) && Hash.method_defined?(:slice)
11
13
  end
12
14
 
13
15
  unless String.method_defined?(:blank?)
14
- begin
16
+ begin
15
17
  require 'active_support/core_ext/object/blank'
16
18
  rescue LoadError
17
19
  require 'active_support/core_ext/blank'
@@ -1,3 +1,3 @@
1
1
  module SinatraMore
2
- VERSION = "0.3.42"
2
+ VERSION = "0.3.43"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_more
3
3
  version: !ruby/object:Gem::Version
4
- hash: 71
4
+ hash: 69
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 42
10
- version: 0.3.42
9
+ - 43
10
+ version: 0.3.43
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan Esquenazi